{"version":3,"sources":["vendor/ember-cli/app-prefix.js","clinic-dev/adapters/-json-api.js","clinic-dev/adapters/application.js","clinic-dev/adapters/pricegroup.js","clinic-dev/adapters/store.js","clinic-dev/app.js","clinic-dev/component-managers/glimmer.js","clinic-dev/components/absentees-patients-component.js","clinic-dev/components/advised-reports-preview.js","clinic-dev/components/advised-reports.js","clinic-dev/components/appointment-doctor-component.js","clinic-dev/components/appointment-overview-component.js","clinic-dev/components/appointment-submit-component.js","clinic-dev/components/archive-list-component.js","clinic-dev/components/assign-doctor-doctor-view.js","clinic-dev/components/assign-doctor.js","clinic-dev/components/assigned-patient-daily.js","clinic-dev/components/batch-refund-details.js","clinic-dev/components/billed-details-component.js","clinic-dev/components/booked-from-badge.js","clinic-dev/components/cancellation-refund-popup.js","clinic-dev/components/cart-content.js","clinic-dev/components/case-history-preview.js","clinic-dev/components/case-history.js","clinic-dev/components/case-report-clinic-user-search.js","clinic-dev/components/case-report-critical-report-search.js","clinic-dev/components/case-report-disease-search.js","clinic-dev/components/case-report-medicine-search.js","clinic-dev/components/case-report-patient-search.js","clinic-dev/components/case-report-patient-vital-search.js","clinic-dev/components/case-report-visit-search.js","clinic-dev/components/case-taking-preview.js","clinic-dev/components/case-taking.js","clinic-dev/components/completed-emailrm-medicine-visits.js","clinic-dev/components/completed-medicine-visits.js","clinic-dev/components/completed-visits.js","clinic-dev/components/component-permissions.js","clinic-dev/components/correctbill-component.js","clinic-dev/components/critical-reports-component.js","clinic-dev/components/custom-hours-modal.js","clinic-dev/components/data-table.js","clinic-dev/components/delivery-address.js","clinic-dev/components/diagnostic-report-test-preview.js","clinic-dev/components/diagnostic-report-test.js","clinic-dev/components/diagnostic-reports-preview.js","clinic-dev/components/diagnostic-reports.js","clinic-dev/components/dispatched-orders-component.js","clinic-dev/components/doctor-name-component.js","clinic-dev/components/doctor-schedule-view.js","clinic-dev/components/dropdown-action-component.js","clinic-dev/components/email-complete-component.js","clinic-dev/components/email-completed-visit-component.js","clinic-dev/components/email-patients-component.js","clinic-dev/components/ember-datepicker.js","clinic-dev/components/empty-schedule-message.js","clinic-dev/components/error-display.js","clinic-dev/components/fa-icon.js","clinic-dev/components/file-dropzone.js","clinic-dev/components/file-icon.js","clinic-dev/components/file-preview-modal.js","clinic-dev/components/file-thumbnail.js","clinic-dev/components/file-upload.js","clinic-dev/components/flash-message.js","clinic-dev/components/footer-component.js","clinic-dev/components/free-note-preview.js","clinic-dev/components/header-component.js","clinic-dev/components/history-loader.js","clinic-dev/components/icp-vc-complete-component.js","clinic-dev/components/icp-vc-completed-visit-component.js","clinic-dev/components/icp-vc-patients-component.js","clinic-dev/components/icpattend-medicine-prescribe.js","clinic-dev/components/increment-for.js","clinic-dev/components/jqui-datepicker.js","clinic-dev/components/letter-avatar.js","clinic-dev/components/master-menu.js","clinic-dev/components/message-logs-preview.js","clinic-dev/components/message-logs.js","clinic-dev/components/mfa-setup.js","clinic-dev/components/nonocp-schedule-form.js","clinic-dev/components/not-completed-appointment-daily.js","clinic-dev/components/not-completed-onspot-daily.js","clinic-dev/components/not-completed-visits.js","clinic-dev/components/ocp-appointment-doctor-component.js","clinic-dev/components/ocp-appointment-slots.js","clinic-dev/components/ocp-complete-component.js","clinic-dev/components/ocp-completed-visit-component.js","clinic-dev/components/ocp-empty-schedule-message.js","clinic-dev/components/ocp-patient-orders-component.js","clinic-dev/components/ocp-patients-component.js","clinic-dev/components/ocp-schedule-card.js","clinic-dev/components/ocp-schedule-form.js","clinic-dev/components/online-payment-details-popup.js","clinic-dev/components/otp-verification.js","clinic-dev/components/pagination-component.js","clinic-dev/components/patient-information-preview.js","clinic-dev/components/patient-information.js","clinic-dev/components/patient-registration.js","clinic-dev/components/patient-thin-info-preview.js","clinic-dev/components/patient-thin-info.js","clinic-dev/components/payment-details-component.js","clinic-dev/components/pending-details-list.js","clinic-dev/components/pending-refund-popup.js","clinic-dev/components/pharmacy-details-component.js","clinic-dev/components/pharmacy-history-component.js","clinic-dev/components/pharmacy-view-component.js","clinic-dev/components/phone-complete-component.js","clinic-dev/components/phone-completed-visit-component.js","clinic-dev/components/phone-patients-component.js","clinic-dev/components/pikaday-input.js","clinic-dev/components/pikaday-inputless.js","clinic-dev/components/prescribe-detail-component-preview.js","clinic-dev/components/prescribe-detail-component.js","clinic-dev/components/prescribe-details-component.js","clinic-dev/components/prescribed-details-component.js","clinic-dev/components/prescription-preview.js","clinic-dev/components/prescription.js","clinic-dev/components/presigned-image.js","clinic-dev/components/print-options-component.js","clinic-dev/components/ready-for-pickup-component.js","clinic-dev/components/refund-batches-popup.js","clinic-dev/components/report-notes-details.js","clinic-dev/components/route-message.js","clinic-dev/components/schedule-card.js","clinic-dev/components/search-filed-element.js","clinic-dev/components/search-patient-onspot.js","clinic-dev/components/searchable-select-option.js","clinic-dev/components/searchable-select.js","clinic-dev/components/section-add-edit-by.js","clinic-dev/components/shift-report-popup.js","clinic-dev/components/shipping-pickup-details-component.js","clinic-dev/components/shipping-preference-popup.js","clinic-dev/components/show-test-notes.js","clinic-dev/components/sub-menu.js","clinic-dev/components/top-nav-component.js","clinic-dev/components/transaction-appointment.js","clinic-dev/components/transaction-details-list.js","clinic-dev/components/transaction-history-popup.js","clinic-dev/components/transaction-search-appointment.js","clinic-dev/components/visit-billing-history.js","clinic-dev/components/visit-default-charge-popup.js","clinic-dev/components/visit-history-component-popup.js","clinic-dev/components/visit-log-component.js","clinic-dev/components/vital-statistics-component-preview.js","clinic-dev/components/vital-statistics-component.js","clinic-dev/components/welcome-page.js","clinic-dev/controllers/application.js","clinic-dev/controllers/appointment-detail.js","clinic-dev/controllers/appointment.js","clinic-dev/controllers/billing.js","clinic-dev/controllers/branch.js","clinic-dev/controllers/case-report/casereport.js","clinic-dev/controllers/checkout.js","clinic-dev/controllers/dashboard.js","clinic-dev/controllers/dispatch/dispatch.js","clinic-dev/controllers/doctor-dashboard.js","clinic-dev/controllers/home.js","clinic-dev/controllers/icpattend.js","clinic-dev/controllers/login.js","clinic-dev/controllers/manage-appointment/manage-appointment.js","clinic-dev/controllers/manage-transaction/manage-transaction.js","clinic-dev/controllers/mfa.js","clinic-dev/controllers/patient.js","clinic-dev/controllers/pharmacy.js","clinic-dev/controllers/reports.js","clinic-dev/controllers/schedule.js","clinic-dev/controllers/schedule/max-slots/edit.js","clinic-dev/controllers/settings.js","clinic-dev/controllers/settings/masters/charges.js","clinic-dev/controllers/settings/masters/diagnostic.js","clinic-dev/controllers/settings/masters/disease.js","clinic-dev/controllers/settings/masters/doctor-level.js","clinic-dev/controllers/settings/masters/doctor-management.js","clinic-dev/controllers/settings/masters/dtg/dtg.js","clinic-dev/controllers/settings/masters/form.js","clinic-dev/controllers/settings/masters/medicines/instruction.js","clinic-dev/controllers/settings/masters/medicines/medicine.js","clinic-dev/controllers/settings/masters/medicines/mix.js","clinic-dev/controllers/settings/masters/medicines/template.js","clinic-dev/controllers/settings/masters/menu.js","clinic-dev/controllers/settings/masters/organ.js","clinic-dev/controllers/settings/masters/outcomesuom/outcomesuom.js","clinic-dev/controllers/settings/masters/permissions.js","clinic-dev/controllers/settings/masters/permissions/category.js","clinic-dev/controllers/settings/masters/potency.js","clinic-dev/controllers/settings/masters/pricegroup.js","clinic-dev/controllers/settings/masters/role.js","clinic-dev/controllers/settings/masters/system.js","clinic-dev/controllers/settings/masters/token.js","clinic-dev/controllers/settings/masters/users.js","clinic-dev/controllers/transactional-report.js","clinic-dev/controllers/users.js","clinic-dev/data-adapter.js","clinic-dev/flash/object.js","clinic-dev/helpers/and.js","clinic-dev/helpers/app-version.js","clinic-dev/helpers/appointment-overview-component.js","clinic-dev/helpers/appointment-type-icon.js","clinic-dev/helpers/array-item.js","clinic-dev/helpers/array-last-index-value.js","clinic-dev/helpers/array-size.js","clinic-dev/helpers/billed-current-due-status.js","clinic-dev/helpers/billed-current-due.js","clinic-dev/helpers/billed-payment-status.js","clinic-dev/helpers/billed-sum.js","clinic-dev/helpers/billed-total-dues-amount.js","clinic-dev/helpers/billpatient-payment-status.js","clinic-dev/helpers/billpatient-sum.js","clinic-dev/helpers/billpatient-total-dues-amount.js","clinic-dev/helpers/blood-type.js","clinic-dev/helpers/bmi-conversion.js","clinic-dev/helpers/body-temp-conversion.js","clinic-dev/helpers/body-temp.js","clinic-dev/helpers/can-access-route.js","clinic-dev/helpers/capitalize.js","clinic-dev/helpers/case-taken-list.js","clinic-dev/helpers/case-taken-preview-helper.js","clinic-dev/helpers/case-visit-history.js","clinic-dev/helpers/check-equal-date.js","clinic-dev/helpers/check-equal.js","clinic-dev/helpers/check-id.js","clinic-dev/helpers/check-permission.js","clinic-dev/helpers/checklenght.js","clinic-dev/helpers/checkout-case-history.js","clinic-dev/helpers/checkout-consultancy.js","clinic-dev/helpers/checkout-date-format.js","clinic-dev/helpers/checkout-medicine.js","clinic-dev/helpers/checkout-payment-status.js","clinic-dev/helpers/checkout-prescribe-medicine.js","clinic-dev/helpers/checkout-preview-date-format.js","clinic-dev/helpers/checkout-total-dues-amount.js","clinic-dev/helpers/checkout-total-status.js","clinic-dev/helpers/checkout-total.js","clinic-dev/helpers/chunked-array.js","clinic-dev/helpers/class-name-change.js","clinic-dev/helpers/common-date.js","clinic-dev/helpers/common-payment-calculation.js","clinic-dev/helpers/convert-to-12-hour.js","clinic-dev/helpers/convert-to-24-hour.js","clinic-dev/helpers/count.js","clinic-dev/helpers/date-format.js","clinic-dev/helpers/discount.js","clinic-dev/helpers/due-advance-flag.js","clinic-dev/helpers/ensure-safe-component.js","clinic-dev/helpers/eq.js","clinic-dev/helpers/fetch-presigned-url.js","clinic-dev/helpers/file-queue.js","clinic-dev/helpers/filter-by-day.js","clinic-dev/helpers/find-array-value.js","clinic-dev/helpers/find-tab-patient.js","clinic-dev/helpers/format-date-range.js","clinic-dev/helpers/format-date.js","clinic-dev/helpers/format-datetime.js","clinic-dev/helpers/format-list.js","clinic-dev/helpers/format-message.js","clinic-dev/helpers/format-number.js","clinic-dev/helpers/format-relative.js","clinic-dev/helpers/format-slot.js","clinic-dev/helpers/format-time.js","clinic-dev/helpers/get-age.js","clinic-dev/helpers/get-availability.js","clinic-dev/helpers/get-error.js","clinic-dev/helpers/group-list.js","clinic-dev/helpers/gt.js","clinic-dev/helpers/gte.js","clinic-dev/helpers/has-casetaken.js","clinic-dev/helpers/height-conversion.js","clinic-dev/helpers/height.js","clinic-dev/helpers/highlight.js","clinic-dev/helpers/htmlspecialchars-decode.js","clinic-dev/helpers/icp-case-history.js","clinic-dev/helpers/icpattend-prescribe-medicine.js","clinic-dev/helpers/icpattend-prescribed.js","clinic-dev/helpers/icpattend-tempprescribe-medicine.js","clinic-dev/helpers/ifeg.js","clinic-dev/helpers/ifnoteq.js","clinic-dev/helpers/implode-array.js","clinic-dev/helpers/increase-tab-number.js","clinic-dev/helpers/increment.js","clinic-dev/helpers/is-array.js","clinic-dev/helpers/is-empty.js","clinic-dev/helpers/is-equal.js","clinic-dev/helpers/is-last.js","clinic-dev/helpers/is-not.js","clinic-dev/helpers/is-pdf.js","clinic-dev/helpers/last-visit-date-format.js","clinic-dev/helpers/last-visit-list.js","clinic-dev/helpers/lessthen.js","clinic-dev/helpers/line-break.js","clinic-dev/helpers/logical-or.js","clinic-dev/helpers/lt.js","clinic-dev/helpers/lte.js","clinic-dev/helpers/menu.js","clinic-dev/helpers/message-log-date.js","clinic-dev/helpers/message-turncate.js","clinic-dev/helpers/not-empty.js","clinic-dev/helpers/not-eq.js","clinic-dev/helpers/not.js","clinic-dev/helpers/number-format.js","clinic-dev/helpers/ocp-slots.js","clinic-dev/helpers/or.js","clinic-dev/helpers/other-charge.js","clinic-dev/helpers/page-title.js","clinic-dev/helpers/pagination-component.js","clinic-dev/helpers/pagination-pages.js","clinic-dev/helpers/patient-pending-list.js","clinic-dev/helpers/payment-status.js","clinic-dev/helpers/pending-amount.js","clinic-dev/helpers/pluralize.js","clinic-dev/helpers/prescribe-medicine-edit.js","clinic-dev/helpers/prescribe-medicine-view.js","clinic-dev/helpers/prescribe-medicine.js","clinic-dev/helpers/prescribed-medicine.js","clinic-dev/helpers/render-appointment-block.js","clinic-dev/helpers/render-appointment.js","clinic-dev/helpers/round-up.js","clinic-dev/helpers/schedule-date-format.js","clinic-dev/helpers/schedule-selected.js","clinic-dev/helpers/searchable-select-get.js","clinic-dev/helpers/searchable-select-highlight-match.js","clinic-dev/helpers/show-billing-pharmacy-name.js","clinic-dev/helpers/singularize.js","clinic-dev/helpers/stringify.js","clinic-dev/helpers/subhtest.js","clinic-dev/helpers/sum.js","clinic-dev/helpers/t.js","clinic-dev/helpers/text-highlight.js","clinic-dev/helpers/total-dues-amount.js","clinic-dev/helpers/truncate-text.js","clinic-dev/helpers/visit-log.js","clinic-dev/helpers/weight-conversion.js","clinic-dev/helpers/weight.js","clinic-dev/helpers/xor.js","clinic-dev/index.js","clinic-dev/initializers/ajax-auth.js","clinic-dev/initializers/allow-link-action.js","clinic-dev/initializers/app-version.js","clinic-dev/initializers/container-debug-adapter.js","clinic-dev/initializers/dkbc-print.js","clinic-dev/initializers/ember-data-data-adapter.js","clinic-dev/initializers/ember-data.js","clinic-dev/initializers/ember-i18n.js","clinic-dev/initializers/export-application-global.js","clinic-dev/initializers/flash-messages.js","clinic-dev/initializers/has-permissions.js","clinic-dev/initializers/i18n.js","clinic-dev/initializers/inject-service-icpattend.js","clinic-dev/initializers/recalculate-amount.js","clinic-dev/initializers/remember-scroll.js","clinic-dev/initializers/session-ajax.js","clinic-dev/initializers/session.js","clinic-dev/initializers/setup-pikaday-i18n.js","clinic-dev/initializers/top-nav-service.js","clinic-dev/initializers/user-permissions-service.js","clinic-dev/initializers/websocket-initializer.js","clinic-dev/initializers/websocket.js","clinic-dev/instance-initializers/ember-data.js","clinic-dev/instance-initializers/ember-i18n.js","clinic-dev/locales/en/config.js","clinic-dev/locales/en/translations.js","clinic-dev/mixins/link-action.js","clinic-dev/models/appointment.js","clinic-dev/models/doctor.js","clinic-dev/models/login.js","clinic-dev/models/patient.js","clinic-dev/models/pricegroup.js","clinic-dev/models/schedule.js","clinic-dev/models/users.js","clinic-dev/modifiers/did-insert.js","clinic-dev/modifiers/did-update.js","clinic-dev/modifiers/will-destroy.js","clinic-dev/resolver.js","clinic-dev/router.js","clinic-dev/routes/appointment-detail.js","clinic-dev/routes/appointment.js","clinic-dev/routes/appointment/edit.js","clinic-dev/routes/appointment/new.js","clinic-dev/routes/billing.js","clinic-dev/routes/billing/billeddetails.js","clinic-dev/routes/billing/billedpatient.js","clinic-dev/routes/billing/billing.js","clinic-dev/routes/billing/billpatient.js","clinic-dev/routes/billing/correctbill.js","clinic-dev/routes/billing/history.js","clinic-dev/routes/billing/index.js","clinic-dev/routes/billing/list.js","clinic-dev/routes/billing/pastprescribeedit.js","clinic-dev/routes/billing/prescribe.js","clinic-dev/routes/billing/prescribeedit.js","clinic-dev/routes/cancel-appointment.js","clinic-dev/routes/cancel-appointment/doctor.js","clinic-dev/routes/cancel-appointment/index.js","clinic-dev/routes/cancel-appointment/patient.js","clinic-dev/routes/cancel-appointment/reschedule.js","clinic-dev/routes/cancel-report.js","clinic-dev/routes/case-report/case-report.js","clinic-dev/routes/case-report/index.js","clinic-dev/routes/case-report/list.js","clinic-dev/routes/dashboard.js","clinic-dev/routes/dispatch.js","clinic-dev/routes/dispatch/archive.js","clinic-dev/routes/dispatch/edit.js","clinic-dev/routes/dispatch/editarchive.js","clinic-dev/routes/dispatch/index.js","clinic-dev/routes/dispatch/list.js","clinic-dev/routes/dispatch/order.js","clinic-dev/routes/dispatch/order/edit.js","clinic-dev/routes/dispatch/order/index.js","clinic-dev/routes/doctor-activity-report.js","clinic-dev/routes/doctor-dashboard.js","clinic-dev/routes/doctor-dashboard/checkout.js","clinic-dev/routes/doctor-dashboard/checkoutdetail.js","clinic-dev/routes/doctor-dashboard/icpattend.js","clinic-dev/routes/doctor-dashboard/icpattend/index.js","clinic-dev/routes/doctor-dashboard/index.js","clinic-dev/routes/doctor-dashboard/list.js","clinic-dev/routes/forgot-password.js","clinic-dev/routes/home.js","clinic-dev/routes/index.js","clinic-dev/routes/login.js","clinic-dev/routes/logout.js","clinic-dev/routes/manage-appointment/index.js","clinic-dev/routes/manage-transaction/index.js","clinic-dev/routes/manage-transaction/list.js","clinic-dev/routes/mfa-setup.js","clinic-dev/routes/otp-verification.js","clinic-dev/routes/patient.js","clinic-dev/routes/patient/details.js","clinic-dev/routes/patient/edit.js","clinic-dev/routes/patient/index.js","clinic-dev/routes/patient/register.js","clinic-dev/routes/pharmacy.js","clinic-dev/routes/pharmacy/details.js","clinic-dev/routes/pharmacy/history.js","clinic-dev/routes/pharmacy/index.js","clinic-dev/routes/pharmacy/list.js","clinic-dev/routes/pharmacy/view.js","clinic-dev/routes/refund-dashboard.js","clinic-dev/routes/refund-dashboard/batch.js","clinic-dev/routes/reports-list.js","clinic-dev/routes/reports.js","clinic-dev/routes/schedule.js","clinic-dev/routes/schedule/index.js","clinic-dev/routes/schedule/max-slots.js","clinic-dev/routes/schedule/max-slots/edit.js","clinic-dev/routes/schedule/upload.js","clinic-dev/routes/settings.js","clinic-dev/routes/settings/branch/add.js","clinic-dev/routes/settings/branch/edit.js","clinic-dev/routes/settings/branch/list.js","clinic-dev/routes/settings/doctors.js","clinic-dev/routes/settings/index.js","clinic-dev/routes/settings/masters/charges/add.js","clinic-dev/routes/settings/masters/charges/edit.js","clinic-dev/routes/settings/masters/charges/index.js","clinic-dev/routes/settings/masters/charges/list.js","clinic-dev/routes/settings/masters/diagnostic/add.js","clinic-dev/routes/settings/masters/diagnostic/edit.js","clinic-dev/routes/settings/masters/diagnostic/list.js","clinic-dev/routes/settings/masters/disease/add.js","clinic-dev/routes/settings/masters/disease/edit.js","clinic-dev/routes/settings/masters/disease/list.js","clinic-dev/routes/settings/masters/doctor-level/add.js","clinic-dev/routes/settings/masters/doctor-level/edit.js","clinic-dev/routes/settings/masters/doctor-level/list.js","clinic-dev/routes/settings/masters/doctor-management/add.js","clinic-dev/routes/settings/masters/doctor-management/edit.js","clinic-dev/routes/settings/masters/doctor-management/list.js","clinic-dev/routes/settings/masters/dtg/add.js","clinic-dev/routes/settings/masters/dtg/edit.js","clinic-dev/routes/settings/masters/dtg/list.js","clinic-dev/routes/settings/masters/form/add.js","clinic-dev/routes/settings/masters/form/edit.js","clinic-dev/routes/settings/masters/form/index.js","clinic-dev/routes/settings/masters/form/list.js","clinic-dev/routes/settings/masters/index.js","clinic-dev/routes/settings/masters/medicines/index.js","clinic-dev/routes/settings/masters/medicines/instruction/add.js","clinic-dev/routes/settings/masters/medicines/instruction/edit.js","clinic-dev/routes/settings/masters/medicines/instruction/list.js","clinic-dev/routes/settings/masters/medicines/medicine/add.js","clinic-dev/routes/settings/masters/medicines/medicine/edit.js","clinic-dev/routes/settings/masters/medicines/medicine/index.js","clinic-dev/routes/settings/masters/medicines/medicine/list.js","clinic-dev/routes/settings/masters/medicines/mix/add.js","clinic-dev/routes/settings/masters/medicines/mix/edit.js","clinic-dev/routes/settings/masters/medicines/mix/index.js","clinic-dev/routes/settings/masters/medicines/mix/list.js","clinic-dev/routes/settings/masters/medicines/template/add.js","clinic-dev/routes/settings/masters/medicines/template/edit.js","clinic-dev/routes/settings/masters/medicines/template/list.js","clinic-dev/routes/settings/masters/menu/add.js","clinic-dev/routes/settings/masters/menu/edit.js","clinic-dev/routes/settings/masters/menu/index.js","clinic-dev/routes/settings/masters/menu/list.js","clinic-dev/routes/settings/masters/organ/add.js","clinic-dev/routes/settings/masters/organ/edit.js","clinic-dev/routes/settings/masters/organ/list.js","clinic-dev/routes/settings/masters/outcomesuom/add.js","clinic-dev/routes/settings/masters/outcomesuom/edit.js","clinic-dev/routes/settings/masters/outcomesuom/list.js","clinic-dev/routes/settings/masters/permissions/add.js","clinic-dev/routes/settings/masters/permissions/category/add.js","clinic-dev/routes/settings/masters/permissions/category/edit.js","clinic-dev/routes/settings/masters/permissions/category/index.js","clinic-dev/routes/settings/masters/permissions/category/list.js","clinic-dev/routes/settings/masters/permissions/edit.js","clinic-dev/routes/settings/masters/permissions/index.js","clinic-dev/routes/settings/masters/permissions/list.js","clinic-dev/routes/settings/masters/potency/add.js","clinic-dev/routes/settings/masters/potency/edit.js","clinic-dev/routes/settings/masters/potency/index.js","clinic-dev/routes/settings/masters/potency/list.js","clinic-dev/routes/settings/masters/pricegroup/add.js","clinic-dev/routes/settings/masters/pricegroup/edit.js","clinic-dev/routes/settings/masters/pricegroup/index.js","clinic-dev/routes/settings/masters/pricegroup/list.js","clinic-dev/routes/settings/masters/role/add.js","clinic-dev/routes/settings/masters/role/edit.js","clinic-dev/routes/settings/masters/role/index.js","clinic-dev/routes/settings/masters/role/list.js","clinic-dev/routes/settings/masters/show.js","clinic-dev/routes/settings/masters/system/add.js","clinic-dev/routes/settings/masters/system/edit.js","clinic-dev/routes/settings/masters/system/list.js","clinic-dev/routes/settings/masters/token/index.js","clinic-dev/routes/settings/masters/token/list.js","clinic-dev/routes/settings/masters/users/add.js","clinic-dev/routes/settings/masters/users/edit.js","clinic-dev/routes/settings/masters/users/index.js","clinic-dev/routes/settings/masters/users/list.js","clinic-dev/routes/settings/masters/users/profile.js","clinic-dev/routes/settings/maximum-token.js","clinic-dev/routes/settings/print-token.js","clinic-dev/routes/shift-report.js","clinic-dev/routes/transactional-report.js","clinic-dev/routes/users.js","clinic-dev/routes/users/edit.js","clinic-dev/routes/users/index.js","clinic-dev/routes/users/new.js","clinic-dev/routes/users/profile.js","clinic-dev/serializers/-default.js","clinic-dev/serializers/-json-api.js","clinic-dev/serializers/-rest.js","clinic-dev/serializers/application.js","clinic-dev/serializers/pricegroup.js","clinic-dev/services/-ensure-registered.js","clinic-dev/services/ajax-auth.js","clinic-dev/services/dkbc-print.js","clinic-dev/services/file-queue.js","clinic-dev/services/flash-messages.js","clinic-dev/services/form-validator.js","clinic-dev/services/has-permissions.js","clinic-dev/services/i18n.js","clinic-dev/services/idle-timer.js","clinic-dev/services/intl.js","clinic-dev/services/menu.js","clinic-dev/services/numberinwords.js","clinic-dev/services/page-title-list.js","clinic-dev/services/page-title.js","clinic-dev/services/permissions.js","clinic-dev/services/print-options.js","clinic-dev/services/recalculate-amount.js","clinic-dev/services/schedule.js","clinic-dev/services/service-icpattend.js","clinic-dev/services/session.js","clinic-dev/services/shipping-validation.js","clinic-dev/services/slot-lock.js","clinic-dev/services/socket-io.js","clinic-dev/services/store.js","clinic-dev/services/top-nav-service.js","clinic-dev/services/user-permissions-service.js","clinic-dev/services/websocket.js","clinic-dev/services/websockets.js","clinic-dev/templates/application.js","clinic-dev/templates/appointment-detail.js","clinic-dev/templates/appointment.js","clinic-dev/templates/appointment/edit.js","clinic-dev/templates/appointment/new.js","clinic-dev/templates/billing.js","clinic-dev/templates/billing/billeddetails.js","clinic-dev/templates/billing/billedpatient.js","clinic-dev/templates/billing/billing.js","clinic-dev/templates/billing/billpatient.js","clinic-dev/templates/billing/correctbill.js","clinic-dev/templates/billing/history.js","clinic-dev/templates/billing/index.js","clinic-dev/templates/billing/list.js","clinic-dev/templates/billing/pastprescribeedit.js","clinic-dev/templates/billing/prescribe.js","clinic-dev/templates/billing/prescribeedit.js","clinic-dev/templates/cancel-appointment.js","clinic-dev/templates/cancel-appointment/doctor.js","clinic-dev/templates/cancel-appointment/index.js","clinic-dev/templates/cancel-appointment/patient.js","clinic-dev/templates/cancel-appointment/reschedule.js","clinic-dev/templates/cancel-report.js","clinic-dev/templates/case-report/case-report.js","clinic-dev/templates/case-report/index.js","clinic-dev/templates/case-report/list.js","clinic-dev/templates/casepreview.js","clinic-dev/templates/components/absentees-patients-component.js","clinic-dev/templates/components/advised-reports-preview.js","clinic-dev/templates/components/advised-reports.js","clinic-dev/templates/components/all-complete-patients-component.js","clinic-dev/templates/components/appointment-doctor-component.js","clinic-dev/templates/components/appointment-overview-component.js","clinic-dev/templates/components/appointment-submit-component.js","clinic-dev/templates/components/archive-list-component.js","clinic-dev/templates/components/assign-doctor-doctor-view.js","clinic-dev/templates/components/assign-doctor.js","clinic-dev/templates/components/assigned-patient-daily.js","clinic-dev/templates/components/batch-refund-details.js","clinic-dev/templates/components/billed-details-component.js","clinic-dev/templates/components/booked-from-badge.js","clinic-dev/templates/components/cancellation-refund-popup.js","clinic-dev/templates/components/cart-content.js","clinic-dev/templates/components/case-history-preview.js","clinic-dev/templates/components/case-history.js","clinic-dev/templates/components/case-report-clinic-user-search.js","clinic-dev/templates/components/case-report-critical-report-search.js","clinic-dev/templates/components/case-report-disease-search.js","clinic-dev/templates/components/case-report-medicine-search.js","clinic-dev/templates/components/case-report-patient-search.js","clinic-dev/templates/components/case-report-patient-vital-search.js","clinic-dev/templates/components/case-report-visit-search.js","clinic-dev/templates/components/case-taking-preview.js","clinic-dev/templates/components/case-taking.js","clinic-dev/templates/components/completed-emailrm-medicine-visits.js","clinic-dev/templates/components/completed-medicine-visits.js","clinic-dev/templates/components/completed-visits.js","clinic-dev/templates/components/component-permissions.js","clinic-dev/templates/components/correctbill-component.js","clinic-dev/templates/components/critical-reports-component.js","clinic-dev/templates/components/custom-hours-modal.js","clinic-dev/templates/components/data-table.js","clinic-dev/templates/components/delivery-address.js","clinic-dev/templates/components/diagnostic-report-test-preview.js","clinic-dev/templates/components/diagnostic-report-test.js","clinic-dev/templates/components/diagnostic-reports-preview.js","clinic-dev/templates/components/diagnostic-reports.js","clinic-dev/templates/components/dispatched-orders-component.js","clinic-dev/templates/components/doctor-name-component.js","clinic-dev/templates/components/doctor-schedule-view.js","clinic-dev/templates/components/dropdown-action-component.js","clinic-dev/templates/components/email-complete-component.js","clinic-dev/templates/components/email-completed-visit-component.js","clinic-dev/templates/components/email-patients-component.js","clinic-dev/templates/components/ember-datepicker.js","clinic-dev/templates/components/empty-schedule-message.js","clinic-dev/templates/components/error-display.js","clinic-dev/templates/components/file-icon.js","clinic-dev/templates/components/file-preview-modal.js","clinic-dev/templates/components/file-thumbnail.js","clinic-dev/templates/components/file-upload.js","clinic-dev/templates/components/flash-message.js","clinic-dev/templates/components/footer-component.js","clinic-dev/templates/components/free-note-preview.js","clinic-dev/templates/components/header-component.js","clinic-dev/templates/components/history-loader.js","clinic-dev/templates/components/icp-vc-complete-component.js","clinic-dev/templates/components/icp-vc-completed-visit-component.js","clinic-dev/templates/components/icp-vc-patients-component.js","clinic-dev/templates/components/icpattend-medicine-prescribe.js","clinic-dev/templates/components/increment-for.js","clinic-dev/templates/components/jqui-datepicker.js","clinic-dev/templates/components/letter-avatar.js","clinic-dev/templates/components/master-menu.js","clinic-dev/templates/components/message-logs-preview.js","clinic-dev/templates/components/message-logs.js","clinic-dev/templates/components/mfa-setup.js","clinic-dev/templates/components/nonocp-schedule-form.js","clinic-dev/templates/components/not-completed-appointment-daily.js","clinic-dev/templates/components/not-completed-onspot-daily.js","clinic-dev/templates/components/not-completed-visits.js","clinic-dev/templates/components/ocp-appointment-doctor-component.js","clinic-dev/templates/components/ocp-appointment-slots.js","clinic-dev/templates/components/ocp-complete-component.js","clinic-dev/templates/components/ocp-completed-visit-component.js","clinic-dev/templates/components/ocp-empty-schedule-message.js","clinic-dev/templates/components/ocp-patient-orders-component.js","clinic-dev/templates/components/ocp-patients-component.js","clinic-dev/templates/components/ocp-schedule-card.js","clinic-dev/templates/components/ocp-schedule-form.js","clinic-dev/templates/components/online-payment-details-popup.js","clinic-dev/templates/components/otp-verification.js","clinic-dev/templates/components/pagination-component.js","clinic-dev/templates/components/patient-information-preview.js","clinic-dev/templates/components/patient-information.js","clinic-dev/templates/components/patient-registration.js","clinic-dev/templates/components/patient-thin-info-preview.js","clinic-dev/templates/components/patient-thin-info.js","clinic-dev/templates/components/payment-details-component.js","clinic-dev/templates/components/pending-details-list.js","clinic-dev/templates/components/pending-refund-popup.js","clinic-dev/templates/components/pharmacy-details-component.js","clinic-dev/templates/components/pharmacy-history-component.js","clinic-dev/templates/components/pharmacy-view-component.js","clinic-dev/templates/components/phone-complete-component.js","clinic-dev/templates/components/phone-completed-visit-component.js","clinic-dev/templates/components/phone-patients-component.js","clinic-dev/templates/components/prescribe-detail-component-preview.js","clinic-dev/templates/components/prescribe-detail-component.js","clinic-dev/templates/components/prescribe-details-component.js","clinic-dev/templates/components/prescribed-details-component.js","clinic-dev/templates/components/prescription-preview.js","clinic-dev/templates/components/prescription.js","clinic-dev/templates/components/presigned-image.js","clinic-dev/templates/components/print-options-component.js","clinic-dev/templates/components/ready-for-pickup-component.js","clinic-dev/templates/components/refund-batches-popup.js","clinic-dev/templates/components/report-notes-details.js","clinic-dev/templates/components/route-message.js","clinic-dev/templates/components/schedule-card.js","clinic-dev/templates/components/search-filed-element.js","clinic-dev/templates/components/search-patient-onspot.js","clinic-dev/templates/components/searchable-select-option.js","clinic-dev/templates/components/searchable-select.js","clinic-dev/templates/components/section-add-edit-by.js","clinic-dev/templates/components/shift-report-popup.js","clinic-dev/templates/components/shipping-pickup-details-component.js","clinic-dev/templates/components/shipping-preference-popup.js","clinic-dev/templates/components/show-test-notes.js","clinic-dev/templates/components/sub-menu.js","clinic-dev/templates/components/top-nav-component.js","clinic-dev/templates/components/transaction-appointment.js","clinic-dev/templates/components/transaction-details-list.js","clinic-dev/templates/components/transaction-history-popup.js","clinic-dev/templates/components/transaction-search-appointment.js","clinic-dev/templates/components/visit-billing-history.js","clinic-dev/templates/components/visit-default-charge-popup.js","clinic-dev/templates/components/visit-history-component-popup.js","clinic-dev/templates/components/visit-log-component.js","clinic-dev/templates/components/vist-billing-history.js","clinic-dev/templates/components/vital-statistics-component-preview.js","clinic-dev/templates/components/vital-statistics-component.js","clinic-dev/templates/dashboard.js","clinic-dev/templates/dispatch/archive.js","clinic-dev/templates/dispatch/edit.js","clinic-dev/templates/dispatch/editarchive.js","clinic-dev/templates/dispatch/index.js","clinic-dev/templates/dispatch/list.js","clinic-dev/templates/dispatch/order.js","clinic-dev/templates/dispatch/order/edit.js","clinic-dev/templates/dispatch/order/index.js","clinic-dev/templates/doctor-activity-report.js","clinic-dev/templates/doctor-dashboard.js","clinic-dev/templates/doctor-dashboard/checkout.js","clinic-dev/templates/doctor-dashboard/checkoutdetail.js","clinic-dev/templates/doctor-dashboard/icpattend.js","clinic-dev/templates/doctor-dashboard/icpattend/index.js","clinic-dev/templates/doctor-dashboard/index.js","clinic-dev/templates/doctor-dashboard/list.js","clinic-dev/templates/forgot-password.js","clinic-dev/templates/home.js","clinic-dev/templates/index.js","clinic-dev/templates/login.js","clinic-dev/templates/manage-appointment/index.js","clinic-dev/templates/manage-transaction/index.js","clinic-dev/templates/manage-transaction/list.js","clinic-dev/templates/mfa-setup.js","clinic-dev/templates/otp-verification.js","clinic-dev/templates/patient.js","clinic-dev/templates/patient/details.js","clinic-dev/templates/patient/edit.js","clinic-dev/templates/patient/index.js","clinic-dev/templates/patient/register.js","clinic-dev/templates/pharmacy.js","clinic-dev/templates/pharmacy/details.js","clinic-dev/templates/pharmacy/history.js","clinic-dev/templates/pharmacy/index.js","clinic-dev/templates/pharmacy/list.js","clinic-dev/templates/pharmacy/view.js","clinic-dev/templates/refund-dashboard.js","clinic-dev/templates/refund-dashboard/batch.js","clinic-dev/templates/reports-list.js","clinic-dev/templates/reports.js","clinic-dev/templates/schedule.js","clinic-dev/templates/schedule/index.js","clinic-dev/templates/schedule/max-slots-edit.js","clinic-dev/templates/schedule/max-slots.js","clinic-dev/templates/schedule/upload.js","clinic-dev/templates/settings.js","clinic-dev/templates/settings/branch/add.js","clinic-dev/templates/settings/branch/edit.js","clinic-dev/templates/settings/branch/list.js","clinic-dev/templates/settings/doctors.js","clinic-dev/templates/settings/index.js","clinic-dev/templates/settings/masters/charges/add.js","clinic-dev/templates/settings/masters/charges/edit.js","clinic-dev/templates/settings/masters/charges/index.js","clinic-dev/templates/settings/masters/charges/list.js","clinic-dev/templates/settings/masters/dgt/list.js","clinic-dev/templates/settings/masters/diagnostic/add.js","clinic-dev/templates/settings/masters/diagnostic/edit.js","clinic-dev/templates/settings/masters/diagnostic/list.js","clinic-dev/templates/settings/masters/disease/add.js","clinic-dev/templates/settings/masters/disease/edit.js","clinic-dev/templates/settings/masters/disease/list.js","clinic-dev/templates/settings/masters/doctor-level/add.js","clinic-dev/templates/settings/masters/doctor-level/edit.js","clinic-dev/templates/settings/masters/doctor-level/list.js","clinic-dev/templates/settings/masters/doctor-management/add.js","clinic-dev/templates/settings/masters/doctor-management/edit.js","clinic-dev/templates/settings/masters/doctor-management/list.js","clinic-dev/templates/settings/masters/dtg/add.js","clinic-dev/templates/settings/masters/dtg/edit.js","clinic-dev/templates/settings/masters/dtg/list.js","clinic-dev/templates/settings/masters/form/add.js","clinic-dev/templates/settings/masters/form/edit.js","clinic-dev/templates/settings/masters/form/index.js","clinic-dev/templates/settings/masters/form/list.js","clinic-dev/templates/settings/masters/index.js","clinic-dev/templates/settings/masters/medicines/index.js","clinic-dev/templates/settings/masters/medicines/instruction/add.js","clinic-dev/templates/settings/masters/medicines/instruction/list.js","clinic-dev/templates/settings/masters/medicines/medicine/add.js","clinic-dev/templates/settings/masters/medicines/medicine/index.js","clinic-dev/templates/settings/masters/medicines/medicine/list.js","clinic-dev/templates/settings/masters/medicines/mix/add.js","clinic-dev/templates/settings/masters/medicines/mix/edit.js","clinic-dev/templates/settings/masters/medicines/mix/index.js","clinic-dev/templates/settings/masters/medicines/mix/list.js","clinic-dev/templates/settings/masters/medicines/template/add.js","clinic-dev/templates/settings/masters/medicines/template/edit.js","clinic-dev/templates/settings/masters/medicines/template/list.js","clinic-dev/templates/settings/masters/menu/add.js","clinic-dev/templates/settings/masters/menu/edit.js","clinic-dev/templates/settings/masters/menu/index.js","clinic-dev/templates/settings/masters/menu/list.js","clinic-dev/templates/settings/masters/organ/add.js","clinic-dev/templates/settings/masters/organ/edit.js","clinic-dev/templates/settings/masters/organ/list.js","clinic-dev/templates/settings/masters/outcomesuom/add.js","clinic-dev/templates/settings/masters/outcomesuom/edit.js","clinic-dev/templates/settings/masters/outcomesuom/list.js","clinic-dev/templates/settings/masters/permissions/add.js","clinic-dev/templates/settings/masters/permissions/category/add.js","clinic-dev/templates/settings/masters/permissions/category/edit.js","clinic-dev/templates/settings/masters/permissions/category/index.js","clinic-dev/templates/settings/masters/permissions/category/list.js","clinic-dev/templates/settings/masters/permissions/edit.js","clinic-dev/templates/settings/masters/permissions/index.js","clinic-dev/templates/settings/masters/permissions/list.js","clinic-dev/templates/settings/masters/potency/add.js","clinic-dev/templates/settings/masters/potency/edit.js","clinic-dev/templates/settings/masters/potency/index.js","clinic-dev/templates/settings/masters/potency/list.js","clinic-dev/templates/settings/masters/pricegroup/add.js","clinic-dev/templates/settings/masters/pricegroup/index.js","clinic-dev/templates/settings/masters/pricegroup/list.js","clinic-dev/templates/settings/masters/role/add.js","clinic-dev/templates/settings/masters/role/edit.js","clinic-dev/templates/settings/masters/role/index.js","clinic-dev/templates/settings/masters/role/list.js","clinic-dev/templates/settings/masters/show.js","clinic-dev/templates/settings/masters/system/add.js","clinic-dev/templates/settings/masters/system/edit.js","clinic-dev/templates/settings/masters/system/list.js","clinic-dev/templates/settings/masters/token/index.js","clinic-dev/templates/settings/masters/token/list.js","clinic-dev/templates/settings/masters/users/add.js","clinic-dev/templates/settings/masters/users/edit.js","clinic-dev/templates/settings/masters/users/index.js","clinic-dev/templates/settings/masters/users/list.js","clinic-dev/templates/settings/masters/users/profile.js","clinic-dev/templates/settings/maximum-token.js","clinic-dev/templates/settings/print-token.js","clinic-dev/templates/shift-report.js","clinic-dev/templates/transactional-report.js","clinic-dev/templates/users.js","clinic-dev/templates/users/edit.js","clinic-dev/templates/users/index.js","clinic-dev/templates/users/new.js","clinic-dev/templates/users/profile.js","clinic-dev/transforms/boolean.js","clinic-dev/transforms/date.js","clinic-dev/transforms/number.js","clinic-dev/transforms/string.js","clinic-dev/utils/ajax-error-handler.js","clinic-dev/utils/display-alert.js","clinic-dev/utils/i18n/compile-template.js","clinic-dev/utils/i18n/missing-message.js","clinic-dev/utils/slot-realtime-handler.js","clinic-dev/utils/time-format.js","clinic-dev/utils/uuid-generator.js","clinic-dev/views/settings/maximum-token.js","clinic-dev/views/settings/print-token.js","vendor/ember-cli/app-suffix.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"clinic-dev/adapters/-json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/adapters/application\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  //import host from 'ember-host-manager';\n  var _default = _exports.default = _emberData.default.JSONAPIAdapter.extend({\n    //hostManager: Ember.inject.service(),\n    // hostManager.host has the config for the current host\n    //host: computed.readOnly('hostManager.host.apiHost'),\n    // namespace: computed.readOnly('hostManager.host.apiNamespace')\n  });\n});","define(\"clinic-dev/adapters/pricegroup\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.RESTAdapter.extend({\n    host: 'http://192.168.0.119:4400/settings/masters',\n    pathForType() {\n      return 'pricegroups';\n    }\n  });\n});","define(\"clinic-dev/adapters/store\", [\"exports\", \"clinic-dev/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/adapters/application\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _application.default.extend({\n    host: 'http://localhost/kalyan/svn/core/'\n  });\n});","define(\"clinic-dev/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"clinic-dev/config/environment\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  let App;\n  Ember.MODEL_FACTORY_INJECTIONS = true;\n  App = Ember.Application.extend({\n    modulePrefix: _environment.default.modulePrefix,\n    podModulePrefix: _environment.default.podModulePrefix,\n    Resolver: _emberResolver.default\n  });\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n  var _default = _exports.default = App;\n});","define(\"clinic-dev/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberComponentManager.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component/-private/ember-component-manager\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/components/absentees-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/advised-reports-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/advised-reports\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {}\n  });\n});","define(\"clinic-dev/components/appointment-doctor-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  const AppontmentDoctorComponent = Ember.Component.extend({\n    time_slot_start: _environment.default.APP.time_slot_start,\n    time_slot_stop: _environment.default.APP.time_slot_stop,\n    time_slot_array: Ember.computed('time_slot_start', 'time_slot_stop', function () {\n      var temp_array = [];\n      var start_hour = _environment.default.APP.time_slot_start * 60;\n      var stop_hour = _environment.default.APP.time_slot_stop * 60;\n      var current_time = '';\n      var current_time_mod = '';\n      for (var i = start_hour; i <= stop_hour; i += 10) {\n        current_time = parseInt(i / 60);\n        current_time_mod = String('0' + i % 60).slice(-2);\n        temp_array.push({\n          slot: current_time + ':' + current_time_mod\n        });\n      }\n      return temp_array;\n    }),\n    actions: {\n      nextAvailableDates(branches, slots) {\n        this.sendAction('nextAvailableDates', branches, slots);\n      },\n      nextDates(branches, slots) {\n        this.sendAction('nextDates', branches, slots);\n      },\n      prevDates(branches, slots) {\n        this.sendAction('prevDates', branches, slots);\n      },\n      counterIncrease() {\n        var i = $('.initial_select_date').attr('data-count');\n        if (i >= 0) {\n          this.set('prev_week', '');\n        } else {\n          this.set('prev_week', 'prev_week_disable');\n        }\n        $('.initial_select_date').attr('data-count', parseInt(i) + 7);\n      },\n      counterDecrease() {\n        var i = $('.initial_select_date').attr('data-count');\n        if (i > 0 && i == 7) {\n          this.set('prev_week', 'prev_week_disable');\n        } else {\n          this.set('prev_week', '');\n        }\n        if (i > 0) {\n          $('.initial_select_date').attr('data-count', parseInt(i) - 7);\n        }\n      }\n    }\n  });\n  var _default = _exports.default = AppontmentDoctorComponent;\n});","define(\"clinic-dev/components/appointment-overview-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  const AppontmentOverviewComponent = Ember.Component.extend({\n    time_slot_start: _environment.default.APP.time_slot_start,\n    time_slot_stop: _environment.default.APP.time_slot_stop,\n    time_slot_array: Ember.computed('time_slot_start', 'time_slot_stop', function () {\n      var temp_array = [];\n      var start_hour = _environment.default.APP.time_slot_start * 60;\n      var stop_hour = _environment.default.APP.time_slot_stop * 60;\n      var current_time = '';\n      var current_time_mod = '';\n      for (var i = start_hour; i <= stop_hour; i += 10) {\n        current_time = parseInt(i / 60);\n        current_time_mod = String('0' + i % 60).slice(-2);\n        temp_array.push({\n          slot: current_time + ':' + current_time_mod\n        });\n      }\n      return temp_array;\n    })\n  });\n  var _default = _exports.default = AppontmentOverviewComponent;\n});","define(\"clinic-dev/components/appointment-submit-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      submit(page, reloadDashboard) {\n        $('.submit_patient_data').trigger('click');\n      }\n    }\n  });\n});","define(\"clinic-dev/components/archive-list-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    didInsertElement: function () {\n      this._super(...arguments);\n      $(document).ready(function () {\n        var currentDate = new Date();\n        $('.disableFuturedate').datepicker({\n          yearRange: '-20:+0',\n          dateFormat: 'yy-mm-dd',\n          autoclose: true,\n          changeMonth: true,\n          changeYear: true,\n          endDate: 'currentDate',\n          maxDate: currentDate\n        }).on('changeDate', function (ev) {\n          $(this).datepicker('hide');\n        });\n        $('.disableFuturedate').keyup(function () {\n          if (this.value.match(/[^0-9]/g)) {\n            this.value = this.value.replace(/[^0-9^-]/g, '');\n          }\n        });\n      });\n    }\n  });\n});","define(\"clinic-dev/components/assign-doctor-doctor-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      assignPatientC(doctor_id, patient_id) {\n        var patient_ids = $('input[name=selected_patient]:checked').map(function () {\n          return $(this).val();\n        }).get();\n        if (typeof patient_ids == 'undefined' || !patient_ids.length > 0) {\n          alert('Please select a patient');\n          return false;\n        } else {\n          var patient_id = patient_ids.join(',');\n        }\n        this.sendAction('assignPatient', doctor_id, patient_id);\n      },\n      cancelAssignmentC(id) {\n        this.sendAction('cancelAssignment', id);\n      },\n      cancelOnSpotC(id) {\n        this.sendAction('cancelOnSpot', id);\n      },\n      reScheduleC(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      reAssignC(reassigned, id, booked_doc_id, case_taken, reassigned_doctor_id, patient_id) {\n        if (reassigned == 'true') {\n          alert('Can not Re Assign.');\n          $('.modal-backdrop').click();\n          return false;\n        }\n        //console.log(reassigned);\n        //console.log(id);\n        //console.log(booked_doc_id);\n        //console.log(case_taken);\n        //console.log(reassigned_doctor_id);\n        this.sendAction('reAssign', id, booked_doc_id, case_taken, reassigned_doctor_id, patient_id);\n      },\n      markCompleteC(id, prescribed, doctor_id, patient_id) {\n        //console.log(id);\n        //console.log(prescribed);\n        //console.log(doctor_id);\n        this.sendAction('markComplete', id, prescribed, doctor_id, patient_id);\n      },\n      refreshAssignPatientModuleC() {\n        this.sendAction('refreshAssignPatientModule');\n      },\n      print(type, tokenNo, apptTime) {\n        var note = '';\n        if (type == 'MQ') {\n          var queue_type = 'Medicine Queue';\n          note = '              This is MQ note.';\n          var time = '';\n        } else if (type == 'PA') {\n          var queue_type = 'Appointment';\n          note = '                This is Appointment note.';\n          var time = 'Appointment time: ' + apptTime;\n        } else {\n          var queue_type = 'Patient Queue';\n          note = '              This is PQ note.';\n          var time = '';\n        }\n        var d = \"<p style='text-align:center;'>----------------------------------------------<br/>\";\n        d += \"Dr. Kalyan Banerjee's Clinic<br/>\";\n        d += '<br/><br/>                Token No: ' + type + '-' + tokenNo;\n        d += '<br/>             ' + time;\n        d += '<br/><br/><br/>                ' + queue_type;\n        d += '<br/><br/>';\n        d += '<br/>' + note;\n        d += '<br/>             ' + Date().substr(0, 24);\n        d += '<br/> ----------------------------------------------';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> </p>';\n        var myWindow = window.open('', '', 'width=400,height=300');\n        myWindow.document.write(d);\n        myWindow.document.close(); //missing code\n\n        myWindow.focus();\n        myWindow.print();\n      }\n    }\n  });\n});","define(\"clinic-dev/components/assign-doctor\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    actions: {\n      frontdeskDrReschedulePatient(id) {\n        this.sendAction('frontdeskDrReschedulePatient', id);\n      },\n      assignPatientC(doctor_id) {\n        var patient_ids = $('input[name=selected_patient]:checked').map(function () {\n          return $(this).val();\n        }).get();\n        if (typeof patient_ids == 'undefined' || !patient_ids.length > 0) {\n          alert('Please select a patient');\n          return false;\n        }\n        var patient_id = patient_ids.join(',');\n        //alert(patient_id); return false;\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        // $('.modal-backdrop').remove();\n        $('body').addClass('modal-open');\n        this.sendAction('assignPatient', doctor_id, patient_id);\n      },\n      cancelAssignmentC(id) {\n        this.sendAction('cancelAssignment', id);\n      },\n      cancelOnSpotC(id, advance_payment, booked_from, appointment) {\n        this.sendAction('cancelOnSpot', id, advance_payment, booked_from, appointment);\n      },\n      bookedPrint(shift_id, branch_id) {\n        this.sendAction('bookedPrint', shift_id, branch_id);\n      },\n      onspotPrint(shift_id, branch_id) {\n        this.sendAction('onspotPrint', shift_id, branch_id);\n      },\n      frontUrgentPatientC(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('frontUrgentPatient', appointment_id, urgent_status, urgent_note);\n      },\n      reScheduleC(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      reAssignC(reassigned, id, booked_doc_id, case_taken, reassigned_doctor_id, patient_id) {\n        if (reassigned == 'true') {\n          alert('Can not Re Assign.');\n          $('.modal-backdrop').click();\n          return false;\n        }\n        //console.log(reassigned);\n        //console.log(id);\n        //console.log(booked_doc_id);\n        //console.log(case_taken);\n        //console.log(reassigned_doctor_id);\n        this.sendAction('reAssign', id, booked_doc_id, case_taken, reassigned_doctor_id, patient_id);\n      },\n      moveToBigScreenMedicine() {\n        this.sendAction('moveToBigScreenMedicine');\n      },\n      markCompleteC(id, prescribed, doctor_id, patient_id) {\n        //console.log(id);\n        //console.log(prescribed);\n        //console.log(doctor_id);\n\n        this.sendAction('markComplete', id, prescribed, doctor_id, patient_id);\n      },\n      markCompleteMedicineC(id) {\n        this.sendAction('markCompleteMedicineC', id);\n      },\n      onSpotModalC() {\n        this.onSpotModal();\n      },\n      absentPatientC(id, absent) {\n        /*This absent function is use for mark patient as absent\n        Date 13_nov_2017, Rahul khan */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (absent == 1) {\n          Swal.fire({\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            text: 'Patient is already marked absent. Can not mark absent again.'\n          });\n          return false;\n        }\n        if (confirm('Are you sure you want to mark this patient absent?') == false) {\n          return false;\n        }\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/absent',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            alert('Patient successfully marked as absent');\n            _this.send('refreshAssignPatientModuleC');\n          },\n          error: function (error, x, y) {\n            alert('Some thing went wrong');\n          },\n          complete: function (res) {\n            //console.log(res);\n            window.location.reload(true);\n          }\n        });\n        _this.send('refreshAssignPatientModuleC');\n      },\n      refreshAssignPatientModuleC() {\n        this.sendAction('refreshAssignPatientModule');\n      },\n      moveToBigScreenC() {\n        this.sendAction('moveToBigScreenDashboard');\n      },\n      print(type, tokenNo, apptTime, shiftId, branchId, doctorLabel) {\n        var note = '';\n        var note_1 = '';\n        var note_2 = '';\n        var branchName = '';\n        var shiftName = '';\n        if (branchId == 1) {\n          branchName = 'CRP1';\n        } else if (branchId == 2) {\n          branchName = 'GGN';\n        } else if (branchId == 3) {\n          branchName = 'CRP2';\n        } else if (branchId == 4) {\n          branchName = 'Noida';\n        } else if (branchId == 5) {\n          branchName = 'BLR1';\n        }\n        if (shiftId == 1) {\n          shiftName = 'M';\n        } else if (shiftId == 2) {\n          shiftName = 'E';\n        }\n        if (type == 'MQ') {\n          var queue_type = 'Medicine Queue';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = '';\n          var new_token = '';\n          var new_token = '';\n          new_token = 'M' + branchName + shiftName + tokenNo;\n        } else if (type == 'PA') {\n          var queue_type = 'Appointment';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = 'Appointment time: ' + apptTime;\n          var new_token = '';\n          new_token = branchName + doctorLabel + tokenNo;\n        } else {\n          var queue_type = 'Patient Queue';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = '';\n          var new_token = '';\n          new_token = branchName + doctorLabel + shiftName + tokenNo;\n        }\n        /* Old print size\n        var d =\"<p style='text-align:center;'>----------------------------------------------<br/>\";\n                  d +=\"<span style='font-size:12px;'>Dr. Kalyan Banerjee's Clinic</span><br/>\";\n                  d +=\"<br/><br/>                <span style='font-size:21px'><strong>Token No: \"+new_token+\"</strong></span>\";\n                  d +=\"<br/>             \"+time;\n                  // d +=\"<br/><br/><br/>                \"+queue_type;\n                  d +=\"<br/>\";\n                  d +=\"<br/><span style='font-size:12px;'>\"+note+\"</span>\";\n                  d +=\"<br/><span style='font-size:12px;'>\"+note_1+\"</span>\";\n                  d +=\"<br/><span style='font-size:12px;'>\"+note_2+\"</span>\";\n                  d +=\"<br/>             <span style='font-size:12px;'>\"+Date().substr(0,24)+\"</span>\";\n                  d +=\"<br/> ----------------------------------------------\";\n                  d +=\"<br/> \";\n                  d +=\"<br/> \";\n                  d +=\"<br/> \";\n                  d +=\"<br/> \";\n                  d +=\"<br/> \";\n                  d +=\"<br/> \";\n                  d +=\"<br/> </p>\"; */\n\n        var d = \"<p style='text-align:center;'>--------------------------------<br/>\";\n        d += \"<span style='font-size:12px;'>Dr. Kalyan Banerjee's Clinic</span><br/>\";\n        d += \"<br/>                <span style='font-size:18px'><strong>Token No: \" + new_token + '</strong></span>';\n        d += '<br/>             ' + time;\n        // d +=\"<br/><br/><br/>                \"+queue_type;\n        // d += \"<br/>\";\n        d += \"<br/><span style='font-size:12px;'>\" + note + '</span>';\n        d += \"<br/><span style='font-size:12px;'>\" + note_1 + '</span>';\n        d += \"<br/><span style='font-size:12px;'>\" + note_2 + '</span>';\n        // d += \"<br/><span style='font-size:12px;'>\" + note_3 + \"</span>\";\n        d += \"<br/>             <span style='font-size:12px;'>\" + Date().substr(0, 24) + '</span>';\n        d += '<br/> --------------------------------';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> </p>';\n        var myWindow = window.open('', '', 'width=400,height=300');\n        myWindow.document.write(d);\n        myWindow.document.close(); //missing code\n\n        myWindow.focus();\n        myWindow.print();\n      },\n      checkinbooked(id, patient_id, branch_id) {\n        this.sendAction('checkinbookedAssignment', id, patient_id, branch_id);\n      },\n      payAdvancePayment(id, patient_id, branch_id, doctor_id, OldRegistrationNo, first_name, middle_name, last_name, eventAction) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        _this.sendAction('getDoctorCharges', doctor_id);\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/getchargecode',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('#loader').hide();\n            var chargeCode = res.data[0]['charge_code'];\n            var advanced_pgcharge = res.data[0]['advanced_pgcharge'];\n            var advanced_pgamount = res.data[0]['advanced_pgamount'];\n            var credit_amount = res.data[0]['credit_amount'];\n            var total_visit = res.data[0]['credit_amount'];\n            _this.sendAction('openPayTransactionPopup', id, patient_id, OldRegistrationNo, first_name, middle_name, last_name, credit_amount, 'appointment', doctor_id, chargeCode, total_visit, eventAction);\n            // setTimeout(function () {\n            //   $(\".appliedcharge option[data-code='\" + chargeCode + \"']\")\n            //     .attr('selected', 'selected')\n            //     .trigger('change');\n            //   if (advanced_pgcharge != '0.00' && advanced_pgcharge != '0.00') {\n            //     //if (credit_amount != '0.00') {\n            //     $('.payment_gateway_charge').removeAttr('disabled');\n            //     $('.payment_gateway_charge').val(advanced_pgcharge);\n            //     $('.payment_gateway_checkbox').prop('checked', true);\n            //     $('.payment_gateway_checkbox').attr('checked', true);\n            //     $('.total_due').val(credit_amount);\n            //     $('.total_due').attr('data-advanced-pgcharge', advanced_pgcharge);\n            //     $('.total_due').attr('data-advanced-pgamount', advanced_pgamount);\n            //     $('#advancedpg_amount').text(\n            //       'PG Amount ₹ : ' + advanced_pgamount\n            //     );\n            //     //}\n            //   } else {\n            //     /* Reset attribute value of advanced-pgcharge and advanced-pgamount after click on Accept Later or Save and Close.\n            //        because this attribute value insert into column name advanced_pgamount and advanced_pgcharge of appointment table,\n            //        PG charge is pre-selected while No PG was applied, Written by Shubh Tiwari as on 20 April 2022\n            //      */\n            //     console.log('popup open 2');\n            //     $('.payment_gateway_charge').attr('disabled', true);\n            //     $('.payment_gateway_charge').prop('disabled', true);\n            //     $('.payment_gateway_charge').val('');\n            //     $('.payment_gateway_checkbox').prop('checked', false);\n            //     $('.payment_gateway_checkbox').attr('checked', false);\n            //     $('.total_due').val(credit_amount);\n            //     $('.total_due').removeAttr('data-advanced-pgcharge');\n            //     $('.total_due').removeAttr('data-advanced-pgamount');\n            //     $('#advancedpg_amount').text('');\n            //   }\n            // }, 1500);\n          }\n        });\n\n        // event.preventDefault();\n        // jQuery.noConflict();\n        // $('.payment-modal .payment_mode').prop('checked', false).change();\n        // $('.payment-modal .visit_due').val('');\n        // $('.payment-modal .recieved').val('');\n        // $('.payment-modal .note').val('');\n        // $('#cashpopup').modal('show');\n        //this.sendAction('checkinbookedAssignment',id,patient_id,branch_id);\n      },\n      showCancelNote(cancel_note, appointment_id) {\n        let utoken = this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/cancelby',\n          data: {\n            id: appointment_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data.length > 0) {\n              var name = res.data[0].employee_code;\n              $('#cancelNote #cancelBy').text(name);\n            } else {\n              $('#cancelNote #cancelBy').text('');\n            }\n          },\n          error: function (error, x, y) {},\n          complete: function (res) {}\n        });\n        $('#cancel_note').val(cancel_note);\n      },\n      showMapAddress(address) {\n        $('#mapAddress').val(address);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/assigned-patient-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      updateList() {}\n    }\n  });\n});","define(\"clinic-dev/components/batch-refund-details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['batch-refund-details'],\n    batch: null,\n    refunds: null,\n    mode: 'full',\n    onRetry: null,\n    onRefresh: null,\n    onClose: null,\n    showClose: false,\n    searchQuery: null,\n    statusFilter: null,\n    gatewayFilter: null,\n    refundPage: 1,\n    refundPerPage: 10,\n    didReceiveAttrs() {\n      this._super(...arguments);\n      let currentBatchId = this.get('batchId');\n      let lastBatchId = this.get('_lastBatchId');\n      if (currentBatchId !== lastBatchId) {\n        this.set('searchQuery', '');\n        this.set('statusFilter', null);\n        this.set('gatewayFilter', null);\n        this.set('refundPage', 1);\n        this.set('_lastBatchId', currentBatchId);\n      }\n    },\n    batchId: Ember.computed('batch.batch_id', 'batch.id', function () {\n      let batch = this.get('batch');\n      return batch ? batch.batch_id || batch.id : null;\n    }),\n    batchSource: Ember.computed('batch.source', function () {\n      let batch = this.get('batch');\n      let source = batch ? batch.source || '-' : '-';\n      if (source && source !== '-') {\n        return source.charAt(0).toUpperCase() + source.slice(1);\n      }\n      return source;\n    }),\n    initiatedBy: Ember.computed('batch.initiated_by', function () {\n      let batch = this.get('batch');\n      return batch ? batch.initiated_by || '-' : '-';\n    }),\n    createdAt: Ember.computed('batch.created_at', 'batch.startedAt', function () {\n      let batch = this.get('batch');\n      return batch ? batch.created_at || batch.startedAt || '-' : '-';\n    }),\n    batchReason: Ember.computed('refunds.[]', function () {\n      let refunds = this.get('refunds') || [];\n      let first = refunds[0];\n      return first && first.reason ? first.reason : '-';\n    }),\n    totalCount: Ember.computed('batch.total_count', 'batch.counts.total', function () {\n      let batch = this.get('batch');\n      if (!batch) return 0;\n      return batch.total_count || batch.counts && batch.counts.total || 0;\n    }),\n    processedCount: Ember.computed('batch.processed_count', 'batch.counts.processed', function () {\n      let batch = this.get('batch');\n      if (!batch) return 0;\n      return batch.processed_count || batch.counts && batch.counts.processed || 0;\n    }),\n    pendingCount: Ember.computed('batch.pending_count', 'batch.counts.pending', function () {\n      let batch = this.get('batch');\n      if (!batch) return 0;\n      return batch.pending_count || batch.counts && batch.counts.pending || 0;\n    }),\n    failedCount: Ember.computed('batch.failed_count', 'batch.counts.failed', function () {\n      let batch = this.get('batch');\n      if (!batch) return 0;\n      return batch.failed_count || batch.counts && batch.counts.failed || 0;\n    }),\n    batchStatus: Ember.computed('batch.status', function () {\n      let batch = this.get('batch');\n      return batch ? batch.status : null;\n    }),\n    normalizedRefunds: Ember.computed('refunds.[]', function () {\n      let refunds = this.get('refunds') || [];\n      return refunds.map(r => {\n        return {\n          id: r.id,\n          appointmentId: r.appointment_id || r.id,\n          patientName: r.patient_name || r.patient || 'N/A',\n          orderId: r.order_id || '',\n          reason: r.reason || '',\n          gateway: r.gateway || '',\n          amount: r.amount || '0.00',\n          status: r.status || '',\n          bankRef: r.arn_rrn_utr || r.ref || '',\n          failureReason: r.failure_reason || '',\n          createdAt: r.created_at || ''\n        };\n      });\n    }),\n    filteredRefunds: Ember.computed('normalizedRefunds.[]', 'searchQuery', 'statusFilter', 'gatewayFilter', function () {\n      let refunds = this.get('normalizedRefunds') || [];\n      let query = (this.get('searchQuery') || '').toLowerCase();\n      let status = this.get('statusFilter');\n      let gateway = this.get('gatewayFilter');\n      return refunds.filter(refund => {\n        if (status && refund.status !== status) return false;\n        if (gateway && refund.gateway !== gateway) return false;\n        if (query) {\n          let match = refund.patientName && refund.patientName.toLowerCase().includes(query) || refund.appointmentId && refund.appointmentId.toString().toLowerCase().includes(query);\n          if (!match) return false;\n        }\n        return true;\n      });\n    }),\n    paginatedRefunds: Ember.computed('filteredRefunds.[]', 'refundPage', 'refundPerPage', function () {\n      let refunds = this.get('filteredRefunds') || [];\n      let page = parseInt(this.get('refundPage')) || 1;\n      let perPage = parseInt(this.get('refundPerPage')) || 10;\n      let start = (page - 1) * perPage;\n      return refunds.slice(start, start + perPage);\n    }),\n    refundTotalPages: Ember.computed('filteredRefunds.[]', 'refundPerPage', function () {\n      let refunds = this.get('filteredRefunds') || [];\n      let perPage = parseInt(this.get('refundPerPage')) || 10;\n      return Math.max(1, Math.ceil(refunds.length / perPage));\n    }),\n    refundPaginationInfo: Ember.computed('filteredRefunds.[]', 'refundPage', 'refundPerPage', function () {\n      let total = (this.get('filteredRefunds') || []).length;\n      let page = parseInt(this.get('refundPage')) || 1;\n      let perPage = parseInt(this.get('refundPerPage')) || 10;\n      let start = total === 0 ? 0 : (page - 1) * perPage + 1;\n      let end = Math.min(page * perPage, total);\n      return 'Showing ' + start + ' to ' + end + ' of ' + total + ' entries';\n    }),\n    actions: {\n      onBack() {\n        if (this.get('onBack')) {\n          this.get('onBack')();\n        }\n      },\n      filterRefunds() {\n        this.set('refundPage', 1);\n      },\n      refundPrevPage() {\n        let page = parseInt(this.get('refundPage')) || 1;\n        if (page > 1) {\n          this.set('refundPage', page - 1);\n        }\n      },\n      refundNextPage() {\n        let page = parseInt(this.get('refundPage')) || 1;\n        let total = this.get('refundTotalPages') || 1;\n        if (page < total) {\n          this.set('refundPage', page + 1);\n        }\n      },\n      refundGoToPage(page) {\n        this.set('refundPage', page);\n      },\n      retryRefund(refundId) {\n        if (this.get('onRetry')) {\n          this.get('onRetry')(refundId);\n        }\n      },\n      refresh() {\n        if (this.get('onRefresh')) {\n          this.get('onRefresh')();\n        }\n      },\n      close() {\n        if (this.get('onClose')) {\n          this.get('onClose')();\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/billed-details-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    consultancyFullName: Ember.computed('consultancy_code', function () {\n      let code = this.get('consultancy_code');\n      if (code === 'cns' || code === 'SED' || code === 'SDC') {\n        return 'Domestic Consultancy';\n      }\n      if (code === 'SEI') {\n        return 'International Consultancy';\n      }\n      return '';\n    }),\n    // didReceiveAttrs() { \n    //     /*This below code is used for getting the total amount of visit with other charges, 15 July 2019 */\n    //         $( document ).ready(function() {\n    //             var grandTotal = 0;\n    //             $(\".box-charge\").each(function (){\n    //                 var stval = parseFloat($(this).val());\n    //                 grandTotal += isNaN(stval) ? 0 : stval;\n    //             });\n    //             var grand_total = $('.grdtot').val();\n    //             var consultancy = $('.consultancy').val();\n    //             var pending=  $('.pending').val();\n    //             var pending_value = parseFloat(pending).toFixed(2);\n    //             var total = parseFloat(grand_total)+parseFloat(grandTotal)+parseFloat(pending_value)+parseFloat(consultancy);\n    //            //In these below couple of lines we are save the total amount without pending effect, Rahul khan 07 Nov 2019\n    //             var total_without_pending = parseFloat(grand_total)+parseFloat(grandTotal)+parseFloat(consultancy);\n    //             $(\"#total_without_pending\").val(total_without_pending);\n    //               //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n    //             var previous_bill_amount = $('.paid_amount').val();\n    //             var paid_amount =parseFloat(previous_bill_amount).toFixed(2);\n    //             var bill_paid_amount = (isNaN(paid_amount)) ? 0.00 : paid_amount;\n    //             if(bill_paid_amount==0){\n    //             var total_amount = parseFloat(total).toFixed(2);\n    //             }else{\n    //             var total_due_minus_previous_bill_amnt = parseFloat(total-bill_paid_amount).toFixed(2);\n    //             var total_amount = Math.abs(total_due_minus_previous_bill_amnt).toFixed(2);\n    //             }\n    //             var total_float  = parseFloat(total_amount).toFixed(2);\n    //           //  total_float received_amount\n    //              $('.total').val(total_float);\n    //             var recevedAmount = $('.received_amount').val();\n    //             var total_due = total_float - recevedAmount;\n    //             var total_due = parseFloat(total_due).toFixed(2)\n    //             $('.total_due').val(total_due);\n    //             if(total_due ==0.00){\n    //                 $('.cashpopup').attr(\"disabled\", true);\n    //             }else{\n    //                 $('.cashpopup').removeAttr('disabled');\n    //             }\n\n    //         }, 2000);\n    //   },\n    // didReceiveAttrs() {\n    //   this._super();\n    //   /*This below code is used for getting the total amount of visit with other charges, 15 July 2019 */\n    //   $(document).ready(function () {\n    //     var grandTotal = 0;\n    //     $('.box-charge').each(function () {\n    //       var stval = parseFloat($(this).val());\n    //       grandTotal += isNaN(stval) ? 0 : stval;\n    //     });\n    //     var grand_total = $('.grdtot').val();\n    //     var consultancy = $('.consultancy').val();\n    //     var pending = $('.pending').val();\n    //     var pending_value = parseFloat(pending);\n    //     var total =\n    //       parseFloat(grand_total) +\n    //       parseFloat(grandTotal) +\n    //       parseFloat(pending_value) +\n    //       parseInt(consultancy, 10);\n    //     //In these below couple of lines we are save the total amount without pending effect, Rahul khan 07 Nov 2019\n    //     var total_without_pending =\n    //       parseFloat(grand_total) +\n    //       parseFloat(grandTotal) +\n    //       parseInt(consultancy, 10);\n    //     $('#total_without_pending').val(total_without_pending);\n    //     var med_amount = isNaN(total) ? 0.0 : total;\n    //     var total_amnt = parseFloat(med_amount).toFixed(2);\n    //     //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n    //     var previous_bill_amount = $('.paid_amount').val();\n    //     var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    //     var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n    //     var payment_gateway_charge = $('.gateway_charge').val();\n    //     var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n    //     var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n    //     if (bill_paid_amount == 0) {\n    //       /* This condition check only total and total received amount after that check total due amount */\n    //       console.log('Not Include Previous Bill Amount');\n    //       var total_amount = parseFloat(total_amnt).toFixed(2);\n    //       /* payment gatway charge calculation charge */\n    //       if ($('.payment_gateway_checkbox').is(':checked')) {\n    //         var percentage = $('.payment_gateway_charge').val();\n    //         if (percentage != '') {\n    //           var total_amounts = total_amount;\n    //           var calcPrice = (total_amounts * percentage) / 100;\n    //           var add_percentage_price =\n    //             parseFloat(total_amounts) + parseFloat(calcPrice);\n    //           $('.total').val(add_percentage_price.toFixed(2));\n    //           var total_amount = add_percentage_price.toFixed(2);\n    //         }\n    //       } else {\n    //         $('.total').val(total_amount);\n    //         var total_amount = total_amount;\n    //       }\n    //       /* payment gatway charge calculation charge end */\n    //       $('.total').val(total_amount);\n    //       var recevedAmount = $('.received_amount').val();\n    //       var total_due1 = parseFloat(total_amount - recevedAmount);\n    //       var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n    //       var total_due = Math.abs(total_due_amount).toFixed(2);\n    //       $('.total_due').val(total_due);\n    //       var remaining_balance_status = Math.sign(total_due_amount);\n    //       if (remaining_balance_status == 1) {\n    //         var payment_status = 'DUE';\n    //       } else if (remaining_balance_status == -1) {\n    //         var payment_status = 'ADVANCE';\n    //       } else if (remaining_balance_status == 0) {\n    //         var payment_status = 'NO DUE';\n    //       }\n    //       $('.payment_status').text('(' + payment_status + ')');\n    //       $('.due_payment_status').text('(' + payment_status + ')');\n    //       $('.refund').text('Total Received ₹');\n\n    //       if (total_due == 0.0) {\n    //         $('.cashpopup').attr('disabled', true);\n    //       } else {\n    //         $('.cashpopup').removeAttr('disabled');\n    //       }\n    //     } else {\n    //       /* This condition check only total(Medicine+Consultancy+Pending+Other Charges),Previous paid amount,Current Due Amount,Received Amount after that check total due amount */\n    //       console.log('Include Previous Bill Amount');\n    //       var total_amount = parseFloat(total_amnt).toFixed(2);\n    //       var total_due_minus_previous_bill_amnt =\n    //         parseFloat(total_amount - bill_paid_amount) + parseFloat(pg_amount);\n    //       var total_dues_amount = Math.abs(\n    //         total_due_minus_previous_bill_amnt\n    //       ).toFixed(2);\n    //       var remaining_balance_status = Math.sign(\n    //         total_due_minus_previous_bill_amnt\n    //       );\n    //       if (remaining_balance_status == 1) {\n    //         var payment_status = 'DUE';\n    //       } else if (remaining_balance_status == -1) {\n    //         var payment_status = 'ADVANCE';\n    //       } else if (remaining_balance_status == 0) {\n    //         var payment_status = 'NO DUE';\n    //       }\n\n    //       $('.paid_amount').val(bill_paid_amount);\n    //       $('.current_due').val(total_dues_amount);\n    //       /* payment gatway charge calculation charge */\n    //       if ($('.payment_gateway_checkbox').is(':checked')) {\n    //         var percentage = $('.payment_gateway_charge').val();\n    //         if (percentage != '') {\n    //           var total_amounts = total_dues_amount;\n    //           var calcPrice = (total_amounts * percentage) / 100;\n    //           var add_percentage_price =\n    //             parseFloat(total_amounts) + parseFloat(calcPrice);\n    //           $('.current_due').val(add_percentage_price.toFixed(2));\n    //           var total_dues_amount = add_percentage_price.toFixed(2);\n    //         }\n    //       } else {\n    //         $('.current_due').val(total_dues_amount);\n    //         var total_dues_amount = total_dues_amount;\n    //       }\n    //       /* payment gatway charge calculation charge end */\n    //       var recevedAmount = $('.received_amount').val();\n    //       var total_due1 = parseFloat(total_dues_amount - recevedAmount);\n    //       var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n    //       var total_due = Math.abs(total_due_amount).toFixed(2);\n    //       var total_due_status = Math.sign(total_due_amount);\n    //       if (total_due_status == 1) {\n    //         var due_payment_status = 'DUE';\n    //       } else if (total_due_status == -1) {\n    //         var due_payment_status = 'ADVANCE';\n    //       } else if (total_due_status == 0) {\n    //         var due_payment_status = 'NO DUE';\n    //       }\n    //       $('.due_payment_status').text('(' + due_payment_status + ')');\n    //       $('.payment_status').text('Paid  (' + payment_status + ')');\n    //       if (payment_status == 'ADVANCE') {\n    //         $('.refund').text('Total Refunded ₹');\n    //       }\n    //       $('.total').val(total_amount);\n    //       $('.total_due').val(total_due);\n    //       if (total_due == 0.0) {\n    //         $('.cashpopup').attr('disabled', true);\n    //       } else {\n    //         $('.cashpopup').removeAttr('disabled');\n    //       }\n    //     }\n    //   }, 1000);\n    // },\n    actions: {\n      checkMaxPrintCopy: function () {\n        var val = $('#print_case_val').val();\n        var input = parseInt(val);\n        if (input < 0 || input > 9) {\n          $('#print_case_val').val('');\n          alert('Print copy allow between 1 - 9');\n          return;\n        }\n      },\n      transactionHistory: function (visit_id, billing_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TotalTransactionDetails').modal('show');\n        _this.sendAction('getTotalTransaction', visit_id, billing_id);\n      },\n      visitTransactionDetails: function (visit_id, billing_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TransactionDetails').modal('show');\n        _this.sendAction('visitTransactionList', visit_id, billing_id);\n      },\n      // for consultancy weave function\n      // consultancyWave: function () {\n      //   var _this = this;\n      //   let i18n = _this.get('i18n');\n      //   var consultancy = $('.consultancy').val();\n      //   var bill_id = $('#billing_id').val();\n      //   var visit_id = $('#visiting_id').val();\n      //   var grandTotal = 0;\n      //   if (consultancy == 0) {\n      //     var message = i18n.t('billing.messages.datainsufficient');\n      //     _this.flashes.danger(message);\n      //   } else {\n      //     swal({\n      //       title:\n      //         'Are you sure you want to waive ' +\n      //         consultancy +\n      //         ' consultancy fees?',\n      //       icon: 'warning',\n      //       buttons: true,\n      //       dangerMode: true,\n      //     }).then((willDelete) => {\n      //       if (willDelete) {\n      //         var _this = this;\n      //         var base_url = ENV.APP.lumen_api_url + 'billing/consultancywaive';\n      //         $.ajax({\n      //           url: base_url,\n      //           method: 'POST',\n      //           data: {\n      //             consultancy: consultancy,\n      //             bill_id: bill_id,\n      //             visit_id: visit_id,\n      //           },\n      //           success: function (res) {\n      //             if (res.error == false && res.message == 'consultancywaved') {\n      //               var message = i18n.t('billing.messages.consultancywaived', {\n      //                 object: consultancy,\n      //               });\n      //               _this.flashes.success(message);\n      //               $('.cons_dis').addClass('discount');\n      //               $('.cons_waived').text('Waived');\n      //               $('.consultancy').val('0.00');\n      //               $('.const_remove_button').html(\n      //                 '<span class=\"btn btn-danger btn-sm const_remove\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove Consultancy\"></i></span>'\n      //               );\n      //               $('.consdisable').attr('disabled', true);\n      //               _this.set('consultancy_discount', '');\n      //             } else if (\n      //               res.error == true &&\n      //               res.message == 'datainsufficient'\n      //             ) {\n      //               var message = i18n.t('billing.messages.datainsufficient');\n      //               _this.flashes.danger(message);\n      //             }\n      //           },\n      //           complete: function (res) {\n      //             $('.box-charge').each(function () {\n      //               var stval = parseFloat($(this).val());\n      //               grandTotal += isNaN(stval) ? 0 : stval;\n      //             });\n      //             if (grandTotal != '') {\n      //               var grand_total = $('.grdtot').val();\n      //               var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n      //               var consultancy = $('.consultancy').val();\n      //               var pending = $('.pending').val();\n      //               var charge =\n      //                 parseFloat(consultancy) + parseFloat(pending).toFixed(2);\n      //               var total =\n      //                 parseFloat(charge) + parseFloat(number) + grandTotal;\n      //               var eVal = isNaN(total) ? 0.0 : total;\n      //               var med_totals = parseFloat(eVal).toFixed(2);\n      //               $('.total').val(med_totals);\n      //               var recevedAmount = $('.received_amount').val();\n      //               var total_due = med_totals - recevedAmount;\n      //               var total_due = parseFloat(total_due).toFixed(2);\n      //               $('.total_due').val(total_due);\n      //             } else {\n      //               var grand_total = $('.grdtot').val();\n      //               var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n      //               var consultancy = $('.consultancy').val();\n      //               var pending = $('.pending').val();\n      //               var charges =\n      //                 parseFloat(consultancy) + parseFloat(pending).toFixed(2);\n      //               var total = parseFloat(charges) + parseFloat(number);\n      //               var eVal = isNaN(total) ? 0.0 : total;\n      //               var med_totals = parseFloat(eVal).toFixed(2);\n      //               $('.total').val(med_totals);\n      //               var recevedAmount = $('.received_amount').val();\n      //               var total_due = med_totals - recevedAmount;\n      //               var total_due = parseFloat(total_due).toFixed(2);\n      //               $('.total_due').val(total_due);\n      //             }\n      //             console.log('Ye yye');\n      //           },\n      //         });\n      //       }\n      //     });\n      //   }\n      // },\n      // This function related to pending amount detail showing function modify as on 07 Aug 2019 Shubh Tiwari\n      pendingVisitDetails: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        jQuery.noConflict();\n        let i18n = _this.get('i18n');\n        var patient_id = $('#patient_id').val();\n        var visiting_id = $('#visiting_id').val();\n        _this.set('Pendingdetailslist', '');\n        var grandTotal = 0;\n        if (patient_id == '') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          var _this = this;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/pendingvisitdetails';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              patient_id: patient_id,\n              visit_id: visiting_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              $('#pendingdetails').modal('show');\n              _this.set('Pendingdetailslist', res.data);\n            },\n            complete: function (res) {}\n          });\n        }\n      },\n      // addCharge() {\n      //   var _this = this;\n      //   let i18n = _this.get('i18n');\n      //   var html = '';\n      //   var value = $('#medicine_charge option:selected').val();\n      //   var label = $('#medicine_charge option:selected').text();\n      //   var charge_id = $('#medicine_charge option:selected').data('cid');\n      //   var grandTotal = 0;\n      //   if (value == '') {\n      //     var message = i18n.t('billing.messages.selectcharge');\n      //     _this.flashes.danger(message);\n      //   } else {\n      //     if (label == 'Other') {\n      //       event.preventDefault();\n      //       jQuery.noConflict();\n      //       $('#charge_name').val('');\n      //       $('#charge_amount').val('');\n      //       $('#OtherCharge').modal('show');\n      //     } else {\n      //       html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n      //       html +=\n      //         '<div class=\"col-sm-5\"><label>' +\n      //         label +\n      //         ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n      //       html +=\n      //         '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input class=\"form-control box-charge numeric charge-total\" data-label=\"' +\n      //         label +\n      //         '\" type=\"text\" id=\"' +\n      //         charge_id +\n      //         '\" value=\"' +\n      //         parseFloat(value).toFixed(2) +\n      //         '\"/></div>';\n      //       html +=\n      //         '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-charge_value=\"' +\n      //         value +\n      //         '\" data-cids=\"' +\n      //         charge_id +\n      //         '\" data-charge=\"' +\n      //         label +\n      //         '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n      //       html += '</div>';\n      //     }\n      //     $('#chargebox').append(html);\n      //     $('#medicine_charge')[0].selectedIndex = 0;\n      //     if (value == 'Other') {\n      //       $('option[value=' + value + ']').attr('disabled', false);\n      //     } else {\n      //       $('option[value=' + value + ']').attr('disabled', true);\n      //     }\n      //     $('.box-charge').each(function () {\n      //       var stval = parseFloat($(this).val());\n      //       grandTotal += isNaN(stval) ? 0 : stval;\n      //     });\n      //     var grand_total = $('.grdtot').val();\n      //     var consultancy = $('.consultancy').val();\n      //     var pending = $('.pending').val();\n      //     var charge = parseInt(consultancy, 10) + parseFloat(pending).toFixed(2);\n      //     var total = parseFloat(charge) + parseFloat(grand_total) + grandTotal;\n      //     var eVal = isNaN(total) ? 0.0 : total;\n      //     var med_totals = parseFloat(eVal).toFixed(2);\n      //     $('.total').val(med_totals);\n      //     var recevedAmount = $('.received_amount').val();\n      //     var total_due = med_totals - recevedAmount;\n      //     var total_due = parseFloat(total_due).toFixed(2);\n      //     $('.total_due').val(total_due);\n      //   }\n      // },\n      // applyDiscountCharge() {\n      //   var _this = this;\n      //   let i18n = _this.get('i18n');\n      //   var disc_value = $('.discount_percentage').val();\n      //   var bill_id = $('#billing_id').val();\n      //   var visit_id = $('#visiting_id').val();\n      //   var garndt_value = parseInt($('.onthemed').text());\n      //   var grandTotal = 0;\n      //   if (disc_value == '') {\n      //     var message = i18n.t('billing.messages.selectdiscount');\n      //     _this.flashes.danger(message);\n      //   } else if (disc_value < 1) {\n      //     var message = i18n.t('billing.messages.notless');\n      //     _this.flashes.danger(message);\n      //     $('.discount_percentage').val('');\n      //   } else if (disc_value > 100) {\n      //     var message = i18n.t('billing.messages.notgreater');\n      //     _this.flashes.danger(message);\n      //     $('.discount_percentage').val('');\n      //   } else {\n      //     swal({\n      //       title:\n      //         'Are you sure you want to apply ' +\n      //         disc_value +\n      //         '% on medicine total=' +\n      //         garndt_value,\n      //       icon: 'warning',\n      //       buttons: true,\n      //       dangerMode: true,\n      //     }).then((willDelete) => {\n      //       if (willDelete) {\n      //         var _this = this;\n      //         var base_url = ENV.APP.lumen_api_url + 'billing/discountonthefly';\n      //         $.ajax({\n      //           url: base_url,\n      //           method: 'POST',\n      //           data: {\n      //             medicine_total: garndt_value,\n      //             discount: disc_value,\n      //             bill_id: bill_id,\n      //             visit_id: visit_id,\n      //           },\n      //           success: function (res) {\n      //             if (res.error == false && res.message == 'applydiscount') {\n      //               var message = i18n.t('billing.messages.applydiscount', {\n      //                 object: disc_value,\n      //               });\n      //               _this.flashes.success(message);\n      //               $('.grdtot').val(res.discount_value);\n      //               $('.onthemed').addClass('discount');\n      //               $('.onthefly_per').addClass('percentage');\n      //               $('.onthefly_per').text(res.discount_percentage + '' + '%');\n      //               $('.discount_percentage').attr('disabled', true);\n      //               $('.disdisable').attr('disabled', true);\n      //               $('.remove_button').html(\n      //                 '<span data-discount=\"' +\n      //                   res.discount +\n      //                   '\" class=\"btn btn-danger btn-sm discount_remove\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove Discount\"></i></span>'\n      //               );\n      //             } else if (res.error == true && res.message == 'notgreater') {\n      //               var message = i18n.t('billing.messages.notgreater');\n      //               _this.flashes.danger(message);\n      //             } else if (\n      //               res.error == true &&\n      //               res.message == 'datainsufficient'\n      //             ) {\n      //               var message = i18n.t('billing.messages.datainsufficient');\n      //               _this.flashes.danger(message);\n      //             }\n      //           },\n      //           complete: function (res) {\n      //             $('.discount_percentage').val('');\n      //             $('.box-charge').each(function () {\n      //               var stval = parseFloat($(this).val());\n      //               grandTotal += isNaN(stval) ? 0 : stval;\n      //             });\n      //             if (grandTotal != '') {\n      //               var grand_total = $('.grdtot').val();\n      //               var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n      //               var consultancy = $('.consultancy').val();\n      //               var pending = $('.pending').val();\n      //               var charge =\n      //                 parseFloat(consultancy) + parseFloat(pending).toFixed(2);\n      //               var total =\n      //                 parseFloat(charge) + parseFloat(number) + grandTotal;\n      //               var eVal = isNaN(total) ? 0.0 : total;\n      //               var med_totals = parseFloat(eVal).toFixed(2);\n      //               $('.total').val(med_totals);\n      //               var recevedAmount = $('.received_amount').val();\n      //               var total_due = med_totals - recevedAmount;\n      //               var total_due = parseFloat(total_due).toFixed(2);\n      //               $('.total_due').val(total_due);\n      //             } else {\n      //               var grand_total = $('.grdtot').val();\n      //               var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n      //               var consultancy = $('.consultancy').val();\n      //               var pending = $('.pending').val();\n      //               var charges =\n      //                 parseFloat(consultancy) + parseFloat(pending).toFixed(2);\n      //               var total = parseFloat(charges) + parseFloat(number);\n      //               var eVal = isNaN(total) ? 0.0 : total;\n      //               var med_totals = parseFloat(eVal).toFixed(2);\n      //               $('.total').val(med_totals);\n      //               var recevedAmount = $('.received_amount').val();\n      //               var total_due = med_totals - recevedAmount;\n      //               var total_due = parseFloat(total_due).toFixed(2);\n      //               $('.total_due').val(total_due);\n      //             }\n      //           },\n      //         });\n      //       }\n      //     });\n      //   }\n      // },\n      goBack() {\n        history.back();\n      },\n      enableEditMode() {\n        $('.cware-disabled').removeAttr('disabled');\n        $('.cware-disabled *').removeAttr('disabled');\n        $.each(this.visit_charges, function (key, value) {\n          $(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/components/booked-from-badge\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    classNames: ['booked-from-badge'],\n    bookedFrom: '',\n    pageName: '',\n    showBadge: Ember.computed('bookedFrom', 'pageName', function () {\n      let bookedFrom = (this.get('bookedFrom') || '').toLowerCase();\n      let pageName = (this.get('pageName') || '').toLowerCase();\n      let hideBadgeOn = ['dashboard', 'doctor-dashboard', 'checkout', 'billing', 'icpattend', 'prescribe', 'billing-details', 'management', 'patient-db', 'transaction-report', 'shift-report'];\n      if ((bookedFrom === 'clinic' || bookedFrom === 'kiosk') && hideBadgeOn.includes(pageName)) {\n        return false;\n      }\n      return true;\n    }),\n    // Page based CSS class\n    pageClass: Ember.computed('pageName', function () {\n      let pageName = (this.get('pageName') || '').toLowerCase();\n      switch (pageName) {\n        case 'dashboard':\n          return 'page-dashboard';\n        case 'doctor-dashboard':\n          return 'page-doctor-dashboard';\n        case 'checkout':\n          return 'page-checkout';\n        case 'icpattend':\n          return 'page-icpattend';\n        case 'billing':\n          return 'page-billing';\n        case 'prescribe':\n          return 'page-prescribe';\n        case 'billing-details':\n          return 'page-billing-details';\n        case 'management':\n          return 'page-management';\n        case 'patient-db':\n          return 'page-patient-db';\n        case 'transaction-report':\n          return 'page-transaction-report';\n        case 'shift-report':\n          return 'page-shift-report';\n        default:\n          return 'page-default';\n      }\n    }),\n    badgeClass: Ember.computed('bookedFrom', function () {\n      let bookedFrom = (this.get('bookedFrom') || '').toLowerCase();\n      if (bookedFrom === 'online') return 'badge-success';\n      if (bookedFrom === 'clinic') return 'badge-primary';\n      if (bookedFrom === 'kiosk') return 'badge-warning';\n      if (bookedFrom === 'phone') return 'badge-warning';\n      if (bookedFrom === 'email') return 'badge-secondary';\n      return 'badge-default';\n    }),\n    badgeText: Ember.computed('bookedFrom', function () {\n      let bookedFrom = (this.get('bookedFrom') || '').toLowerCase();\n      if (bookedFrom === 'online') return 'Online';\n      if (bookedFrom === 'clinic') return 'Clinic';\n      if (bookedFrom === 'kiosk') return 'Kiosk';\n      if (bookedFrom === 'phone') return 'Phone';\n      if (bookedFrom === 'email') return 'Email';\n      return '-';\n    })\n  });\n});","define(\"clinic-dev/components/cancellation-refund-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['cancellation-refund-popup'],\n    appointmentRows: [],\n    selectedReason: '',\n    cancellationComment: '',\n    disableRefundButton: false,\n    onConfirm: null,\n    onClose: null,\n    showCommentField: Ember.computed('selectedReason', function () {\n      return this.get('selectedReason') === 'other';\n    }),\n    gatewaySummary: Ember.computed('appointmentRows.[]', function () {\n      let rows = this.get('appointmentRows') || [];\n      let byGateway = {};\n      rows.forEach(row => {\n        let gw = row.gateway || '';\n        if (!gw) {\n          return;\n        }\n        byGateway[gw] = (byGateway[gw] || 0) + 1;\n      });\n      return Object.entries(byGateway).map(([gateway, count]) => ({\n        gateway,\n        count\n      }));\n    }),\n    totalAmount: Ember.computed('appointmentRows.[]', function () {\n      let rows = this.get('appointmentRows') || [];\n      let total = rows.reduce((sum, row) => sum + (parseFloat(row.amount) || 0), 0);\n      return total.toFixed(2);\n    }),\n    actions: {\n      close() {\n        if (this.get('onClose')) {\n          this.get('onClose')();\n        }\n      },\n      confirm(reason) {\n        if (!reason || reason === '') {\n          alert('Please select a cancellation reason.');\n          return;\n        }\n        let comment = this.get('cancellationComment') || '';\n        if (reason === 'other' && $.trim(comment) === '') {\n          alert('Please specify the cancellation reason.');\n          return;\n        }\n        let finalNote = reason;\n        if (reason === 'other' && $.trim(comment)) {\n          finalNote = 'Other - ' + $.trim(comment);\n        }\n        if (this.get('onConfirm')) {\n          this.get('onConfirm')(finalNote);\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/cart-content\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    cart: Ember.inject.service('shopping-cart'),\n    actions: {\n      remove(item) {\n        this.cart.remove(item);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/case-history-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/case-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      goToNext: function (appointment_id, patient_id, page_no) {\n        //console.log('im here in next' + page_no);\n        // if (this.get('hasNext')) {\n        //this.sendAction('goToNext');\n        //this.set('page_no', page_no - 1);\n        this.goToNext(appointment_id, patient_id, page_no);\n        // }\n      },\n      goToPrev: function (appointment_id, patient_id, page_no) {\n        //console.log('im here in prev' + page_no);\n        // if (this.get('hasPrevious')) {\n        //     this.sendAction('goToPrev');\n        this.goToPrev(appointment_id, patient_id, page_no);\n        // }\n      },\n      goToPage: function (appointment_id, patient_id, page_no) {\n        //console.log('im here in page' + page_no);\n        //if (page_no >= 1 && page_no <= this.get('no_of_pages')) {\n        if (page_no == this.no_of_pages) {\n          this.goToPrev(appointment_id, patient_id, page_no - 1);\n        }\n        if (page_no == 1) {\n          this.goToNext(appointment_id, patient_id, page_no + 1);\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/case-report-clinic-user-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/case-report-critical-report-search\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class CaseReportCriticalReportSearchComponent extends _component.default {}\n  _exports.default = CaseReportCriticalReportSearchComponent;\n});","define(\"clinic-dev/components/case-report-disease-search\", [\"exports\", \"@whoicd/icd11ect\", \"@whoicd/icd11ect/style.css\", \"clinic-dev/config/environment\"], function (_exports, ECT, _style, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@whoicd/icd11ect\",0,\"@whoicd/icd11ect/style.css\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/case-report-medicine-search\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class CaseReportMedicineSearchComponent extends _component.default {}\n  _exports.default = CaseReportMedicineSearchComponent;\n});","define(\"clinic-dev/components/case-report-patient-search\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    didInsertElement() {\n      this._super(...arguments);\n      // Call your function here\n      this.getCountryList();\n    },\n    getCountryList() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      /* For getting all country list form this ajax request */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    }\n  });\n});","define(\"clinic-dev/components/case-report-patient-vital-search\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class CaseReportPatientVitalSearchComponent extends _component.default {}\n  _exports.default = CaseReportPatientVitalSearchComponent;\n});","define(\"clinic-dev/components/case-report-visit-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/case-taking-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/case-taking\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/completed-emailrm-medicine-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/completed-medicine-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/completed-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/component-permissions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/correctbill-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    actions: {\n      // This function related to pending amount detail showing function modify as on 07 Aug 2019 Shubh Tiwari\n      pendingDetails: function () {\n        var _this = this;\n        jQuery.noConflict();\n        let i18n = _this.get('i18n');\n        var patient_id = $('#patient_id').val();\n        var visit_id = $('#visiting_id').val();\n        _this.set('Pendingdetailslist', '');\n        //Nishant 14/15-Nov-2022: show pagination in previous details popup and convert to component.\n        //Centralize code in service to avoid redundant api calling and pagination handling\n        var bill_id = $('#billing_id').val();\n        _this.set('no_of_pages', '');\n        _this.set('page_no', '');\n        _this.get('serviceIcpattend').pendingDetails(patient_id, visit_id, bill_id, 1, function (data, page_no, no_of_pages) {\n          _this.set('Pendingdetailslist', data);\n          _this.set('page_no', page_no);\n          _this.set('no_of_pages', no_of_pages);\n          // console.log(_this.get('Pendingdetailslist'));\n        });\n      },\n      checkMaxPrintCopy: function () {\n        var val = $('#print_case_val').val();\n        var input = parseInt(val);\n        if (input < 0 || input > 9) {\n          $('#print_case_val').val('');\n          alert('Print copy allow between 1 - 9');\n          return;\n        }\n      }\n    },\n    afterModel() {\n      console.log('applyCnswaive');\n    }\n  });\n});","define(\"clinic-dev/components/critical-reports-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      heightUnitFilter(value) {\n        var _this = this;\n        _this.set('height_unit', value);\n      },\n      bodyTempUnitFilter(value) {\n        var _this = this;\n        _this.set('body_temp_unit', value);\n      },\n      weightUnitFilter(value) {\n        var _this = this;\n        _this.set('weight_unit', value);\n      },\n      editVitalData: function (id) {\n        jQuery.noConflict();\n        $('#vitalStatisticsPopup').modal('show');\n        $('#vitalStatisticsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $('#vital_id').val(id);\n        $('#modal-title').text('Edit Vital Statistics');\n        if (id) {\n          $('#vitalUpdate').text('Update');\n          $('#vitalUpdate').removeClass('pull-left');\n          $('#vitalUpdate').attr('style', 'margin-left:39px');\n        }\n        var bmi_warning = $('.bmi_warning' + id).val();\n        if (bmi_warning == 1) {\n          $('#bmi_warning').val(bmi_warning);\n          $('#bmi').addClass('has-error');\n        } else {\n          $('#bmi_warning').val('');\n          $('#bmi').removeClass('has-error');\n        }\n        var body_temp_warning = $('.body_temp_warning' + id).val();\n        if (body_temp_warning == 1) {\n          $('#body_temp_warning').val(body_temp_warning);\n          $('#body_temp_celsius').addClass('has-error');\n        } else {\n          $('#body_temp_warning').val('');\n          $('#body_temp_celsius').removeClass('has-error');\n        }\n        var pluse_warning = $('.pluse_warning' + id).val();\n        if (pluse_warning == 1) {\n          $('#pluse_warning').val(pluse_warning);\n          $('#pulse_bpm').addClass('has-error');\n        } else {\n          $('#pluse_warning').val('');\n          $('#pulse_bpm').removeClass('has-error');\n        }\n        var blood_pressure_systolic_warning = $('.blood_pressure_systolic_warning' + id).val();\n        if (blood_pressure_systolic_warning == 1) {\n          $('#blood_pressure_systolic_warning').val(pluse_warning);\n          $('#blood_pressure_systolic').addClass('has-error');\n        } else {\n          $('#blood_pressure_systolic_warning').val('');\n          $('#blood_pressure_systolic').removeClass('has-error');\n        }\n        var blood_pressure_diastolic_warning = $('.blood_pressure_diastolic_warning' + id).val();\n        if (blood_pressure_diastolic_warning == 1) {\n          $('#blood_pressure_diastolic_warning').val(pluse_warning);\n          $('#blood_pressure_diastolic').addClass('has-error');\n        } else {\n          $('#blood_pressure_diastolic_warning').val('');\n          $('#blood_pressure_diastolic').removeClass('has-error');\n        }\n        var height_value = $('.height' + id).text().trim();\n        var height_words = height_value.split(' ');\n        var height_units = $('.height').val().trim();\n        if (height_units != 'feet') {\n          var height_inch_cm_c_value = height_words[0];\n          $('#height_inches').val(height_inch_cm_c_value);\n          $('#height_inches').css('width', '112px');\n          $('#height_inches1').hide();\n        } else {\n          var height_feet = height_words[0].replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\n          if (height_words[1] != undefined) {\n            var height_inches = height_words[1].replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\n          }\n          $('#height_inches1').show();\n          $('#height_inches').removeAttr('style');\n          $('#height_inches').val(height_feet);\n          $('#height_inches1').val(height_inches);\n        }\n        var weight_kg = $('.weight' + id).text().trim();\n        var bmi = $('.bmi' + id).text().trim();\n        var body_temp_celsius = $('.bodytemp' + id).text().trim();\n        var body_temp_unit = $('.bodytemp').val().trim();\n        var pulse = $('.pulse' + id).text().trim();\n        var body_pressure = $('.bodypressure' + id).text().trim();\n        var body_pressure_words = body_pressure.split('/');\n        var body_pressure_first_string = body_pressure_words[0];\n        var body_pressure_second_string = body_pressure_words[1];\n        $('#pulse_bpm').val(pulse);\n        $('#bmi').val(bmi);\n        $('#blood_pressure_systolic').val(body_pressure_first_string);\n        $('#blood_pressure_diastolic').val(body_pressure_second_string);\n        $('#weight_kgs').val(weight_kg);\n        $('#body_temp_celsius').val(body_temp_celsius);\n        $('#height_unit').find('option:selected').removeAttr('selected');\n        $('#weight_unit').find('option:selected').removeAttr('selected');\n        $('#body_temp_unit').find('option:selected').removeAttr('selected');\n\n        // check height select unit also selected in popup\n        var height_unit_filter = $('select[name=\"height_unit_filter\"]').val();\n        var height_unit = $('select[name=\"height_unit\"]').val();\n        if (height_unit_filter != height_unit) {\n          $('select[name=\"height_unit\"]').val(height_unit_filter);\n          $(\"#height_unit option[value='\" + height_unit_filter + \"']\").attr('selected', 'selected');\n          if (height_unit_filter == 'inch') {\n            $('#height_inches').attr('data-feet-min', '12');\n            $('#height_inches').attr('data-feet-max', '120');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else if (height_unit_filter == 'm') {\n            $('#height_inches').attr('data-feet-min', '0.30');\n            $('#height_inches').attr('data-feet-max', '3.04');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else if (height_unit_filter == 'cm') {\n            $('#height_inches').attr('data-feet-min', '30.48');\n            $('#height_inches').attr('data-feet-max', '304.8');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else {\n            $('#height_inches').attr('data-feet-min', '0');\n            $('#height_inches').attr('data-feet-max', '10');\n            $('#height_inches1').attr('data-inches-min', '0');\n            $('#height_inches1').attr('data-inches-max', '11');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches1').attr('placeholder', 'inch');\n            $('#height_inches').val(height_feet);\n            $('#height_inches1').val(height_inches);\n            $('#height_inches').removeAttr('style');\n          }\n        }\n\n        // check Weight select unit also selected in popup\n        var weight_unit_filter = $('select[name=\"weight_unit_filter\"]').val();\n        var weight_unit = $('select[name=\"weight_unit\"]').val();\n        if (weight_unit_filter != weight_unit) {\n          $('select[name=\"weight_unit\"]').val(weight_unit_filter);\n          $(\"#weight_unit option[value='\" + weight_unit_filter + \"']\").attr('selected', 'selected');\n          if (weight_unit_filter == 'pound') {\n            $('#weight_kgs').attr('data-kg-min', '2.20');\n            $('#weight_kgs').attr('data-kg-max', '1433');\n            $('#weight_kgs').val(weight_kg);\n            $('#weight_kgs').attr('placeholder', weight_unit_filter);\n          } else {\n            $('#weight_kgs').attr('data-kg-min', '1');\n            $('#weight_kgs').attr('data-kg-max', '650');\n            $('#weight_kgs').val(weight_kg);\n            $('#weight_kgs').attr('placeholder', weight_unit_filter);\n          }\n        }\n\n        // check Body Temp select unit also selected in popup\n        var body_temp_unit_filter = $('select[name=\"body_temp_unit_filter\"]').val();\n        var body_temp_unit = $('select[name=\"body_temp_unit\"]').val();\n        if (body_temp_unit_filter != body_temp_unit) {\n          $('select[name=\"body_temp_unit\"]').val(body_temp_unit_filter);\n          $(\"#body_temp_unit option[value='\" + body_temp_unit_filter + \"']\").attr('selected', 'selected');\n          if (body_temp_unit_filter == '°F') {\n            $('#body_temp_celsius').attr('data-bt-warning-min', '97');\n            $('#body_temp_celsius').attr('data-bt-warning-max', '98.8');\n            $('#body_temp_celsius').attr('data-bt-min', '40');\n            $('#body_temp_celsius').attr('data-bt-max', '110');\n            $('#body_temp_celsius').val(body_temp_celsius);\n            $('#body_temp_celsius').attr('placeholder', body_temp_unit_filter);\n          } else {\n            $('#body_temp_celsius').attr('data-bt-warning-min', '36.11');\n            $('#body_temp_celsius').attr('data-bt-warning-max', '37.11');\n            $('#body_temp_celsius').attr('data-bt-min', '4.4');\n            $('#body_temp_celsius').attr('data-bt-max', '43.33');\n            $('#body_temp_celsius').val(body_temp_celsius);\n            $('#body_temp_celsius').attr('placeholder', body_temp_unit_filter);\n          }\n        }\n\n        // Set Default Blood Type value\n        var blood_type_filter = $('input[name=blood_type_filter]').val();\n        var blood_type = $('select[name=\"blood_type\"]').val();\n        if (blood_type_filter != blood_type) {\n          $('select[name=\"blood_type\"]').val(blood_type_filter);\n          $(\"#blood_type option[value='\" + blood_type_filter + \"']\").attr('selected', 'selected');\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/custom-hours-modal\", [\"exports\", \"@glimmer/component\", \"clinic-dev/config/environment\"], function (_exports, _component, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let CustomHoursModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _class = class CustomHoursModalComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"morningFromTime\", _descriptor2, this);\n      _initializerDefineProperty(this, \"morningToTime\", _descriptor3, this);\n      _initializerDefineProperty(this, \"morningFromTimeError\", _descriptor4, this);\n      _initializerDefineProperty(this, \"morningToTimeError\", _descriptor5, this);\n      _initializerDefineProperty(this, \"successMessage\", _descriptor6, this);\n      _initializerDefineProperty(this, \"generalError\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor8, this);\n      _initializerDefineProperty(this, \"eveningFromTime\", _descriptor9, this);\n      _initializerDefineProperty(this, \"eveningToTime\", _descriptor10, this);\n      _initializerDefineProperty(this, \"eveningFromTimeError\", _descriptor11, this);\n      _initializerDefineProperty(this, \"eveningToTimeError\", _descriptor12, this);\n    }\n    updateMorningFromTime(source) {\n      // If this is an event (from input), use event.target\n      const target = source?.target ?? source;\n      const fromScheduleId = target.getAttribute('data-morningFromId');\n      const actual = target.getAttribute('data-actual');\n      const currentValue = target.value;\n      if (fromScheduleId) {\n        this.morningFromTime = actual === currentValue ? actual : currentValue;\n      } else {\n        this.morningFromTime = currentValue;\n      }\n      this.morningFromTimeError = '';\n    }\n    updateMorningToTime(source) {\n      const target = source?.target ?? source;\n      const toScheduleId = target.getAttribute('data-morningToId');\n      const actual = target.getAttribute('data-actual');\n      const currentValue = target.value;\n      if (toScheduleId) {\n        this.morningToTime = actual === currentValue ? actual : currentValue;\n      } else {\n        this.morningToTime = currentValue;\n      }\n      this.morningToTimeError = '';\n    }\n    updateEveningFromTime(source) {\n      const target = source?.target ?? source;\n      const eveningFromScheduleId = target.getAttribute('data-eveningFromId');\n      const actual = target.getAttribute('data-actual');\n      const currentValue = target.value;\n      if (eveningFromScheduleId) {\n        this.eveningFromTime = actual === currentValue ? actual : currentValue;\n      } else {\n        this.eveningFromTime = currentValue;\n      }\n      this.eveningFromTimeError = '';\n    }\n    updateEveningToTime(source) {\n      const target = source?.target ?? source;\n      const eveningToScheduleId = target.getAttribute('data-eveningToId');\n      const actual = target.getAttribute('data-actual');\n      const currentValue = target.value;\n      if (eveningToScheduleId) {\n        this.eveningToTime = actual === currentValue ? actual : currentValue;\n      } else {\n        this.eveningToTime = currentValue;\n      }\n      this.eveningToTimeError = '';\n    }\n    async saveChanges(dayID, scheduleId, shiftType, weekDay) {\n      //console.log('click');\n      let hasError = false;\n      let utoken = this.session.getToken();\n      // Determine whether to use the updated time or fallback to original\n      const morningFromTime = this.morningFromTime || this.args.fromTime;\n      const morningToTime = this.morningToTime || this.args.toTime;\n      const eveningFromTime = this.eveningFromTime || this.args.fromTime;\n      const eveningToTime = this.eveningToTime || this.args.toTime;\n\n      // Validation for all four fields, regardless of shiftType\n      if (!morningFromTime) {\n        this.morningFromTimeError = 'Please select the Morning Time In.';\n        hasError = true;\n      } else {\n        this.morningFromTimeError = '';\n      }\n      if (!morningToTime) {\n        this.morningToTimeError = 'Please select the Morning Time Out.';\n        hasError = true;\n      } else {\n        this.morningToTimeError = '';\n      }\n      if (!eveningFromTime) {\n        this.eveningFromTimeError = 'Please select the Evening Time In.';\n        hasError = true;\n      } else {\n        this.eveningFromTimeError = '';\n      }\n      if (!eveningToTime) {\n        this.eveningToTimeError = 'Please select the Evening Time Out.';\n        hasError = true;\n      } else {\n        this.eveningToTimeError = '';\n      }\n\n      // Morning shift validation\n      if (morningFromTime && morningToTime && morningFromTime >= morningToTime) {\n        this.morningToTimeError = 'Morning Time Out must be greater than Morning Time In.';\n        hasError = true;\n      } else {\n        this.morningToTimeError = '';\n      }\n\n      // Evening shift validation\n      if (eveningFromTime && eveningToTime && eveningFromTime >= eveningToTime) {\n        this.eveningToTimeError = 'Evening Shift Time Out must be greater than Evening Time In.';\n        hasError = true;\n      } else {\n        this.eveningToTimeError = '';\n      }\n      if (hasError) return;\n\n      // Build payload\n      const payload = {\n        week_days_id: dayID,\n        ...(scheduleId && {\n          schedule_id: scheduleId\n        })\n      };\n      if (shiftType === 1) {\n        payload.shift_type = 1;\n        payload.from_time = morningFromTime;\n        payload.to_time = morningToTime;\n      } else if (shiftType === 2) {\n        payload.shift_type = 2;\n        payload.from_time = eveningFromTime;\n        payload.to_time = eveningToTime;\n      } else {\n        // Send both shifts\n        payload.from_time = {\n          \"1\": morningFromTime,\n          \"2\": eveningFromTime\n        };\n        payload.to_time = {\n          \"1\": morningToTime,\n          \"2\": eveningToTime\n        };\n      }\n      this.isLoading = true;\n      //console.log(\"Payload being sent:\", payload);\n\n      try {\n        const response = await fetch(`${_environment.default.APP.lumen_api_url}custom-hours${scheduleId ? '/' + scheduleId : ''}`, {\n          method: 'POST',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          body: JSON.stringify(payload)\n        });\n        const result = await response.json();\n        if (response.ok) {\n          console.log(\"success Payload being sent:\", payload);\n          //this.successMessage = result.message;\n          // 🔥 1️⃣ FRONTEND DROPDOWN UPDATE (AUTO-REPLACE)\n          if (shiftType === 1 || shiftType === 2) {\n            this.args.setDayAvailability?.(weekDay, payload.from_time, payload.to_time, shiftType);\n          }\n          // 🔥 2️⃣ REFRESH LIST (optional but ok)\n          this.args.callGetWeekdayList?.();\n\n          // 🔥 3️⃣ CLOSE MODAL IMMEDIATELY\n          this.args.closeModal?.();\n\n          // (Optional) clear messages\n          this.successMessage = '';\n        } else {\n          if (result.errors) {\n            this.generalError = Object.values(result.errors).flat().join('\\n');\n          } else {\n            this.generalError = result.message || 'Something went wrong.';\n          }\n        }\n      } catch (error) {\n        this.generalError = 'Network error occurred.';\n      } finally {\n        this.isLoading = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"morningFromTime\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"morningToTime\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"morningFromTimeError\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"morningToTimeError\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"successMessage\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"generalError\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"eveningFromTime\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"eveningToTime\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"eveningFromTimeError\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"eveningToTimeError\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateMorningFromTime\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMorningFromTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMorningToTime\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMorningToTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateEveningFromTime\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"updateEveningFromTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateEveningToTime\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"updateEveningToTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveChanges\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"saveChanges\"), _class.prototype), _class);\n});","define(\"clinic-dev/components/data-table\", [\"exports\", \"clinic-dev/templates/components/data-table\"], function (_exports, _dataTable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/templates/components/data-table\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _dataTable.default,\n    tagName: 'table',\n    data: null,\n    columns: null,\n    columnDefs: null,\n    paging: null,\n    ordering: null,\n    info: null,\n    didInsertElement() {\n      this._super(...arguments);\n      let options = {};\n      let models = this.data;\n      console.log(models);\n      if (null !== models) {\n        options.ajax = function (data, callback) {\n          callback({\n            data: models.toArray()\n          });\n        };\n      }\n      let columns = this.columns;\n      function getColumnValue(row, type, set, meta) {\n        return row.get(columns[meta.col].property);\n      }\n      if (null !== columns) {\n        for (let column of columns) {\n          column.data = getColumnValue;\n        }\n        options.columns = columns;\n      }\n      let setOption = name => {\n        let value = this.get(name);\n        if (null !== value) {\n          options[name] = value;\n        }\n      };\n      setOption('columnDefs');\n      setOption('info');\n      setOption('ordering');\n      setOption('paging');\n      this.$().DataTable(options);\n    }\n  });\n});","define(\"clinic-dev/components/delivery-address\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var doctor_id = this.session.getLoggedInUserId();\n      var patient_id = this.patient_id;\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch',\n        data: {\n          activerecord: '1'\n        },\n        success: function (res) {\n          _this.set('location', res);\n          _this.set('branch', branch_id);\n          _this.send('updatePickupAddress', branch_id);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'courier',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('CourierName', res);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    actions: {\n      changeshippingaddress: function () {\n        jQuery.noConflict();\n        $('#shippingAddressModal').modal('show');\n        return true;\n      },\n      updateShippingAddress: function (updateInMaster, data) {\n        this.updateShippingAddress(updateInMaster, data);\n      },\n      changeDeliveryAddress: function () {\n        var _this = this;\n        var updateInMaster = $('#updateInMaster:checked').val();\n        if (updateInMaster == undefined) {\n          updateInMaster = 0;\n        }\n        var shipping_address_2 = $('#shipping_address_2').val().trim();\n        if (shipping_address_2 == undefined) {\n          shipping_address_2 = '';\n        } else {\n          shipping_address_2 = shipping_address_2;\n        }\n        var data = {\n          shipping_address_1: $('#shipping_address_1').val().trim(),\n          shipping_address_2: shipping_address_2,\n          shipping_selected_country: $('#shipping_country').val(),\n          shipping_selected_state: $('#shipping_state').val(),\n          shipping_selected_city: $('#shipping_city').val(),\n          shipping_zip: $('#shipping_zip').val().trim(),\n          shipping_mob: $('#shipping_mob').val().trim(),\n          shipping_other_state: $('#shipping_other_state').val().trim(),\n          shipping_other_city: $('#shipping_other_city').val().trim()\n        };\n        if (data.shipping_address_1 == '' || data.shipping_address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n          alert('Invalid Delivery Address 1');\n          $('input[name=shipping_address_1]').focus();\n          return false;\n        } else if (data.shipping_address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n          alert('Invalid Delivery Address 2');\n          $('input[name=shipping_address_2]').focus();\n          return false;\n        } else if (data.shipping_selected_country == '' || data.shipping_selected_country == undefined) {\n          alert('Invalid Delivery Country');\n          $('select[name=shipping_country]').focus();\n          return false;\n        } else if (data.shipping_selected_state == '' || data.shipping_selected_state == undefined) {\n          alert('Invalid Delivery State');\n          $('select[name=shipping_state]').focus();\n          return false;\n        } else if (data.shipping_selected_state == 'other' && data.shipping_other_state == '') {\n          alert('Invalid Delivery Other State');\n          $('input[name=shipping_other_state]').focus();\n          return false;\n        } else if (data.shipping_selected_city == '' || data.shipping_selected_city == undefined) {\n          alert('Invalid Delivery City');\n          $('select[name=shipping_city]').focus();\n          return false;\n        } else if (data.shipping_selected_city == 'other' && data.shipping_other_city == '') {\n          alert('Invalid Delivery Other City');\n          $('input[name=shipping_other_city]').focus();\n          return false;\n        } else if (data.shipping_zip == '' || data.shipping_zip.match('^[a-zA-Z0-9]+$') == false || data.shipping_zip.match('^[a-zA-Z0-9]+$') == null) {\n          alert('Invalid Delivery Zip');\n          $('input[name=shipping_zip]').focus();\n          return false;\n        } else if (data.shipping_mob == '' || data.shipping_mob.match('^[a-zA-Z0-9]+$') == false || data.shipping_mob.match('^[0-9]+$') == null) {\n          alert('Invalid Delivery Mobile no');\n          $('input[name=shipping_mob]').focus();\n          return false;\n        }\n        _this.send('updateShippingAddress', updateInMaster, data);\n      },\n      clearShippingAddress: function () {\n        $('#shippingAddressModal').find('input:text').val('');\n        $('#shippingAddressModal select').prop('selectedIndex', 0);\n        $('#shippingAddressModal #shipping_other_city, #shippingAddressModal #shipping_other_state').addClass('hidden');\n      },\n      updateShippingCountry() {\n        var country_id = $('select[name=shipping_country]').val();\n        this.set('shipping_selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('shipping_states', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updatePickupAddress(branch_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        _this.set('branch_address', '');\n        if (branch_id != '') {\n          $('.loader').show();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'branch/' + branch_id,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              $('.loader').hide();\n              _this.set('branch_address', res.fullname);\n            },\n            error: function (error, x, y) {}\n          });\n        }\n      },\n      updateShippingState() {\n        var state_id = $('select[name=shipping_state]').val();\n        this.set('shipping_selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('shipping_cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#shipping_other_state').val('').addClass('hidden');\n          /* AJAX call */\n          var _this = this;\n          let utoken = _this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('shipping_cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#shipping_other_state').removeClass('hidden');\n        }\n      },\n      updateShippingCity() {\n        var city_id = $('select[name=shipping_city]').val();\n        this.set('shipping_selected_city', city_id);\n        if (city_id != 'other') {\n          $('#shipping_other_city').val('').addClass('hidden');\n        } else {\n          $('#shipping_other_city').removeClass('hidden');\n        }\n      }\n    },\n    // updateShippingAddress: function (updateInMaster, data) {\n    //   //console.log(data);\n    //   data['updateInMaster'] = updateInMaster;\n    //   if (data.shipping_address_2 == '') {\n    //     var second_address = '';\n    //   } else {\n    //     var second_address = data.shipping_address_2 + '\\n';\n    //   }\n\n    //   var city = $('#shipping_city').val();\n    //   var state = $('#shipping_state').val();\n    //   var countryName = $('#shipping_country option:selected').text().trim();\n\n    //   if (city == 'other') {\n    //     var cityName = $('#shipping_other_city').val().trim();\n    //   } else {\n    //     var cityName = $('#shipping_city option:selected').text().trim();\n    //   }\n\n    //   if (state == 'other') {\n    //     var stateName = $('#shipping_other_state').val().trim();\n    //   } else {\n    //     var stateName = $('#shipping_state option:selected').text().trim();\n    //   }\n\n    //   var address =\n    //     data.shipping_address_1 +\n    //     '\\n' +\n    //     second_address +\n    //     cityName +\n    //     ', ' +\n    //     stateName +\n    //     ', ' +\n    //     countryName +\n    //     ', ' +\n    //     data.shipping_zip +\n    //     '\\n' +\n    //     'PH: '+data.shipping_mob;\n    //   $('#shipping_address_column').empty().html(address);\n\n    //   this.set('shipp', data);\n\n    //   jQuery.noConflict();\n    //   $('#shippingAddressModal').modal('hide');\n    //   return true;\n    // },\n\n    updateShippingAddress: function (updateInMaster, data) {\n      //console.log(data);\n      //console.log(updateInMaster);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var login_user_id = this.session.getLoggedInUserId();\n      var patient_id = $('input[type=hidden][name=patient_id]').val();\n      var visiting_id = $('input[type=hidden][name=appointment_id]').val();\n      // Resolved this exceptional error using Post shipping_other_city, shipping_other_state value from front-end-> ErrorException: Undefined index: shipping_other_city, Shubh Tiwari 27-09-2023\n      var addressDetails = {\n        shipping_address_1: data.shipping_address_1,\n        shipping_address_2: data.shipping_address_2,\n        shipping_selected_country: data.shipping_selected_country,\n        shipping_selected_state: data.shipping_selected_state,\n        shipping_selected_city: data.shipping_selected_city,\n        shipping_zip: data.shipping_zip,\n        shipping_mob: data.shipping_mob,\n        updateInMaster: updateInMaster,\n        shipping_other_city: data.shipping_other_city,\n        shipping_other_state: data.shipping_other_state\n      };\n      var shippingResult = this.shippingValidation.deliveryOnlyAddressValidation(addressDetails);\n      //console.log(shippingResult.dispatchOrPickup);\n      if ((shippingResult.dispatchOrPickup == \"D\" || shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && shippingResult != false) {\n        shippingResult['patient_id'] = patient_id;\n        shippingResult['appointment_id'] = visiting_id;\n        shippingResult['created_by'] = login_user_id;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n          data: {\n            data: shippingResult\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          //async: false,\n          success: function (resship_validation) {\n            if (resship_validation.error == true) {\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'pharmacyerror');\n            } else if (resship_validation.error == false) {\n              $.ajax({\n                method: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                data: {\n                  data: shippingResult\n                },\n                dataType: 'json',\n                async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resship) {\n                  if (resship.error == false) {\n                    swal(\"Shipping address has been updated successfully\").then(value => {\n                      data['updateInMaster'] = updateInMaster;\n                      if (data.shipping_address_2 == '') {\n                        var second_address = '';\n                      } else {\n                        var second_address = data.shipping_address_2 + '\\n';\n                      }\n                      var city = $('#shipping_city').val();\n                      var state = $('#shipping_state').val();\n                      var countryName = $('#shipping_country option:selected').text().trim();\n                      if (city == 'other') {\n                        var cityName = $('#shipping_other_city').val().trim();\n                      } else {\n                        var cityName = $('#shipping_city option:selected').text().trim();\n                      }\n                      if (state == 'other') {\n                        var stateName = $('#shipping_other_state').val().trim();\n                      } else {\n                        var stateName = $('#shipping_state option:selected').text().trim();\n                      }\n                      var address = data.shipping_address_1 + '\\n' + second_address + cityName + ', ' + stateName + ', ' + countryName + ', ' + data.shipping_zip + '\\n' + 'PH: ' + data.shipping_mob;\n                      $('#shipping_address_column').empty().html(address);\n                      _this.set('shipp', data);\n                      jQuery.noConflict();\n                      $('#shippingAddressModal').modal('hide');\n                    });\n                  }\n                }\n              });\n            }\n          }\n        });\n      }\n      // else {\n      //   _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please check dispatch first', 'pharmacyerror');\n      // }\n    }\n  });\n});","define(\"clinic-dev/components/diagnostic-report-test-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      notesDetails: function (diagnostic_report_id) {\n        this.sendAction('notesDetails', diagnostic_report_id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/diagnostic-report-test\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember\",0,\"@ember/object\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    actions: {\n      editDiagnosticReportWrapper(test) {\n        this.sendAction('editDiagnosticReport', test.test_id, test.appointment_id, test.test_name, test.lower_range, test.upper_range, test.unit_name, test.range_value, test.range_type, test.diagnostic_report_id, test.created_at);\n      },\n      listDownloadFile: function (upload_folder_path, patient_id, first, last, original_file_name) {\n        var _this = this;\n        if (upload_folder_path !== undefined) {\n          var file_url = _environment.default.APP.report_url + upload_folder_path;\n          var index = file_url.lastIndexOf(\"/\") + 1;\n          var filename = file_url.substr(index);\n          var download_file = patient_id + '-' + first + '-' + last + '-' + original_file_name;\n          //console.log(file_url);\n          //this.sendAction('downloadDiagnosticReport', url, download_file);\n          window.URL = window.URL || window.webkitURL;\n          var xhr = new XMLHttpRequest(),\n            a = document.createElement('a'),\n            file;\n          xhr.open('GET', file_url, true);\n          xhr.responseType = 'blob';\n          xhr.onload = function () {\n            //console.log(xhr.response.type);\n            file = new Blob([xhr.response], {\n              type: xhr.response.type\n            });\n            a.href = window.URL.createObjectURL(file);\n            a.download = download_file; // Set to whatever file name you want\n            a.click();\n          };\n          $('#diagnostic_test_name').removeAttr('readonly');\n          xhr.send();\n        }\n      },\n      previousTest: function (appointment_id, patient_id, test_id, page_no) {\n        var _this = this;\n        // console.log('in drt controller' + test_id);\n        _this.gotoTestPage(appointment_id, patient_id, test_id, parseInt(page_no) + 1); //recent records are first so reduce page no.\n      },\n      nextTest: function (appointment_id, patient_id, test_id, page_no) {\n        var _this = this;\n        // console.log('in drt controller');\n        _this.gotoTestPage(appointment_id, patient_id, test_id, parseInt(page_no) - 1); //recent records are first so reduce page no.\n      },\n      removeTest: function (test_name, appointment_id, patient_id, test_id) {\n        this.sendAction('removeTest', test_name, appointment_id, patient_id, test_id);\n      },\n      showTestNote: function (test_id) {\n        this.sendAction('showTestNote', test_id);\n      },\n      editDiagnosticReport: function (id, appointment_id, test_name, lower_range, upper_range, unit_name, range_value, range_type, diagnostic_report_id, created_at) {\n        this.sendAction('editDiagnosticReport', id, appointment_id, test_name, lower_range, upper_range, unit_name, range_value, range_type, diagnostic_report_id, created_at);\n      },\n      notesDetails: function (diagnostic_report_id) {\n        this.sendAction('notesDetails', diagnostic_report_id);\n      },\n      viewPDFFileInPopup(url, fileName, fileId) {\n        this.sendAction('viewPDFFileInPopup', url, fileName, fileId);\n      }\n    },\n    gotoTestPage: function (appointment_id, patient_id, test_id = 0, page_no = 1) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (isNaN(page_no)) {\n        page_no = 1;\n      }\n      var page_size = _environment.default.pagingDefaults.pageSize;\n      //  console.log('pageno:'+page_no);\n      var offset = (page_no - 1) * page_size;\n      // var no_of_pages = 1;\n      // console.log(\"testcount:\"+testcount, \"pageno:\"+page_no);\n      var base_url = _environment.default.APP.lumen_api_url + 'icptesthistory/' + appointment_id + '/' + patient_id + '/' + test_id + '/' + offset + '/' + page_size + '/' + page_no;\n      // console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (d_response) {\n            // console.log(d_response);\n            _this.set('list_group_array4', d_response.data);\n            _this.set('key3', test_id);\n            _this.set('diagnostic_test_user', d_response.modify_user);\n            //_this.set('page_no', page_no);\n\n            // no_of_pages = Math.floor(d_response.data[1] / page_size);\n            // if (d_response.data[1] % page_size > 0) {\n            //   no_of_pages += 1;\n            // }\n            // _this.set('no_of_pages', no_of_pages);\n          },\n          complete: function (d_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    }\n  }); // export default class DiagnosticReportTestComponent extends Component {\n  // }\n});","define(\"clinic-dev/components/diagnostic-reports-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      var permission = this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    },\n    actions: {\n      notesDetails: function (diagnostic_report_id) {\n        this.sendAction('notesDetails', diagnostic_report_id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/diagnostic-reports\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      showTestNote: function (test_id) {\n        this.sendAction('showTestNote', test_id);\n      },\n      removeTest: function (test_name, appointment_id, patient_id, test_id) {\n        this.sendAction('removeTest', test_name, appointment_id, patient_id, test_id);\n      },\n      editDiagnosticReport: function (id, appointment_id, test_name, lower_range, upper_range, unit_name, range_value, range_type, diagnostic_report_id, created_at) {\n        this.sendAction('editDiagnosticReport', id, appointment_id, test_name, lower_range, upper_range, unit_name, range_value, range_type, diagnostic_report_id, created_at);\n      },\n      notesDetails: function (diagnostic_report_id) {\n        this.sendAction('notesDetails', diagnostic_report_id);\n      },\n      viewPDFFileInPopup(url, fileName, fileId) {\n        this.sendAction('viewPDFFileInPopup', url, fileName, fileId);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/dispatched-orders-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      _this._super(...arguments);\n      var permission = this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/components/doctor-name-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      // var _this = this;\n      // var branch_detail = this.session.getLocation().split('-');\n      // var branch_id = branch_detail[0];\n      // var doctor_id = this.session.getLoggedInUserId();\n      // var shift_id = this.session.getLoggedInUserShift();\n      // var stage = 0;\n      // this.doctorCounter(doctor_id, shift_id, branch_id);\n      // var _this = this;\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.api_url + 'users/doctors',\n      //   data: { branch_id: branch_id },\n      //   success: function (res) {\n      //     var data = res.data;\n      //     _this.set('doctor', res.data);\n      //     _this.set('doctor_id', doctor_id);\n      //   },\n      // });\n    },\n    actions: {\n      // doctorId: function (user_id) {\n      //   var branch_detail = this.session.getLocation().split('-');\n      //   var branch_id = branch_detail[0];\n      //   var shift_id = this.session.getLoggedInUserShift();\n      //   this.sendAction('newDoctorId', user_id);\n      //   this.doctorCounter(user_id, shift_id, branch_id);\n      // },\n      // doctorCounter: function (doctor_id, shift_id, branch_id) {\n      //   this.doctorCounter(doctor_id, shift_id, branch_id);\n      // },\n      ScrollToSection(section) {\n        this.ScrollToSection?.(section);\n      }\n    },\n    // doctorCounter: function (doctor_id, shift_id, branch_id) {\n    //   var _this = this;\n    //   var base_url =\n    //     ENV.APP.api_url +\n    //     'appointments/docCounters?shift_id=' +\n    //     shift_id +\n    //     '&branch_id=' +\n    //     branch_id +\n    //     '&doctor_id=' +\n    //     doctor_id;\n\n    //   $.ajax({\n    //     url: base_url,\n    //     method: 'GET',\n    //     //headers: {\"Authorization\":\"Bearer \" + utoken},\n    //     success: function (res) {\n    //       var counter = res.data[0];\n    //       _this.set('totalPrescribe', counter.total_prescribed);\n    //       _this.set('totalCasetaken', counter.total_case_taken);\n    //     },\n    //     complete: function (res) {\n    //       //console.log(\"Execution complete\");\n    //     },\n    //   });\n    // },\n\n    afterModel() {}\n  });\n});","define(\"clinic-dev/components/doctor-schedule-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      showTab(tab) {\n        $('.tab-pane.active').removeClass('active');\n        $('#assign-tab-list > li.active').removeClass('active');\n        $('#' + tab).addClass('active');\n        $('[data-tab=' + tab + ']').parent('li').addClass('active');\n        // this.send('updateDkbList')\n      },\n      goBack() {\n        history.go(-1);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/dropdown-action-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      reSchedulePatient(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('urgentModal', appointment_id, urgent_status, urgent_note);\n      },\n      markNotUrgentPatient(id) {\n        this.sendAction('notUrgentPatient', id);\n      },\n      patientAbsent(id) {\n        this.sendAction('markPatientAbsent', id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/email-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/email-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/email-patients-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      reSchedulePatient(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('urgentModal', appointment_id, urgent_status, urgent_note);\n      },\n      markNotUrgentPatient(id) {\n        this.sendAction('notUrgentPatient', id);\n      },\n      patientAbsent(id, absent) {\n        this.sendAction('markPatientAbsent', id, absent);\n      },\n      cancelPatient(id) {\n        this.sendAction('cancelPatientId', id);\n      },\n      drreschedulepatient(id) {\n        this.sendAction('drreschedulepatient', id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/ember-datepicker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/empty-schedule-message\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class EmptyScheduleMessageComponent extends _component.default {}\n  _exports.default = EmptyScheduleMessageComponent;\n});","define(\"clinic-dev/components/error-display\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/fa-icon\", [\"exports\", \"@fortawesome/ember-fontawesome/components/fa-icon\"], function (_exports, _faIcon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _faIcon.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@fortawesome/ember-fontawesome/components/fa-icon\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/components/file-dropzone\", [\"exports\", \"ember-file-upload/components/file-dropzone\"], function (_exports, _fileDropzone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _fileDropzone.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-file-upload/components/file-dropzone\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/components/file-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  const VIEWABLE_IMAGE_TYPES = ['jpg', 'gif', 'png', 'jpeg', 'pdf'];\n  const ACCEPTABLE_IMAGE_SIZES = ['small', 'medium', 'large', 'responsive'];\n  var _default = _exports.default = Ember.Component.extend({\n    attributeBindings: ['data-file', 'style'],\n    classNameBindings: ['getClassNames'],\n    url: null,\n    size: null,\n    iconOnly: false,\n    extension: null,\n    badExtension: 'NA',\n    maxExtensionSize: 4,\n    tagName: 'div',\n    init(...args) {\n      this._super(...args);\n      if (this.extension) {\n        Ember.set(this, 'iconOnly', true);\n      } else {\n        Ember.set(this, 'extension', this.getExtensionFromURL(this.url, this.badExtension));\n      }\n    },\n    'data-file': Ember.computed('extension', 'iconOnly', 'url', function () {\n      const extension = this.extension;\n      if (!this.iconOnly && VIEWABLE_IMAGE_TYPES.includes(extension)) {\n        return null;\n      }\n      return extension;\n    }),\n    style: Ember.computed('data-file', 'dataFile', 'url', function () {\n      if (!Ember.get(this, 'data-file')) {\n        return Ember.String.htmlSafe(`background-image:url('${this.url}')`);\n      }\n      return null;\n    }),\n    getClassNames: Ember.computed('data-file', 'size', function () {\n      if (Ember.get(this, 'data-file')) {\n        return `file-icon file-icon--${this.getSize(this.size)}`;\n      }\n      return `image-icon image-icon--${this.getSize(this.size)}`;\n    }),\n    getSize(size) {\n      if (ACCEPTABLE_IMAGE_SIZES.includes(size)) {\n        return size;\n      }\n      return ACCEPTABLE_IMAGE_SIZES[0];\n    },\n    getExtensionFromURL(url, extOnError = null) {\n      let extension = extOnError;\n      try {\n        const parcedExtension = url.split(/#|\\?/)[0].split('.').pop().trim().replace(/\\//g, '');\n        if (parcedExtension.length > 0 && parcedExtension.length <= this.maxExtensionSize) {\n          extension = parcedExtension;\n        }\n      } catch (error) {\n        // Do Nothing\n      }\n      return extension;\n    }\n  });\n});","define(\"clinic-dev/components/file-preview-modal\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class FilePreviewModalComponent extends _component.default {}\n  _exports.default = FilePreviewModalComponent;\n});","define(\"clinic-dev/components/file-thumbnail\", [\"exports\", \"@glimmer/component\", \"clinic-dev/config/environment\", \"jquery\"], function (_exports, _component, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FileThumbnailComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class FileThumbnailComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"presignedUrl\", _descriptor2, this);\n      this.loadPresignedUrl();\n    }\n    get isSingleImage() {\n      return this.args.fileCount.length === 1;\n    }\n    async loadPresignedUrl() {\n      const filePath = this.args.filePath;\n      let utoken = this.session.getToken();\n      if (!filePath) {\n        console.error('File path is missing');\n        return;\n      }\n      const baseUrl = `${_environment.default.APP.lumen_api_url}presignedurl`;\n      const param = '?filePath=' + filePath;\n      try {\n        const response = await _jquery.default.ajax({\n          url: baseUrl + param,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          }\n        });\n        this.presignedUrl = response.presignedUrl;\n      } catch (error) {\n        console.error('Error fetching presigned URL:', error);\n      }\n    }\n    handleClick(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      const fileCount = this.args.fileCount;\n      if (fileCount && fileCount.length > 1) {\n        // Multiple files: only call the parent action\n        if (typeof this.args.onClick === 'function') {\n          this.args.onClick();\n        }\n      }\n    }\n    handleFileDownloadClick(filePath, oldRegistrationNo, firstName, lastName, fileName, fileType, fileId) {\n      if (!this.presignedUrl) {\n        console.error('Missing presignedUrl');\n        return;\n      }\n      const finalDownloadName = `${oldRegistrationNo}-${firstName}-${lastName}-${fileName}`;\n      console.log(fileType);\n      if (fileType === 'pdf') {\n        this.args.onViewPDFFileInPopup?.(this.presignedUrl, finalDownloadName, fileId);\n      } else {\n        fetch(this.presignedUrl).then(response => response.blob()).then(blob => {\n          const blobUrl = window.URL.createObjectURL(blob);\n          const link = document.createElement('a');\n          link.href = blobUrl;\n          link.setAttribute('download', finalDownloadName);\n          document.body.appendChild(link);\n          link.click();\n          link.remove();\n          window.URL.revokeObjectURL(blobUrl);\n        }).catch(error => {\n          console.error('File download failed:', error);\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"presignedUrl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFileDownloadClick\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFileDownloadClick\"), _class.prototype), _class);\n});","define(\"clinic-dev/components/file-upload\", [\"exports\", \"numeral\"], function (_exports, _numeral) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"numeral\"eaimeta@70e063a35619d71f\n  /**\n   * This structure will contain a file, it's state (valid/invalid) and error message\n   *\n   * @param file\n   * @param valid\n   * @param error\n   * @returns {*}\n   * @constructor\n   */\n  function QueuedFile(file, valid, error) {\n    this.file = file;\n    this.valid = !!valid;\n    this.error = typeof error === 'string' ? error : null;\n    return Ember.Object.create(this);\n  }\n\n  /**\n   * MultipleUploader stores files and\n   * has a method to upload files. We will\n   * send a reference to this object to controller,\n   * so controller will be able to initiate upload.\n   *\n   * @constructor\n   */\n  function MultipleUploader(options) {\n    /**\n     * Default options\n     *\n     * @type {{url: null, fieldName: string, headers: {}, data: {}, method: string}}\n     * @private\n     */\n    const _defaultOptions = {\n      validate: function (file) {\n        return true;\n      },\n      url: null,\n      fieldName: 'diagnostic_report_file[]',\n      headers: {},\n      data: {},\n      method: 'POST'\n    };\n    /**\n     * In this array files are stored\n     *\n     * @type {Array}\n     * @private\n     */\n    var _files = [];\n    /**\n     * This object stores event handlers\n     *\n     * @type {{}}\n     * @private\n     */\n    const _eventHandlers = {};\n\n    /**\n     * Merge default options with options, passed during construction\n     */\n    this.options = Ember.$.extend({}, _defaultOptions, options);\n\n    /**\n     * This function triggers an event\n     *\n     * @param event\n     */\n    const trigger = function (event) {\n      if (_eventHandlers[event] !== undefined) {\n        for (var i = 0; i < _eventHandlers[event].length; i++) {\n          _eventHandlers[event][i].apply(this, Array.prototype.slice.call(arguments, 1));\n        }\n      }\n    };\n\n    /**\n     * This method saves files from FileList to _files array\n     *\n     * @param files\n     * @returns {boolean}\n     */\n    this.addFiles = function (files) {\n      var errorMessage;\n      var qf;\n      var filesAdded = 0;\n      for (var i = 0; i < files.length; i++) {\n        if ((errorMessage = this.options.validate(files[i])) === true) {\n          qf = new QueuedFile(files[i], true);\n        } else if (errorMessage === false) {\n          continue;\n        } else {\n          qf = new QueuedFile(files[i], false, errorMessage);\n        }\n        _files.push(qf);\n        filesAdded++;\n        //trigger('fileadded', qf);\n      }\n      //\n      if (filesAdded > 0) {\n        //trigger('fileschanged', _files.slice());\n        return true;\n      }\n      return false;\n    };\n\n    /**\n     * This method will remove file\n     *\n     * @param file_name\n     * @returns {boolean}\n     */\n    this.openFile = function (file_name) {\n      var extension = file.substr(file_name.lastIndexOf('.') + 1);\n      var name;\n      switch (extension) {\n        case 'jpg':\n          name = extension;\n          break;\n        case 'png':\n          name = extension;\n          break;\n        case 'jpeg':\n          name = extension;\n          break;\n        case 'dicom':\n          name = extension;\n          break;\n        case 'pdf':\n          name = extension;\n          break;\n        case 'msword':\n          name = extension;\n          break;\n        case 'vnd.openxmlformats-officedocument.wordprocessingml.document':\n          name = extension;\n          break;\n        case 'csv':\n          name = extension;\n          break;\n        case 'zip':\n          name = extension;\n        case 'dcm':\n          name = extension;\n          break;\n      }\n      return name;\n    };\n\n    /**\n     * This method will remove file\n     *\n     * @param qf\n     * @returns {boolean}\n     */\n    this.removeFile = function (qf) {\n      var pos;\n      //console.log(qf.file.name);\n      //console.log(_files);\n      //if ((pos = _files.indexOf(qf)) > -1) {\n      if ((pos = _files.findIndex(x => x.file.name === qf.file.name)) > -1) {\n        //console.log(pos);\n        _files.splice(pos, 1);\n        //console.log(_files);\n        // trigger('fileremoved', qf);\n        // trigger('fileschanged', _files.slice());\n        return true;\n      }\n      return false;\n    };\n\n    /**\n     * This method will remove selected file - Shubh\n     *\n     * @param index\n     * @returns {boolean}\n     */\n    this.removeSelectedFile = function (index) {\n      //console.log(_files);\n      _files.splice(index, 1);\n      //console.log(_files);\n      return true;\n    };\n\n    /**\n     * This method returns all files\n     *\n     * @returns {Array}\n     */\n    this.getAllFiles = function () {\n      return _files.slice();\n    };\n\n    /**\n     * This method returns valid files\n     *\n     * @returns {Array}\n     */\n    this.getValidFiles = function () {\n      const files = [];\n      for (var i = 0; i < _files.length; i++) {\n        if (_files[i].valid) {\n          files.push(_files[i]);\n        }\n      }\n\n      /**\n      * Nishant 16-Dec-2022: This method resets the _Files array\n      *\n      */\n      this.emptyFiles = function () {\n        _files = [];\n      };\n      return files;\n    };\n\n    /**\n     * This method will upload files\n     */\n    this.upload = function (options) {\n      /**\n       * Create FormData instance\n       */\n      const formData = new FormData();\n      /**\n       * Merge current options with options, passed to this method. So,\n       * if you pass an url or data to upload method, it will overwrite options passed\n       * to constructor\n       */\n      const opts = Ember.$.extend({}, this.options, options);\n      /**\n       * Attach data\n       */\n      for (var k in opts.data) {\n        if (opts.data.hasOwnProperty(k)) {\n          formData.append(k, opts.data[k]);\n        }\n      }\n      /**\n       * Attach valid files\n       */\n      const files = this.getValidFiles();\n      for (var i = 0; i < files.length; i++) {\n        //console.log(\"validfiles:\"+files[i].file.name);\n        formData.append(opts.fieldName, files[i].file);\n      }\n      _files = [];\n      let utoken = this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        Ember.$.ajax({\n          type: opts.method,\n          url: opts.url,\n          headers: opts.headers,\n          data: formData,\n          contentType: false,\n          processData: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#diagnostic_loader').show();\n          },\n          error: function (jqXHR) {\n            var error = jqXHR.responseText;\n            try {\n              error = JSON.parse(error);\n            } catch (e) {\n              error = new Ember.Error(error);\n            }\n            reject(error);\n          },\n          success: function (data) {\n            $('#diagnostic_loader').hide();\n            resolve(data);\n          }\n        });\n      });\n    };\n\n    /**\n     * This method attaches event handler\n     *\n     * @param event\n     * @param handler\n     */\n    this.on = function (event, handler) {\n      if (_eventHandlers[event] === undefined) {\n        _eventHandlers[event] = [];\n      }\n      _eventHandlers[event].push(handler);\n    };\n\n    /**\n     * This method detaches event handler\n     *\n     * @param event\n     * @param handler\n     */\n    this.off = function (event, handler) {\n      if (_eventHandlers[event] !== undefined) {\n        for (var i = 0; i < _eventHandlers[event].length; i++) {\n          if (_eventHandlers[event][i] === handler) {\n            _eventHandlers[event].splice(i, 1);\n            break;\n          }\n        }\n      }\n    };\n  }\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['x-uploader'],\n    /**\n     * Component's parameters\n     */\n    name: 'diagnostic_report_file[]',\n    acceptedTypes: 'image/png,image/jpeg,image/jpg,application/dicom,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/csv,text/csv,application/zip,application/octet-stream,application/x-zip-compressed, multipart/x-zip',\n    maxFileSize: '50MB',\n    maxFiles: 12,\n    thumbWidth: 300,\n    thumbHeight: 186,\n    addLabel: 'Upload Report',\n    msgWrongFileType: 'Only file types allowed above can be uploaded',\n    msgMaxFileSize: 'File is too big ({fileSize}). Max file size is {maxFileSize}.',\n    msgFileCounter: 'Selected {count} / {maxFiles} files',\n    /**\n     * Queue\n     */\n    filecounter: 0,\n    onInit: null,\n    _input: null,\n    init() {\n      this._super(...arguments);\n      this._super.apply(this, arguments);\n      //this.set('queue', Ember.ArrayProxy.create({content: []}));\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      var that = this;\n      /**\n       * Create an instance of MultipleUploader and save it\n       *\n       * @type {MultipleUploader}\n       */\n      this._uploader = new MultipleUploader({\n        fieldName: this.name,\n        validate: function (file) {\n          /**\n           * This code will check a number of files added\n           */\n          var maxFiles = that.get('maxFiles');\n          if (typeof maxFiles === 'number' && that._uploader.getValidFiles().length >= maxFiles) {\n            return false;\n          }\n\n          /**\n           * This will prevent duplicates from adding to list\n           */\n          const files = that._uploader.getAllFiles();\n          for (var i = 0; i < files.length; i++) {\n            if (file.name === files[i].file.name && file.size === files[i].file.size) {\n              return false;\n            }\n          }\n\n          /**\n           * This will check file type\n           */\n          const acceptedTypes = that.get('acceptedTypes').split(',');\n          const escapeRegExp = /[|\\\\{}()[\\]^$+?.]/g;\n          var passTypeTest = false;\n          var file_extenstion = this.openFile(file.name);\n          for (i = 0; i < acceptedTypes.length; i++) {\n            if (acceptedTypes[i] == 'application/dicom' && file_extenstion == 'dicom') {\n              var file_type = 'application/dicom';\n            } else {\n              var file_type = file.type;\n            }\n            var test = new RegExp(acceptedTypes[i].replace(escapeRegExp, '\\\\$&').replace(/\\*/g, '.*'), 'g');\n            if (test.test(file_type)) {\n              passTypeTest = true;\n              break;\n            }\n          }\n          if (!passTypeTest) {\n            return that.get('msgWrongFileType').toString();\n          }\n\n          /**\n           * This will check file size\n           */\n          const maxFileSize = that.get('maxFileSize');\n          if (typeof maxFileSize === 'string') {\n            const bytes = (0, _numeral.default)(maxFileSize);\n            if (bytes.value() < file.size) {\n              return that.get('msgMaxFileSize').toString().replace('{fileSize}', (0, _numeral.default)(file.size).format('0.0b')).replace('{maxFileSize}', maxFileSize);\n            }\n          }\n          return true;\n        },\n        openFile: function (file) {\n          var extension = file.substr(file.lastIndexOf('.') + 1);\n          var name;\n          var extension_name = extension.toLowerCase();\n          switch (extension_name) {\n            case 'jpg':\n              name = extension_name;\n              break;\n            case 'png':\n              name = extension_name;\n              break;\n            case 'jpeg':\n              name = extension_name;\n              break;\n            case 'dicom':\n              name = extension_name;\n              break;\n            case 'pdf':\n              name = extension_name;\n              break;\n            case 'doc':\n              name = extension_name;\n              break;\n            case 'docx':\n              name = extension_name;\n              break;\n            case 'csv':\n              name = extension_name;\n              break;\n            case 'zip':\n              name = extension_name;\n            case 'dcm':\n              name = extension_name;\n              break;\n          }\n          return name;\n        }\n      });\n\n      /**\n       * Attach 'fileadded' event handler\n       */\n\n      this._uploader.on('fileadded', function (qf) {\n        //console.log(qf);\n        that.get('queue').addObject(qf);\n        const imageType = /^image\\//;\n        const thumbWidth = that.get('thumbWidth');\n        const thumbHeight = that.get('thumbHeight');\n        if (qf.file.type == 'image/png' || qf.file.type == 'image/jpg' || qf.file.type == 'image/jpeg' || qf.file.type == 'image/dcm') {\n          if (imageType.test(qf.file.type)) {\n            var reader = new FileReader();\n            reader.onload = function (e) {\n              var image = new Image();\n              image.src = reader.result;\n              image.onload = function () {\n                var width = image.width;\n                var height = image.height;\n                var shouldResize = width > thumbWidth && height > thumbHeight;\n                var newWidth;\n                var newHeight;\n                if (shouldResize) {\n                  const largest = Math.max(thumbHeight, thumbWidth);\n                  if (width > height) {\n                    newWidth = width * (largest / height);\n                    newHeight = largest;\n                  } else {\n                    newHeight = height * (largest / width);\n                    newWidth = largest;\n                  }\n                } else {\n                  newWidth = width;\n                  newHeight = height;\n                }\n                var canvas = document.createElement('canvas');\n                canvas.width = thumbWidth;\n                canvas.height = thumbHeight;\n                var context = canvas.getContext('2d');\n                context.drawImage(this, (thumbWidth - newWidth) / 2, (thumbHeight - newHeight) / 2, newWidth, newHeight);\n                qf.set('thumbnail', canvas.toDataURL());\n              };\n            };\n            Ember.run.once(reader, 'readAsDataURL', qf.file);\n          }\n        } else {\n          var file_extenstion = this._uploader.openFile(qf.file.name);\n          console.log(file_extenstion);\n          if (qf.file.type == 'application/pdf' && file_extenstion == 'pdf') {\n            var other_file = 'pdf';\n          } else if (qf.file.type == 'application/msword' && file_extenstion == 'doc') {\n            var other_file = 'doc';\n          } else if (qf.file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' && file_extenstion == 'docx') {\n            var other_file = 'docx';\n          } else if (qf.file.type == 'application/csv' || qf.file.type == 'text/csv' && file_extenstion == 'csv') {\n            var other_file = 'csv';\n          } else if ((qf.file.type == 'application/x-zip-compressed' || qf.file.type == 'application/zip' || qf.file.type == 'multipart/x-zip' || qf.file.type == 'application/octet-stream') && file_extenstion == 'zip') {\n            var other_file = 'zip';\n          } else if ((qf.file.type == 'application/octet-stream' || qf.file.type == 'dicom') && file_extenstion == 'dicom') {\n            var other_file = 'dicom';\n          } else if (qf.file.type == '' && file_extenstion == 'dcm') {\n            var other_file = 'dcm';\n          } else {\n            var other_file = 'wrongfiletype';\n          }\n          qf.set('other_file', other_file);\n        }\n      });\n\n      /**\n       * Attach 'fileremoved' event handler\n       */\n      this._uploader.on('fileremoved', function (qf) {\n        that.get('queue').removeObject(qf);\n      });\n      this._generateInput();\n\n      /**\n       * Send action to controller so it will be able to use _uploader object to initiate upload\n       */\n      this.sendAction('onInit', this._uploader);\n    },\n    /**\n     * Generates file input that needed to open file selection dialog\n     *\n     * @private\n     */\n    _generateInput() {\n      const that = this;\n      /**\n       * If we already have an input, remove it\n       */\n      if (this._input && this._input.remove) {\n        this._input.remove();\n      }\n      /**\n       * Create new input\n       */\n      this._input = Ember.$('<input type=\"file\" id=\"uploadedfilesInput\" class=\"uploadedfilesInput\" name=\"' + this.name + '\" accept=\"' + this.acceptedTypes + '\" multiple=\"multiple\" />');\n      /**\n       * On change (user selected files) add files to upload and regenerate input to clear it\n       */\n      this._input.on('change', function (e) {\n        var input = e.target;\n        var selectedFiles = input.files;\n        that.sendAction('onChangeFile', selectedFiles);\n        that._uploader.addFiles(this.files);\n        that._generateInput();\n      });\n      /**\n       * Append input to component\n       */\n      this._input.appendTo(this.element);\n    },\n    actions: {\n      remove(qf) {\n        this._uploader.removeFile(qf);\n      },\n      removeUploadFile(qf, remove_id) {\n        console.log(remove_id);\n        this.sendAction('removeFile', qf, remove_id);\n        //console.log(qf);\n        // this._uploader.removeSelectedFile(index);\n        this._uploader.removeFile(qf);\n      },\n      downloadFile(url, patient_id, first, last, original_file_name) {\n        if (url !== undefined) {\n          var index = url.lastIndexOf(\"/\") + 1;\n          var filename = url.substr(index);\n          var download_file = patient_id + '-' + first + '-' + last + '-' + original_file_name;\n          this.sendAction('downloadDiagnosticReport', url, download_file);\n        }\n      },\n      viewPDFFile(url, patient_id, first, last, original_file_name, fileId) {\n        if (url !== undefined) {\n          // Show loader\n          const loaderSelector = `#loader-${fileId}`;\n          $(loaderSelector).show();\n          var index = url.lastIndexOf(\"/\") + 1;\n          var filename = url.substr(index);\n          var download_file = patient_id + '-' + first + '-' + last + '-' + original_file_name;\n          this.sendAction('viewPDFFileInPopup', url, download_file, fileId);\n        }\n      },\n      imagePreview(qf, title) {\n        jQuery.noConflict();\n        $('.diagnosticimagepreview').attr('src', qf);\n        $('.diagnostic_test_title').text(title);\n        $('#diagnostic_image_enlarge').modal('show');\n      },\n      pdfPreview(file_name) {\n        jQuery.noConflict();\n        console.log(file_name);\n        $('.pdfpreview').attr('src', file_name);\n        $('.pdf-title').text(file_name);\n        $('#pdfFilePreview').modal('show');\n      },\n      add() {\n        this._input.click();\n      }\n    }\n  });\n});","define(\"clinic-dev/components/flash-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  const {\n    computed,\n    get\n  } = Ember;\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['alert', 'flashMessage'],\n    classNameBindings: ['alertType'],\n    alertType: computed('flash.type', function () {\n      let flashType = get(this, 'flash.type');\n      return `alert-${flashType}`;\n    }),\n    flashType: computed('flash.type', function () {\n      let flashType = get(this, 'flash.type');\n      return flashType.classify();\n    }),\n    click() {\n      let flash = get(this, 'flash');\n      flash.destroyMessage();\n    }\n  });\n});","define(\"clinic-dev/components/footer-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/free-note-preview\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class FreeNotePreviewComponent extends _component.default {}\n  _exports.default = FreeNotePreviewComponent;\n});","define(\"clinic-dev/components/header-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    session: Ember.inject.service(),\n    router: Ember.inject.service(),\n    actions: {\n      confirmLogout() {\n        if (confirm(\"Are you sure you want to logout?\")) {\n          let self = this;\n          let utoken = self.session.getToken();\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'users/logoutvalidate',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success() {\n              // clear session storage\n              self.session.end();\n\n              // 🔹 call closure action passed from parent controller\n              if (typeof self.resetHeader === 'function') {\n                self.resetHeader();\n              }\n\n              // redirect to login\n              self.router.transitionTo('login');\n            },\n            error(err) {\n              alert(\"Logout failed, please try again.\");\n              console.error(err);\n            }\n          });\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/history-loader\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class HistoryLoaderComponent extends _component.default {}\n  _exports.default = HistoryLoaderComponent;\n});","define(\"clinic-dev/components/icp-vc-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/icp-vc-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/icp-vc-patients-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      reSchedulePatient(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('urgentModal', appointment_id, urgent_status, urgent_note);\n      },\n      markNotUrgentPatient(id) {\n        this.sendAction('notUrgentPatient', id);\n      },\n      patientAbsent(id, absent) {\n        this.sendAction('markPatientAbsent', id, absent);\n      },\n      cancelPatient(id) {\n        this.sendAction('cancelPatientId', id);\n      },\n      drreschedulepatient(id) {\n        this.sendAction('drreschedulepatient', id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/icpattend-medicine-prescribe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      sortMedicine: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: 'Do you want to sort medicines by serial number?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, sort it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var tableId = 'prescriptionmedicine tbody.tbody';\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            return _this.sortMedicineRow(tableId);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      ResetSerialNo: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: \"Do you want to reset medicine serial numbers. All Medicines will be re-assigned new serial number starting from top. Medicine order won't be rearranged.\",\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, reset it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var medicineSerialNo = [];\n            $('#prescriptionmedicine > tbody > tr').each(function () {\n              var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n              var dataOrder = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('data-order');\n              var tableRowId = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('id');\n              var jsObjectRefno = {};\n              jsObjectRefno['serialNo'] = parseInt(serialNo.replace(/[^0-9]/g, ''));\n              jsObjectRefno['dataOrder'] = parseInt(dataOrder.replace(/[^0-9]/g, ''));\n              jsObjectRefno['tableRowId'] = tableRowId;\n              medicineSerialNo.push(jsObjectRefno);\n            });\n            _this.duplicateValueCount(medicineSerialNo);\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      ClearPrescription: function () {\n        Swal.fire({\n          text: 'This will remove all prescribed medicines. Are you sure you want to do this?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, clear it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var table_row = '';\n            var instructionselect = '';\n            $('.tbody').empty();\n            $('#importvisitid').val('');\n            $('textarea#precribe_pharmacy_instruction').val('');\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            var instruction_array = _this.get('instruction');\n            $('span.clearpresription_code').remove();\n            // instruction selected html code\n            instructionselect += '<select name=\"instructionItem[1]\" class=\"form-control instructionItem cwareinstruction-1 iother-1\" id=\"instruction-1\">';\n            instructionselect += '<option value=\"\">Select Instruction</option>';\n            for (var i = 0; i < instruction_array.length; i++) {\n              //var instruc_id = instruction_array[i].id;\n              var instruc_name = instruction_array[i].instruction_name.trim();\n              instructionselect += '<option class=\"editable-1\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n            instructionselect += '</select>';\n            instructionselect += '<input id=\"edit_instruction-1\" name=\"instruction[1]\" class=\"editOption-1 inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n            table_row += '<tr id=\"id-1\" class=\"tableRow previousRow clear_prescription\" data-order=\"1\">';\n            table_row += '<td><input type=\"checkbox\" id=\"checkboxid-1\" class=\"geometry checkItem\" data-id=\"1\" name=\"check\" value=\"1\"/></td>';\n            table_row += '<td><input class=\"form-control srno-1 srnoItem\" id=\"srno-1\" name=\"srnoItem[1]\" type=\"text\" value=\"1\" data-uniqueserial=\"2\" minlength=\"1\" maxlength=\"4\"/></td>';\n            table_row += '<td class=\"cw-search-box\"><input name=\"medicineItem[1]\" class=\"form-control prescribeinput dosage-1 medicineItem\" id=\"medicine_name-1\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\"/> <input type=\"hidden\" name=\"medicine_type[1]\"  id=\"medicine_type-1\"> <input type=\"hidden\" name=\"medicine_id[1]\" id=\"medicine_id-1\"> <p id=\"results1\"></p></td>';\n            table_row += '<td> <input readonly name=\"potencyItem[1]\" class=\"form-control potency-1 potencyItem\" id=\"potency-1\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[1]\" id=\"potency_id-1\"></td>';\n            table_row += '<td> <input readonly name=\"dilutionItem[1]\" class=\"form-control dilution-1 dilutionItem\" id=\"dilution-1\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[1]\" id=\"dilution_id-1\"></td>';\n            table_row += '<td><select name=\"formItem[1]\"  class=\"form-control slectform-1 formItem\" id=\"prescribeform-1\"><option value=\"\">Select Form</option></select></td>';\n            table_row += '<td> <input name=\"factorItem[1]\" class=\"form-control factor-1 factorItem onlynumeric\" type=\"text\" id=\"factor-1\" value=\"1\"/></td>';\n            table_row += '<td> <input name=\"medicineVial[1]\" class=\"form-control medicinevial-1 medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-1\" value=\"1\"/></td>';\n            table_row += '<td>' + instructionselect + '</td>';\n            table_row += '</tr>';\n            $('#prescriptionmedicine').children('tbody:first').append(table_row);\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      }\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    sortMedicineRow(tableId) {\n      //console.log(tableId);\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n        // if the alphabetic part of a is less than that of b => -1\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n        // if the alphabetic part of a is greater than that of b => 1\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n        // if the alphabetic parts are equal, check the number parts\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n        // else, just sort using the numbers parts\n        return _n;\n      }).appendTo($tbody);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    }\n  });\n});","define(\"clinic-dev/components/increment-for\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    numOfTimes: Ember.computed('times', function () {\n      const times = parseInt(this.times);\n      var arr = [];\n      var i = 1;\n      //return new Array(times);\n      for (i = 1; i < times + 1; i++) {\n        arr.push(i);\n      }\n      return arr;\n    })\n  });\n});","define(\"clinic-dev/components/jqui-datepicker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'input',\n    classNames: ['form-control'],\n    classNameBindings: ['inputSize'],\n    attributeBindings: ['style'],\n    inputSize: 'input-md',\n    optionValuePath: null,\n    placeholder: null,\n    multiple: true\n  });\n});","define(\"clinic-dev/components/letter-avatar\", [\"exports\", \"clinic-dev/templates/components/letter-avatar\"], function (_exports, _letterAvatar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/object\",0,\"clinic-dev/templates/components/letter-avatar\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _letterAvatar.default,\n    tagName: 'svg',\n    attributeBindings: ['width', 'height', 'style'],\n    style: Ember.computed('color', function () {\n      return new Ember.String.htmlSafe(`background:${this.color}`);\n    }),\n    size: 1024,\n    width: Ember.computed.reads('size'),\n    height: Ember.computed.reads('size'),\n    // text passed in\n    colors: ['#1abc9c', '#2ecc71', '#3498db', '#9b59b6', '#34495e', '#16a085', '#27ae60', '#2980b9', '#8e44ad', '#2c3e50', '#f1c40f', '#e67e22', '#e74c3c', '#ecf0f1', '#95a5a6', '#f39c12', '#d35400', '#c0392b', '#bdc3c7', '#7f8c8d'],\n    fontSize: Ember.computed('size', function () {\n      return this.size / 4;\n    }),\n    fontFamily: 'Arial',\n    textColor: '#ffffff',\n    setInitials: Ember.on('init', function () {\n      let name = this.text;\n      let nameSplit = name.trim();\n      //let initialOne = nameSplit[0].charAt(0).toUpperCase();\n      //let initialTwo = (nameSplit[1]) ? nameSplit[1].charAt(0).toUpperCase() : '';\n      //let initials = `${initialOne}${initialTwo}`;\n      let initials = `${nameSplit}`;\n      this.set('initials', initials);\n      this.setColor();\n    }),\n    setColor: function () {\n      if (!this.color) {\n        let str = this.initials;\n        var p = 0;\n        for (var i = 0; i < str.length; i++) {\n          p += p + str.charAt(i).charCodeAt(0);\n        }\n        let charIndex = p - 64;\n        let colorIndex = charIndex % 20;\n        this.set('color', this.colors[colorIndex]);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/master-menu\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/message-logs-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/message-logs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/mfa-setup\", [\"exports\", \"@glimmer/component\", \"clinic-dev/config/environment\"], function (_exports, _component, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MfaSetupComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('flash-messages'), _dec4 = Ember.inject.service('userPermissionsService'), _dec5 = Ember.inject.service('topNavService'), _dec6 = Ember.inject.service('has-permissions'), _dec7 = Ember.inject.controller('application'), _dec8 = Ember.inject.controller('dashboard'), _dec9 = Ember.inject.controller('icpattend'), _dec10 = Ember.inject.controller('doctor-dashboard'), _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._action, _dec18 = Ember._action, _class = class MfaSetupComponent extends _component.default {\n    getQueryParam(param) {\n      const urlParams = new URLSearchParams(window.location.search);\n      return urlParams.get(param);\n    }\n    constructor() {\n      super(...arguments);\n      // Services\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"flashes\", _descriptor3, this);\n      _initializerDefineProperty(this, \"permissions\", _descriptor4, this);\n      _initializerDefineProperty(this, \"topnav\", _descriptor5, this);\n      _initializerDefineProperty(this, \"route_permission\", _descriptor6, this);\n      // Controllers\n      _initializerDefineProperty(this, \"applicationController\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dashboard\", _descriptor8, this);\n      _initializerDefineProperty(this, \"icpattend\", _descriptor9, this);\n      _initializerDefineProperty(this, \"doctordashboard\", _descriptor10, this);\n      _initializerDefineProperty(this, \"qrCodeDataUrl\", _descriptor11, this);\n      _initializerDefineProperty(this, \"secret\", _descriptor12, this);\n      _initializerDefineProperty(this, \"code\", _descriptor13, this);\n      _initializerDefineProperty(this, \"error\", _descriptor14, this);\n      _initializerDefineProperty(this, \"mfaEnabled\", _descriptor15, this);\n      _initializerDefineProperty(this, \"user_type\", _descriptor16, this);\n      this.userId = this.getQueryParam('user_id');\n      this.mfaEnabled = this.getQueryParam('mfa_enabled') === 'false';\n      this.setupMfa();\n    }\n    // constructor() {\n    //   super(...arguments);\n    //   this.userId = this.getUserIdFromUrl();\n    //   this.setupMfa();\n    // }\n\n    // getUserIdFromUrl() {\n    //   const urlParams = new URLSearchParams(window.location.search);\n    //   return urlParams.get('user_id');\n    // }\n\n    async setupMfa() {\n      try {\n        const response = await fetch(`${_environment.default.APP.lumen_api_url}users/setup-2fa`, {\n          method: 'POST',\n          body: JSON.stringify({\n            user_id: this.userId\n          })\n        });\n        const data = await response.json();\n        this.secret = data.secret;\n        this.qrCodeDataUrl = `data:image/svg+xml;base64,${data.qr_code}`;\n      } catch (error) {\n        this.error = 'Failed to set up MFA.';\n        console.error(error);\n      }\n    }\n    goToOtpVerification() {\n      //localStorage.removeItem('type');\n      this.router.transitionTo('otp-verification', {\n        queryParams: {\n          user_id: this.userId\n        }\n      });\n    }\n    async skipMfa() {\n      let user_id = this.userId;\n      let location_id = localStorage.getItem('location_id');\n      let shift_id = localStorage.getItem('shift_id');\n      let username = localStorage.getItem('username');\n      try {\n        let response = await fetch(`${_environment.default.APP.lumen_api_url}users/skip-mfa`, {\n          method: 'POST',\n          body: JSON.stringify({\n            user_id: user_id\n          })\n        });\n        let res = await response.json();\n        if (response.ok && res.validate === true && res.token) {\n          this.session.start(res.token, location_id, username, res.user_id, res.user_type, res.name, res.label, shift_id, res.user_permission, res.role_route, res.printed_by);\n          let appController = this.applicationController;\n          appController.set('isLogin', true);\n          appController.set('loginUser', username);\n          let branch_detail = location_id.split('-');\n          let branchName = branch_detail[1];\n          appController.set('branchName', branchName);\n          appController.set('shiftDetail', shift_id);\n          appController.set('pDetails', res.user_permission);\n          appController.set('role_route_p', res.role_route);\n          if (res.user_type == 2) {\n            appController.set('permission_arr', res.user_permission);\n            this.router.transitionTo('doctor-dashboard.list');\n            this.doctordashboard.getClinicPatientsIncomplete(res.user_id, shift_id, branch_detail[0], 0);\n            this.doctordashboard.getTabsList(res.user_id, branch_detail[0], shift_id);\n          } else {\n            this.router.transitionTo('dashboard', {\n              queryParams: {\n                order: undefined,\n                p: undefined,\n                q: undefined,\n                sort: undefined\n              }\n            });\n            this.dashboard.getTabsList(branch_detail[0], shift_id);\n          }\n          // Optional: clear stored items\n          localStorage.removeItem('username');\n          localStorage.removeItem('location_id');\n          localStorage.removeItem('shift_id');\n          localStorage.removeItem('type');\n        } else {\n          this.error = 'Skip MFA failed. Try again.';\n        }\n      } catch (err) {\n        console.error('Verification failed:', err);\n        this.error = 'Skip MFA failed. Try again.';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"flashes\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"permissions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"topnav\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"route_permission\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"applicationController\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dashboard\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"icpattend\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"doctordashboard\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"qrCodeDataUrl\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"secret\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"code\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"error\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"mfaEnabled\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"user_type\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return localStorage.getItem('type');\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"goToOtpVerification\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"goToOtpVerification\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"skipMfa\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"skipMfa\"), _class.prototype), _class);\n});","define(\"clinic-dev/components/nonocp-schedule-form\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class NonocpScheduleFormComponent extends _component.default {}\n  _exports.default = NonocpScheduleFormComponent;\n});","define(\"clinic-dev/components/not-completed-appointment-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      updateList() {}\n    }\n  });\n});","define(\"clinic-dev/components/not-completed-onspot-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      updateList() {}\n    }\n  });\n});","define(\"clinic-dev/components/not-completed-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/ocp-appointment-doctor-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      counterIncrease() {\n        var i = $('.initial_select_date').attr('data-count');\n        if (i >= 0) {\n          this.set('prev_week', '');\n        } else {\n          this.set('prev_week', 'prev_week_disable');\n        }\n        $('.initial_select_date').attr('data-count', parseInt(i) + 7);\n      },\n      counterDecrease() {\n        var i = $('.initial_select_date').attr('data-count');\n        if (i > 0 && i == 7) {\n          this.set('prev_week', 'prev_week_disable');\n        } else {\n          this.set('prev_week', '');\n        }\n        if (i > 0) {\n          $('.initial_select_date').attr('data-count', parseInt(i) - 7);\n        }\n      },\n      doctorAppointments(doctor_id, branches, slots) {\n        if (this.is_rescheduled == '0') {\n          this.set('date_time_doctor', '');\n          this.set('patient_id', '');\n          this.set('mode', '');\n          this.set('priority', 'normal');\n          this.set('category', '');\n          this.set('title_prefix', '');\n          this.set('first_name', '');\n          this.set('middle_name', '');\n          this.set('last_name', '');\n          this.set('gender', '');\n          this.set('phone_1', '');\n          this.set('phone_2', '');\n          this.set('address_1', '');\n          this.set('address_2', '');\n          this.set('selected_country', '');\n          this.set('selected_state', '');\n          this.set('selected_city', '');\n          this.set('zip', '');\n          this.set('note', '');\n          this.set('appointment_type', '');\n          $('.patient_registration_form').hide();\n        }\n        var appointment_type = this.set('appointment_type', $('#appointment_type').val());\n        // console.log(appointment_type);\n        var type = this.appointment_type;\n        //console.log(type);\n        $('.appointmentType_buttons').removeClass('btn-success');\n        $('.appointmentType_buttons').addClass('btn-info');\n        $('#appointmenttype_' + type).removeClass('btn-info');\n        $('#appointmenttype_' + type).addClass('btn-success');\n        //console.log(appointment_type);\n        $('.appointment_doctor_id').val(doctor_id);\n        this.set('button_clicked', 'doctor_' + doctor_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var is_th = false;\n        var appointment_date = '';\n        if ($('#appointment_date').val() != '') {\n          appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        } else {\n          var fullDate = new Date();\n          var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n          var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n          appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n        }\n        // alert(appointment_date);\n\n        /* AJAX call */\n        $('.doctor_weekly_appointment').show();\n        $('.regular_appointments').hide();\n        $('.ocp_appointments_regular').hide();\n        $('.patient_list').hide();\n        $('button.appointment_buttons').removeClass('btn-info');\n        $('button.appointment_buttons').addClass('btn-info');\n        $('.doctor_' + doctor_id).removeClass('btn-info');\n        $('.doctor_' + doctor_id).addClass('btn-success');\n        $('.appointmenttype_' + type).removeClass('btn-info');\n        $('.appointmenttype_' + type).addClass('btn-success');\n        $('.btn-info.btn-success').removeClass('btn-success');\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        $('body').addClass('modal-open');\n        //console.log(branches);\n        if (appointment_type == 'ocp') {\n          $('table.ocp_doctor_appointments thead').remove();\n          $('table.ocp_doctor_appointments tbody').remove();\n          var table_content = '';\n          var date_range = [];\n          for (var i = 0; i < 7; i++) {\n            date_range.push(moment(appointment_date).add('days', i).format('YYYY-MM-DD'));\n          }\n          $('#date_time_doctor').val('');\n          //******************* */\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/ocpschedule/' + doctor_id,\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resData) {\n              //$('table.appointments tr.slot_detail').remove();\n              //console.log(resData);\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'appointments/ocpscheduleadjustment/' + doctor_id + '/' + appointment_date,\n                data: {},\n                dataType: 'json',\n                async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resDataAjs) {\n                  //console.log(resDataAjs);\n                  $.ajax({\n                    url: _environment.default.APP.lumen_api_url + 'getsetting/ocp_slots',\n                    method: 'GET',\n                    data: '',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      var ocpslots = JSON.parse(res);\n                      /*var total_doctors  = appointments.result.length;\n                              var total_table_width =90;\n                              var td_width = parseInt(total_table_width, 10)/total_doctors;\n                              var check_doctor_schedule_taken = 0;*/\n                      $.ajax({\n                        method: 'GET',\n                        url: _environment.default.APP.api_url + 'appointments/doctor/' + doctor_id + '/weekly/' + appointment_date,\n                        data: {},\n                        async: false,\n                        dataType: 'json',\n                        headers: {\n                          \"Authorization\": `Bearer ${utoken}`\n                        },\n                        success: function (res) {\n                          //console.log(res);\n                          $('.table.ocp_doctor_appointments tr.slot_detail').remove();\n                          table_content = '<thead style=\"width:100%\"><tr><th class=\"col-8\">Time Slots</th>';\n                          $.each(date_range, function (keyDate, valDate) {\n                            table_content += '<th class=\"col-8\">' + moment(valDate).format('ddd DD-MM-YYYY') + '</th>';\n                          });\n                          table_content += '</tr></thead><tbody>';\n                          $.each(ocpslots, function (keys, vals) {\n                            //console.log(vals.name);\n                            console.log('ocp appintment call');\n                            table_content += '<tr class=\"slot_detail\">';\n                            table_content += '<td class=\"jjjj\" style=\"width:12.5%\">' + vals.name + '</td>';\n                            $.each(date_range, function (keyDate, valDate) {\n                              var doctorid = doctor_id;\n                              //var day = moment(valDate).day() + 1;\n                              //console.log(valDate);\n                              if (resData[doctorid] != undefined) {\n                                var doctorSchedule = resData[doctorid][moment(valDate).day() + 1];\n                              }\n                              if (resDataAjs[doctorid] != undefined && resDataAjs[doctor_id][moment(valDate).day() + 1] && resDataAjs[doctor_id][moment(valDate).day() + 1].dateFrom != undefined && resDataAjs[doctor_id][moment(valDate).day() + 1] && resDataAjs[doctor_id][moment(valDate).day() + 1].dateTo != undefined && moment(valDate).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid][moment(valDate).day() + 1].dateFrom).format('YYYY-MM-DD') && moment(valDate).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid][moment(valDate).day() + 1].dateTo).format('YYYY-MM-DD')) {\n                                var doctorSchedule = resDataAjs[doctorid][moment(valDate).day() + 1];\n                              }\n                              var check_status = 0;\n                              if (doctorSchedule != undefined && (vals.code == 'bm' && parseInt(doctorSchedule.before_morning) == 1 || vals.code == 'am' && parseInt(doctorSchedule.after_morning) == 1 || vals.code == 'ae' && parseInt(doctorSchedule.after_evening) == 1)) {\n                                // console.log(doctorSchedule.before_morning);\n                                //console.log(doctorSchedule['before_morning']);\n                                if (res.data.length > 0) {\n                                  $.each(res.data, function (keyA, valA) {\n                                    if (doctor_id == valA.doctor_id && vals.code == valA.ocp_slot && valA.appointment_type == 'ocp' && valDate == valA.appointment_date) {\n                                      table_content += '<td class=\"booked col-8\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Appointment Type: ' + valA.appointment_type.toUpperCase() + '\" data-content=\"\">Booked</td>';\n                                      check_status = 1;\n                                    }\n                                  });\n                                  if (check_status == 0) {\n                                    table_content += '<td class=\"available ocp_available_slot col-8\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + valDate + ' ' + vals.code + ':00?' + doctor_id + '\" rel=\"\">Available</td>';\n                                  }\n                                } else {\n                                  table_content += '<td class=\"available ocp_available_slot col-8\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + valDate + ' ' + vals.code + ':00?' + doctor_id + '\" rel=\"\">Available</td>';\n                                }\n                              } else {\n                                //console.log(doctorSchedule.before_morning);\n                                table_content += '<td class=\"not_available col-8\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\" is not available on this time slot.\">N/A</td>';\n                              }\n                            });\n                            table_content += '</tr>';\n                          });\n                          $('table.ocp_doctor_appointments thead').remove();\n                          $('table.ocp_doctor_appointments tbody').remove();\n                          $('table.ocp_doctor_appointments').append(table_content);\n                        }\n                      });\n                    }\n                  });\n                }\n              });\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n\n          /*********************** */\n\n          //$('table.ocp_doctor_appointments').append(table_content);\n          $('#appointment_date').val(moment(date_range[0]).format('MM/DD/YYYY'));\n        } else {\n          $('.table.doctor_appointmentsconsolidated thead').remove();\n          $('.table.doctor_appointmentsconsolidated tbody').remove();\n          $('.table.doctor_appointmentsconsolidated .slot_details').remove();\n          var table_content = '';\n          table_content = '<thead style=\"width:100%\"><tr><th class=\"col-8\">Time Slots</th>';\n          var date_range = [];\n          // alert((moment(appointment_date).add('days', 0).format('YYYY-MM-DD')));\n          for (var i = 0; i < 7; i++) {\n            date_range.push(moment(appointment_date).add('days', i).format('YYYY-MM-DD'));\n          }\n          $.each(date_range, function (keyDate, valDate) {\n            table_content += '<th class=\"col-8\">' + moment(valDate).format('ddd DD-MM-YYYY') + '</th>';\n          });\n          table_content += '</tr></thead>';\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/consolidatedtimings',\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resConsolidate) {\n              var temp_array = [];\n              var current_time = '';\n              var current_time_mod = '';\n              if (moment(resConsolidate.data[0].morningend).format('HH:MM:SS') >= moment(resConsolidate.data[0].eveningstart).format('HH:MM:SS')) {\n                console.log('a');\n                console.log(resConsolidate.data[0].morningstart);\n                var morningstart = resConsolidate.data[0].morningstart.substr(0, 2) * 60;\n                var morningend = resConsolidate.data[0].morningend.substr(0, 2) * 60;\n                var eveningtart = resConsolidate.data[0].eveningtart.substr(0, 2) * 60;\n                var eveningend = resConsolidate.data[0].eveningend.substr(0, 2) * 60;\n                for (var i = morningstart; i <= morningend; i += 10) {\n                  current_time = parseInt(i / 60);\n                  current_time_mod = String('0' + i % 60).slice(-2);\n                  console.log({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '1'\n                  });\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '1'\n                  });\n                  //console.log('morning');\n                }\n                for (var i = eveningtart; i <= eveningend; i += 10) {\n                  current_time = parseInt(i / 60);\n                  current_time_mod = String('0' + i % 60).slice(-2);\n                  console.log({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '2'\n                  });\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '2'\n                  });\n                  //console.log('evening');\n                }\n              } else {\n                console.log('b');\n                for (var i = resConsolidate.data[0].morningstart; i <= resConsolidate.data[0].morningend; i += 10) {\n                  current_time = parseInt(i / 60);\n                  current_time_mod = String('0' + i % 60).slice(-2);\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '1'\n                  });\n                }\n                temp_array.push({\n                  slot: '---'\n                });\n                for (var i = resConsolidate.data[0].eveningstart; i <= resConsolidate.data[0].eveningend; i += 10) {\n                  current_time = parseInt(i / 60);\n                  current_time_mod = String('0' + i % 60).slice(-2);\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '2'\n                  });\n                }\n              }\n              //console.log(temp_array);\n              $.each(temp_array, function (keyS, valS) {\n                table_content += '<tr class=\"slot_details\">';\n                table_content += '<td class=\"col-8 hh\">' + valS.slot + '</td>';\n                var full_start_time = [];\n                var full_end_time = [];\n                $.each(date_range, function (keyDate, valDate) {\n                  var classslot = valS.slot.replace(/:/g, '_');\n                  table_content += '<td class=\"not_available col-8 ' + moment(valDate).format('YYYY-MM-DD') + '' + classslot + '\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor is not available on this time slot.\">N/A</td>';\n                });\n                table_content += '</tr>';\n              });\n              $('table.doctor_appointmentsconsolidated').append(table_content);\n              $.each(branches, function (keyB, valB) {\n                var date_range = [];\n                for (var i = 0; i < 7; i++) {\n                  date_range.push(moment(appointment_date).add('days', i).format('YYYY-MM-DD'));\n                }\n                var appointments = '';\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.api_url + 'appointments/scheduleshift/' + doctor_id + '/' + valB.id,\n                  data: {},\n                  dataType: 'json',\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resData) {\n                    var doctor_schedule = resData.data;\n                    $.ajax({\n                      method: 'GET',\n                      url: _environment.default.APP.api_url + 'appointments/scheduleadjustmentshift/' + doctor_id + '/' + valB.id + '/' + appointment_date,\n                      data: {},\n                      dataType: 'json',\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (resDataAjs) {\n                        var doctor_scheduleAjs = resDataAjs;\n                        var totalAjsDates = 1;\n                        if (resDataAjs.length > 0) {\n                          if (resDataAjs.length / 7 > 1) {\n                            totalAjsDates = resDataAjs.length / 7;\n                          }\n                        }\n                        $.ajax({\n                          method: 'GET',\n                          url: _environment.default.APP.api_url + 'appointments/doctor/' + doctor_id + '/weekly/' + appointment_date,\n                          data: {},\n                          dataType: 'json',\n                          headers: {\n                            \"Authorization\": `Bearer ${utoken}`\n                          },\n                          success: function (res) {\n                            //console.log(res);//Appointments\n                            $('#branch_id').val('');\n                            $('#date_time_doctor').val('');\n                            $.each(temp_array, function (keyS, valS) {\n                              var full_start_time = [];\n                              var full_end_time = [];\n                              $.each(date_range, function (keyDate, valDate) {\n                                if (resDataAjs[valB.id] != undefined && resDataAjs[valB.id][valS.shift] != undefined && moment(valDate).format('YYYY-MM-DD') >= moment(resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateFrom).format('YYYY-MM-DD') && moment(valDate).format('YYYY-MM-DD') <= moment(resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateTo).format('YYYY-MM-DD')) {\n                                  full_start_time = resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].StartTime.split(':');\n                                  full_end_time = resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].EndTime.split(':');\n                                } else {\n                                  if (resData[valB.id] != undefined && resData[valB.id][valS.shift] != undefined && resData[valB.id][valS.shift][moment(valDate).day() - 1] != undefined) {\n                                    full_start_time = resData[valB.id][valS.shift][moment(valDate).day() + 1].StartTime.split(':');\n                                    full_end_time = resData[valB.id][valS.shift][moment(valDate).day() + 1].EndTime.split(':');\n                                  }\n                                }\n                                var check_status = 0;\n                                var start_time_minute = full_start_time[0] * 60 + full_start_time[1];\n                                var end_time_minute = full_end_time[0] * 60 + full_end_time[1];\n                                var full_time_slot = valS.slot.split(':');\n                                var time_slot_minute = full_time_slot[0] * 60 + full_time_slot[1];\n                                if (parseInt(time_slot_minute) >= parseInt(start_time_minute) && parseInt(time_slot_minute) <= parseInt(end_time_minute) || valS.slot == '---') {\n                                  var classslot = valS.slot.replace(/:/g, '_');\n                                  if (!$('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).hasClass('booked')) {\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available').removeClass('not_available');\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available_slot');\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text(valB.title);\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Date: ' + moment(valDate).format('DD-MM-YYYY') + ',\\n Slot: ' + valS.slot + ',\\n Branch:' + valB.title);\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('data-content', moment(valDate).format('YYYY-MM-DD') + ' ' + valS.slot + ':00?' + doctor_id);\n                                    $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('rel', valB.id);\n                                  }\n                                }\n                                if (res.data.length > 0) {\n                                  $.each(res.data, function (keyA, valA) {\n                                    if (doctor_id == valA.doctor_id && valS.slot == valA.appointment_time && valB.id == valA.branch_id && valDate == valA.appointment_date) {\n                                      //table_content += '<td class=\"booked col-8\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: '+valA.OldRegistrationNo+', \\n Appointment Id: '+ valA.id +',\\n Patient Name: '+valA.first_name+' '+valA.last_name+',\\n Doctor: '+valA.doctor_name+'\" data-content=\"\">Booked</td>';\n                                      var classslot = valS.slot.replace(/:/g, '_');\n                                      $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('booked').removeClass('not_available');\n                                      $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text('Booked');\n                                      $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Branch: ' + valB.title + ',\\n Appointment Type: ' + valA.appointment_type.toUpperCase());\n                                      $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).data('content', '');\n                                      check_status = 1;\n                                    }\n                                  });\n                                }\n                              });\n                            });\n                          },\n                          error: function (error, x, y) {\n                            _this.controller.set('appointmentsD', y);\n                          }\n                        });\n                      },\n                      error: function (error, x, y) {\n                        _this.controller.set('appointmentsD', '');\n                      }\n                    });\n                  },\n                  error: function (error, x, y) {\n                    _this.controller.set('appointmentsD', '');\n                  },\n                  complete: function () {\n                    setTimeout(function () {\n                      $('#loading').removeClass('in');\n                      $('#loading').css('display', 'none');\n                      $('.modal-backdrop').remove();\n                      $('body').removeClass('modal-open');\n                    }, 500);\n                  }\n                });\n\n                /* END AJAX call */\n                //branches loop end  here\n              });\n\n              //setTimeout(function(){\n\n              $('#appointment_date').val(moment(date_range[0]).format('MM/DD/YYYY'));\n              //},5000);\n            }\n          });\n        }\n        /* END Each */\n      },\n      nextDates(branches, slots) {\n        var appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        $('#appointment_date').val(moment(appointment_date).add('days', 7).format('MM/DD/YYYY'));\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        this.send('doctorAppointments', doctor_id, branches, slots);\n      },\n      prevDates(branches, slots) {\n        var appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        $('#appointment_date').val(moment(appointment_date).subtract('days', 7).format('MM/DD/YYYY'));\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        this.send('doctorAppointments', doctor_id, branches, slots);\n      },\n      nextAvailableDates(branches, slots) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var is_th = false;\n        var appointment_date = '';\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        if ($('#appointment_date').val() != '') {\n          appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        } else {\n          var fullDate = new Date();\n          var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n          var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n          appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n        }\n        var temp_array = [];\n        $.each(branches, function (keyB, valB) {\n          var date_range = [];\n          // alert((moment(appointment_date).add('days', 0).format('YYYY-MM-DD')));\n          // alert(date_range);\n          var appointments = '';\n          if ($('#count_available').val() > 0) {\n            var count_days = $('#count_available').val();\n          } else {\n            var count_days = 1;\n          }\n          temp_array.push(valB);\n          // alert(appointment_date);\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/doctor/' + doctor_id + '/nextavailable/' + appointment_date + '/' + valB.id + '/' + count_days,\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.data.length > 0) {\n                // console.log(res.data[0].available_date);\n                // alert(res.data[0].available_date);\n                $('#appointment_date').val(moment(res.data[0].available_date).format('YYYY-MM-DD'));\n                $('#appointment_date').val(moment(appointment_date).add('days', 7).format('MM/DD/YYYY'));\n                _this.send('doctorAppointments', doctor_id, temp_array, slots);\n                //console.log(valB);\n              }\n            },\n            error: function (error, x, y) {\n              // console.log(ENV.APP.api_url+\"appointments/doctor/\"+doctor_id+\"/nextavailable/\"+appointment_date+\"/\"+valB.id);\n              // alert(y);\n            }\n          });\n          /* END AJAX call */\n        });\n        //console.log(temp_array);\n        /* END Each */\n      }\n    }\n  });\n});","define(\"clinic-dev/components/ocp-appointment-slots\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/ocp-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/ocp-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/ocp-empty-schedule-message\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class OcpEmptyScheduleMessageComponent extends _component.default {}\n  _exports.default = OcpEmptyScheduleMessageComponent;\n});","define(\"clinic-dev/components/ocp-patient-orders-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      var permission = this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/components/ocp-patients-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      reSchedulePatient(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('urgentModal', appointment_id, urgent_status, urgent_note);\n      },\n      markNotUrgentPatient(id) {\n        this.sendAction('notUrgentPatient', id);\n      },\n      patientAbsent(id, absent) {\n        this.sendAction('markPatientAbsent', id, absent);\n      },\n      cancelPatient(id) {\n        this.sendAction('cancelPatientId', id);\n      },\n      drreschedulepatient(id) {\n        this.sendAction('drreschedulepatient', id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/ocp-schedule-card\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class OcpScheduleCardComponent extends _component.default {}\n  _exports.default = OcpScheduleCardComponent;\n});","define(\"clinic-dev/components/ocp-schedule-form\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class OcpScheduleFormComponent extends _component.default {}\n  _exports.default = OcpScheduleFormComponent;\n});","define(\"clinic-dev/components/online-payment-details-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['online-payment-details-popup'],\n    showBatchDetails: false,\n    currentBatch: null,\n    currentRefunds: [],\n    cancellationSuccessMessage: '',\n    actions: {\n      openRefundPopup() {\n        let paymentDetails = this.get('online_payment_details') || [];\n        if (paymentDetails.length > 0) {\n          let payment = paymentDetails[0];\n          if (this.get('onRefund')) {\n            this.get('onRefund')(payment);\n          }\n        }\n      },\n      dismissSuccessMessage() {\n        if (this.get('onDismissSuccessMessage')) {\n          this.get('onDismissSuccessMessage')();\n        }\n      },\n      closeBatchDetails() {\n        this.set('showBatchDetails', false);\n        this.set('currentBatch', null);\n        this.set('currentRefunds', []);\n        this.set('cancellationSuccessMessage', '');\n        if (this.get('onCloseBatchDetails')) {\n          this.get('onCloseBatchDetails')();\n        }\n      },\n      refreshBatchDetails() {\n        if (this.get('onRefreshBatchDetails')) {\n          this.get('onRefreshBatchDetails')();\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/otp-verification\", [\"exports\", \"@glimmer/component\", \"clinic-dev/config/environment\"], function (_exports, _component, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let OtpVerificationComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('flash-messages'), _dec4 = Ember.inject.service('userPermissionsService'), _dec5 = Ember.inject.service('topNavService'), _dec6 = Ember.inject.service('has-permissions'), _dec7 = Ember.inject.controller('application'), _dec8 = Ember.inject.controller('dashboard'), _dec9 = Ember.inject.controller('icpattend'), _dec10 = Ember.inject.controller('doctor-dashboard'), _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _class = class OtpVerificationComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // Services\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"flashes\", _descriptor3, this);\n      _initializerDefineProperty(this, \"permissions\", _descriptor4, this);\n      _initializerDefineProperty(this, \"topnav\", _descriptor5, this);\n      _initializerDefineProperty(this, \"route_permission\", _descriptor6, this);\n      // Controllers\n      _initializerDefineProperty(this, \"applicationController\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dashboard\", _descriptor8, this);\n      _initializerDefineProperty(this, \"icpattend\", _descriptor9, this);\n      _initializerDefineProperty(this, \"doctordashboard\", _descriptor10, this);\n      _initializerDefineProperty(this, \"otp\", _descriptor11, this);\n      _initializerDefineProperty(this, \"error\", _descriptor12, this);\n      _initializerDefineProperty(this, \"mfaEnabled\", _descriptor13, this);\n      _initializerDefineProperty(this, \"user_type\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isCountdownActive\", _descriptor15, this);\n      _initializerDefineProperty(this, \"countdown\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor17, this);\n      this.userId = this.getQueryParam('user_id');\n      this.mfaEnabled = this.getQueryParam('mfa_enabled') === 'true';\n    }\n    getQueryParam(param) {\n      const urlParams = new URLSearchParams(window.location.search);\n      return urlParams.get(param);\n    }\n    goToMfaSetup() {\n      this.router.transitionTo('mfa-setup', {\n        queryParams: {\n          user_id: this.userId,\n          mfa_enabled: this.mfaEnabled\n        }\n      });\n    }\n    focusInput(element) {\n      element.focus(); // autofocus when component renders\n    }\n    handleEnterKey(event) {\n      if (event.key === 'Enter') {\n        event.preventDefault();\n        this.verifyOtp(); // trigger your existing OTP verify action\n      }\n    }\n    handleInput(event) {\n      this.otp = event.target.value.replace(/\\D/g, ''); // allow only digits\n      if (this.otp.length === 6) {\n        this.verifyOtp(); // auto-submit when 6 digits typed\n      }\n    }\n    async verifyOtp() {\n      if (this.isCountdownActive || this.isLoading) return; // Prevent submit during countdown or loading\n      const location_id = localStorage.getItem('location_id');\n      const shift_id = localStorage.getItem('shift_id');\n      const username = localStorage.getItem('username');\n      let branchShiftKey = `${location_id}_${shift_id}`;\n      if (!this.otp || this.otp.trim() === '') {\n        this.setError('Please enter 6 digit MFA code.');\n        return;\n      }\n      this.isLoading = true;\n      try {\n        const response = await fetch(`${_environment.default.APP.lumen_api_url}users/enable-2fa`, {\n          method: 'POST',\n          body: JSON.stringify({\n            otp: this.otp,\n            user_id: this.userId,\n            branchShiftKey: branchShiftKey\n          })\n        });\n        const res = await response.json();\n\n        // Case 1: OTP already used\n        if (res.validate === 'otpused') {\n          this.startCountdown(res.remaining);\n          return;\n        }\n\n        // Case 2: OTP expired\n        if (res.validate === 'otpexpired') {\n          this.setError(res.message || 'This OTP has expired. Please generate a new OTP from your Google Authenticator app.');\n          return; // stop further processing\n        }\n\n        // Case 3: Invalid OTP\n        if (res.validate === 'invalid') {\n          this.setError(res.message || 'Invalid or Expired OTP. Make sure your Google Authenticator app shows the latest 6-digit code.');\n          return;\n        }\n\n        // MFA setup required\n        if (res.validate === 'setup_required') {\n          this.setError(res.message || 'You must first enable MFA.');\n          return;\n        }\n\n        // Success\n        if (response.ok && res.validate === true && res.token) {\n          this.error = null; // Clear any previous error\n\n          // MFA first time success message\n          if (res.mfa_first_time) {\n            this.flashes.success('MFA enabled successfully!');\n          } else {\n            this.flashes.success('Login successful!');\n          }\n          if (!location_id || !shift_id || !username) {\n            this.setError('Session expired or missing login details.');\n            return;\n          }\n\n          // Start session\n          this.session.start(res.token, location_id, username, res.user_id, res.user_type, res.name, res.label, shift_id, res.user_permission, res.role_route, res.printed_by, res.warningDuration, res.idleTimeout);\n          // Set controller state\n          const c = this.applicationController;\n          c.set('isLogin', true);\n          c.set('loginUser', username);\n          const branch_detail = location_id.split('-');\n          const branchName = branch_detail[1];\n          c.set('branchName', branchName);\n          c.set('shiftDetail', shift_id);\n          c.set('pDetails', res.user_permission);\n          c.set('role_route_p', res.role_route);\n\n          // Redirect based on user type\n          if (res.user_type === 2) {\n            c.set('permission_arr', res.user_permission);\n            this.router.transitionTo('doctor-dashboard.list');\n            this.doctordashboard.getClinicPatientsIncomplete(res.user_id, shift_id, branch_detail[0], 0);\n            this.doctordashboard.getTabsList(res.user_id, branch_detail[0], shift_id);\n          } else {\n            this.router.transitionTo('dashboard');\n            this.dashboard.getTabsList(branch_detail[0], shift_id);\n          }\n\n          // Optional: clear stored items\n          localStorage.removeItem('username');\n          localStorage.removeItem('location_id');\n          localStorage.removeItem('shift_id');\n          localStorage.removeItem('type');\n        } else {\n          this.setError(res.message || 'Invalid 6 digit MFA code. Please try again.');\n        }\n      } catch (err) {\n        console.error('Verification failed:', err);\n        this.setError('Something went wrong during verification.');\n      } finally {\n        this.isLoading = false;\n      }\n    }\n\n    // Countdown handler\n    startCountdown(seconds) {\n      this.isCountdownActive = true;\n      this.countdown = seconds;\n      this.error = `This OTP has already been used. Please wait ${this.countdown} seconds to generate a new OTP.`;\n      let interval = setInterval(() => {\n        if (this.countdown <= 1) {\n          clearInterval(interval);\n          this.isCountdownActive = false;\n          this.error = 'You can now generate a new OTP in Google Authenticator.';\n        } else {\n          this.countdown -= 1;\n          this.error = `This OTP has already been used. Please wait ${this.countdown} seconds to generate a new OTP.`;\n        }\n      }, 1000);\n    }\n    setError(message, duration = 5000) {\n      this.error = message;\n\n      // Clear error after duration (default 5s)\n      setTimeout(() => {\n        this.error = null;\n      }, duration);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"flashes\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"permissions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"topnav\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"route_permission\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"applicationController\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dashboard\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"icpattend\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"doctordashboard\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"otp\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"error\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"mfaEnabled\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"user_type\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return localStorage.getItem('type');\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isCountdownActive\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"countdown\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"goToMfaSetup\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"goToMfaSetup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleEnterKey\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"handleEnterKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"verifyOtp\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"verifyOtp\"), _class.prototype), _class);\n});","define(\"clinic-dev/components/pagination-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {}\n  });\n});","define(\"clinic-dev/components/patient-information-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      goBack() {\n        history.go(-1);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/patient-information\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      changeAppointmentType: function (appointment_type) {\n        var _this = this;\n        _this.set('appointment_type', appointment_type);\n      }\n      // urgentPatient(appointment_id,urgent_status,urgent_note){\n      //     console.log(appointment_id+'a');\n      //     console.log(urgent_status+'b');\n      //     console.log(urgent_note+'c');\n      //     this.sendAction('urgentModal',appointment_id,urgent_status,urgent_note);\n      // },\n      // saveFreeNote:function () {\n      //     var _this = this;\n      //     var login_user_id = _this.get('session').getLoggedInUserId();\n      //     var free_note =$('textarea[name=\"patientFreeNote\"]').val();\n      //     var appointment_id = $(\"input[type=hidden][name=appointment_id]\").val();\n      //     var free_patient_id = $(\"input[type=hidden][name=free_patient_id]\").val();\n      //     $.ajax({\n      //         url: ENV.APP.lumen_api_url + \"icpattend/updateFreeNote\",\n      //         method: \"POST\",\n      //         data: { user_id: login_user_id, free_note: free_note, appointment_id:appointment_id,patient_id:free_patient_id},\n      //         success: function (res) {\n      //             if(res.error == false && res.actions==\"update\"){\n      //                 $(\"#free_notemessage\").html('<div class=\"alert alert-success\">'+res.message+'</div>');\n      //                 $(\"#free_notemessage .alert\").fadeToggle(10000);\n      //                 _this.controllerFor('icpattend').send('getPrescribeDetail', res.appointment_id);\n      //             }else if(res.error == true && res.actions==\"no_update\"){\n      //                 $(\"#free_notemessage\").html('<div class=\"alert alert-success\">'+res.message+'</div>');\n      //                 $(\"#free_notemessage .alert\").fadeToggle(10000);\n      //                 _this.controllerFor('icpattend').send('getPrescribeDetail', res.appointment_id);\n      //             }\n      //         },\n      //         complete: function(){\n\n      //         }\n      //     });\n      // }\n    }\n  });\n});","define(\"clinic-dev/components/patient-registration\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    p: 1,\n    date_time_doctor: '',\n    state: '',\n    other_state: '',\n    other_city: '',\n    country: '',\n    phone_1: '',\n    phone_2: '',\n    date_of_birth: '',\n    age_years: '',\n    age_months: '',\n    age_days: '',\n    first_name: '',\n    middle_name: '',\n    last_name: '',\n    address_1: '',\n    address_2: '',\n    pin: '',\n    mode: '',\n    note: '',\n    selected_city: null,\n    loginCheck: true,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    stats: null,\n    priority: 'normal',\n    q: '',\n    page: 'Register',\n    title_prefix: '',\n    editPage: false,\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    actions: {\n      enableForm() {\n        $('select:disabled').prop('disabled', false);\n        $('input,textarea').prop('readonly', false);\n      },\n      setCategory() {\n        var category = $('select[name=category]').val();\n        this.set('category', category);\n      },\n      setTitlePrefix() {\n        var title_prefix = $('select[name=title_prefix]').val();\n        this.set('title_prefix', title_prefix);\n      },\n      setPriority() {\n        var priority = $('select[name=priority]').val();\n        this.set('priority', priority);\n      },\n      setBloodType() {\n        var blood_type = $('select[name=blood_type]').val();\n        this.set('blood_type', blood_type);\n      },\n      search_patient() {\n        var _this = this;\n        var utoken = this.session.getToken();\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          data: {\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.controllerFor('patient').set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.transitionTo({\n          queryParams: {\n            sort: sort,\n            order: order,\n            p: page,\n            q: q\n          }\n        });\n      },\n      updateLocationParams() {\n        var city_id = $('select[name=city]').val();\n        var selected_city = $.grep(this.cities, function (v, i) {\n          return v.id == city_id;\n        });\n        this.set('selected_city', selected_city.id);\n        this.set('state', selected_city[0].state);\n        this.set('country', selected_city[0].country);\n      },\n      //This below function is used for select value of Discount category for patient, Rahul Khan\n      updateDiscountCategoty() {\n        var discount_category_id_id = $('select[name=discount_category]').val();\n        this.set('selected_discount_category', discount_category_id_id);\n      },\n      updateCountry() {\n        var country_id = $('select[name=country]').val();\n        this.set('selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            console.log('Update function caklled');\n            _this.set('pstates', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateState() {\n        var state_id = $('select[name=state]').val();\n        this.set('selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            // _this.set('patient').set('cities', res.data);\n            _this.set('cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#other_state').val('').addClass('hidden');\n        } else {\n          $('#other_state').removeClass('hidden');\n        }\n      },\n      updateCity() {\n        /*In this below line of we have to pass the actula value of select option of city, Because we managing this at the backend side, and backend is same form previuos version, Rahul Khan. 04 July 2019  */\n\n        var city_id = $('select[name=city]').val();\n        this.set('selected_city', city_id);\n        if (city_id != 'other') {\n          $('#other_city').val('').addClass('hidden');\n        } else {\n          $('#other_city').removeClass('hidden');\n        }\n      },\n      async submit(page, reloadDashboard) {\n        // console.log(this.get('advance_payment_status'));\n        // return false;\n        var _this = this;\n        let token = _this.session.getToken();\n        var utoken = _this.session.getLoggedInUserId();\n        var shift_id = _this.session.getLoggedInUserShift();\n        var parts = ($('#date_time_doctor').val() || '').split('?');\n        var shift_detail = parts[2] || shift_id;\n        if ($.trim($('#appointment_type').val()) == '') {\n          alert('Please select appointment type');\n          $('#appointment_type').focus();\n          return false;\n        } else if ($('.appointment_doctor_id').val() == '') {\n          alert('Please select doctor or related slot.');\n          return false;\n        } else if ($.trim($('#date_time_doctor').val()) == '' && $('#appointment_type').val() == 'icp' || $.trim($('#date_time_ocp_doctor').val()) == '' && $('#appointment_type').val() == 'ocp') {\n          alert('Please select a time slot.');\n          return false;\n        }\n        //console.log($.trim($('#date_time_doctor').val()));\n        var first_name = $('.first_name').val();\n        //console.log(first_name);\n        var middle_name = $('.middle_name').val();\n        var last_name = $('.last_name').val();\n        var OldRegistrationNo = $('.OldRegistrationNo').val();\n        //console.log(OldRegistrationNo);\n        var appointment_doctor_id = $('.appointment_doctor_id').val();\n        var patient_id = $.trim($('#patient_id').val());\n        if (patient_id == undefined || patient_id == '') {\n          //Nishant 1 Feb2023: This is a new patient registration so we setup the data to post\n          $('.same_as_shipping').val(1); //Always set to 1 here for new patient registration in book appointment\n\n          var patient_data = {\n            branch_id: branch_id,\n            first_name: this.first_name,\n            middle_name: this.middle_name,\n            last_name: this.last_name,\n            gender: this.gender,\n            date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n            age_years: this.age_years,\n            age_months: this.age_months,\n            age_days: this.age_days,\n            phone_1: this.phone_1,\n            phone_2: this.phone_2,\n            email_id: this.email_id,\n            address_1: this.address_1,\n            address_2: this.address_2,\n            title_prefix: this.title_prefix,\n            other_state: this.other_state,\n            other_city: this.other_city,\n            zip: this.zip,\n            mode: this.mode,\n            note: this.note,\n            category: this.category,\n            discount_category: this.selected_discount_category,\n            priority: this.priority,\n            blood_type: this.blood_type,\n            city: this.selected_city,\n            // city:$(\"select[name=city]\").val(),\n            state: this.selected_state,\n            country: this.selected_country,\n            uid: utoken,\n            shift_id: this.user_shift_id,\n            sameToShip: $('.same_as_shipping').val()\n          };\n        }\n        if ($('input[name=\"advance_payment_status\"]:checked').length > 0) {\n          this.set('advance_payment_status', 1);\n          if ($('.advance_payment_obj').val() == '') {\n            _this.sendAction('getDoctorCharges');\n            event.preventDefault();\n            if (patient_id != undefined && patient_id != '') {\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id;\n              await $.ajax({\n                url: base_url,\n                method: 'GET',\n                headers: {\n                  \"Authorization\": `Bearer ${token}`\n                },\n                beforeSend: function () {\n                  _this.recalculateAmount.popupLoaderOpen();\n                },\n                success: function (res) {\n                  if (res.data != null) {\n                    var previous_balance_mode = Math.sign(res.data.due_amount);\n                    if (previous_balance_mode == 1) {\n                      var previous_balance_status = 'due';\n                      var mode_value = '0';\n                      var total_balance_status = 'Due';\n                    } else if (previous_balance_mode == -1) {\n                      var previous_balance_status = 'adv';\n                      var mode_value = '1';\n                      var total_balance_status = 'Advance';\n                    } else if (previous_balance_mode == 0) {\n                      var previous_balance_status = 'due';\n                      var mode_value = '0';\n                      var total_balance_status = 'Due';\n                    }\n                    _this.sendAction('setMedicineTotalandPendingValue', {\n                      OldRegistrationNo: OldRegistrationNo,\n                      FirstName: first_name,\n                      MiddleName: middle_name,\n                      LastName: last_name,\n                      VisitDue: Math.abs(parseFloat(res.data.due_amount).toFixed(2)),\n                      PreviousBalance: Math.abs(parseFloat(res.data.due_amount).toFixed(2)),\n                      ReceivedAmount: 0,\n                      TotalDue: 0,\n                      ModeValue: mode_value,\n                      patientId: patient_id,\n                      PrintValue: 0,\n                      ShippingResult: 0,\n                      PageName: 'appointment',\n                      MedicinePrintCode: 'MDN',\n                      ConsultancyPrintCode: 'SDC',\n                      ConsultancyFee: 0,\n                      TotalBalanceStatus: total_balance_status,\n                      VisitingId: 0,\n                      BillingId: 0,\n                      PrescribeDoctor: appointment_doctor_id,\n                      PreviousBalanceStatus: previous_balance_status,\n                      paylaterAmount: res.data.due_amount,\n                      currentPGAmount: 0,\n                      PreviousPGAmount: 0\n                    });\n                  } else {\n                    _this.sendAction('setMedicineTotalandPendingValue', {\n                      OldRegistrationNo: OldRegistrationNo,\n                      FirstName: first_name,\n                      MiddleName: middle_name,\n                      LastName: last_name,\n                      VisitDue: 0,\n                      PreviousBalance: 0,\n                      ReceivedAmount: 0,\n                      TotalDue: 0,\n                      ModeValue: 0,\n                      patientId: patient_id,\n                      PrintValue: 0,\n                      ShippingResult: 0,\n                      PageName: 'appointment',\n                      MedicinePrintCode: 'MDN',\n                      ConsultancyPrintCode: 'SDC',\n                      ConsultancyFee: 0,\n                      TotalBalanceStatus: 'Due',\n                      VisitingId: 0,\n                      BillingId: 0,\n                      PrescribeDoctor: appointment_doctor_id,\n                      PreviousBalanceStatus: 'due',\n                      paylaterAmount: 0,\n                      currentPGAmount: 0,\n                      PreviousPGAmount: 0\n                    });\n                  }\n                },\n                complete: function () {\n                  _this.recalculateAmount.popupLoaderClose();\n                  //Nishant 2-Feb-2023: No need for opening popup here.\n                  // _this.recalculateAmount.showPopupWithPassingDynamicPopupId(\n                  //   'cashpopup'\n                  // );\n                }\n              });\n            } else {\n              ////Nishant 1-Feb-2023: This would be a new patient registration then.\n              //validate patient info before opening the popup, else return\n              if (!this.validatePatient(patient_data)) {\n                return false;\n              }\n              _this.sendAction('setMedicineTotalandPendingValue', {\n                OldRegistrationNo: OldRegistrationNo,\n                FirstName: first_name,\n                MiddleName: middle_name,\n                LastName: last_name,\n                VisitDue: 0,\n                PreviousBalance: 0,\n                ReceivedAmount: 0,\n                TotalDue: 0,\n                ModeValue: 0,\n                patientId: patient_id,\n                PrintValue: 0,\n                ShippingResult: 0,\n                PageName: 'appointment',\n                MedicinePrintCode: 'MDN',\n                ConsultancyPrintCode: 'SDC',\n                ConsultancyFee: 0,\n                TotalBalanceStatus: 'Due',\n                VisitingId: 0,\n                BillingId: 0,\n                PrescribeDoctor: appointment_doctor_id,\n                PreviousBalanceStatus: 'due',\n                paylaterAmount: 0,\n                currentPGAmount: 0,\n                PreviousPGAmount: 0\n              });\n            }\n            //Nishant 2-Feb-2023: we open the payment popup now\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n            return false;\n          } else {\n            //Advobject is set this means we clicked save on payment popup\n            if (patient_id == undefined || patient_id == '') {\n              /*Nishant 1-Feb-2023: This is a new patient registration with advance payment\n              //so we first need to register patient and get patient_id to which advance will be tagged*/\n\n              //NEED TO AWAIT RETURING OF AJAX CALL TO GET PATIENT ID.\n              await this.registerPatient(patient_data, function retval(retdata) {\n                if (retdata != 'error') {\n                  //We have regsitered the patient, now we get the patient ID and use it for advance payment\n                  patient_id = retdata;\n                  $('#patient_id').val(patient_id);\n                  console.log('Patient ID register: ' + patient_id);\n                } else {\n                  console.log('register error');\n                  return false;\n                }\n              });\n              //if we still cannot get patient ID then exit the function\n              if (patient_id == undefined || patient_id == '') return false;\n            }\n          }\n        } else {\n          this.set('advance_payment_status', 0);\n        }\n        this.set('advance_payment_obj', $('.advance_payment_obj').val());\n        this.set('appointment_type', $('#appointment_type').val());\n        if ($.trim($('#branch_id').val()) == '') {\n          var branch_detail = this.session.getLocation().split('-');\n          var branch_id = branch_detail[0];\n          $.trim($('#branch_id').val(branch_id));\n        }\n        this.set('advance_payment_urgency', $('.advance_payment_urgency').val());\n        this.set('date_time_doctor', $('#date_time_doctor').val());\n        // for select new appointment date\n        var demoDate = $('#date_time_doctor').val().split(' ');\n        //console.log(demoDate[0]);\n        //console.log(demoDate[1]);\n        var now = moment();\n        var time = moment(now).format('h:mm:ss');\n        var newDate = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        //var finalDate = newDate + ' ' + demoDate[1];\n        if (demoDate[0] == '' && demoDate[1] == undefined) {\n          var finalDate = newDate + ' ' + time;\n        } else {\n          var finalDate = this.date_time_doctor;\n        }\n        this.set('date_time_ocp_doctor', $('#date_time_ocp_doctor').val());\n        this.set('branch_id', $('#branch_id').val());\n        this.set('appointment_doctor_id', $('.appointment_doctor_id').val());\n        // for shipping address value set\n        this.set('sameToShip', $('.same_as_shipping').val());\n        this.set('shipingAddress_1', $('.shipping_full_address_per').val());\n        this.set('shipingAddress_2', $('.shipping_full_address_res').val());\n        this.set('shippingCity', $('.shipping_city_id').val());\n        this.set('shippingState', $('.shipping_state_id').val());\n        this.set('shipingCountry', $('.shipping_country_id').val());\n        this.set('shippingZip', $('.shipping_pin_code').val());\n        this.set('shippingMob', $('.shipping_mobile').val());\n        this.set('shipping_other_state', $('.shipping_state_name').val());\n        this.set('shipping_other_city', $('.shipping_city_name').val());\n        var data = {\n          advance_required: this.advance_payment_status,\n          advance_urgency: this.advance_payment_urgency,\n          advance_payment_obj: this.advance_payment_obj,\n          date_time_doctor: finalDate,\n          // this.get('date_time_doctor')\n          date_time_ocp_doctor: this.date_time_ocp_doctor,\n          appointment_doctor_id: this.appointment_doctor_id,\n          branch_id: this.branch_id,\n          appointment_type: this.appointment_type,\n          ocp_visit_address: $('#ocp_visit_address').val(),\n          user_id: this.session.getLoggedInUserId(),\n          first_name: this.first_name,\n          middle_name: this.middle_name,\n          last_name: this.last_name,\n          gender: this.gender,\n          // date_of_birth:moment(this.get('date_of_birth')).format('YYYY-MM-DD'),In this below line we get value of date direct from element attributr , Rahul Khan\n          date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n          age_years: this.age_years,\n          age_months: this.age_months,\n          age_days: this.age_days,\n          phone_1: this.phone_1,\n          phone_2: this.phone_2,\n          email_id: this.email_id,\n          address_1: this.address_1,\n          address_2: this.address_2,\n          title_prefix: this.title_prefix,\n          other_state: this.other_state,\n          other_city: this.other_city,\n          // city:this.get('selected_city'),\n          // city:$(\"select[name=city]\").val(),\n          // state:this.get('state'),\n          // country:this.get('country'),\n          zip: this.zip,\n          mode: this.mode,\n          note: this.note,\n          category: this.category,\n          discount_category: this.selected_discount_category,\n          priority: this.priority,\n          blood_type: this.blood_type,\n          city: this.selected_city,\n          // city:$(\"select[name=city]\").val(),\n          state: this.selected_state,\n          country: this.selected_country,\n          uid: utoken,\n          shift_id: shift_detail,\n          sameToShip: this.sameToShip,\n          shipingAddress_1: this.shipingAddress_1,\n          shipingAddress_2: this.shipingAddress_2,\n          shippingCity: this.shippingCity,\n          shippingState: this.shippingState,\n          shipingCountry: this.shipingCountry,\n          shippingZip: this.shippingZip,\n          shippingMob: this.shippingMob,\n          shipping_other_state: this.shipping_other_state,\n          shipping_other_city: this.shipping_other_city\n        };\n        if ($.trim($('#patient_id').val()) != '') {\n          page = 'Edit';\n          data = $.extend(true, data, {\n            patient_id: $.trim($('#patient_id').val())\n          });\n        }\n\n        /* if($.trim($('#shift_id').val()) != ''){\n        data = $.extend(true, data, {shift_id:this.get('shift_id')});\n        }else{\n        data = $.extend(true, data, {shift_id:''});\n        } */\n\n        //\turgent_status:this.get('urgent_status'),\n        //urgenttagnote:this.get('urgenttagnote'),\n        //ocp_visit_address:$(\"#ocp_visit_address\").val(),\n\n        var is_rescheduled = '';\n        if ($.trim($('#is_rescheduled').val()) == '1') {\n          is_rescheduled = '/reschedule';\n          data = $.extend(true, data, {\n            appointmentId: this.appointmentId\n          });\n        } else {\n          data = $.extend(true, data, {\n            appointmentId: ''\n          });\n        }\n        var urgent_status = '';\n        if ($.trim($('#urgent_status:checked').val()) == '1') {\n          // = '/reschedule';\n          data = $.extend(true, data, {\n            urgent_status: $('#urgent_status').val()\n          });\n          data = $.extend(true, data, {\n            urgenttagnote: $('#urgenttagnote').val()\n          });\n        } else {\n          data = $.extend(true, data, {\n            urgent_status: 0\n          });\n          data = $.extend(true, data, {\n            urgenttagnote: null\n          });\n        }\n\n        //console.log(data);\n        //return false;\n        //This below function added is used for register new the patient profile from bookappoint page\n        if (page == 'Register') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'patients/register/bookappointment' + is_rescheduled,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            beforeSend: function () {\n              var regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if (data.urgent_status == 1) {\n                if (data.urgenttagnote == null || data.urgenttagnote == '') {\n                  alert('Please enter urgent reason');\n                  $('#urgenttagnote').focus();\n                  return false;\n                }\n              } else if (data.appointment_type == '') {\n                alert('Please select appointment type');\n                $('#appointment_type').focus();\n                return false;\n              } else if (data.appointment_type == 'ocp' && data.ocp_visit_address == '') {\n                alert('Please enter OCP visit address');\n                $('#ocp_visit_address').focus();\n                return false;\n              } else if ($.trim(data.discount_category) == '' || data.discount_category == undefined) {\n                alert('Please select the discount category.');\n                $('select[name=discount_category]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false; //// else if ($.trim(data.phone_1) == \"\" ||  data.phone_1.match(\"^[0-9]+$\")==false)\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false; //// else if (data.phone_2.match(\"^[0-9]+$\")==false)\n              } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              }\n\n              // else if ($.trim(data.email_id) == \"\") {\n              //   alert('Please enter email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n\n              // else if(!regex.test(data.email_id)){\n              //   alert('Please enter valid email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false; ////else if ($.trim(data.zip) == \"\" ||  data.zip.match(\"^[a-zA-Z0-9]+$\")==false)\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              $('#ocp_visit_address').val('');\n              if (res.validate == true) {\n                _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                alert('Patient registered and appointment booked successfully! \\n Appointment Id - ' + res.row_id);\n                // _this.sendAction('reloadDashboard');\n                _this.resetPatientData();\n                _this.sendAction('ResetPopupPaymentMode');\n                _this.sendAction('releaseHoldSlot'); //Release hold slot if any for this appointment\n                // _this.controller.transitionToRoute('patient')\n              } else if (res.validate = 'false') {\n                _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                alert(res.message);\n                _this.resetPatientData();\n                _this.sendAction('ResetPopupPaymentMode');\n                // _this.sendAction('reloadDashboard');\n              }\n            },\n            error: function (error, x, y) {\n              // console.log(error);\n            },\n            complete: function (res) {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                $('.advance_payment_obj').val('');\n              }, 500);\n            }\n          }); ////This below function added is used for upadating the patient profile from bookappoint page\n        } else if (page == 'Edit') {\n          // console.log(data); return false;\n          this.send('enableForm');\n          var patient_id = $.trim($('#patient_id').val());\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'patients/update/' + patient_id + '/bookappointment' + is_rescheduled,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            beforeSend: function () {\n              var regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if (data.urgent_status == 1) {\n                if (data.urgenttagnote == null || data.urgenttagnote == '') {\n                  alert('Please enter urgent reason');\n                  $('#urgenttagnote').focus();\n                  return false;\n                }\n              } else if (data.appointment_type == '') {\n                alert('Please select appointment type');\n                $('#appointment_type').focus();\n                return false;\n              } else if (data.appointment_type == 'ocp' && data.ocp_visit_address == '') {\n                alert('Please enter OCP visit address');\n                $('#ocp_visit_address').focus();\n                return false;\n              } else if ($.trim(data.discount_category) == '' || data.discount_category == undefined) {\n                alert('Please select the discount category.');\n                $('select[name=discount_category]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false; //// else if ($.trim(data.phone_1) == \"\" ||  data.phone_1.match(\"^[0-9]+$\")==false)\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false; ////else if (data.phone_2.match(\"^[0-9]+$\")==false)\n              } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              }\n              //  else if ($.trim(data.email_id) == \"\") {\n              //   alert('Please enter email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              // else if(!regex.test(data.email_id)) {\n              //   alert('Please enter valid email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false; // // else if ($.trim(data.zip) == \"\" ||  data.zip.match(\"^[a-zA-Z0-9]+$\")==false)\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if ($.trim(data.note) != '' && data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == false && res.patient_status == 'online_appointment') {\n                Swal.fire({\n                  title: 'Reschedule not available',\n                  text: res.message || 'Reschedule is not available for online appointments. Please cancel and book a new appointment.',\n                  icon: 'error',\n                  width: 650\n                });\n                return;\n              }\n              //console.log(res);\n              if (res.validate == true && res.patient_status == 'already_left_assign') {\n                alert('Patient is already in queue or has an active appointment. You cannot book another appointment');\n                //Block multiple future appointments for the same doctor at the same location, Written by Shubh Tiwari as on 16 Aug 2023\n              }\n              if (res.validate == true && res.patient_status == 'future_more_than_booked') {\n                alert('This patient already has a ' + res.appointmentType.toUpperCase() + ' appointment on ' + res.date + ' at ' + res.branch_name + '. so you cannot book more than one appointment for a doctor.');\n                // future booking message, Written by Shubh Tiwari as on 3 May 2022\n              } else if (res.validate == true && res.patient_status == 'future_booked') {\n                alert('This patient already has a ' + res.appointmentType.toUpperCase() + ' appointment on ' + res.date + ' at ' + res.branch_name);\n              } else if (res.validate == true && res.patient_status == 'already_right_assign') {\n                alert(\"You can't reschedule this patient because this patient is already in \" + res.doctor + ' queue as ' + res.appointmentType + ' appointment.');\n              } else if (res.validate == true && res.patient_status == 'already_booked_timeslot') {\n                alert('Time slot ' + res.timeslot + ' is already booked by another user. Please choose another time slot.');\n              } else if (res.validate == true && res.patient_status == 'slot_holds') {\n                alert(res.message || 'This slot ' + res.timeslot + ' was just locked by another user. Please refresh or choose another slot');\n              } else if (res.validate == 'already_exist' || res.token_no || res.appointment_no || res.medicine_queue_number) {\n                if (res.medicine_queue_number != '') {\n                  var token_string = 'with token no : ' + res.medicine_queue_number;\n                } else if (res.token_no != '') {\n                  var token_string = 'with token no : ' + res.token_no;\n                } else {\n                  var token_string = '';\n                }\n                alert('This patient is already in queue ' + token_string);\n                return true;\n              } else if (res.validate == true) {\n                _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                alert('Patient details updated and appointment booked successfully!');\n                _this.resetPatientData();\n                _this.sendAction('ResetPopupPaymentMode');\n                _this.sendAction('releaseHoldSlot');\n                //_this.sendAction('redirectPage');\n                //_this.send('redirectPage');\n                var rescheduled_value = $('#is_rescheduled').val().trim();\n                console.log(rescheduled_value);\n                if (rescheduled_value == 1) {\n                  _this.sendAction('goBack');\n                } else {\n                  _this.sendAction('reloadDashboard');\n                }\n              }\n            },\n            error: function (error, x, y) {\n              console.log(error);\n            },\n            complete: function (res) {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                $('.advance_payment_obj').val('');\n              }, 500);\n            }\n          });\n        }\n      },\n      setGender() {\n        this.set('gender', $('select[name=gender]').val());\n      },\n      setMode() {\n        this.set('mode', $('select[name=mode]').val());\n      },\n      setNote() {\n        this.set('note', $('textarea#note').val());\n      },\n      redirect(sort, order, label) {\n        var _this = this;\n        var utoken = this.session.getToken();\n        var page = 1;\n        this.set('sort', sort);\n        this.set('order', order);\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          data: {\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.controllerFor('patient').set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.controllerFor('patient').set('sorted_by', label);\n        this.transitionTo({\n          queryParams: {\n            p: page,\n            sort: sort,\n            order: order,\n            q: q\n          }\n        });\n      },\n      prev(stats, p) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          var _this = this;\n          var utoken = this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.controllerFor('patient').set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      next(stats, p) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          var _this = this;\n          var utoken = this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.controllerFor('patient').set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      goto() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.controllerFor('patient').set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          var q = this.q;\n          if (q != '') {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionTo({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      }\n    },\n    //Nishant 3-Feb-2023: Function to reset patient data\n    resetPatientData() {\n      this.set('date_time_doctor', '');\n      this.set('state', '');\n      this.set('other_state', '');\n      this.set('other_city', '');\n      this.set('country', '');\n      this.set('phone_1', '');\n      this.set('phone_2', '');\n      this.set('date_of_birth', '');\n      this.set('age_years', '');\n      this.set('age_months', '');\n      this.set('age_days', '');\n      this.set('first_name', '');\n      this.set('middle_name', '');\n      this.set('last_name', '');\n      this.set('email_id', '');\n      this.set('address_1', '');\n      this.set('address_2', '');\n      this.set('pin', '');\n      this.set('mode', '');\n      this.set('note', '');\n      this.set('priority', 'normal');\n      this.set('title_prefix', '');\n      this.set('selected_discount_category', '');\n      this.set('category', '');\n      this.set('blood_type', '');\n      $('#patient_id').val('');\n      $('.same_as_shipping').val('');\n      this.set('sameToShip', '');\n    },\n    //Nishant 1-Feb-2023: validate patient code refactored to function\n    validatePatient: function (data) {\n      if (data.mode == '') {\n        alert('Invalid Mode of Registration.');\n        $('select[name=mode]').focus();\n        return false;\n      } else if ($.trim(data.discount_category) == '' || data.discount_category == undefined) {\n        /*This below line code, we validate the Discount category Required only, Rahul Khan 13 june 2019 */\n        alert('Please select the discount category.');\n        $('select[name=discount_category]').focus();\n        return false;\n      } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n        //console.log(data);\n        alert('Invalid First Name.');\n        $('input[name=first_name]').focus();\n        return false;\n      } else if ($.trim(data.gender) == '') {\n        alert('Invalid Gender');\n        $('select[name=gender]').focus();\n        return false;\n      } else if ($.trim(data.age_years) == '') {\n        alert('Please enter valid age in years.');\n        $('input[name=age_years]').focus();\n        return false;\n      } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n        alert('Invalid Phone 1');\n        $('input[name=phone_1]').focus();\n        return false;\n      } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n        alert('Invalid Phone 2');\n        $('input[name=phone_2]').focus();\n        return false;\n      }\n      // else if ($.trim(data.email_id) == \"\") {\n      //   alert('Please enter email id');\n      //   $(\"input[name=email_id]\").focus();\n      //   return false;\n      // }\n      // else if(!regex.test(data.email_id)) {\n      //   alert('Please enter valid email id');\n      //   $(\"input[name=email_id]\").focus();\n      //   return false;\n      // }\n      else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n        alert('Invalid Address 1');\n        $('input[name=address_1]').focus();\n        return false;\n      } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n        alert('Invalid Address 2');\n        $('input[name=address_2]').focus();\n        return false;\n      } else if ($.trim(data.country) == '') {\n        //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n        alert('Invalid Country');\n        $('select[name=country]').focus();\n        return false;\n      } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n        alert('Invalid State');\n        $('select[name=state]').focus();\n        return false;\n      } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n        alert('Invalid City');\n        $('select[name=city]').focus();\n        return false;\n      } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n        alert('Invalid Zip');\n        $('input[name=zip]').focus();\n        return false;\n      } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n        alert('Invalid Note');\n        $('textarea[name=note]').focus();\n        return false;\n      }\n      return true;\n    },\n    registerPatient: async function (patient_data, retval) {\n      var callUrl = _environment.default.APP.api_url + 'patients/register';\n      var callMethod = 'POST';\n      var _this = this;\n      let utoken = _this.session.getToken();\n      await $.ajax({\n        method: callMethod,\n        url: callUrl,\n        data: patient_data,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          if (!_this.validatePatient(patient_data)) {\n            return false;\n          }\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          // $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          if ((res.validate == 'true' || res.validate == true) && res.patient_id != '') {\n            //We have regsitered the patient, now we get the patient ID and use it for advance payment\n            retval(res.patient_id);\n          } else if (res.validate == false || res.validate == 'false') {\n            alert('Something went wrong with patient registration. Please try again.\\n' + res.message);\n            retval('error');\n          }\n        },\n        error: function (error, x, y) {\n          // console.log(error);\n          retval('error');\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            //$('.modal-backdrop').remove();\n            //$('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/components/patient-thin-info-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/patient-thin-info\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/payment-details-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    NumberInWords: Ember.inject.service('numberinwords'),\n    print: Ember.inject.service('print-options'),\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    didRender() {\n      this._super(...arguments);\n      var val = $('#dueadv').children('option:selected').val();\n      this.recalculateAmount.calculateTotalReceivedWithPGChargeAmount(val);\n    },\n    actions: {\n      getTotal: function (payment_mode_option) {\n        var _this = this;\n        _this.recalculateAmount.calculateTotalReceivedWithPGChargeOnCheckUncheckPaymentMode(payment_mode_option);\n      },\n      onChangesRecalculate: function () {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var previous_val = $('#previous_due').val();\n        var val = $('#dueadv').children('option:selected').val();\n        console.log(val);\n        if (previous_val != '' && previous_val != undefined) {\n          _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmount(val);\n        } else {\n          _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmountReset(val);\n          var message = i18n.t('billing.messages.emptyAddedchargeinput', {\n            object: 'Previous Due'\n          });\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'previous_due');\n        }\n      },\n      ResetPopupPaymentMode: function () {\n        var _this = this;\n        _this.selectedPaymentOptions.clear();\n        _this.selectedPaymentName.clear();\n        _this.resetPreviousDue();\n        _this.recalculateAmount.resetPaymentDetailsComponentVariableAfterSubmit();\n      },\n      //Nishant 11-Jan-2023-Need to disable PG boxes if refund transaction\n      transactionModeChanged: function () {\n        var _this = this;\n        var transactionmode = $('select#transaction_mode option:selected').val();\n        var transaction_mode = isNaN(transactionmode) ? 0 : transactionmode;\n        let payment_option_id = _this.get('selectedPaymentOptions');\n        payment_option_id.forEach(function (element, i) {\n          if (transaction_mode == '1') {\n            //if refund transaction, then reset the PG amounts and disable the checkboxes.\n            $('#payment_gateway_checkbox_' + element).click(); //Helps recalculate totals\n            $('#payment_gateway_checkbox_' + element).prop('checked', false);\n            $('#payment_gateway_checkbox_' + element).attr('title', 'Can\\'t select PG charge if it is a Refund transaction.');\n            $('#payment_gateway_checkbox_' + element).attr('disabled', 'disabled');\n            $('#payment_gateway_charge_' + element).attr('disabled', 'disabled');\n            $('#payment_gateway_amount_' + element).attr('disabled', 'disabled');\n            $('#payment_gateway_charge_' + element).val('');\n            $('#payment_gateway_amount_' + element).val(0);\n          } else {\n            //if not refund, then Enable checkbox and remove message\n            $('#payment_gateway_checkbox_' + element).removeAttr('disabled');\n            $('#payment_gateway_checkbox_' + element).attr('title', '');\n          }\n        });\n      },\n      changePopupPaymentMode: function (item, name, isChecked) {\n        var _this = this;\n        if (isChecked) {\n          _this.get('selectedPaymentOptions').addObject(item);\n          _this.get('selectedPaymentName').addObject(name);\n        } else {\n          _this.get('selectedPaymentOptions').removeObject(item);\n          _this.get('selectedPaymentName').removeObject(name);\n        }\n        let payment_option_id = _this.get('selectedPaymentOptions');\n        let payment_option_name = _this.get('selectedPaymentName');\n        var val = $('#dueadv').children('option:selected').val();\n        //console.log(val);\n        var html = '';\n        if (payment_option_id.length == 0) {\n          //$('#recieved').val(0.0);\n          _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmountReset(val);\n        } else {\n          // _this.send('getTotal');\n          _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmount(val);\n        }\n        payment_option_id.forEach(function (element, i) {\n          var get_fill_amount = $('#payment_' + element).val();\n          var page_name = $('.page_name').val();\n          var get_fill_reference_no = $('#reference_no_' + element).val();\n          var get_fill_payment_gateway_charge = $('#payment_gateway_charge_' + element).val();\n          var get_fill_payment_gateway_amount = $('#payment_gateway_amount_' + element).val();\n          var isChecked = $('#payment_gateway_checkbox_' + element).is(':checked');\n          console.log(get_fill_amount);\n          if (get_fill_amount != undefined) {\n            var mode_amount = get_fill_amount;\n          } else {\n            var mode_amount = '';\n          }\n          if (get_fill_reference_no == undefined || get_fill_payment_gateway_charge == undefined || get_fill_payment_gateway_amount == undefined || isChecked == false) {\n            var reference_no = '';\n            var gateway_charge = 0;\n            var gateway_amount = 0;\n            var payment_gateway_charge_disabled = 'disabled=' + 'disabled' + '';\n            var payment_gateway_amount_disabled = 'disabled=' + 'disabled' + '';\n            var payment_gateway_checked = '';\n          } else {\n            var reference_no = get_fill_reference_no;\n            var gateway_charge = get_fill_payment_gateway_charge;\n            var gateway_amount = get_fill_payment_gateway_amount;\n            var payment_gateway_charge_disabled = '';\n            var payment_gateway_amount_disabled = 'disabled=' + 'disabled' + '';\n            var payment_gateway_checked = 'checked=' + 'checked' + '';\n          }\n          var currentpgamount = $('#current_pg_amount').val();\n          var current_pg_amount = isNaN(currentpgamount) ? 0 : currentpgamount;\n          var advance_title = '';\n          if ($.isNumeric(current_pg_amount) == true && current_pg_amount != 0) {\n            var pg_checkbox_disable = 'disabled=' + 'disabled' + '';\n            advance_title = \"Can't select PG charge if PG charge was applied on total bill. \";\n          } else {\n            var pg_checkbox_disable = '';\n          }\n          var transactionmode = $('select#transaction_mode option:selected').val();\n          var transaction_mode = isNaN(transactionmode) ? 0 : transactionmode;\n          if (transaction_mode == '1') {\n            var advanced_checkbox_disable = 'disabled=' + 'disabled' + '';\n            advance_title = \"Can't select PG charge if it is a Refund transaction.\";\n          } else {\n            var advanced_checkbox_disable = '';\n          }\n          if (element == 1) {\n            html += '<div class=\"row form-group\">';\n            html += '<div class=\"col-md-2\"><label for=\"' + payment_option_name[i] + '\">' + payment_option_name[i] + ' <i class=\"fas fa-rupee-sign\"></i> :</label></div>';\n            html += '<div class=\"col-md-3 mtw\"><input type=\"text\" class=\"twodecimal form-control payment-method payment_' + element + ' mode-price\" id=\"payment_' + element + '\" data-mode=\"' + payment_option_name[i] + '\" name=\"payment_' + element + '\" value=\"' + mode_amount + '\" placeholder=\"' + payment_option_name[i] + ' amount\" autocomplete=\"off\"></div>';\n            html += '<div class=\"col-md-1 smml-2 msml-1\"><input type=\"checkbox\" title=\"' + advance_title + '\" id=\"payment_gateway_checkbox_' + element + '\" ' + pg_checkbox_disable + advanced_checkbox_disable + ' class=\"form-control payment_gateway_checkbox\" ' + payment_gateway_checked + '></div>';\n            html += '<div class=\"col-md-3 smml-2 mtw\"> <input type=\"text\" class=\"twodecimal form-control payment_gateway_charge\" id=\"payment_gateway_charge_' + element + '\" placeholder=\"PG Charge\" ' + payment_gateway_charge_disabled + ' value=\"' + gateway_charge + '\" autocomplete=\"off\"></div>';\n            html += '<div class=\"col-md-3 smml-2 mtw\"> <input type=\"text\" class=\"twodecimal form-control payment_gateway_amount\" placeholder=\"PG Amt\" id=\"payment_gateway_amount_' + element + '\" ' + payment_gateway_amount_disabled + ' value=\"' + gateway_amount + '\"></div>';\n            html += '<div><input type=\"hidden\" class=\"form-control reference_no\" id=\"reference_no_' + element + '\" name=\"reference_no_' + element + '\" placeholder=\"Please enter ' + payment_option_name[i] + ' reference no\" autocomplete=\"off\"></div>';\n            html += '</div>';\n          } else {\n            html += '<div class=\"row form-group\">';\n            html += '<div class=\"col-md-2\"><label for=\"' + payment_option_name[i] + '\">' + payment_option_name[i] + ' <i class=\"fas fa-rupee-sign\"></i> :</label></div>';\n            html += '<div class=\"col-md-3 mtw\"><input type=\"text\" class=\"twodecimal form-control payment-method payment_' + element + ' mode-price\" id=\"payment_' + element + '\" data-mode=\"' + payment_option_name[i] + '\" name=\"payment_' + element + '\" value=\"' + mode_amount + '\" placeholder=\"' + payment_option_name[i] + ' amount\" autocomplete=\"off\"></div>';\n            html += '<div class=\"col-md-3 smml-2\"><input type=\"text\" class=\"form-control reference_no\" id=\"reference_no_' + element + '\" name=\"reference_no_' + element + '\" value=\"' + reference_no + '\" placeholder=\"' + payment_option_name[i] + ' Ref No\" autocomplete=\"off\"></div>';\n            html += '<div class=\"col-md-1 smml-2 msml-1\"><input type=\"checkbox\" ' + pg_checkbox_disable + advanced_checkbox_disable + ' id=\"payment_gateway_checkbox_' + element + '\" title=\"' + advance_title + '\" class=\"form-control payment_gateway_checkbox\" ' + payment_gateway_checked + '></div>';\n            html += '<div class=\"col-md-2 smml-2 mtd\"> <input type=\"text\" class=\"twodecimal form-control payment_gateway_charge\" id=\"payment_gateway_charge_' + element + '\" placeholder=\"PG Charge\" ' + payment_gateway_charge_disabled + ' value=\"' + gateway_charge + '\"></div>';\n            html += '<div class=\"col-md-2 smml-2 mtd\"> <input type=\"text\" class=\"twodecimal form-control payment_gateway_amount\" id=\"payment_gateway_amount_' + element + '\" placeholder=\"PG Amt\" ' + payment_gateway_amount_disabled + ' value=\"' + gateway_amount + '\"></div>';\n            html += '</div>';\n          }\n          i++;\n        });\n        $('.payment-option-list').html(html);\n      },\n      onChangeTotalBalanceCalculate(val) {\n        var _this = this;\n        _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmount(val);\n      },\n      onChangeSelectCharge(selectcharge) {\n        var _this = this;\n        var val = $('#dueadv').children('option:selected').val();\n        _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmount(val);\n      },\n      //Nishant 07-feb-2023: this function is used to get transaction history of a patientid\n      patientTransactionHistory: function (patient_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TotalTransactionDetails').modal('show');\n        _this.sendAction('getPatientTransactions', patient_id);\n      },\n      transactionHistory: function (visit_id, billing_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TotalTransactionDetails').modal('show');\n        _this.sendAction('getTotalTransaction', visit_id, billing_id);\n      },\n      editPreviousDue: function () {\n        var _this = this;\n        var $previous_due = $('#previous_due');\n        var $previous_due_edit_reason = $('#previous_due_edit_reason');\n        var $dueadv = $('#dueadv');\n        var $editbutton = $('#editbutton');\n        var $editicon = $('.editicon');\n        var $texttoggle = $('.texttoggle');\n        var $newvisitdue = $('.newvisitdue');\n        if ($previous_due.attr('readonly') && $previous_due_edit_reason.attr('readonly')) {\n          $previous_due.removeAttr('readonly');\n          $previous_due_edit_reason.removeAttr('readonly');\n          $dueadv.removeAttr('disabled');\n          $editbutton.removeClass('btn-primary').addClass('btn-danger');\n          $texttoggle.text('Cancel');\n          $editicon.removeClass('far fa-edit').addClass('fa fa-times');\n          $previous_due_edit_reason.attr('previousclick', 1);\n        } else {\n          _this.resetPreviousDue();\n        }\n      },\n      prescribePrintAndClose: function (print_id, eventAction, dispatch_data) {\n        var _this = this;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        var login_user_id = this.session.getLoggedInUserId();\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        var prescribe_branch = $('#prescribe_branch').val();\n        var prescribe_shift = $('#prescribe_shift').val();\n        var prescriptionemail = $('input[name=prescriptionemail]:checked').val();\n        var page_name = $('.page_name').val();\n        if (page_name == 'Manage Transaction') {\n          var medicine_details = '';\n          var patient_details = '';\n          var prescribing_doc_id = $('#PrescribingDoctor').val();\n          var medicine_print_code = $('#consultancy_print_code').val();\n          var consultancy_print_code = $('#medicine_print_code').val();\n        } else {\n          var medicine_details = JSON.parse($('#medicineobj').val());\n          var patient_details = JSON.parse($('#patientobj').val());\n          var prescribing_doc_id = patient_details[0]['prescribing_doc_id'];\n          var medicine_print_code = $('.grdtot').data('medprint');\n          var consultancy_print_code = $('.consultancy').data('consprint');\n        }\n        // for past visit error correction\n        var past_visit_date = $('#past_visit_date').val();\n        if (past_visit_date == undefined || past_visit_date != '') {\n          var visit_date = past_visit_date;\n        } else {\n          var visit_date = moment().format('YYYY-MM-DD[T]HH:mm:ss');\n        }\n        var medicine_total = $('.total').val();\n        var reference_no_data = $('.reference_no').map(function () {\n          var $this = $(this);\n          var jsObjectRefno = {};\n          jsObjectRefno['reference_no'] = $this.val();\n          jsObjectRefno['mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectRefno;\n        }).get();\n        var pg_charge_data = $('.payment_gateway_charge').map(function () {\n          var $this = $(this);\n          var jsObjectPGcharge = {};\n          jsObjectPGcharge['pg_charge'] = $this.val();\n          return jsObjectPGcharge;\n        }).get();\n        var pg_amount_data = $('.payment_gateway_amount').map(function () {\n          var $this = $(this);\n          var jsObjectPGamount = {};\n          jsObjectPGamount['pg_amount'] = $this.val();\n          return jsObjectPGamount;\n        }).get();\n        var transaction_mode = $('select#transaction_mode option:selected').val();\n        //console.log(reference_no_data+'1shubh');\n        var payment_data_list = $('.payment-method').map(function () {\n          var $this = $(this);\n          var jsObjectmode = {};\n          jsObjectmode['mode_price'] = $this.val();\n          jsObjectmode['mode_name'] = $this.data('mode');\n          jsObjectmode['payment_mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectmode;\n        }).get();\n        var payment_mode_data = payment_data_list;\n        var charge_data_list = $('.box-charge').map(function () {\n          var $this = $(this);\n          var jsObjectfrrm = {};\n          jsObjectfrrm['price'] = $this.val();\n          jsObjectfrrm['name'] = $this.data('label');\n          jsObjectfrrm['charge_code'] = $this.data('charge_code');\n          return jsObjectfrrm;\n        }).get();\n        var factor_list = $('.qty').map(function () {\n          var $this = $(this);\n          var jsObjectfator = {};\n          jsObjectfator['factor'] = $this.val();\n          jsObjectfator['medid'] = $this.data('medid');\n          jsObjectfator['formrate'] = $this.data('formrate');\n          return jsObjectfator;\n        }).get();\n        var factor_data = factor_list;\n        var vial_list = $('.medicineVial').map(function () {\n          var $this = $(this);\n          var jsObjectvial = {};\n          jsObjectvial['medicine_vial'] = $this.val();\n          return jsObjectvial;\n        }).get();\n        var vial_data = vial_list;\n        var charge_data = charge_data_list;\n        if (charge_data_list.length > 0) {\n          var charge_data = charge_data_list;\n        } else {\n          var charge_data = 0;\n        }\n        var previous_due_edit_reason = $('#previous_due_edit_reason').val();\n        var payment_mode = $('#payment_mode').val();\n        var recieved_amount = $('#recieved').val();\n        var billing_id = $('#billing_id').val();\n        var visiting_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        var visit_due = parseFloat($('#visit_due').data('visitdue')); //$('#visit_due').val();\n        var dueadv = $('#dueadv').children('option:selected').val();\n        var previous_due = parseFloat($('#previous_due').val());\n        //Nishant 12-Oct-2022 in case of advance we should have negative value\n        if (dueadv == 'adv') {\n          previous_due = -1 * parseFloat(previous_due);\n        }\n        //var visit_total_due = parseFloat(visit_due) + parseFloat(previous_due);\n        //var visit_with_previous_charge = parseFloat(visit_total_due).toFixed(2);\n        var total_due = $('#total_due').val();\n        var note = $('.note').val();\n        // console.log('#previous_due:'+previous_due);\n        // console.log('#visit_due:'+visit_due);\n        // console.log('#total_due:'+total_due);\n        // console.log('note:'+note);\n        var refund_value = $('#refund_value').val();\n        if (refund_value != undefined) {\n          var refund = $('#refund_value').val();\n        } else {\n          var refund = '';\n        }\n        var Prescriptions_Totals = $('.total').val();\n        var consutancy_fee = $('.consutancy_fee').val();\n        var payment_gateway_charge = $('.payment_gateway_charge').val();\n        var payment_gateway_amount = $('.payment_gateway_amount').val();\n        var previous_gateway_amount = $('.previous_gateway_amount').val();\n        if (previous_gateway_amount != undefined) {\n          var remove_pg_amount = $('.previous_gateway_amount').val();\n        } else {\n          var remove_pg_amount = 0;\n        }\n        var pg_amount = $('.gateway_charge').val();\n        var pg_percentage = $('.previous_pg_percentage').val();\n        if (pg_percentage != undefined) {\n          var previous_pg_percentage = $('.previous_pg_percentage').val();\n        } else {\n          var previous_pg_percentage = 0;\n        }\n        var currentpgamount = $('#current_pg_amount').val();\n        var previouspgamount = $('#previous_pg_amount').val();\n        var currentpgcharge = $('#current_pg_charge').val();\n        var current_pg_charge = isNaN(currentpgcharge) ? 0 : currentpgcharge;\n        var current_pg_amount = isNaN(currentpgamount) ? 0 : currentpgamount;\n        var previous_pg_amount = isNaN(previouspgamount) ? 0 : previouspgamount;\n        var factor_med_total = parseFloat($('.onthemed').text()).toFixed(2);\n        var factor_perce_value = parseInt($('.onthefly_per').text());\n        var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n        var med_after_discount = parseFloat($('.grdtot').val()).toFixed(2);\n        var medicine_amount = parseFloat($('.grdtot').val()).toFixed(2);\n        var consultancy = parseInt($('.consultancy').val());\n        var waive_type = $('.cons_waived').text();\n        var percentage_amout = parseInt($('.cons_amount').text());\n        var consultancy_percentage = isNaN(percentage_amout) ? 0 : percentage_amout;\n        if (consultancy > 0 && waive_type != 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Not Set';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy == '0.00' && waive_type == 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Waived';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0 && shift_id == 2) {\n          //Rahul khan 06_02_2021\n          var consultancy_status = 'Evening Shift';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0) {\n          var consultancy_status = 'Discount Category';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else {\n          var consultancy_status = '';\n          var consultancy_discount = 0;\n        }\n\n        //Nishant 11/Nov/2022 - refactor code for remaining balance calculation\n        var {\n          balance,\n          remaining_balance,\n          remaining_Balance_Status\n        } = _this.getBalanceStatus(recieved_amount, total_due, balance, transaction_mode);\n        var ontheflymedicine_reason = $('.grdtot').data('reason');\n        if (ontheflymedicine_reason != undefined) {\n          var ontheflymedicine_reason = $('.grdtot').data('reason');\n        } else {\n          var ontheflymedicine_reason = null;\n        }\n        var ontheflyconsultancy_reason = $('.consultancy').data('consultancy_reason');\n        if (ontheflyconsultancy_reason != undefined) {\n          var consultancy_reason = $('.consultancy').data('consultancy_reason');\n        } else {\n          var consultancy_reason = null;\n        }\n        var bill_paid_amount = $('#total_recieved').val();\n        var previous_bill_paid_amount = isNaN(bill_paid_amount) ? 0 : bill_paid_amount;\n        console.log('#previous_bill_paid_amount:' + previous_bill_paid_amount);\n        /* Print Options */\n        var report_advice = $('input[name=\"report_advice\"]:checked').val();\n        var print_case = $('input[name=\"print_case\"]:checked').val();\n        var print_case_val = $('input[name=\"print_case_val\"]').val();\n        var clinic_used = $('input[name=\"clinic_used\"]:checked').val();\n        var print_option = $('input[name=\"print_option\"]:checked').val();\n        var evlp_label = $('input[name=\"evlp_label\"]:checked').val();\n        var inc_presc = $('input[name=\"inc_presc\"]:checked').val();\n        var add_label = $('input[name=\"add_label\"]:checked').val();\n        var med_label = $('input[name=\"med_label\"]:checked').val();\n        var domst_cons_presc = $('input[name=\"domst_cons_presc\"]:checked').val();\n        var cons_presc = $('input[name=\"cons_presc\"]:checked').val();\n        var receipt = $('input[name=\"receipt\"]:checked').val();\n        var medical_certificate = $('input[name=\"medical_certificate\"]:checked').val();\n        var myObject = new Object();\n        myObject.report_advice = report_advice;\n        myObject.print_case = print_case;\n        myObject.print_case_val = print_case_val;\n        myObject.clinic_used = clinic_used;\n        myObject.print_option = print_option;\n        myObject.evlp_label = evlp_label;\n        myObject.inc_presc = inc_presc;\n        myObject.add_label = add_label;\n        myObject.med_label = med_label;\n        myObject.domst_cons_presc = domst_cons_presc;\n        myObject.cons_presc = cons_presc;\n        myObject.receipt = receipt;\n        myObject.medical_certificate = medical_certificate;\n        var print_optionString = JSON.stringify(myObject);\n        console.log(print_optionString);\n        //This else added to resolving the issue for consultancy_status, 31 0ct 2019, Rahul khan\n        var data = {\n          visit_due: visit_due,\n          previous_due: previous_due,\n          total_due: total_due,\n          recieved_amount: recieved_amount,\n          note: note,\n          billing_id: billing_id,\n          visiting_id: visiting_id,\n          patient_id: patient_id,\n          charge_data: charge_data,\n          payment_mode: payment_mode,\n          factor_med_total: factor_med_total,\n          factor_perce_value: factor_perce_value2,\n          med_after_discount: med_after_discount,\n          factor_data: factor_data,\n          consultancy: consultancy_discount,\n          consultancy_status: consultancy_status,\n          consultancy_percentage: consultancy_percentage,\n          payment_mode_data: payment_mode_data,\n          reference_no_data: reference_no_data,\n          vial_data: vial_data,\n          user_id: login_user_id,\n          medicine_descount_reason: ontheflymedicine_reason,\n          previous_bill_paid_amount: previous_bill_paid_amount,\n          consultancy_reason: consultancy_reason,\n          refund: refund,\n          prescribing_doc_id: prescribing_doc_id,\n          consutancy_fee: consutancy_fee,\n          payment_gateway_charge: payment_gateway_charge,\n          payment_gateway_amount: payment_gateway_amount,\n          remove_pg_amount: remove_pg_amount,\n          previous_pg_percentage: previous_pg_percentage,\n          print_optionString: print_optionString,\n          shift_id: shift_id,\n          branch_id: branch_id,\n          medicine_print_code: medicine_print_code,\n          consultancy_print_code: consultancy_print_code,\n          dispatch_data: dispatch_data,\n          pg_charge_data: pg_charge_data,\n          pg_amount_data: pg_amount_data,\n          transaction_mode: transaction_mode,\n          previous_due_edit_reason: previous_due_edit_reason,\n          previous_pg_amount: previous_pg_amount,\n          current_pg_amount: current_pg_amount,\n          current_pg_charge: current_pg_charge,\n          visit_date: visit_date,\n          prescribe_branch: prescribe_branch,\n          prescribe_shift: prescribe_shift,\n          page_name: page_name,\n          //Nishant added Page_name to check in biilingcontoller->patientpayment function . if coming from Manage trans page then we don't update visit_status table,\n          prescription_email: prescriptionemail\n        };\n\n        //Nishant 11-Nov-2022 - If refund then we need to pass negative recvd amount for proper calculation.\n        //Pls note that in database recived amount is saved without any sign using the 'data' object created above.\n        //This is just to handle frontend display\n        if (transaction_mode == '1')\n          //Refund selected by user\n          var recieved_amount = -1 * recieved_amount;\n        _this.prescribeSaveAndClose(recieved_amount, data, print_id, medicine_details, patient_details, eventAction, medicine_total, medicine_amount, remaining_balance, remaining_Balance_Status, payment_mode_data, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, page_name);\n      },\n      receiveAdvancePayment: function (eventAction, page_name) {\n        console.log(eventAction);\n        var _this = this;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        var login_user_id = this.session.getLoggedInUserId();\n        //Nishant 13-feb-2023: For advance payments get logged in user's branch_id\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        var reference_no_data = $('.reference_no').map(function () {\n          var $this = $(this);\n          var jsObjectRefno = {};\n          jsObjectRefno['reference_no'] = $this.val();\n          jsObjectRefno['mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectRefno;\n        }).get();\n        $('.advance_payment_urgency').val(eventAction);\n        var payment_data_list = $('.payment-method').map(function () {\n          var $this = $(this);\n          var jsObjectmode = {};\n          jsObjectmode['mode_price'] = $this.val();\n          jsObjectmode['mode_name'] = $this.data('mode');\n          jsObjectmode['payment_mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectmode;\n        }).get();\n        var payment_mode_data = payment_data_list;\n        var pg_charge_data = $('.payment_gateway_charge').map(function () {\n          var $this = $(this);\n          var jsObjectPGcharge = {};\n          jsObjectPGcharge['pg_charge'] = $this.val();\n          return jsObjectPGcharge;\n        }).get();\n        var pg_amount_data = $('.payment_gateway_amount').map(function () {\n          var $this = $(this);\n          var jsObjectPGamount = {};\n          jsObjectPGamount['pg_amount'] = $this.val();\n          return jsObjectPGamount;\n        }).get();\n        var transaction_mode = $('select#transaction_mode option:selected').val();\n        var previous_due_edit_reason = $('#previous_due_edit_reason').val();\n        var payment_mode = $('#payment_mode').val();\n        var recieved_amount = $('#recieved').val();\n        var billing_id = $('#billing_id').val();\n        var visit_due = parseFloat($('#visit_due').data('visitdue')); //$('#visit_due').val(); //TODO: Nishant - In case of advance should this be the charge selected from dropdown\n        var total_recieved = $('#total_recieved').val();\n        var previous_due = $('#previous_due').val();\n        var chargeCode = $('.appliedcharge').find(':selected').data('code');\n        var chargeType = $('.appliedcharge').find(':selected').data('chargetype');\n        var shipping_related = $('.appliedcharge').find(':selected').data('shipping_related');\n        var previous_balance_status = $('#dueadv').children('option:selected').val();\n        var appliedcharge = $('#appliedcharge').children('option:selected').val();\n        if (appliedcharge == undefined || appliedcharge == '') {\n          var select_charge = 0;\n        } else {\n          var select_charge = isNaN(appliedcharge) ? 0 : appliedcharge;\n        }\n        var previous_balance = isNaN(previous_due) ? 0 : previous_due;\n        if (previous_balance_status == 'due' && eventAction == 0) {\n          var visit_due_amount = parseFloat(Math.abs(parseFloat(select_charge) + parseFloat(previous_balance))).toFixed(2);\n        } else if (previous_balance_status == 'adv' && eventAction == 0) {\n          var visit_due_amount = parseFloat(Math.abs(parseFloat(select_charge) - parseFloat(previous_balance))).toFixed(2);\n        } else if (previous_balance_status == 'due' && eventAction != 0) {\n          var visit_due_amount = parseFloat(visit_due).toFixed(2);\n        } else if (previous_balance_status == 'adv' && eventAction != 0) {\n          var visit_due_amount = parseFloat(visit_due).toFixed(2);\n        }\n\n        //Nishant 12-Oct-2022 in case of advance we should have negative value\n        if (previous_balance_status == 'adv') {\n          previous_balance = -1 * parseFloat(previous_balance);\n        }\n        var visit_total_due = parseFloat(visit_due) + parseFloat(previous_due);\n        var visit_with_previous_charge = parseFloat(visit_total_due).toFixed(2);\n        var total_due = $('#total_due').val();\n        var advanced_pgcharge = $('#total_due').attr('data-advanced-pgcharge');\n        var advanced_pgamount = $('#total_due').attr('data-advanced-pgamount');\n        var note = $('.note').val();\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var error = '';\n        var $focusId = '';\n        var edit_reason = $('#previous_due_edit_reason').attr('previousclick');\n        var reason = $('#previous_due_edit_reason').val();\n        if (consultancy_print_code == undefined) {\n          var consultancy_print_code = $('#visit_due').data('consprint');\n        }\n        if (medicine_print_code == undefined) {\n          var medicine_print_code = $('#visit_due').data('medprint');\n        }\n        if (payment_mode_data == undefined || payment_mode_data == 1 || payment_mode_data == '') {\n          var payment_data = $('.payment-method').map(function () {\n            var $this = $(this);\n            var jsObjectmode = {};\n            jsObjectmode['mode_price'] = $this.val();\n            jsObjectmode['mode_name'] = $this.data('mode');\n            jsObjectmode['payment_mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n            return jsObjectmode;\n          }).get();\n          var mode_data = payment_data;\n        } else {\n          var mode_data = payment_mode_data;\n        }\n        if (refund == undefined) {\n          var refund_value = $('#refund_value').val();\n          if (refund_value != undefined) {\n            var refund = $('#refund_value').val();\n          }\n        }\n        console.log(total_due);\n        var TotalBalance = total_due;\n        var TotalAmount = $('#recieved').val();\n        var total_balance = parseFloat(TotalBalance).toFixed(2);\n        var total_amount = parseFloat(TotalAmount).toFixed(2);\n        if (previous_due.length == 0) {\n          error += \"<p align='center'>Please enter previous balance.</p>\";\n          $focusId = 'previous_due';\n        } else if (previous_due.length > 0 && edit_reason == '1' && reason.length == 0) {\n          error += \"<p align='center'>Please enter edit reason.</p>\";\n          $focusId = 'previous_due_edit_reason';\n        } else if (previous_due.length > 0 && edit_reason == '1' && reason.length < 10) {\n          error += \"<p align='center'>Edit reason should be minimum 10 characters.</p>\";\n          $focusId = 'previous_due_edit_reason';\n        } else if (appliedcharge == undefined || appliedcharge == '') {\n          error += \"<p align='center'>Please select applied charge.</p>\";\n          $focusId = 'appliedcharge';\n        } else if (transaction_mode == undefined || transaction_mode == '') {\n          error += \"<p align='center'>Please select transaction mode.</p>\";\n          $focusId = 'transaction_mode';\n        } else if (mode_data.firstObject == undefined && eventAction != 0) {\n          error += \"<p align='center'>Please select payment mode.</p>\";\n          $focusId = 'payment_mode1';\n        } else if (mode_data.firstObject != undefined && eventAction != 0) {\n          $.each(mode_data, function (index, item) {\n            if (item.mode_price.trim() == '') {\n              error += \"<p align='center'>Please enter \" + item.mode_name + ' amount</p>';\n              $('.payment_' + item.payment_mode_id).addClass('error');\n            } else {\n              $('.payment_' + item.payment_mode_id).removeClass('error');\n            }\n            index++;\n            $focusId = 'payment_' + item.payment_mode_id;\n          });\n        } else if (recieved_amount == '' && eventAction != 0) {\n          error += \"<p align='center'>Enter Recieved Amount</p>\";\n          $focusId = 'recieved';\n        } else if (mode_data.firstObject != undefined && eventAction == 0) {\n          $.each(mode_data, function (index, item) {\n            if (item.mode_price.trim() == '') {\n              error += \"<p align='center'>Please enter \" + item.mode_name + ' amount</p>';\n              $('.payment_' + item.payment_mode_id).addClass('error');\n            } else {\n              $('.payment_' + item.payment_mode_id).removeClass('error');\n            }\n            index++;\n            $focusId = 'payment_' + item.payment_mode_id;\n          });\n        }\n        if (error == '') {\n          var data = {\n            selected_charge: select_charge,\n            visit_due: 0,\n            //select_charge, //Nishant 11-Oct-2022 changed this in advance case we only store selected charge here. 15-oct-2022 there should be no visit due\n            total_recieved: total_recieved,\n            previous_due: previous_balance,\n            //Nishant 12-Oct-2022 change to have negative value also based on adv or due\n            total_due: 0,\n            //Nishant 15-Oct-2022 - there is no due in case of advance payments.\n            recieved_amount: recieved_amount,\n            note: note,\n            payment_mode: payment_mode,\n            payment_mode_data: payment_mode_data,\n            reference_no_data: reference_no_data,\n            user_id: login_user_id,\n            chargeCode: chargeCode,\n            shipping_related: shipping_related,\n            chargeType: chargeType,\n            advanced_pgamount: advanced_pgamount,\n            advanced_pgcharge: advanced_pgcharge,\n            eventAction: eventAction,\n            pg_charge_data: pg_charge_data,\n            pg_amount_data: pg_amount_data,\n            transaction_mode: transaction_mode,\n            previous_due_edit_reason: previous_due_edit_reason,\n            branch_id: branch_id,\n            shift_id: shift_id\n          };\n          if (mode_data.firstObject != undefined && eventAction == 0) {\n            Swal.fire({\n              title: 'Are you sure?',\n              icon: 'warning',\n              html: '<p align=\"center\">You have selected to accept payment later. Any amount you entered as received will not be saved.</p>',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes',\n              cancelButtonText: 'No',\n              reverseButtons: true\n            }).then(result => {\n              if (result.isConfirmed) {\n                if (eventAction != 2) {\n                  console.log(eventAction);\n                  console.log('Action-block-A5');\n                  $('.advance_payment_obj').val(JSON.stringify(data));\n                  $('.bookappointmentbutton').trigger('click');\n                  var patient_id = $('.patient_id').val();\n                  _this.sendAction('submitOnSpot');\n                } else {\n                  console.log('Action-block-B');\n                  console.log(eventAction);\n                  data.appointment_id = $('.appointment_id').val();\n                  data.patient_id = $('.patient_id').val();\n                  data.doctor_id = $('.doctor_id').val();\n                  _this.receiveAdvancePayment(data, page_name);\n                  _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                }\n              }\n            });\n          } else if (mode_data.firstObject != undefined && eventAction != 0) {\n            if (total_amount > total_balance || total_amount < total_balance) {\n              Swal.fire({\n                title: 'Are you sure you want to continue?',\n                icon: 'warning',\n                html: '<p align=\"center\"><b>Total Amount <i class=\"fas fa-rupee-sign\"></i>: ' + total_amount + '</b> you have entered is not same as the system calculated <b>Total Balance: <i class=\"fas fa-rupee-sign\"></i>: ' + total_balance + \"</b>. The difference will show in patient's balance next time.</p>\",\n                width: 600,\n                showCancelButton: true,\n                confirmButtonColor: '#3085d6',\n                cancelButtonColor: '#d33',\n                allowOutsideClick: false,\n                confirmButtonText: 'Yes, save it!',\n                cancelButtonText: 'No, cancel!',\n                reverseButtons: true\n              }).then(result => {\n                if (result.isConfirmed) {\n                  if (total_amount > _environment.default.received_thresold_amount_on_popup.default) {\n                    Swal.fire({\n                      title: 'Are you sure you want to save it?',\n                      icon: 'warning',\n                      html: '<p align=\"center\">You have entered a large amount of <i class=\"fas fa-rupee-sign\"></i> ' + total_amount + '.</p>',\n                      width: 600,\n                      showCancelButton: true,\n                      confirmButtonColor: '#3085d6',\n                      cancelButtonColor: '#d33',\n                      allowOutsideClick: false,\n                      confirmButtonText: 'Yes, save it!',\n                      cancelButtonText: 'No, cancel!',\n                      reverseButtons: true\n                    }).then(result => {\n                      if (result.isConfirmed) {\n                        if (eventAction != 2) {\n                          console.log('Action-block-A4');\n                          $('.advance_payment_obj').val(JSON.stringify(data));\n                          $('.bookappointmentbutton').trigger('click');\n                          var patient_id = $('.patient_id').val();\n                          _this.sendAction('submitOnSpot');\n                        } else {\n                          console.log('Action-block-B');\n                          data.appointment_id = $('.appointment_id').val();\n                          data.patient_id = $('.patient_id').val();\n                          data.doctor_id = $('.doctor_id').val();\n                          _this.receiveAdvancePayment(data, page_name);\n                          _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                        }\n                      }\n                    });\n                  } else {\n                    if (eventAction != 2) {\n                      console.log('Action-block-A3');\n                      $('.advance_payment_obj').val(JSON.stringify(data));\n                      $('.bookappointmentbutton').trigger('click');\n                      var patient_id = $('.patient_id').val();\n                      _this.sendAction('submitOnSpot');\n                    } else {\n                      console.log('Action-block-B');\n                      data.appointment_id = $('.appointment_id').val();\n                      data.patient_id = $('.patient_id').val();\n                      data.doctor_id = $('.doctor_id').val();\n                      _this.receiveAdvancePayment(data, page_name);\n                      _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                    }\n                  }\n                }\n              });\n            } else {\n              if (eventAction != 2) {\n                console.log('Action-block-A2');\n                $('.advance_payment_obj').val(JSON.stringify(data));\n                $('.bookappointmentbutton').trigger('click');\n                var patient_id = $('.patient_id').val();\n                _this.sendAction('submitOnSpot');\n              } else {\n                console.log('Action-block-B2');\n                data.appointment_id = $('.appointment_id').val();\n                data.patient_id = $('.patient_id').val();\n                data.doctor_id = $('.doctor_id').val();\n                _this.receiveAdvancePayment(data, page_name);\n                _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n              }\n            }\n          } else {\n            if (eventAction != 2) {\n              console.log('Action-block-A1');\n              $('.advance_payment_obj').val(JSON.stringify(data));\n              $('.bookappointmentbutton').trigger('click');\n              var patient_id = $('.patient_id').val();\n              _this.sendAction('submitOnSpot');\n            } else {\n              console.log('Action-block-B');\n              data.appointment_id = $('.appointment_id').val();\n              data.patient_id = $('.patient_id').val();\n              data.doctor_id = $('.doctor_id').val();\n              _this.receiveAdvancePayment(data, page_name);\n              _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n            }\n          }\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(error, $focusId);\n        }\n      },\n      prescribeSaveAndClose: function (print_id, eventAction, dispatch_data) {\n        var _this = this;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        var login_user_id = this.session.getLoggedInUserId();\n        var prescribe_branch = $('#prescribe_branch').val();\n        var prescribe_shift = $('#prescribe_shift').val();\n        var prescriptionemail = $('input[name=prescriptionemail]:checked').val();\n        var page_name = $('.page_name').val();\n        if (page_name == 'Manage Transaction') {\n          var medicine_details = '';\n          var patient_details = '';\n          var prescribing_doc_id = $('#PrescribingDoctor').val();\n          var medicine_print_code = $('#consultancy_print_code').val();\n          var consultancy_print_code = $('#medicine_print_code').val();\n        } else {\n          var medicine_details = JSON.parse($('#medicineobj').val());\n          var patient_details = JSON.parse($('#patientobj').val());\n          var prescribing_doc_id = patient_details[0]['prescribing_doc_id'];\n          var medicine_print_code = $('.grdtot').data('medprint');\n          var consultancy_print_code = $('.consultancy').data('consprint');\n        }\n        // for past visit error correction\n        var past_visit_date = $('#past_visit_date').val();\n        if (past_visit_date == undefined || past_visit_date != '') {\n          var visit_date = past_visit_date;\n        } else {\n          var visit_date = moment().format('YYYY-MM-DD[T]HH:mm:ss');\n        }\n        //console.log(page_name);\n        var medicine_total = $('.total').val();\n        var reference_no_data = $('.reference_no').map(function () {\n          var $this = $(this);\n          var jsObjectRefno = {};\n          jsObjectRefno['reference_no'] = $this.val();\n          jsObjectRefno['mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectRefno;\n        }).get();\n        var pg_charge_data = $('.payment_gateway_charge').map(function () {\n          var $this = $(this);\n          var jsObjectPGcharge = {};\n          jsObjectPGcharge['pg_charge'] = $this.val();\n          return jsObjectPGcharge;\n        }).get();\n        var pg_amount_data = $('.payment_gateway_amount').map(function () {\n          var $this = $(this);\n          var jsObjectPGamount = {};\n          jsObjectPGamount['pg_amount'] = $this.val();\n          return jsObjectPGamount;\n        }).get();\n        var transaction_mode = $('select#transaction_mode option:selected').val();\n        var payment_data_list = $('.payment-method').map(function () {\n          var $this = $(this);\n          var jsObjectmode = {};\n          jsObjectmode['mode_price'] = $this.val();\n          jsObjectmode['mode_name'] = $this.data('mode');\n          jsObjectmode['payment_mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectmode;\n        }).get();\n        var payment_mode_data = payment_data_list;\n        var charge_data_list = $('.box-charge').map(function () {\n          var $this = $(this);\n          var jsObjectfrrm = {};\n          jsObjectfrrm['price'] = $this.val();\n          jsObjectfrrm['name'] = $this.data('label');\n          jsObjectfrrm['charge_code'] = $this.data('charge_code');\n          return jsObjectfrrm;\n        }).get();\n        var factor_list = $('.qty').map(function () {\n          var $this = $(this);\n          var jsObjectfator = {};\n          jsObjectfator['factor'] = $this.val();\n          jsObjectfator['medid'] = $this.data('medid');\n          jsObjectfator['formrate'] = $this.data('formrate');\n          return jsObjectfator;\n        }).get();\n        var factor_data = factor_list;\n        var vial_list = $('.medicineVial').map(function () {\n          var $this = $(this);\n          var jsObjectvial = {};\n          jsObjectvial['medicine_vial'] = $this.val();\n          return jsObjectvial;\n        }).get();\n        var vial_data = vial_list;\n        var charge_data = charge_data_list;\n        if (charge_data_list.length > 0) {\n          var charge_data = charge_data_list;\n        } else {\n          var charge_data = 0;\n        }\n        var payment_mode = $('#payment_mode').val();\n        var recieved_amount = $('#recieved').val();\n        var billing_id = $('#billing_id').val();\n        var visiting_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        var visit_due = parseFloat($('#visit_due').data('visitdue')); //$('#visit_due').val();\n        var dueadv = $('#dueadv').children('option:selected').val();\n        var previous_due = parseFloat($('#previous_due').val());\n        var previous_due_edit_reason = $('#previous_due_edit_reason').val();\n        //Nishant 12-Oct-2022 in case of advance we should have negative value\n        if (dueadv == 'adv') {\n          previous_due = -1 * parseFloat(previous_due);\n        }\n        //var visit_total_due = parseFloat(visit_due) + parseFloat(previous_due); //Nishant 7-oct-2022 - previous due was getting addded to visit due wrongly\n        // var visit_with_previous_charge = parseFloat(visit_total_due).toFixed(2);\n        var total_due = $('#total_due').val();\n        var note = $('.note').val();\n        var refund_value = $('#refund_value').val();\n        if (refund_value != undefined) {\n          var refund = $('#refund_value').val();\n        } else {\n          var refund = '';\n        }\n\n        // console.log('#previous_due:'+previous_due);\n        // console.log('#visit_due:'+visit_due);\n        // console.log('#total_due:'+total_due);\n        // console.log('note:'+note);\n        // console.log('refund_value:'+refund_value);\n\n        var Prescriptions_Totals = $('.total').val();\n        var consutancy_fee = $('.consutancy_fee').val();\n        var payment_gateway_charge = $('.payment_gateway_charge').val();\n        var payment_gateway_amount = $('.payment_gateway_amount').val();\n        var previous_gateway_amount = $('.previous_gateway_amount').val();\n        if (previous_gateway_amount != undefined) {\n          var remove_pg_amount = $('.previous_gateway_amount').val();\n        } else {\n          var remove_pg_amount = 0;\n        }\n        var pg_amount = $('.gateway_charge').val();\n        var pg_percentage = $('.previous_pg_percentage').val();\n        if (pg_percentage != undefined) {\n          var previous_pg_percentage = $('.previous_pg_percentage').val();\n        } else {\n          var previous_pg_percentage = 0;\n        }\n        var currentpgamount = $('#current_pg_amount').val();\n        var previouspgamount = $('#previous_pg_amount').val();\n        var currentpgcharge = $('#current_pg_charge').val();\n        var current_pg_charge = isNaN(currentpgcharge) ? 0 : currentpgcharge;\n        var current_pg_amount = isNaN(currentpgamount) ? 0 : currentpgamount;\n        var previous_pg_amount = isNaN(previouspgamount) ? 0 : previouspgamount;\n        var factor_med_total = parseFloat($('.onthemed').text()).toFixed(2);\n        var factor_perce_value = parseInt($('.onthefly_per').text());\n        var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n        var med_after_discount = parseFloat($('.grdtot').val()).toFixed(2);\n        var medicine_amount = med_after_discount;\n        var consultancy = parseInt($('.consultancy').val());\n        var waive_type = $('.cons_waived').text();\n        var percentage_amout = parseInt($('.cons_amount').text());\n        var consultancy_percentage = isNaN(percentage_amout) ? 0 : percentage_amout;\n        if (consultancy > 0 && waive_type != 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Not Set';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy == '0.00' && waive_type == 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Waived';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0 && shift_id == 2) {\n          var consultancy_status = 'Evening Shift';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0) {\n          var consultancy_status = 'Discount Category';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else {\n          var consultancy_status = '';\n          var consultancy_discount = 0;\n        }\n\n        //Nishant 11/Nov/2022 - refactor code for remaining balance calculation\n        var {\n          balance,\n          remaining_balance,\n          remaining_Balance_Status\n        } = _this.getBalanceStatus(recieved_amount, total_due, balance, transaction_mode);\n        var ontheflymedicine_reason = $('.grdtot').data('reason');\n        if (ontheflymedicine_reason != undefined) {\n          var ontheflymedicine_reason = $('.grdtot').data('reason');\n        } else {\n          var ontheflymedicine_reason = null;\n        }\n        var ontheflyconsultancy_reason = $('.consultancy').data('consultancy_reason');\n        if (ontheflyconsultancy_reason != undefined) {\n          var consultancy_reason = $('.consultancy').data('consultancy_reason');\n        } else {\n          var consultancy_reason = null;\n        }\n        var bill_paid_amount = $('#total_recieved').val();\n        var previous_bill_paid_amount = isNaN(bill_paid_amount) ? 0 : bill_paid_amount;\n        /* Print Options */\n        var report_advice = $('input[name=\"report_advice\"]:checked').val();\n        var print_case = $('input[name=\"print_case\"]:checked').val();\n        var print_case_val = $('input[name=\"print_case_val\"]').val();\n        var clinic_used = $('input[name=\"clinic_used\"]:checked').val();\n        var print_option = $('input[name=\"print_option\"]:checked').val();\n        var evlp_label = $('input[name=\"evlp_label\"]:checked').val();\n        var inc_presc = $('input[name=\"inc_presc\"]:checked').val();\n        var add_label = $('input[name=\"add_label\"]:checked').val();\n        var med_label = $('input[name=\"med_label\"]:checked').val();\n        var domst_cons_presc = $('input[name=\"domst_cons_presc\"]:checked').val();\n        var cons_presc = $('input[name=\"cons_presc\"]:checked').val();\n        var receipt = $('input[name=\"receipt\"]:checked').val();\n        var medical_certificate = $('input[name=\"medical_certificate\"]:checked').val();\n        var myObject = new Object();\n        myObject.report_advice = report_advice;\n        myObject.print_case = print_case;\n        myObject.print_case_val = print_case_val;\n        myObject.clinic_used = clinic_used;\n        myObject.print_option = print_option;\n        myObject.evlp_label = evlp_label;\n        myObject.inc_presc = inc_presc;\n        myObject.add_label = add_label;\n        myObject.med_label = med_label;\n        myObject.domst_cons_presc = domst_cons_presc;\n        myObject.cons_presc = cons_presc;\n        myObject.receipt = receipt;\n        myObject.medical_certificate = medical_certificate;\n        var print_optionString = JSON.stringify(myObject);\n        //console.log(print_optionString);\n        ////This else added to resolving the issue for consultancy_status, 31 0ct 2019, Rahul khan\n        var data = {\n          visit_due: visit_due,\n          previous_due: previous_due,\n          total_due: total_due,\n          recieved_amount: recieved_amount,\n          note: note,\n          billing_id: billing_id,\n          visiting_id: visiting_id,\n          patient_id: patient_id,\n          charge_data: charge_data,\n          payment_mode: payment_mode,\n          factor_med_total: factor_med_total,\n          factor_perce_value: factor_perce_value2,\n          med_after_discount: med_after_discount,\n          factor_data: factor_data,\n          consultancy: consultancy_discount,\n          consultancy_status: consultancy_status,\n          consultancy_percentage: consultancy_percentage,\n          payment_mode_data: payment_mode_data,\n          reference_no_data: reference_no_data,\n          vial_data: vial_data,\n          user_id: login_user_id,\n          medicine_descount_reason: ontheflymedicine_reason,\n          previous_bill_paid_amount: previous_bill_paid_amount,\n          consultancy_reason: consultancy_reason,\n          refund: refund,\n          prescribing_doc_id: prescribing_doc_id,\n          consutancy_fee: consutancy_fee,\n          payment_gateway_charge: payment_gateway_charge,\n          payment_gateway_amount: payment_gateway_amount,\n          remove_pg_amount: remove_pg_amount,\n          previous_pg_percentage: previous_pg_percentage,\n          print_optionString: print_optionString,\n          shift_id: shift_id,\n          branch_id: branch_id,\n          medicine_print_code: medicine_print_code,\n          consultancy_print_code: consultancy_print_code,\n          dispatch_data: dispatch_data,\n          pg_charge_data: pg_charge_data,\n          pg_amount_data: pg_amount_data,\n          transaction_mode: transaction_mode,\n          previous_due_edit_reason: previous_due_edit_reason,\n          previous_pg_amount: previous_pg_amount,\n          current_pg_amount: current_pg_amount,\n          current_pg_charge: current_pg_charge,\n          visit_date: visit_date,\n          prescribe_branch: prescribe_branch,\n          prescribe_shift: prescribe_shift,\n          page_name: page_name,\n          //Nishant added Page_name to check in biilingcontoller->patientpayment function . if coming from Manage trans page then we don't update visit_status table\n          prescription_email: prescriptionemail\n        };\n        //console.log(page);\n        //console.log(data);\n        //return false;\n        //_this.prescribeSaveAndClose(recieved_amount, data, medicine_amount,remaining_balance,remaining_Balance_Status,payment_mode_data,vial_data,charge_data,factor_perce_value2,consultancy_status,refund, Prescriptions_Totals,previous_due,npPrintEvent);\n\n        //Nishant 11-Nov-2022 - If refund then we need to pass negative recvd amount for proper calculation.\n        //Pls note that in database recived amount is saved without any sign using the 'data' object created above.\n        //This is just to handle frontend display\n        if (transaction_mode == '1')\n          //Refund selected by user\n          var recieved_amount = -1 * recieved_amount;\n        _this.prescribeSaveAndClose(recieved_amount, data, print_id, medicine_details, patient_details, eventAction, medicine_total, medicine_amount, remaining_balance, remaining_Balance_Status, payment_mode_data, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, page_name);\n        //console.log(data);\n      }\n    },\n    resetPreviousDue: function () {\n      var _this = this;\n      var $previous_due = $('#previous_due');\n      var $previous_due_edit_reason = $('#previous_due_edit_reason');\n      var $dueadv = $('#dueadv');\n      var $editbutton = $('#editbutton');\n      var $editicon = $('.editicon');\n      var $texttoggle = $('.texttoggle');\n      var $newvisitdue = $('.newvisitdue');\n      $previous_due.attr('readonly', 'readonly');\n      $previous_due.val($previous_due.attr('data-previousdue'));\n      $previous_due_edit_reason.attr('readonly', 'readonly');\n      $editbutton.removeClass('btn-danger').addClass('btn-primary');\n      $editicon.removeClass('fa fa-times').addClass('far fa-edit');\n      $dueadv.attr('disabled', 'disabled');\n      $texttoggle.text('Edit Previous Balance');\n      var val = $dueadv.attr('data-adueadv');\n      $dueadv.val(val);\n      _this.recalculateAmount.calculateTotalReceivedWithPGChargeAmountReset(val);\n      $previous_due_edit_reason.removeAttr('previousclick');\n      $previous_due_edit_reason.val(''); //Nishant 9-oct-2022 reset val\n    },\n    prescribeSaveAndClose: function (recieved_amount, data, print_id, medicine_details, patient_details, eventAction, medicine_total, medicine_amount, remaining_balance, remaining_Balance_Status, payment_mode_data, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, page_name) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.get('i18n');\n      var error = '';\n      var $focusId = '';\n      var edit_reason = $('#previous_due_edit_reason').attr('previousclick');\n      var reason = $('#previous_due_edit_reason').val();\n      if (consultancy_print_code == undefined) {\n        var consultancy_print_code = $('#visit_due').data('consprint');\n      }\n      if (medicine_print_code == undefined) {\n        var medicine_print_code = $('#visit_due').data('medprint');\n      }\n      if (payment_mode_data == undefined || payment_mode_data == 1 || payment_mode_data == '') {\n        var payment_data = $('.payment-method').map(function () {\n          var $this = $(this);\n          var jsObjectmode = {};\n          jsObjectmode['mode_price'] = $this.val();\n          jsObjectmode['mode_name'] = $this.data('mode');\n          jsObjectmode['payment_mode_id'] = $this.attr('id').replace(/[^\\d.]/g, '');\n          return jsObjectmode;\n        }).get();\n        var mode_data = payment_data;\n      } else {\n        var mode_data = payment_mode_data;\n      }\n\n      //Nishant 11/Nov/2022 - we need to add previous recvd amount to the current received for correct total recvd value in prints.\n      var bill_paid_amount = parseFloat($('#total_recieved').val()).toFixed(2);\n      var print_bill_paid_amount = isNaN(bill_paid_amount) ? 0 : bill_paid_amount;\n      console.log('total_recvd:' + print_bill_paid_amount);\n      if (refund == undefined) {\n        var refund_value = $('#refund_value').val();\n        if (refund_value != undefined) {\n          var refund = $('#refund_value').val();\n        }\n      }\n      var TotalBalance = $('#total_due').val();\n      var TotalAmount = $('#recieved').val();\n      var previous_balance = $('#previous_due').val();\n      var total_balance = parseFloat(TotalBalance).toFixed(2);\n      var total_amount = parseFloat(TotalAmount).toFixed(2);\n      if (previous_balance.length == 0) {\n        error += \"<p align='center'>Please enter previous balance.</p>\";\n        $focusId = 'previous_due';\n      } else if (previous_balance.length > 0 && edit_reason == '1' && reason.length == 0) {\n        error += \"<p align='center'>Please enter edit reason.</p>\";\n        $focusId = 'previous_due_edit_reason';\n      } else if (previous_balance.length > 0 && edit_reason == '1' && reason.length < 10) {\n        error += \"<p align='center'>Edit reason should be minimum 10 characters.</p>\";\n        $focusId = 'previous_due_edit_reason';\n      } else if (mode_data.firstObject == undefined) {\n        error += \"<p align='center'>Please select payment mode.</p>\";\n        $focusId = 'payment_mode';\n      } else if (mode_data.firstObject != undefined) {\n        $.each(mode_data, function (index, item) {\n          if (item.mode_price.trim() == '') {\n            error += \"<p align='center'>Please enter \" + item.mode_name + ' amount.</p>';\n            $('.payment_' + item.payment_mode_id).addClass('error');\n          } else {\n            $('.payment_' + item.payment_mode_id).removeClass('error');\n          }\n          index++;\n          $focusId = 'payment_' + item.payment_mode_id;\n        });\n      } else if (recieved_amount == '') {\n        error += \"<p align='center'>Enter Recieved Amount.</p>\";\n        $focusId = 'recieved';\n      }\n      // if (total_amount > total_balance) {\n      //     error += \"<p align='center'><b>Total Amount</b> is greater than <b>Total Balance</b> So please enter amount less than or equal to.</p>\";\n      //     $focusId = 'recieved';\n      // }\n      if (error == '') {\n        var datass = data;\n        // For billing location and parmacy location when advance payment receipt/refund from manage transaction in that case we can use default logged branch id as billing_location and pharmacy_location\n        if (page_name == 'Manage Transaction' && pharmacy_location == undefined && billing_location == undefined) {\n          var branch_detail = _this.session.getLocation().split('-');\n          var branch_id = branch_detail[0];\n          var pharmacy_location = branch_id;\n          var billing_location = branch_id;\n        } else {\n          var pharmacy_location = $('#pharmacy_location').val();\n          var billing_location = $('#billing_location').val();\n        }\n        datass['pharmacy_location'] = pharmacy_location;\n        datass['billing_location'] = billing_location;\n        console.log(datass);\n        console.log(page_name);\n        if (total_amount > total_balance || total_amount < total_balance) {\n          Swal.fire({\n            title: 'Are you sure you want to continue?',\n            icon: 'warning',\n            html: '<p align=\"center\"><b>Total Amount <i class=\"fas fa-rupee-sign\"></i>: ' + total_amount + '</b> you have entered is not same as the system calculated <b>Total Balance: <i class=\"fas fa-rupee-sign\"></i>: ' + total_balance + \"</b>. The difference will show in patient's balance next time.</p>\",\n            width: 600,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            allowOutsideClick: false,\n            confirmButtonText: 'Yes, save it!',\n            cancelButtonText: 'No, cancel!',\n            reverseButtons: true\n          }).then(result => {\n            if (result.isConfirmed) {\n              if (total_amount > _environment.default.received_thresold_amount_on_popup.default) {\n                Swal.fire({\n                  title: 'Are you sure you want to save it?',\n                  icon: 'warning',\n                  html: '<p align=\"center\">You have entered a large amount of <i class=\"fas fa-rupee-sign\"></i> ' + total_amount + '.</p>',\n                  width: 600,\n                  showCancelButton: true,\n                  confirmButtonColor: '#3085d6',\n                  cancelButtonColor: '#d33',\n                  allowOutsideClick: false,\n                  confirmButtonText: 'Yes, save it!',\n                  cancelButtonText: 'No, cancel!',\n                  reverseButtons: true\n                }).then(result => {\n                  if (result.isConfirmed) {\n                    _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                    $.ajax({\n                      url: _environment.default.APP.lumen_api_url + 'billing/payment',\n                      method: 'POST',\n                      data: datass,\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (res) {\n                        _this.sendAction('paymentsaved', res, page_name);\n                      },\n                      complete: function () {\n                        //Nishant 11-Nov-22 - removed unused function call to paymentcomplete\n\n                        if (page_name != 'Manage Transaction' || page_name != 'Billed Patient Details') {\n                          if ((medicine_details != undefined || medicine_details.length > 0) && (patient_details != undefined || patient_details.length > 0)) {\n                            //This below code is used for calling the reprintOptions function to make prints according to checkbox, Shubh tiwari As on 12 Dece 2021\n                            _this.getRePrints(parseFloat(recieved_amount) + parseFloat(print_bill_paid_amount), medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction);\n                          }\n                        }\n                      }\n                    });\n                    _this.send('ResetPopupPaymentMode');\n                  }\n                });\n              } else {\n                _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n                $.ajax({\n                  url: _environment.default.APP.lumen_api_url + 'billing/payment',\n                  method: 'POST',\n                  data: datass,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    _this.sendAction('paymentsaved', res, page_name);\n                  },\n                  complete: function () {\n                    //Nishant 11-Nov-22 - removed unused function call to paymentcomplete\n\n                    if (page_name != 'Manage Transaction' || page_name != 'Billed Patient Details') {\n                      if ((medicine_details != undefined || medicine_details.length > 0) && (patient_details != undefined || patient_details.length > 0)) {\n                        //This below code is used for calling the reprintOptions function to make prints according to checkbox, Shubh tiwari As on 12 Dece 2021\n                        _this.getRePrints(parseFloat(recieved_amount) + parseFloat(print_bill_paid_amount), medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction);\n                      }\n                    }\n                  }\n                });\n                _this.send('ResetPopupPaymentMode');\n              }\n            }\n          });\n        } else {\n          _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'billing/payment',\n            method: 'POST',\n            data: datass,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.sendAction('paymentsaved', res, page_name);\n            },\n            complete: function () {\n              //Nishant 11-Nov-22 - removed unused function call to paymentcomplete\n              if (page_name != 'Manage Transaction' || page_name != 'Billed Patient Details') {\n                if ((medicine_details != undefined || medicine_details.length > 0) && (patient_details != undefined || patient_details.length > 0)) {\n                  //This below code is used for calling the reprintOptions function to make prints according to checkbox, Shubh tiwari As on 12 Dece 2021\n                  _this.getRePrints(parseFloat(recieved_amount) + parseFloat(print_bill_paid_amount), medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction);\n                }\n              }\n            }\n          });\n          _this.send('ResetPopupPaymentMode');\n        }\n      } else {\n        _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(error, $focusId);\n      }\n    },\n    getRePrints: function (recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction, printfrom) {\n      var _this = this;\n      // console.log(eventAction);\n      // console.log(print_id);\n      var visit_charge_code_array = [];\n      var medicine_object = $('#medicineobj').val();\n      var patient_object = $('#patientobj').val();\n      if (medicine_object == undefined && patient_object == undefined) {\n        var medicineDetails = null;\n        var patientDetails = null;\n      } else {\n        var medicineDetails = JSON.parse($('#medicineobj').val());\n        var patientDetails = JSON.parse($('#patientobj').val());\n      }\n      var pg_amount = _this.get('billed_gateway_charge');\n      var visit_pending_amount = _this.get('visit_pending_amount');\n      var recevedAmount = _this.get('visitTotalReceived');\n      var PrescriptionTotal = _this.get('PrescriptionTotal');\n      var medicineTotal = _this.get('medicineTotal');\n      var remainingBalanceStatus = _this.get('remainingBalanceStatus');\n      var total_due_amount = _this.get('total_due_amount');\n      var recieved_paid_amount = _this.get('recieved_amount');\n      //var refundStatus= _this.get('refundStatus');\n      var remainingBalance = _this.get('remainingBalance');\n      var UserchangeVialData = _this.get('changeVialData');\n      var visit_charges = _this.get('charge_code');\n      var medDiscounts = _this.get('medDiscounts');\n      var consultancy_waived = _this.get('consultancy_waived');\n      var cons_print_code = _this.get('consultancy_print_code');\n      var med_print_code = _this.get('medicine_print_code');\n      var refundStatus = refund;\n      if (pg_amount == undefined) {\n        var pg_amount = pg_amount;\n      }\n      //console.log(pg_amount);\n      if (medicineTotal == undefined) {\n        var medicineTotal = medicine_amount;\n      }\n      if (recevedAmount == undefined) {\n        var recevedAmount = recieved_amount;\n      }\n      if (remainingBalanceStatus == undefined) {\n        var remainingBalanceStatus = remaining_Balance_Status;\n      }\n      if (remainingBalance == undefined) {\n        var remainingBalance = remaining_balance;\n      }\n      if (UserchangeVialData == undefined) {\n        var UserchangeVialData = vial_data;\n      }\n      if (visit_charges == undefined) {\n        if (charge_data.firstObject != undefined) {\n          $.each(charge_data, function (key, value) {\n            visit_charge_code_array.push(value.charge_code.toUpperCase());\n          });\n        }\n        var visit_charges = visit_charge_code_array;\n      }\n      if (medDiscounts == undefined) {\n        var medDiscounts = factor_perce_value2;\n      }\n      if (consultancy_waived == undefined) {\n        var consultancy_waived = consultancy_status;\n      }\n      if (cons_print_code == undefined) {\n        cons_print_code = consultancy_print_code;\n      }\n      if (med_print_code == undefined) {\n        med_print_code = medicine_print_code;\n      }\n      // if(refundStatus==undefined){\n      //     refundStatus = refund;\n      // }\n      if (PrescriptionTotal == undefined) {\n        PrescriptionTotal = Prescriptions_Totals;\n      }\n      if (visit_pending_amount == undefined) {\n        visit_pending_amount = previous_due;\n      }\n\n      //console.log(remainingBalanceStatus);\n      var printFormats = [];\n      $('input.cw_print_check:checked').each(function () {\n        var value = this.value;\n        printFormats.push(value);\n      });\n      // return false;\n      if (printFormats.indexOf('1') !== -1) {\n        // console.log(\"Domestic Prescription\");\n        var appointment_id = $('input[type=hidden][name=visiting_id]').val();\n        var patient_id = $('input[type=hidden][name=patient_id]').val();\n        var doctor_id = $('input[type=hidden][name=PrescribingDoctor]').val();\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          _this.print.getAdvisedPrint(appointment_id, patient_id, doctor_id);\n        }\n      }\n      //This below print function is works for Domestic prescription print\n      if (printFormats.indexOf('inc_presc') !== -1) {\n        // console.log(\"Domestic Prescription\");\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.prescription(medicineDetails, patientDetails, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, printUser);\n        }\n      }\n      //This below print function is works for International Prescription Print\n      if (printFormats.indexOf('cons_presc') !== -1) {\n        //console.log('International Prescription');\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.prescription_receipt(medicineDetails, patientDetails, medicineTotal, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, printUser);\n        }\n      }\n      //This below print function is works for Domestic Consignment Prescription Print\n      if (printFormats.indexOf('domst_cons_presc') !== -1) {\n        //console.log('Domestic Consignment Prescription');\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.domestic_prescription(medicineDetails, patientDetails, recevedAmount, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, PrescriptionTotal, visit_pending_amount, remainingBalance, remainingBalanceStatus, refundStatus, total_due_amount, recieved_paid_amount, pg_amount, printUser);\n        }\n      }\n      //This below print function is works for Medicine Vials Print\n      if (printFormats.indexOf('med_label') !== -1) {\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.label(medicineDetails, patientDetails, UserchangeVialData, printUser);\n        }\n      }\n      //This below print function is works for Reciept Print\n      if (printFormats.indexOf('receipt') !== -1) {\n        //console.log(\"Receipt\");\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.receipt(patientDetails, recevedAmount, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, refundStatus, PrescriptionTotal, visit_pending_amount, printfrom, pg_amount, printUser);\n        }\n      }\n      //This below function is works for Reciept Print with charges\n      if (printFormats.indexOf('receipt_with_charge') !== -1) {\n        //alert(\"receipt_with_charge reprint\")\n        // console.log(\"Receipt\");\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          _this.receipt_with_charge(patientDetails, recevedAmount);\n        }\n      }\n      //This below function is works for address label print\n      if (printFormats.indexOf('add_label') !== -1) {\n        // console.log(\"Receipt\");\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.address_label(patientDetails);\n        }\n      }\n      //This below function is works for enevelope lable print\n      if (printFormats.indexOf('evlp_label') !== -1) {\n        var called = 'getprint';\n        //console.log(eventAction);\n        //console.log(print_id);\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          let printUser = this.session.printUser();\n          _this.print.envelope_label(medicineDetails, patientDetails, recevedAmount, remainingBalance, remainingBalanceStatus, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, refundStatus, PrescriptionTotal, total_due_amount, recieved_paid_amount, visit_pending_amount, pg_amount, printUser);\n        }\n      }\n    },\n    receiveAdvancePayment(data, page_name) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.get('i18n');\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'billing/advancepayment',\n        method: 'POST',\n        data: data,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.sendAction('paymentsaved', res, page_name);\n        },\n        complete: function () {\n          _this.sendAction('updateList');\n          _this.sendAction('updateDkbList');\n          _this.sendAction('updateDoctorList');\n          _this.send('ResetPopupPaymentMode');\n          //_this.sendAction('paymentcomplete',medicine_details,patient_details,recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, print_id, eventAction);\n          //console.log(\"complete\");\n        }\n      });\n    },\n    //Nishant 11/Nov/2022 - refactored Function to return balance status\n    getBalanceStatus: function (recieved_amount, total_due, balance, transaction_mode) {\n      //console.log('TD:'+total_due);\n      //console.log('mode:'+ transaction_mode);\n      //console.log('recvd:'+recieved_amount);\n      //console.log('balance:' + balance);\n      //convert sting to float value\n      var TotalrecievedAmount = parseFloat(recieved_amount);\n      var totalDueAmount = parseFloat(total_due);\n      //console.log(typeof TotalrecievedAmount);\n      //console.log(typeof totalDueAmount);\n      if (transaction_mode == '1') {\n        //Refund selected by user\n        var refund_amount = -1 * TotalrecievedAmount;\n        if (refund_amount > totalDueAmount) {\n          var balance = parseFloat(refund_amount) - parseFloat(totalDueAmount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'ADVANCE';\n        } else if (refund_amount < totalDueAmount) {\n          var balance = parseFloat(totalDueAmount) - parseFloat(refund_amount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'DUE';\n        } else if (refund_amount == totalDueAmount) {\n          var balance = '0.00';\n          var remaining_balance = '0.00';\n          var remaining_Balance_Status = 'DUE';\n        }\n      } else {\n        if (TotalrecievedAmount < totalDueAmount) {\n          var balance = parseFloat(totalDueAmount) - parseFloat(TotalrecievedAmount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'DUE';\n        } else if (TotalrecievedAmount > totalDueAmount) {\n          var balance = parseFloat(TotalrecievedAmount) - parseFloat(totalDueAmount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'ADVANCE';\n        } else if (TotalrecievedAmount == totalDueAmount) {\n          var balance = '0.00';\n          var remaining_balance = '0.00';\n          var remaining_Balance_Status = 'DUE';\n        }\n      }\n      //console.log('remaining_balance:' + remaining_balance);\n      //console.log('remaining_Balance_Status:' + remaining_Balance_Status);\n      return {\n        balance,\n        remaining_balance,\n        remaining_Balance_Status\n      };\n    }\n  });\n});","define(\"clinic-dev/components/pending-details-list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"@ember/application\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      goToNext: function (patient_id, visit_id, bill_id, page_no) {\n        console.log('im here in next' + page_no);\n        // if (this.get('hasNext')) {\n        //this.sendAction('goToNext');\n        //this.set('page_no', page_no - 1);\n        this.goToNext(patient_id, visit_id, bill_id, page_no);\n        // }\n      },\n      goToPrev: function (patient_id, visit_id, bill_id, page_no) {\n        console.log('im here in prev' + page_no);\n        // if (this.get('hasPrevious')) {\n        //     this.sendAction('goToPrev');\n        this.goToPrev(patient_id, visit_id, bill_id, page_no);\n        // }\n      },\n      goToPage: function (patient_id, visit_id, bill_id, page_no) {\n        console.log('im here in page' + page_no);\n        //if (page_no >= 1 && page_no <= this.get('no_of_pages')) {\n        if (page_no == this.no_of_pages) {\n          this.goToPrev(patient_id, visit_id, bill_id, page_no - 1);\n        }\n        if (page_no == 1) {\n          this.goToNext(patient_id, visit_id, bill_id, page_no + 1);\n        }\n      }\n    },\n    goToNext: function (patient_id, visit_id, bill_id, page_no) {\n      this.pendingDetails(patient_id, visit_id, bill_id, page_no - 1); //recent records are first so reduce page no.\n    },\n    goToPrev: function (patient_id, visit_id, bill_id, page_no) {\n      this.pendingDetails(patient_id, visit_id, bill_id, page_no + 1);\n    },\n    pendingDetails: function (patient_id, visit_id, bill_id, to_page_no) {\n      var _this = this;\n      _this.get('serviceIcpattend').pendingDetails(patient_id, visit_id, bill_id, to_page_no, function (data, page_no, no_of_pages) {\n        _this.set('Pendingdetailslist', data);\n        _this.set('page_no', page_no);\n        _this.set('no_of_pages', no_of_pages);\n        // console.log(_this.get('Pendingdetailslist'));\n      });\n    }\n  });\n});","define(\"clinic-dev/components/pending-refund-popup\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class PendingRefundPopupComponent extends _component.default {}\n  _exports.default = PendingRefundPopupComponent;\n});","define(\"clinic-dev/components/pharmacy-details-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    actions: {\n      // for consultancy weave function\n      consultancyWave: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var consultancy = $('.consultancy').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var grandTotal = 0;\n        if (consultancy == '') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to waive ' + consultancy + ' consultancy fees?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/consultancywaive';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  consultancy: consultancy,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'consultancywaved') {\n                    var message = i18n.t('billing.messages.consultancywaived', {\n                      object: consultancy\n                    });\n                    _this.flashes.success(message);\n                    $('.consultancy').val(0.0);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      // for pending amount weave function\n      pendingWave: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var pending = $('.pending').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var grandTotal = 0;\n        if (pending == '') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to waive ' + pending + ' pending amount?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/pendingwaive';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  pending: pending,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'pendingwaived') {\n                    var message = i18n.t('billing.messages.pendingwaived', {\n                      object: consultancy\n                    });\n                    _this.flashes.success(message);\n                    $('.pending').val(0.0);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      addCharge() {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var html = '';\n        var value = $('#medicine_charge option:selected').val();\n        var label = $('#medicine_charge option:selected').text();\n        var charge_id = $('#medicine_charge option:selected').data('cid');\n        var grandTotal = 0;\n        if (value == '') {\n          var message = i18n.t('billing.messages.selectcharge');\n          _this.flashes.danger(message);\n        } else {\n          if (label == 'Other') {\n            html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n            html += '<div class=\"col-sm-4\"><label>' + label + ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n            html += '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input id=\"othercharge\" class=\"form-control box-charge numeric\" type=\"text\" id=\"' + charge_id + '\" /></div>';\n            html += '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-charge_value=\"' + value + '\" data-cids=\"' + charge_id + '\" data-charge=\"' + label + '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n            html += '</div>';\n          } else {\n            html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n            html += '<div class=\"col-sm-4\"><label>' + label + ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n            html += '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input class=\"form-control box-charge inputreadonly\" type=\"text\" id=\"' + charge_id + '\" value=\"' + parseFloat(value).toFixed(2) + '\"/></div>';\n            html += '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-charge_value=\"' + value + '\" data-cids=\"' + charge_id + '\" data-charge=\"' + label + '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n            html += '</div>';\n          }\n          $('#chargebox').append(html);\n          $('#medicine_charge option:disabled').prop('disabled', false);\n          $('#medicine_charge option:selected').prop('disabled', true);\n          $('.box-charge').each(function () {\n            var stval = parseFloat($(this).val());\n            grandTotal += isNaN(stval) ? 0 : stval;\n          });\n          var grand_total = $('.grdtot').val();\n          var consultancy = $('.consultancy').val();\n          var pending = $('.pending').val();\n          var charge = parseInt(consultancy, 10) + parseFloat(pending);\n          var total = parseInt(charge) + parseFloat(grand_total) + grandTotal;\n          var eVal = isNaN(total) ? 0.0 : total;\n          var med_totals = parseFloat(eVal).toFixed(2);\n          $('.total').val(med_totals);\n        }\n      },\n      applyDiscountCharge() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var disc_value = $('.discount_percentage').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var garndt_value = $('.grdtot').val();\n        var grandTotal = 0;\n        if (disc_value == '') {\n          var message = i18n.t('billing.messages.selectdiscount');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to apply ' + disc_value + '% on medicine total=' + garndt_value,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/discountonthefly';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  medicine_total: garndt_value,\n                  discount: disc_value,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'applydiscount') {\n                    var message = i18n.t('billing.messages.applydiscount', {\n                      object: disc_value\n                    });\n                    _this.flashes.success(message);\n                    $('.grdtot').val(res.discount_value);\n                    $('.med_dic').text(res.discount_value);\n                    //$('.med_per').html(res.disc_value);\n                    //_this.set('onthefly', res.disc_value);\n                    //_this.controllerFor('billing').set('onthefly',  res.disc_value);\n                  } else if (res.error == true && res.message == 'notgreater') {\n                    var message = i18n.t('billing.messages.notgreater');\n                    _this.flashes.danger(message);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.discount_percentage').val('');\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      goBack() {\n        history.back();\n      }\n    }\n  });\n});","define(\"clinic-dev/components/pharmacy-history-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/pharmacy-view-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    actions: {\n      // for consultancy weave function\n      consultancyWave: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var consultancy = $('.consultancy').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var grandTotal = 0;\n        if (consultancy == '') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to waive ' + consultancy + ' consultancy fees?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/consultancywaive';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  consultancy: consultancy,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'consultancywaved') {\n                    var message = i18n.t('billing.messages.consultancywaived', {\n                      object: consultancy\n                    });\n                    _this.flashes.success(message);\n                    $('.consultancy').val(0.0);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      // for pending amount weave function\n      pendingWave: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var pending = $('.pending').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var grandTotal = 0;\n        if (pending == '') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to waive ' + pending + ' pending amount?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/pendingwaive';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  pending: pending,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'pendingwaived') {\n                    var message = i18n.t('billing.messages.pendingwaived', {\n                      object: consultancy\n                    });\n                    _this.flashes.success(message);\n                    $('.pending').val(0.0);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      addCharge() {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var html = '';\n        var value = $('#medicine_charge option:selected').val();\n        var label = $('#medicine_charge option:selected').text();\n        var charge_id = $('#medicine_charge option:selected').data('cid');\n        var grandTotal = 0;\n        if (value == '') {\n          var message = i18n.t('billing.messages.selectcharge');\n          _this.flashes.danger(message);\n        } else {\n          if (label == 'Other') {\n            html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n            html += '<div class=\"col-sm-4\"><label>' + label + ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n            html += '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input id=\"othercharge\" class=\"form-control box-charge numeric\" type=\"text\" id=\"' + charge_id + '\" /></div>';\n            html += '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-charge_value=\"' + value + '\" data-cids=\"' + charge_id + '\" data-charge=\"' + label + '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n            html += '</div>';\n          } else {\n            html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n            html += '<div class=\"col-sm-4\"><label>' + label + ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n            html += '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input class=\"form-control box-charge inputreadonly\" type=\"text\" id=\"' + charge_id + '\" value=\"' + parseFloat(value).toFixed(2) + '\"/></div>';\n            html += '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-charge_value=\"' + value + '\" data-cids=\"' + charge_id + '\" data-charge=\"' + label + '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n            html += '</div>';\n          }\n          $('#chargebox').append(html);\n          $('#medicine_charge option:disabled').prop('disabled', false);\n          $('#medicine_charge option:selected').prop('disabled', true);\n          $('.box-charge').each(function () {\n            var stval = parseFloat($(this).val());\n            grandTotal += isNaN(stval) ? 0 : stval;\n          });\n          var grand_total = $('.grdtot').val();\n          var consultancy = $('.consultancy').val();\n          var pending = $('.pending').val();\n          var charge = parseInt(consultancy, 10) + parseFloat(pending);\n          var total = parseInt(charge) + parseFloat(grand_total) + grandTotal;\n          var eVal = isNaN(total) ? 0.0 : total;\n          var med_totals = parseFloat(eVal).toFixed(2);\n          $('.total').val(med_totals);\n        }\n      },\n      applyDiscountCharge() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var disc_value = $('.discount_percentage').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var garndt_value = $('.grdtot').val();\n        var grandTotal = 0;\n        if (disc_value == '') {\n          var message = i18n.t('billing.messages.selectdiscount');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to apply ' + disc_value + '% on medicine total=' + garndt_value,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              var _this = this;\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/discountonthefly';\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  medicine_total: garndt_value,\n                  discount: disc_value,\n                  bill_id: bill_id,\n                  visit_id: visit_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.message == 'applydiscount') {\n                    var message = i18n.t('billing.messages.applydiscount', {\n                      object: disc_value\n                    });\n                    _this.flashes.success(message);\n                    $('.grdtot').val(res.discount_value);\n                    $('.med_dic').text(res.discount_value);\n                    //$('.med_per').html(res.disc_value);\n                    //_this.set('onthefly', res.disc_value);\n                    //_this.controllerFor('billing').set('onthefly',  res.disc_value);\n                  } else if (res.error == true && res.message == 'notgreater') {\n                    var message = i18n.t('billing.messages.notgreater');\n                    _this.flashes.danger(message);\n                  } else if (res.error == true && res.message == 'datainsufficient') {\n                    var message = i18n.t('billing.messages.datainsufficient');\n                    _this.flashes.danger(message);\n                  }\n                },\n                complete: function (res) {\n                  $('.discount_percentage').val('');\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  if (grandTotal != '') {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charge = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charge) + parseFloat(number) + grandTotal;\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  } else {\n                    var grand_total = $('.grdtot').val();\n                    var number = Number(grand_total.replace(/[^0-9\\.-]+/g, ''));\n                    var consultancy = $('.consultancy').val();\n                    var pending = $('.pending').val();\n                    var charges = parseFloat(consultancy) + parseFloat(pending);\n                    var total = parseFloat(charges) + parseFloat(number);\n                    var eVal = isNaN(total) ? 0.0 : total;\n                    var med_totals = parseFloat(eVal).toFixed(2);\n                    $('.total').val(med_totals);\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      goBack() {\n        history.back();\n      }\n    }\n  });\n});","define(\"clinic-dev/components/phone-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/phone-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/phone-patients-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      reSchedulePatient(id) {\n        this.sendAction('reScheduleModal', id);\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        this.sendAction('urgentModal', appointment_id, urgent_status, urgent_note);\n      },\n      markNotUrgentPatient(id) {\n        this.sendAction('notUrgentPatient', id);\n      },\n      patientAbsent(id, absent) {\n        this.sendAction('markPatientAbsent', id, absent);\n      },\n      cancelPatient(id) {\n        this.sendAction('cancelPatientId', id);\n      },\n      drreschedulepatient(id) {\n        this.sendAction('drreschedulepatient', id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/pikaday-input\", [\"exports\", \"ember-pikaday/components/pikaday-input\"], function (_exports, _pikadayInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-pikaday/components/pikaday-input\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _pikadayInput.default;\n});","define(\"clinic-dev/components/pikaday-inputless\", [\"exports\", \"ember-pikaday/components/pikaday-inputless\"], function (_exports, _pikadayInputless) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pikadayInputless.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-pikaday/components/pikaday-inputless\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/components/prescribe-detail-component-preview\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"@ember/application\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    routing: Ember.inject.service('-routing'),\n    recalculateAamount: Ember.inject.service('recalculate-amount'),\n    // init: function () {\n    //   this._super(...arguments);\n    //   const currentRouteName = this.get('routing.currentRouteName');\n    //   const currentRouteInstance = getOwner(this).lookup(\n    //     `route:${currentRouteName}`\n    //   );\n    //   //console.log(currentRouteInstance);\n    //   currentRouteInstance.refresh();\n    // },\n    consultancyFullName: Ember.computed('consultancy_code', function () {\n      let code = this.get('consultancy_code');\n      if (code === 'cns' || code === 'SED' || code === 'SDC') {\n        return 'Domestic Consultancy';\n      }\n      if (code === 'SEI') {\n        return 'International Consultancy';\n      }\n      return '';\n    }),\n    actions: {\n      refresh() {\n        const currentRouteName = this.get('routing.currentRouteName');\n        const currentRouteInstance = Ember.getOwner(this).lookup(`route:${currentRouteName}`);\n        //console.log(currentRouteInstance);\n        currentRouteInstance.refresh();\n      },\n      checkMaxPrintCopy: function () {\n        var val = $('#print_case_val').val();\n        var input = parseInt(val);\n        if (input < 0 || input > 9) {\n          $('#print_case_val').val('');\n          alert('Print copy allow between 1 - 9');\n          return;\n        }\n      },\n      // This function related to pending amount detail showing function modify as on 07 Aug 2019 Shubh Tiwari\n      pendingDetails: function () {\n        var _this = this;\n        jQuery.noConflict();\n        let i18n = _this.get('i18n');\n        var patient_id = $('#patient_id').val();\n        var visit_id = $('#visiting_id').val();\n        var bill_id = $('#billing_id').val();\n        //Nishant 14/15-Nov-2022: show pagination in previous details popup and convert to component.\n        //Centralize code in service to avoid redundant api calling and pagination handling\n        _this.set('no_of_pages', '');\n        _this.set('page_no', '');\n        _this.get('serviceIcpattend').pendingDetails(patient_id, visit_id, bill_id, 1, function (data, page_no, no_of_pages) {\n          _this.set('Pendingdetailslist', data);\n          _this.set('page_no', page_no);\n          _this.set('no_of_pages', no_of_pages);\n          // console.log(_this.get('Pendingdetailslist'));\n        });\n      },\n      otherChargeValidation: function (value) {\n        if (value.data == null) {\n          alert('FFFFFF');\n        }\n        console.log(value);\n      }\n    },\n    afterModel() {\n      _this.routing.refresh();\n    }\n  });\n});","define(\"clinic-dev/components/prescribe-detail-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    consultancyFullName: Ember.computed('consultancy_code', function () {\n      let code = this.get('consultancy_code');\n      if (code === 'cns' || code === 'SED' || code === 'SDC') {\n        return 'Domestic Consultancy';\n      }\n      if (code === 'SEI') {\n        return 'International Consultancy';\n      }\n      return '';\n    }),\n    actions: {\n      // This function related to pending amount detail showing function modify as on 07 Aug 2019 Shubh Tiwari\n      pendingDetails: function () {\n        var _this = this;\n        jQuery.noConflict();\n        let i18n = _this.get('i18n');\n        var patient_id = $('#patient_id').val();\n        var visit_id = $('#visiting_id').val();\n        var bill_id = $('#billing_id').val(); //Nishant 12-Oct-2022 - pass billing id also to check case where edited due was given\n        _this.set('Pendingdetailslist', '');\n        //Nishant 14/15-Nov-2022: show pagination in previous details popup and convert to component.\n        //Centralize code in service to avoid redundant api calling and pagination handling\n        _this.set('no_of_pages', '');\n        _this.set('page_no', '');\n        _this.get('serviceIcpattend').pendingDetails(patient_id, visit_id, bill_id, 1, function (data, page_no, no_of_pages) {\n          _this.set('Pendingdetailslist', data);\n          _this.set('page_no', page_no);\n          _this.set('no_of_pages', no_of_pages);\n          // console.log(_this.get('Pendingdetailslist'));\n        });\n      },\n      checkMaxPrintCopy: function () {\n        var val = $('#print_case_val').val();\n        var input = parseInt(val);\n        if (input < 0 || input > 9) {\n          $('#print_case_val').val('');\n          alert('Print copy allow between 1 - 9');\n          return;\n        }\n      }\n    },\n    afterModel() {\n      console.log('applyCnswaive');\n    }\n  });\n});","define(\"clinic-dev/components/prescribe-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      addCharge() {\n        var html = '';\n        var value = $('#medicine_charge option:selected').val();\n        var label = $('#medicine_charge option:selected').text();\n        var charge_id = $('#medicine_charge option:selected').data('cid');\n        if (value == '') {\n          swal('Please select charge');\n        } else {\n          html += '<div id=\"' + charge_id + '\" class=\"row margin5\">';\n          html += '<div class=\"col-sm-3\"><label>' + label + ' <i class=\"fas fa-rupee-sign\"></i></label></div>';\n          html += '<div class=\"col-sm-4\" style=\"margin-right: 12px;\"><input class=\"form-control box-charge\" type=\"text\" id=\"' + charge_id + '\" value=\"' + value + '\"/></div>';\n          html += '<div class=\"col-sm-2\"><button class=\"btn btn-danger btn-sm chargeremove\" data-cids=\"' + charge_id + '\" data-charge=\"' + label + '\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove\"></i></button></div>';\n          html += '</div>';\n          $('#chargebox').append(html);\n        }\n      },\n      applyDiscountCharge() {\n        var disc_value = $('.discount_percentage').val();\n        var garndt_value = $('.grdtot').val();\n        if (disc_value == '') {\n          swal('Please enter percentage value');\n        } else {\n          swal({\n            title: 'Are you sure you want to apply ' + disc_value + '% on medicine total=' + garndt_value,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $('#' + cids).remove();\n            }\n          });\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/prescribed-details-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    consultancyFullName: Ember.computed('consultancy_code', function () {\n      let code = this.get('consultancy_code');\n      if (code === 'cns' || code === 'SED' || code === 'SDC') {\n        return 'Domestic Consultancy';\n      }\n      if (code === 'SEI') {\n        return 'International Consultancy';\n      }\n      return '';\n    }),\n    //   this._super(...arguments);\n    //   /*This below code is used for getting the total amount of visit with other charges, 15 July 2019 */\n    //   $(document).ready(function () {\n    //     var grandTotal = 0;\n    //     $('.box-charge').each(function () {\n    //       var stval = parseFloat($(this).val());\n    //       grandTotal += isNaN(stval) ? 0 : stval;\n    //     });\n    //     var grand_total = $('.grdtot').val();\n    //     var consultancy = $('.consultancy').val();\n    //     var pending = $('.pending').val();\n    //     var pending_value = parseFloat(pending);\n    //     var total =\n    //       parseFloat(grand_total) +\n    //       parseFloat(grandTotal) +\n    //       parseFloat(pending_value) +\n    //       parseInt(consultancy, 10);\n    //     //In these below couple of lines we are save the total amount without pending effect, Rahul khan 07 Nov 2019\n    //     var total_without_pending =\n    //       parseFloat(grand_total) +\n    //       parseFloat(grandTotal) +\n    //       parseInt(consultancy, 10);\n    //     $('#total_without_pending').val(total_without_pending);\n    //     var med_amount = isNaN(total) ? 0.0 : total;\n    //     var total_amnt = parseFloat(med_amount).toFixed(2);\n    //     //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n    //     var previous_bill_amount = $('.paid_amount').val();\n    //     var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    //     var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n    //     if (bill_paid_amount == 0) {\n    //       /* This condition check only total and total received amount after that check total due amount */\n    //       console.log('Not Include Previous Bill Amount');\n    //       var total_amount = parseFloat(total_amnt).toFixed(2);\n    //       /* payment gatway charge calculation charge */\n    //       if ($('.payment_gateway_checkbox').is(':checked')) {\n    //         var percentage = $('.payment_gateway_charge').val();\n    //         if (percentage != '') {\n    //           var total_amounts = total_amount;\n    //           var calcPrice = (total_amounts * percentage) / 100;\n    //           var add_percentage_price =\n    //             parseFloat(total_amounts) + parseFloat(calcPrice);\n    //           $('.total').val(add_percentage_price.toFixed(2));\n    //           var total_amount = add_percentage_price.toFixed(2);\n    //         }\n    //       } else {\n    //         $('.total').val(total_amount);\n    //         var total_amount = total_amount;\n    //       }\n    //       console.log(total_amount);\n    //       /* payment gatway charge calculation charge end */\n    //       var total_medcine = total_amount;\n    //       var discount_on_med = parseInt(\n    //         $('#start').find('.onthefly_per').text()\n    //       );\n    //       console.log('discount_on_med' + discount_on_med);\n    //       console.log('total_amount' + total_amount);\n    //       if (discount_on_med != 100) {\n    //         var total_medcine_due =\n    //           total_medcine - (discount_on_med / 100) * total_medcine;\n    //         var total_medcine_due = parseFloat(total_medcine_due).toFixed(2);\n    //       } else {\n    //         var total_medcine_due = parseFloat(total_medcine).toFixed(2);\n    //       }\n\n    //       var recevedAmount = $('.received_amount').val();\n    //       var total_due1 = parseFloat(total_medcine_due - recevedAmount);\n    //       var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n    //       var total_due = Math.abs(total_due_amount).toFixed(2);\n    //       $('.total_due').val(total_due);\n    //       var remaining_balance_status = Math.sign(total_due1);\n    //       var payment_status = '';\n    //       // console.log(total_amount);\n    //       //console.log(recevedAmount);\n    //       if (remaining_balance_status == 1) {\n    //         payment_status = 'DUE';\n    //         $('.due_advance').text('Total Due ₹');\n    //         $('.total_recieved_refund').text('Received ₹');\n    //         $('#recieved').attr('placeholder', 'Received..');\n    //         $('.refund_class').html('');\n    //       } else if (remaining_balance_status == -1) {\n    //         payment_status = 'ADVANCE';\n    //         $('.due_advance').text('Refund Amount₹');\n    //         $('.total_recieved_refund').text('Refund ₹');\n    //         $('#recieved').attr('placeholder', 'Refund');\n    //         $('.refund_class').html(\n    //           '<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">'\n    //         );\n    //       } else if (remaining_balance_status == 0) {\n    //         payment_status = 'NO DUE';\n    //         $('.due_advance').text('Total Due ₹');\n    //         $('.total_recieved_refund').text('Received ₹');\n    //         $('#recieved').attr('placeholder', 'Received..');\n    //         $('.refund_class').html('');\n    //       }\n    //       $('.payment_status').text('(' + payment_status + ')');\n\n    //       $('.due_payment_status').text('(' + payment_status + ')');\n\n    //       $('.refund').text('Total Received ₹');\n    //       //console.log(total_due);\n    //       if (total_due == '0.00') {\n    //         setTimeout(function () {\n    //           $('.cashpopup').attr('disabled', true);\n    //         }, 500);\n    //       } else {\n    //         $('.cashpopup').removeAttr('disabled');\n    //       }\n    //     } else {\n    //       /* This condition check only total(Medicine+Consultancy+Pending+Other Charges),Previous paid amount,Current Due Amount,Received Amount after that check total due amount */\n    //       console.log('Include Previous Bill Amount');\n    //       var total_amount = parseFloat(total_amnt).toFixed(2);\n    //       var payment_gateway_charge = $('.gateway_charge').val();\n    //       var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n    //       var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n    //       var total_due_amount = parseFloat(total_amount - bill_paid_amount);\n    //       var total_due_amount_upto_two_decimal = total_due_amount.toFixed(2);\n    //       var total_due_amount_plus_pg_amount =\n    //         parseFloat(total_due_amount) + parseFloat(pg_amount);\n    //       var total_dues_amount = Math.abs(\n    //         total_due_amount_plus_pg_amount\n    //       ).toFixed(2);\n    //       var remaining_balance_status = Math.sign(\n    //         total_due_amount_plus_pg_amount\n    //       );\n    //       var payment_status = '';\n    //       if (remaining_balance_status == 1) {\n    //         payment_status = 'DUE';\n    //       } else if (remaining_balance_status == -1) {\n    //         payment_status = 'ADVANCE';\n    //       } else if (remaining_balance_status == 0) {\n    //         payment_status = 'NO DUE';\n    //       }\n\n    //       $('.paid_amount').val(bill_paid_amount);\n    //       $('.current_due').val(total_dues_amount);\n    //       /* payment gatway charge calculation charge */\n    //       if ($('.payment_gateway_checkbox').is(':checked')) {\n    //         var percentage = $('.payment_gateway_charge').val();\n    //         if (percentage != '') {\n    //           var total_amounts = total_dues_amount;\n    //           var calcPrice = (total_amounts * percentage) / 100;\n    //           var add_percentage_price =\n    //             parseFloat(total_amounts) + parseFloat(calcPrice);\n    //           $('.current_due').val(add_percentage_price.toFixed(2));\n    //           $('.total').val(add_percentage_price.toFixed(2));\n    //           var total_dues_amount_pg = add_percentage_price.toFixed(2);\n    //         }\n    //       } else {\n    //         $('.current_due').val(total_dues_amount);\n    //         var total_dues_amount_pg = total_dues_amount;\n    //       }\n    //       /* payment gatway charge calculation charge end */\n    //       var recevedAmount = $('.received_amount').val();\n    //       var total_due1 = parseFloat(total_dues_amount_pg - recevedAmount);\n    //       var total_due_amount_pg = isNaN(total_due1) ? 0.0 : total_due1;\n    //       var total_due = Math.abs(total_due_amount_pg).toFixed(2);\n    //       var total_due_status = Math.sign(total_due_amount_pg);\n    //       var due_payment_status = '';\n    //       if (total_due_status == 1) {\n    //         due_payment_status = 'DUE';\n    //         // $('.refund').text('Total Received ₹');\n    //         $('.total_due_refund').html('Total Received ₹ :');\n    //         $('#recieved').attr('placeholder', 'Received');\n    //         $('.total_recieved_refund').text('Received ₹ :');\n    //         $('.due_advance').text('Total due₹');\n    //         $('.refund_class').html('');\n    //       } else if (total_due_status == -1) {\n    //         due_payment_status = 'ADVANCE';\n    //         $('.refund').text('Total Refunded ₹');\n    //         $('.total_due_refund').html('Refund Amount ₹ :');\n    //         $('#recieved').attr('placeholder', 'Refund');\n    //         $('.total_recieved_refund').text('Refund ₹ :');\n    //         $('.due_advance').text('Refund ₹');\n    //         $('.refund_class').html(\n    //           '<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">'\n    //         );\n    //       } else if (total_due_status == 0) {\n    //         due_payment_status = 'NO DUE';\n    //         //$('.refund').text('Total Received ₹');\n    //         $('.total_due_refund').html('Total Received ₹ :');\n    //         $('#recieved').attr('placeholder', 'Received');\n    //         $('.total_recieved_refund').text('Received ₹ :');\n    //         $('.due_advance').text('Total due ₹');\n    //         $('.refund_class').html('');\n    //       }\n    //       $('.due_payment_status').text('(' + due_payment_status + ')');\n    //       $('.payment_status').text('Paid  (' + payment_status + ')');\n    //       $('.total').val(total_amount);\n    //       $('.total_due').val(total_due);\n\n    //       //advanced check status\n    //       var current_due = $('.current_due').val();\n    //       //var recevedAmount = $('.received_amount').val();\n    //       var refund_value = $('.refund_flag').val();\n    //       if (refund_value != undefined) {\n    //         var refund_flag = refund_value;\n    //       } else {\n    //         var refund_flag = 0;\n    //       }\n    //       if (\n    //         recevedAmount < current_due &&\n    //         (refund_flag == 1 || refund_flag == 2)\n    //       ) {\n    //         // comment below this line by shubh tiwari as on 15 Sept-2021\n    //         $('.due_payment_status').text('ADVANCE');\n    //         $('.refund').text('Total Refunded ₹');\n    //         $('.total_due_refund').html('Refund Amount ₹ :');\n    //         $('#recieved').attr('placeholder', 'Refund');\n    //         $('.total_recieved_refund').text('Refund ₹ :');\n    //         $('.due_advance').text('Refund ₹');\n    //         $('.refund_class').html(\n    //           '<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">'\n    //         );\n    //       } else if (recevedAmount > current_due && refund_flag == 1) {\n    //         $('.due_payment_status').text('ADVANCE');\n    //         $(\"label[for='total_due']\").text('Total due (ADVANCE) ₹ :');\n    //         //$('.total_recieved_refund').text('Refund ₹ :');\n    //         $('.refund').text('Total Refunded ₹');\n    //       } else if (recevedAmount == current_due && refund_flag == 1) {\n    //         $('.due_payment_status').text('NO DUE');\n    //         $('.refund').text('Total Received  ₹');\n    //         $(\"label[for='total_due']\").text('Total due (NO DUE) ₹ :');\n    //       } else if (recevedAmount < current_due) {\n    //         $('.due_payment_status').text('DUE');\n    //         $(\"label[for='total_due']\").text('Total due (DUE) ₹ :');\n    //         $('.refund').text('Total Received ₹');\n    //       } else if (recevedAmount > current_due) {\n    //         $('.due_payment_status').text('ADVANCE');\n    //         $(\"label[for='total_due']\").text('Total due (ADVANCE) ₹ :');\n    //         //$('.total_recieved_refund').text('Refund ₹ :');\n    //         $('.refund').text('Total Refunded ₹');\n    //       } else if (recevedAmount == current_due) {\n    //         $('.due_payment_status').text('NO DUE');\n    //         $('.refund').text('Total Received  ₹');\n    //         $(\"label[for='total_due']\").text('Total due (NO DUE) ₹ :');\n    //       }\n    //       // comment below this line by shubh tiwari as on 22 Sept-2021\n    //       //console.log(payment_status);\n    //       if (payment_status == 'ADVANCE') {\n    //         $(\"label[for='total_received']\").text('Total Refunded ₹');\n    //         $('.refund_flag').val(2);\n    //       } else {\n    //         $('.refund_flag').val(1);\n    //       }\n    //       if (total_due == 0.0) {\n    //         $('.cashpopup').attr('disabled', true);\n    //       } else {\n    //         $('.cashpopup').removeAttr('disabled');\n    //       }\n    //     }\n    //   });\n    // },\n    actions: {\n      checkMaxPrintCopy: function () {\n        var val = $('#print_case_val').val();\n        var input = parseInt(val);\n        if (input < 0 || input > 9) {\n          $('#print_case_val').val('');\n          alert('Print copy allow between 1 - 9');\n          return;\n        }\n      },\n      transactionHistory: function (visit_id, billing_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TotalTransactionDetails').modal('show');\n        _this.sendAction('getTotalTransaction', visit_id, billing_id);\n      },\n      visitTransactionDetails: function (visit_id, billing_id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#TransactionDetails').modal('show');\n        _this.sendAction('visitTransactionList', visit_id, billing_id);\n      },\n      // consultancyWave: function () {\n      //   var _this = this;\n      //   let i18n = _this.get('i18n');\n      //   var consultancy = $('.consultancy').val();\n      //   var bill_id = $('#billing_id').val();\n      //   var visit_id = $('#visiting_id').val();\n      //   var grandTotal = 0;\n      //   if (consultancy == '0') {\n      //     var message = i18n.t('billing.messages.datainsufficient');\n      //     _this.flashes.danger(message);\n      //   } else {\n      //     //Rahul Khan\n      //     swal({\n      //       title:\n      //         'Are you sure you want to waive ' +\n      //         consultancy +\n      //         ' consultancy fees?',\n      //       icon: 'warning',\n      //       buttons: true,\n      //       dangerMode: true,\n      //     }).then((willDelete) => {\n      //       if (willDelete) {\n      //         event.preventDefault();\n      //         jQuery.noConflict();\n      //         $('#consultancy_discount_reason').val('');\n      //         _this.set('consultancyWaveparameter', '');\n      //         $('#consultancydiscountpopup').modal('show');\n      //         var data = {\n      //           consultancy: consultancy,\n      //           bill_id: bill_id,\n      //           visit_id: visit_id,\n      //         };\n      //         _this.set('consultancyWaveparameter', data);\n      //         $('#consultancy_discount_reason').focus();\n\n      //         // var _this = this;\n      //         //     var base_url = ENV.APP.lumen_api_url+\"billing/consultancywaive\";\n      //         //     $.ajax({\n      //         //         url: base_url,\n      //         //         method: \"POST\",\n      //         //         data:{'consultancy':consultancy, 'bill_id':bill_id,'visit_id':visit_id},\n      //         //         success: function(res){\n      //         //             if(res.error==false && res.message=='consultancywaved'){ //Rahul 23-oct-2019\n      //         //                 var message = i18n.t('billing.messages.consultancywaived',{object:consultancy});\n      //         //                 get(_this, 'flashes').success(message);\n      //         //                 $('.cons_dis').addClass('discount');\n      //         //                 $('.cons_waived').text('Waived');\n      //         //                 $('.consultancy').val('0.00');\n      //         //                 $('.const_remove_button').html('<span class=\"btn btn-danger btn-sm const_remove\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove Consultancy\"></i></span>');\n      //         //                 $('.consdisable').attr('disabled', true);\n      //         //             }else if(res.error==true && res.message=='datainsufficient'){\n      //         //                 var message = i18n.t('billing.messages.datainsufficient');\n      //         //                 get(_this, 'flashes').danger(message);\n      //         //             }\n      //         //         },\n      //         //         complete: function(res)\n      //         //         {\n      //         //             $(\".box-charge\").each(function (){\n      //         //                 var stval = parseFloat($(this).val());\n      //         //                 grandTotal += isNaN(stval) ? 0 : stval;\n      //         //             });\n      //         //             if(grandTotal!=''){\n      //         //             var grand_total = $('.grdtot').val();\n      //         //             var number = Number(grand_total.replace(/[^0-9\\.-]+/g,\"\"));\n      //         //             var consultancy = $('.consultancy').val();\n      //         //             var pending=  $('.pending').val();\n      //         //             var charge = parseFloat(consultancy)+ parseFloat(pending);\n      //         //             var total = parseFloat(charge)+parseFloat(number)+grandTotal;\n      //         //             var eVal = (isNaN(total)) ? 0.00 : total;\n      //         //             var med_totals = parseFloat(eVal).toFixed(2);\n      //         //             $('.total').val(med_totals);\n      //         //             }else{\n      //         //                 var grand_total = $('.grdtot').val();\n      //         //                 var number = Number(grand_total.replace(/[^0-9\\.-]+/g,\"\"));\n      //         //                 var consultancy = $('.consultancy').val();\n      //         //                 var pending=  $('.pending').val();\n      //         //                 var charges = parseFloat(consultancy)+ parseFloat(pending);\n      //         //                 var total = parseFloat(charges)+parseFloat(number);\n      //         //                 var eVal = (isNaN(total)) ? 0.00 : total;\n      //         //                var med_totals = parseFloat(eVal).toFixed(2);\n      //         //                 $('.total').val(med_totals);\n      //         //             }\n      //         //         }\n      //         //     });\n      //       }\n      //     });\n      //   }\n      // },\n      //This function related to pending amount detail showing function modify as on 07 Aug 2019 Shubh Tiwari\n      pendingVisitDetails: function () {\n        var _this = this;\n        jQuery.noConflict();\n        let i18n = _this.get('i18n');\n        var patient_id = $('#patient_id').val();\n        var visit_id = $('#visiting_id').val();\n        var bill_id = $('#billing_id').val(); //Nishant 12-Oct-2022 - pass billing id also to check case where edited due was given\n        _this.set('Pendingdetailslist', '');\n        //Nishant 14/15-Nov-2022: show pagination in previous details popup and convert to component.\n        //Centralize code in service to avoid redundant api calling and pagination handling\n        _this.set('no_of_pages', '');\n        _this.set('page_no', '');\n        _this.get('serviceIcpattend').pendingDetails(patient_id, visit_id, bill_id, 1, function (data, page_no, no_of_pages) {\n          _this.set('Pendingdetailslist', data);\n          _this.set('page_no', page_no);\n          _this.set('no_of_pages', no_of_pages);\n          // console.log(_this.get('Pendingdetailslist'));\n        });\n      },\n      goBack() {\n        history.back();\n      },\n      enableEditMode() {\n        $('.cware-disabled').removeAttr('disabled');\n        $('.cware-disabled *').removeAttr('disabled');\n        $.each(this.visit_charges, function (key, value) {\n          $(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/components/prescription-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/prescription\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      sortMedicine: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: 'Do you want to sort medicines by serial number?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, sort it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var tableId = 'prescriptionmedicine tbody.tbody';\n            return _this.sortMedicineRow(tableId);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      ResetSerialNo: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: \"Do you want to reset medicine serial numbers. All Medicines will be re-assigned new serial number starting from top. Medicine order won't be rearranged.\",\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, reset it!'\n        }).then(result => {\n          console.log(result);\n          if (result.isConfirmed) {\n            var _this = this;\n            var medicineSerialNo = [];\n            $('#prescriptionmedicine > tbody > tr').each(function () {\n              var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n              var dataOrder = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('data-order');\n              var tableRowId = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('id');\n              var jsObjectRefno = {};\n              jsObjectRefno['serialNo'] = parseInt(serialNo.replace(/[^0-9]/g, ''));\n              jsObjectRefno['dataOrder'] = parseInt(dataOrder.replace(/[^0-9]/g, ''));\n              jsObjectRefno['tableRowId'] = tableRowId;\n              medicineSerialNo.push(jsObjectRefno);\n            });\n            _this.duplicateValueCount(medicineSerialNo);\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      ClearPrescription: function () {\n        Swal.fire({\n          text: 'This will remove all prescribed medicines. Are you sure you want to do this?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, clear it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var table_row = '';\n            var instructionselect = '';\n            $('.tbody').empty();\n            $('#importvisitid').val('');\n            $('textarea#precribe_pharmacy_instruction').val('');\n            var instruction_array = _this.get('instruction');\n            $('span.clearpresription_code').remove();\n            // instruction selected html code\n            instructionselect += '<select name=\"instructionItem[1]\" class=\"form-control instructionItem cwareinstruction-1 iother-1\" id=\"instruction-1\">';\n            instructionselect += '<option value=\"\">Select Instruction</option>';\n            for (var i = 0; i < instruction_array.length; i++) {\n              //var instruc_id = instruction_array[i].id;\n              var instruc_name = instruction_array[i].instruction_name.trim();\n              instructionselect += '<option class=\"editable-1\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n            instructionselect += '</select>';\n            instructionselect += '<input id=\"edit_instruction-1\" name=\"instruction[1]\" class=\"editOption-1 inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n            table_row += '<tr id=\"id-1\" class=\"tableRow previousRow clear_prescription\" data-order=\"1\">';\n            table_row += '<td><input type=\"checkbox\" id=\"checkboxid-1\" class=\"geometry checkItem\" data-id=\"1\" name=\"check\" value=\"1\"/></td>';\n            table_row += '<td><input class=\"form-control srno-1 srnoItem\" id=\"srno-1\" name=\"srnoItem[1]\" type=\"text\" value=\"1\" data-uniqueserial=\"2\" minlength=\"1\" maxlength=\"4\"/></td>';\n            table_row += '<td class=\"cw-search-box\"><input name=\"medicineItem[1]\" class=\"form-control prescribeinput dosage-1 medicineItem\" id=\"medicine_name-1\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\"/> <input type=\"hidden\" name=\"medicine_type[1]\"  id=\"medicine_type-1\"> <input type=\"hidden\" name=\"medicine_id[1]\" id=\"medicine_id-1\"> <p id=\"results1\"></p></td>';\n            table_row += '<td> <input readonly name=\"potencyItem[1]\" class=\"form-control potency-1 potencyItem\" id=\"potency-1\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[1]\" id=\"potency_id-1\"></td>';\n            table_row += '<td> <input readonly name=\"dilutionItem[1]\" class=\"form-control dilution-1 dilutionItem\" id=\"dilution-1\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[1]\" id=\"dilution_id-1\"></td>';\n            table_row += '<td><select name=\"formItem[1]\"  class=\"form-control slectform-1 formItem\" id=\"prescribeform-1\"><option value=\"\">Select Form</option></select></td>';\n            table_row += '<td> <input name=\"factorItem[1]\" class=\"form-control factor-1 factorItem onlynumeric\" type=\"text\" id=\"factor-1\" value=\"1\"/></td>';\n            table_row += '<td> <input name=\"medicineVial[1]\" class=\"form-control medicinevial-1 medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-1\" value=\"1\"/></td>';\n            table_row += '<td>' + instructionselect + '</td>';\n            table_row += '</tr>';\n            $('#prescriptionmedicine').children('tbody:first').append(table_row);\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      }\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    sortMedicineRow(tableId) {\n      //console.log(tableId);\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n        // if the alphabetic part of a is less than that of b => -1\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n        // if the alphabetic part of a is greater than that of b => 1\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n        // if the alphabetic parts are equal, check the number parts\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n        // else, just sort using the numbers parts\n        return _n;\n      }).appendTo($tbody);\n      $('.checkAll').prop('checked', false);\n      $('.geometry').prop('checked', false);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    }\n  });\n});","define(\"clinic-dev/components/presigned-image\", [\"exports\", \"@glimmer/component\", \"clinic-dev/config/environment\", \"jquery\"], function (_exports, _component, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PresignedImageComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class PresignedImageComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"presignedUrl\", _descriptor2, this);\n      this.loadPresignedUrl();\n    }\n    get isSingleImage() {\n      return this.args.fileCount.length === 1;\n    }\n    async loadPresignedUrl() {\n      const filePath = this.args.filePath;\n      let utoken = this.session.getToken();\n      if (!filePath) {\n        console.error('File path is missing');\n        return;\n      }\n      const baseUrl = `${_environment.default.APP.lumen_api_url}presignedurl`;\n      const param = '?filePath=' + filePath;\n      try {\n        const response = await _jquery.default.ajax({\n          url: baseUrl + param,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          }\n        });\n        this.presignedUrl = response.presignedUrl;\n      } catch (error) {\n        console.error('Error fetching presigned URL:', error);\n      }\n    }\n    handleClick(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      const fileCount = this.args.fileCount;\n      if (fileCount && fileCount.length > 1) {\n        // Multiple files: only call the parent action\n        if (typeof this.args.onClick === 'function') {\n          this.args.onClick();\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"presignedUrl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _class);\n});","define(\"clinic-dev/components/print-options-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/ready-for-pickup-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      _this._super(...arguments);\n      var permission = this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/components/refund-batches-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['refund-batches-popup'],\n    batches: null,\n    onClose: null,\n    actions: {\n      close() {\n        if (this.get('onClose')) {\n          this.get('onClose')();\n        }\n      },\n      stopPropagation(event) {\n        if (event && event.stopPropagation) {\n          event.stopPropagation();\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/report-notes-details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/route-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/schedule-card\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n  class ScheduleCardComponent extends _component.default {}\n  _exports.default = ScheduleCardComponent;\n});","define(\"clinic-dev/components/search-filed-element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/search-patient-onspot\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      prevC(stats, p) {\n        this.sendAction('prev', stats, p);\n      },\n      nextC(stats, p) {\n        this.sendAction('next', stats, p);\n      },\n      gotoC() {\n        this.sendAction('goto');\n      },\n      submitOnSpot(patient_id, OldRegistrationNo, first_name, middle_name, last_name) {\n        console.log('search patient components');\n        var shift_detail = this.session.getLoggedInUserShift();\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var data = {\n          patient_id: patient_id,\n          shift_id: shift_detail,\n          branch_id: branch_id\n        };\n        var _this = this;\n        var utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/patientqueuestatus',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: data,\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.validate == true && res.patient_status == 'already_left_assign') {\n              if (res.medicine_queue_number != '') {\n                var token_string = 'with token no : ' + res.medicine_queue_number;\n              } else if (res.token_no != '') {\n                var token_string = 'with token no : ' + res.token_no;\n              } else {\n                var token_string = '';\n              }\n              if (res.shift_id == '2') {\n                var shift_name = 'in Evening Shift';\n              } else {\n                var shift_name = 'in Morning Shift';\n              }\n              if (res.visit_status == '1' && res.doctor_complete == '1') {\n                var queue_name = 'Currently in billing queue';\n              } else {\n                if (res.current_doc_name) {\n                  var queue_name = 'Currently in ' + res.current_doc_name + '\\'s queue';\n                } else {\n                  var queue_name = 'Currently in frontdesk queue';\n                }\n              }\n              alert('This patient already has a ' + res.appointmentType.toUpperCase() + ' appointment on ' + res.date + ' ' + shift_name + ' at ' + res.branch_name + ' ' + token_string + '. ' + queue_name);\n              // For email rm\n            } else if (res.validate == true && res.patient_status == 'already_emailrm_assign') {\n              if (res.medicine_queue_number != '') {\n                var token_string = 'with token no : ' + res.medicine_queue_number;\n              } else if (res.token_no != '') {\n                var token_string = 'with token no : ' + res.token_no;\n              } else {\n                var token_string = '';\n              }\n              var queue_name = 'Currently in billing queue';\n              if (res.shift_id == '2') {\n                var shift_name = 'in Evening Shift';\n              } else {\n                var shift_name = 'in Morning Shift';\n              }\n              alert('This patient already has a ' + res.appointmentType.toUpperCase() + ' appointment on ' + res.date + ' ' + shift_name + ' at ' + res.branch_name + ' ' + token_string + '. ' + queue_name);\n            } else if (res.validate == true && res.patient_status == 'already_in_shift') {\n              alert('This patient is already booked at this location in same shift. You cannot book again');\n            } else if (res.validate == true || res.token_no || res.appointment_no || res.medicine_queue_number) {\n              if (res.medicine_queue_number != '') {\n                var token_string = 'with token no : ' + res.medicine_queue_number;\n              } else if (res.token_no != '') {\n                var token_string = 'with token no : ' + res.token_no;\n              } else {\n                var token_string = '';\n              }\n              alert('This patient is already in queue ' + token_string);\n              return true;\n            } else if (res.validate == false && res.not_visit == 'not_visit') {\n              alert('This patient is already in queue');\n            } else if (res.validate == false) {\n              _this.sendAction('submitOnSpot', patient_id, '', OldRegistrationNo, first_name, middle_name, last_name);\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function (res) {\n            //console.log(res);\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/components/searchable-select-option\", [\"exports\", \"clinic-dev/templates/components/searchable-select-option\"], function (_exports, _searchableSelectOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/templates/components/searchable-select-option\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _searchableSelectOption.default,\n    tagName: 'li',\n    classNameBindings: [':Searchable-select__option', 'isDisabled:Searchable-select__option--disabled', 'isSelected:Searchable-select__option--selected'],\n    attributeBindings: ['tabindex'],\n    option: null,\n    optionLabelKey: 'title',\n    optionDisabledKey: null,\n    selected: null,\n    searchText: '',\n    isDisabled: Ember.computed('option', 'optionDisabledKey', function () {\n      if (this.optionDisabledKey) {\n        return Ember.get(this.option, this.optionDisabledKey);\n      }\n    }),\n    isSelected: Ember.computed('option', 'selected', 'selected.[]', function () {\n      if (Array.isArray(this.selected)) {\n        return Ember.A(this.selected).includes(this.option);\n      } else {\n        return this.selected === this.option;\n      }\n    }),\n    tabindex: Ember.computed('isDisabled', function () {\n      if (!this.isDisabled) {\n        return -1;\n      }\n    }),\n    keyDown(event) {\n      // enter key selects item\n      if (event.keyCode === 13) {\n        this.send('selectItem');\n      }\n    },\n    click() {\n      this.send('selectItem');\n    },\n    actions: {\n      selectItem() {\n        this.attrs['select-item'](this.option);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/searchable-select\", [\"exports\", \"clinic-dev/templates/components/searchable-select\"], function (_exports, _searchableSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/templates/components/searchable-select\"eaimeta@70e063a35619d71f\n  /* global $ */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _searchableSelect.default,\n    classNames: ['Searchable-select'],\n    classNameBindings: ['_isShowingMenu:Searchable-select--menu-open', 'multiple:Searchable-select--multiple'],\n    content: null,\n    selected: null,\n    optionLabelKey: 'name',\n    optionDisabledKey: null,\n    sortBy: null,\n    limitSearchToWordBoundary: false,\n    multiple: false,\n    closeOnSelection: true,\n    prompt: 'Select an option',\n    searchPrompt: 'Type to search',\n    noResultsMessage: 'No matching results',\n    isClearable: true,\n    clearLabel: 'Clear',\n    addLabel: 'Add',\n    isLoading: false,\n    loadingMessage: 'Searching...',\n    _searchText: '',\n    _isShowingMenu: false,\n    _hasSelection: Ember.computed.notEmpty('_selected'),\n    _isShowingClear: Ember.computed.and('isClearable', '_hasSelection'),\n    _hasNoResults: Ember.computed.empty('_filteredContent'),\n    _hasResults: Ember.computed.not('_hasNoResults'),\n    _isNotLoading: Ember.computed.not('isLoading'),\n    _isSingleSelect: Ember.computed.not('multiple'),\n    _hasMultipleSelection: Ember.computed.and('multiple', '_hasSelection'),\n    _hasSingleSelection: Ember.computed.and('_isSingleSelect', '_hasSelection'),\n    _isShowingAddNew: Ember.computed.and('_canAddNew', '_hasNoMatchedKeys', '_searchText'),\n    _isShowingNoResultsMessage: Ember.computed.and('_searchText', '_hasNoResults', '_isNotLoading'),\n    _canAddNew: Ember.computed.bool('on-add'),\n    _hasOnSearchAction: Ember.computed.bool('on-search'),\n    _isFilterActive: Ember.computed.not('_hasOnSearchAction'),\n    'on-change': null,\n    'on-add': null,\n    'on-search': null,\n    'on-close': null,\n    'on-open': null,\n    // Make the passed in `selected` a one-way binding.\n    // `Ember.computed.oneWay` won't pick up on upstream\n    // changes after the prop gets set internally.\n\n    // TODO [brenna]: refactor into two CP's, one for single _selected,\n    // one for _multiselected\n    _selected: Ember.computed('multiple', 'selected.[]', {\n      get() {\n        if (this.multiple && !this.selected) {\n          // coerce null multiple selections to an empty array\n          return Ember.A([]);\n        } else if (this.multiple && !Array.isArray(this.selected)) {\n          throw new Error('Searchable select: passed in multiple selection must be an array');\n        } else {\n          return this.selected;\n        }\n        return this.selected;\n      },\n      set(key, value) {\n        return value;\n      }\n    }),\n    _sortArray: Ember.computed('sortBy', function () {\n      if (this.sortBy) {\n        return this.sortBy.replace(' ', '').split(',');\n      }\n      return [];\n    }),\n    _sortedContent: Ember.computed.sort('content', '_sortArray'),\n    _filterRegex: Ember.computed('limitSearchToWordBoundary', '_searchText', function () {\n      let searchText = this._searchText;\n      if (searchText) {\n        let regex = this.limitSearchToWordBoundary ? `\\\\b${searchText}` : searchText;\n        return new RegExp(regex, 'i');\n      }\n    }),\n    _filteredContent: Ember.computed('_sortedContent.[]', 'optionLabelKey', '_filterRegex', '_isFilterActive', function () {\n      let filterRegex = this._filterRegex;\n      let content = this._sortedContent;\n      if (filterRegex && this._isFilterActive) {\n        return Ember.A(content.filter(item => {\n          return filterRegex.test(Ember.get(item, this.optionLabelKey));\n        }));\n      } else {\n        return content;\n      }\n    }),\n    _filteredKeys: Ember.computed('_filteredContent', 'optionLabelKey', function () {\n      let optKey = this.optionLabelKey;\n      return Ember.A(this._filteredContent.mapBy(optKey));\n    }),\n    _hasMatchedKey: Ember.computed('_filteredKeys', '_searchText', function () {\n      // let regex = new RegExp('^' + this.get('_searchText') + '$', 'i');\n      let regex = new RegExp(`^${this._searchText}$`, 'i');\n      return this._filteredKeys.filter(key => {\n        return regex.test(key);\n      }).length;\n    }),\n    _hasNoMatchedKeys: Ember.computed.not('_hasMatchedKey'),\n    _setup: Ember.on('didInsertElement', function () {\n      // keyboard controls\n      this.$().on('keydown', e => {\n        this._handleKeyboardControls(e);\n      });\n    }),\n    _teardown: Ember.on('willDestroyElement', function () {\n      this._unbindOutsideClicks();\n    }),\n    _bindOutsideClicks() {\n      let component = this;\n      let componentElem = this.element;\n      $(window).on(`click.${component.elementId}`, function (e) {\n        if (!$.contains(componentElem, e.target)) {\n          component.send('hideMenu');\n          component.$('.Searchable-select__label').blur();\n        }\n      });\n    },\n    _unbindOutsideClicks() {\n      let component = this;\n      $(window).off(`click.${component.elementId}`);\n    },\n    _handleKeyboardControls(e) {\n      let $focussable = this.$('[tabindex]');\n      let i = $focussable.index(e.target);\n      if (e.keyCode === 40) {\n        // down arrow\n        e.preventDefault();\n        $focussable.eq(i + 1).focus();\n        if ($(e.target).is('.Searchable-select__label')) {\n          this.send('showMenu');\n        }\n      } else if (e.keyCode === 38) {\n        // up arrow\n        e.preventDefault();\n        if (i > 0) {\n          $focussable.eq(i - 1).focus();\n        }\n      } else if (e.keyCode === 27 || e.keyCode === 9) {\n        // escape key or tab key\n        this.send('hideMenu');\n      } else if (e.keyCode === 13) {\n        // enter key\n        e.preventDefault();\n        let action = $(e.target).attr('data-enter-key-action');\n        if (action) {\n          this.send(action);\n        }\n      }\n    },\n    _toggleSelection(item) {\n      if (item === null) {\n        this.set('_selected', Ember.A([]));\n      } else if (Ember.A(this._selected).includes(item)) {\n        this.removeFromSelected(item);\n      } else {\n        this.addToSelected(item);\n      }\n    },\n    // non-mutating adding and removing to/from the _selected array\n    removeFromSelected(item) {\n      let selected = this._selected;\n      let i = selected.indexOf(item);\n      let newSelection = selected.slice(0, i).concat(selected.slice(i + 1));\n      this.set('_selected', Ember.A(newSelection));\n    },\n    addToSelected(item) {\n      this.set('_selected', Ember.A(this._selected.concat([item])));\n    },\n    // verify passed in functions are functions, if not use a no-op in their place\n    checkForFunction(attr) {\n      if (typeof attr === 'function') {\n        return attr;\n      } else {\n        return function () {};\n      }\n    },\n    actions: {\n      updateSearch(text) {\n        this.set('_searchText', text);\n        this.checkForFunction(this.get('on-search')).call(this, text);\n      },\n      selectItem(item) {\n        let disabledKey = this.optionDisabledKey;\n        if (item && disabledKey && Ember.get(item, disabledKey)) {\n          // item is disabled, do nothing\n          return;\n        }\n        if (this.multiple) {\n          // add or remove item from selection\n          this._toggleSelection(item);\n        } else {\n          // replace selection\n          this.set('_selected', item);\n        }\n        this.checkForFunction(this.get('on-change')).call(this, this._selected);\n        if (this.closeOnSelection) {\n          this.send('hideMenu');\n        }\n      },\n      toggleMenu() {\n        if (this._isShowingMenu) {\n          this.send('hideMenu');\n        } else {\n          this.send('showMenu');\n        }\n      },\n      showMenu() {\n        this.set('_isShowingMenu', true);\n        this.checkForFunction(this.get('on-open')).call(this);\n        Ember.run.scheduleOnce('afterRender', this, function () {\n          // focus search input\n          this.$('.Searchable-select__input').focus();\n        });\n        Ember.run.next(this, function () {\n          this._bindOutsideClicks();\n        });\n      },\n      hideMenu() {\n        this.set('_isShowingMenu', false);\n        this._unbindOutsideClicks();\n        this.set('_searchText', '');\n        this.$('.Searchable-select__label').focus();\n        this.checkForFunction(this.get('on-close')).call(this);\n      },\n      clear() {\n        this.send('selectItem', null);\n      },\n      removeOption(option) {\n        this.removeFromSelected(option);\n        this['on-change'].call(this, this._selected);\n      },\n      addNew() {\n        this.get('on-add')(this._searchText);\n        if (this.closeOnSelection) {\n          this.send('hideMenu');\n        }\n      },\n      noop() {\n        // need an action to able to attach bubbles:false to an elem\n      }\n    }\n  });\n});","define(\"clinic-dev/components/section-add-edit-by\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/shift-report-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  // export default class ShiftReportPopupComponent extends Component\n  var _default = _exports.default = Ember.Component.extend({\n    // actions: {\n    //   getShiftCollection: function (data) {\n    //     var _this = this;\n    //     _this.set('collectiondata', data);\n    //   },\n    // },\n  });\n});","define(\"clinic-dev/components/shipping-pickup-details-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var doctor_id = this.session.getLoggedInUserId();\n      var patient_id = this.patient_id;\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch',\n        data: {\n          activerecord: '1'\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('location', res);\n          _this.set('branch', branch_id);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    actions: {\n      changeshippingaddress: function () {\n        jQuery.noConflict();\n        var child_modal_id = $(\".childModel\").attr('id');\n        $('#' + child_modal_id).show();\n        $('#' + child_modal_id).addClass('in');\n        $('body').addClass('modal-open');\n        $('#shippingAddressModal').modal('show');\n        return true;\n      },\n      updateShippingAddress: function (updateInMaster, data) {\n        this.updateShippingAddress(updateInMaster, data);\n      },\n      clearShippingAddress: function () {\n        $('#shippingAddressModal').find('input:text').val('');\n        $('#shippingAddressModal select').prop('selectedIndex', 0);\n        $('#shippingAddressModal #shipping_other_city, #shippingAddressModal #shipping_other_state').addClass('hidden');\n      },\n      changeShippingAddress: function () {\n        var _this = this;\n        var patient_id = _this.get('patient_id');\n        var visiting_id = $('input[type=hidden][name=appointment_id]').val();\n        var updateInMaster = $('#updateInMaster:checked').val();\n        if (updateInMaster == undefined) {\n          updateInMaster = 0;\n        }\n        var shipping_address_2 = $('#shipping_address_2').val().trim();\n        if (shipping_address_2 == undefined) {\n          shipping_address_2 = '';\n        } else {\n          shipping_address_2 = shipping_address_2;\n        }\n        var data = {\n          shipping_address_1: $('#shipping_address_1').val().trim(),\n          shipping_address_2: shipping_address_2,\n          shipping_selected_country: $('#shipping_country').val(),\n          shipping_selected_state: $('#shipping_state').val(),\n          shipping_selected_city: $('#shipping_city').val(),\n          shipping_zip: $('#shipping_zip').val().trim(),\n          shipping_mob: $('#shipping_mob').val().trim(),\n          shipping_other_state: $('#shipping_other_state').val().trim(),\n          shipping_other_city: $('#shipping_other_city').val().trim(),\n          patient_id: patient_id,\n          visiting_id: visiting_id\n        };\n        if (data.shipping_address_1 == '' || data.shipping_address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n          alert('Invalid Shipping Address 1');\n          $('input[name=shipping_address_1]').focus();\n          return false;\n        } else if (data.shipping_address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n          alert('Invalid Shipping Address 2');\n          $('input[name=shipping_address_2]').focus();\n          return false;\n        } else if (data.shipping_selected_country == '' || data.shipping_selected_country == undefined) {\n          alert('Invalid Shipping Country');\n          $('select[name=shipping_country]').focus();\n          return false;\n        } else if (data.shipping_selected_state == '' || data.shipping_selected_state == undefined) {\n          alert('Invalid Shipping State');\n          $('select[name=shipping_state]').focus();\n          return false;\n        } else if (data.shipping_selected_state == 'other' && data.shipping_other_state == '') {\n          alert('Invalid Shipping Other State');\n          $('input[name=shipping_other_state]').focus();\n          return false;\n        } else if (data.shipping_selected_city == '' || data.shipping_selected_city == undefined) {\n          alert('Invalid Shipping City');\n          $('select[name=shipping_city]').focus();\n          return false;\n        } else if (data.shipping_selected_city == 'other' && data.shipping_other_city == '') {\n          alert('Invalid Shipping Other City');\n          $('input[name=shipping_other_city]').focus();\n          return false;\n        } else if (data.shipping_zip == '' || data.shipping_zip.match('^[a-zA-Z0-9]+$') == false || data.shipping_zip.match('^[a-zA-Z0-9]+$') == null) {\n          alert('Invalid Shipping Zip');\n          $('input[name=shipping_zip]').focus();\n          return false;\n        } else if (data.shipping_mob == '' || data.shipping_mob.match('^[a-zA-Z0-9]+$') == false || data.shipping_mob.match('^[0-9]+$') == null) {\n          alert('Invalid Shipping Mobile no');\n          $('input[name=shipping_mob]').focus();\n          return false;\n        }\n        _this.send('updateShippingAddress', updateInMaster, data);\n      },\n      updateShippingCountry() {\n        var country_id = $('select[name=shipping_country]').val();\n        this.set('shipping_selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('shipping_states', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateShippingState() {\n        var state_id = $('select[name=shipping_state]').val();\n        this.set('shipping_selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('shipping_cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#shipping_other_state').val('').addClass('hidden');\n          /* AJAX call */\n          var _this = this;\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('shipping_cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#shipping_other_state').removeClass('hidden');\n        }\n      },\n      updateShippingCity() {\n        var city_id = $('select[name=shipping_city]').val();\n        this.set('shipping_selected_city', city_id);\n        if (city_id != 'other') {\n          $('#shipping_other_city').val('').addClass('hidden');\n        } else {\n          $('#shipping_other_city').removeClass('hidden');\n        }\n      }\n    },\n    updateShippingAddress: function (updateInMaster, data) {\n      //console.log(data);\n      //console.log(updateInMaster);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var login_user_id = this.session.getLoggedInUserId();\n      var patient_id = data.patient_id;\n      var visiting_id = data.visiting_id;\n      // Resolved this exceptional error using Post shipping_other_city, shipping_other_state value from front-end-> ErrorException: Undefined index: shipping_other_city, Shubh Tiwari 27-09-2023\n      var addressDetails = {\n        shipping_address_1: data.shipping_address_1,\n        shipping_address_2: data.shipping_address_2,\n        shipping_selected_country: data.shipping_selected_country,\n        shipping_selected_state: data.shipping_selected_state,\n        shipping_selected_city: data.shipping_selected_city,\n        shipping_zip: data.shipping_zip,\n        shipping_mob: data.shipping_mob,\n        updateInMaster: updateInMaster,\n        shipping_other_city: data.shipping_other_city,\n        shipping_other_state: data.shipping_other_state\n      };\n      var shippingResult = this.shippingValidation.shippingValidation(addressDetails);\n      //console.log(shippingResult);\n      if ((shippingResult.dispatchOrPickup == \"D\" || shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && shippingResult != false) {\n        shippingResult['patient_id'] = patient_id;\n        shippingResult['appointment_id'] = visiting_id;\n        shippingResult['created_by'] = login_user_id;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n          data: {\n            data: shippingResult\n          },\n          dataType: 'json',\n          //async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (resship_validation) {\n            if (resship_validation.error == true) {\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'pharmacyerror');\n            } else if (resship_validation.error == false) {\n              $.ajax({\n                method: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                data: {\n                  data: shippingResult\n                },\n                dataType: 'json',\n                async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resship) {\n                  if (resship.error == false) {\n                    swal(\"Shipping address has been updated successfully\").then(value => {\n                      data['updateInMaster'] = updateInMaster;\n                      if (data.shipping_address_2 == '') {\n                        var second_address = '';\n                      } else {\n                        var second_address = data.shipping_address_2 + '\\n';\n                      }\n                      var city = $('#shipping_city').val();\n                      var state = $('#shipping_state').val();\n                      var countryName = $('#shipping_country option:selected').text().trim();\n                      if (city == 'other') {\n                        var cityName = $('#shipping_other_city').val().trim();\n                      } else {\n                        var cityName = $('#shipping_city option:selected').text().trim();\n                      }\n                      if (state == 'other') {\n                        var stateName = $('#shipping_other_state').val().trim();\n                      } else {\n                        var stateName = $('#shipping_state option:selected').text().trim();\n                      }\n                      var address = data.shipping_address_1 + '\\n' + second_address + cityName + ', ' + stateName + ', ' + countryName + ', ' + data.shipping_zip + '\\n' + 'PH: ' + data.shipping_mob;\n                      $('#shipping_address_column').empty().html(address);\n                      _this.set('shipp', data);\n                      jQuery.noConflict();\n                      $('#shippingAddressModal').modal('hide');\n                    });\n                  }\n                }\n              });\n            }\n          }\n        });\n      }\n      // else {\n      //   _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please check dispatch first', 'pharmacyerror');\n      // }\n    }\n  });\n});","define(\"clinic-dev/components/shipping-preference-popup\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      closeShippingPreferenceModal() {\n        jQuery.noConflict();\n        this.set('refresh', false);\n        $('#ShippingPreference').modal('hide');\n        $('#ShippingPreference').removeClass('in');\n      }\n    }\n  });\n});","define(\"clinic-dev/components/show-test-notes\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/sub-menu\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/top-nav-component\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/component\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    session: Ember.inject.service(),\n    router: Ember.inject.service(),\n    flashes: Ember.inject.service('flash-messages'),\n    actions: {\n      confirmLogout() {\n        if (confirm(\"Are you sure you want to logout?\")) {\n          let self = this;\n          let utoken = self.session.getToken();\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'users/logoutvalidate',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success(res) {\n              self.session.end();\n\n              // call closure action passed from parent\n              if (typeof self.resetHeader === 'function') {\n                self.resetHeader();\n              }\n              self.router.transitionTo('login');\n              Ember.get(self, 'flashes').success(res.message);\n            },\n            error(err) {\n              alert(\"Logout failed, please try again.\");\n              console.error(err);\n            }\n          });\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/transaction-appointment\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      var permission = _this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/components/transaction-details-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/transaction-history-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init() {\n      this._super(...arguments);\n      this.set('total_transction_details', ' ');\n    },\n    actions: {\n      resetTransactionDetails: function () {\n        this.set('total_transction_details', ' ');\n      }\n    }\n  });\n});","define(\"clinic-dev/components/transaction-search-appointment\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      let headers = {};\n      let utoken = _this.session.getToken();\n      var permission = _this.session.getPermissionList();\n      var branch_detail = _this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      _this.set('permission_arr', permission);\n      if (utoken) {\n        headers[\"Authorization\"] = `Bearer ${utoken}`;\n      }\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {},\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctors', res.data);\n        },\n        error: function (res) {\n          // console.error(res);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'branches',\n        data: {},\n        dataType: 'json',\n        headers: headers,\n        success: function (res) {\n          _this.set('branches', res.data);\n          _this.set('branch_id', branch_id);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'appointmentStatus',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('appointment_status', res);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    actions: {\n      setDoctorId() {\n        var doctor_id = $('select[name=doctor_id]').val();\n        this.set('doctor_id', doctor_id);\n      },\n      setBranchId() {\n        var branch_id = $('select[name=branch_id]').val();\n        this.set('branch_id', branch_id);\n      },\n      setStatusId() {\n        var status_id = $('select[name=status_id]').val();\n        this.set('status_id', status_id);\n      }\n    }\n  });\n});","define(\"clinic-dev/components/visit-billing-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/visit-default-charge-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/visit-history-component-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/visit-log-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      var permission = this.session.getPermissionList();\n      _this.set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/components/vital-statistics-component-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"clinic-dev/components/vital-statistics-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    actions: {\n      heightUnitFilter(value) {\n        var _this = this;\n        _this.set('height_unit', value);\n      },\n      bodyTempUnitFilter(value) {\n        var _this = this;\n        _this.set('body_temp_unit', value);\n      },\n      weightUnitFilter(value) {\n        var _this = this;\n        _this.set('weight_unit', value);\n      },\n      editVitalData: function (id) {\n        jQuery.noConflict();\n        $('#vitalStatisticsPopup').modal('show');\n        $('#vitalStatisticsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $('#vital_id').val(id);\n        $('#modal-title').text('Edit Vital Statistics');\n        if (id) {\n          $('#vitalUpdate').text('Update');\n          $('#vitalUpdate').removeClass('pull-left');\n          $('#vitalUpdate').attr('style', 'margin-left:39px');\n        }\n        var bmi_warning = $('.bmi_warning' + id).val();\n        if (bmi_warning == 1) {\n          $('#bmi_warning').val(bmi_warning);\n          $('#bmi').addClass('has-error');\n        } else {\n          $('#bmi_warning').val('');\n          $('#bmi').removeClass('has-error');\n        }\n        var body_temp_warning = $('.body_temp_warning' + id).val();\n        if (body_temp_warning == 1) {\n          $('#body_temp_warning').val(body_temp_warning);\n          $('#body_temp_celsius').addClass('has-error');\n        } else {\n          $('#body_temp_warning').val('');\n          $('#body_temp_celsius').removeClass('has-error');\n        }\n        var pluse_warning = $('.pluse_warning' + id).val();\n        if (pluse_warning == 1) {\n          $('#pluse_warning').val(pluse_warning);\n          $('#pulse_bpm').addClass('has-error');\n        } else {\n          $('#pluse_warning').val('');\n          $('#pulse_bpm').removeClass('has-error');\n        }\n        var blood_pressure_systolic_warning = $('.blood_pressure_systolic_warning' + id).val();\n        if (blood_pressure_systolic_warning == 1) {\n          $('#blood_pressure_systolic_warning').val(pluse_warning);\n          $('#blood_pressure_systolic').addClass('has-error');\n        } else {\n          $('#blood_pressure_systolic_warning').val('');\n          $('#blood_pressure_systolic').removeClass('has-error');\n        }\n        var blood_pressure_diastolic_warning = $('.blood_pressure_diastolic_warning' + id).val();\n        if (blood_pressure_diastolic_warning == 1) {\n          $('#blood_pressure_diastolic_warning').val(pluse_warning);\n          $('#blood_pressure_diastolic').addClass('has-error');\n        } else {\n          $('#blood_pressure_diastolic_warning').val('');\n          $('#blood_pressure_diastolic').removeClass('has-error');\n        }\n        var height_value = $('.height' + id).text().trim();\n        var height_words = height_value.split(' ');\n        var height_units = $('.height').val().trim();\n        if (height_units != 'feet') {\n          var height_inch_cm_c_value = height_words[0];\n          $('#height_inches').val(height_inch_cm_c_value);\n          $('#height_inches').css('width', '112px');\n          $('#height_inches1').hide();\n        } else {\n          var height_feet = height_words[0].replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\n          if (height_words[1] != undefined) {\n            var height_inches = height_words[1].replace(/[&\\/\\\\#,+()$~%.'\":*?<>{}]/g, '');\n          }\n          $('#height_inches1').show();\n          $('#height_inches').removeAttr('style');\n          $('#height_inches').val(height_feet);\n          $('#height_inches1').val(height_inches);\n        }\n        var weight_kg = $('.weight' + id).text().trim();\n        var bmi = $('.bmi' + id).text().trim();\n        var body_temp_celsius = $('.bodytemp' + id).text().trim();\n        var body_temp_unit = $('.bodytemp').val().trim();\n        var pulse = $('.pulse' + id).text().trim();\n        var body_pressure = $('.bodypressure' + id).text().trim();\n        var body_pressure_words = body_pressure.split('/');\n        var body_pressure_first_string = body_pressure_words[0];\n        var body_pressure_second_string = body_pressure_words[1];\n        $('#pulse_bpm').val(pulse);\n        $('#bmi').val(bmi);\n        $('#blood_pressure_systolic').val(body_pressure_first_string);\n        $('#blood_pressure_diastolic').val(body_pressure_second_string);\n        $('#weight_kgs').val(weight_kg);\n        $('#body_temp_celsius').val(body_temp_celsius);\n        $('#height_unit').find('option:selected').removeAttr('selected');\n        $('#weight_unit').find('option:selected').removeAttr('selected');\n        $('#body_temp_unit').find('option:selected').removeAttr('selected');\n\n        // check height select unit also selected in popup\n        var height_unit_filter = $('select[name=\"height_unit_filter\"]').val();\n        var height_unit = $('select[name=\"height_unit\"]').val();\n        if (height_unit_filter != height_unit) {\n          $('select[name=\"height_unit\"]').val(height_unit_filter);\n          $(\"#height_unit option[value='\" + height_unit_filter + \"']\").attr('selected', 'selected');\n          if (height_unit_filter == 'inch') {\n            $('#height_inches').attr('data-feet-min', '12');\n            $('#height_inches').attr('data-feet-max', '120');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else if (height_unit_filter == 'm') {\n            $('#height_inches').attr('data-feet-min', '0.30');\n            $('#height_inches').attr('data-feet-max', '3.04');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else if (height_unit_filter == 'cm') {\n            $('#height_inches').attr('data-feet-min', '30.48');\n            $('#height_inches').attr('data-feet-max', '304.8');\n            $('#height_inches').css('width', '112px');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches').val(height_inch_cm_c_value);\n          } else {\n            $('#height_inches').attr('data-feet-min', '0');\n            $('#height_inches').attr('data-feet-max', '10');\n            $('#height_inches1').attr('data-inches-min', '0');\n            $('#height_inches1').attr('data-inches-max', '11');\n            $('#height_inches').attr('placeholder', height_unit_filter);\n            $('#height_inches1').attr('placeholder', 'inch');\n            $('#height_inches').val(height_feet);\n            $('#height_inches1').val(height_inches);\n            $('#height_inches').removeAttr('style');\n          }\n        }\n\n        // check Weight select unit also selected in popup\n        var weight_unit_filter = $('select[name=\"weight_unit_filter\"]').val();\n        var weight_unit = $('select[name=\"weight_unit\"]').val();\n        if (weight_unit_filter != weight_unit) {\n          $('select[name=\"weight_unit\"]').val(weight_unit_filter);\n          $(\"#weight_unit option[value='\" + weight_unit_filter + \"']\").attr('selected', 'selected');\n          if (weight_unit_filter == 'pound') {\n            $('#weight_kgs').attr('data-kg-min', '2.20');\n            $('#weight_kgs').attr('data-kg-max', '1433');\n            $('#weight_kgs').val(weight_kg);\n            $('#weight_kgs').attr('placeholder', weight_unit_filter);\n          } else {\n            $('#weight_kgs').attr('data-kg-min', '1');\n            $('#weight_kgs').attr('data-kg-max', '650');\n            $('#weight_kgs').val(weight_kg);\n            $('#weight_kgs').attr('placeholder', weight_unit_filter);\n          }\n        }\n\n        // check Body Temp select unit also selected in popup\n        var body_temp_unit_filter = $('select[name=\"body_temp_unit_filter\"]').val();\n        var body_temp_unit = $('select[name=\"body_temp_unit\"]').val();\n        if (body_temp_unit_filter != body_temp_unit) {\n          $('select[name=\"body_temp_unit\"]').val(body_temp_unit_filter);\n          $(\"#body_temp_unit option[value='\" + body_temp_unit_filter + \"']\").attr('selected', 'selected');\n          if (body_temp_unit_filter == '°F') {\n            $('#body_temp_celsius').attr('data-bt-warning-min', '97');\n            $('#body_temp_celsius').attr('data-bt-warning-max', '98.8');\n            $('#body_temp_celsius').attr('data-bt-min', '40');\n            $('#body_temp_celsius').attr('data-bt-max', '110');\n            $('#body_temp_celsius').val(body_temp_celsius);\n            $('#body_temp_celsius').attr('placeholder', body_temp_unit_filter);\n          } else {\n            $('#body_temp_celsius').attr('data-bt-warning-min', '36.11');\n            $('#body_temp_celsius').attr('data-bt-warning-max', '37.11');\n            $('#body_temp_celsius').attr('data-bt-min', '4.4');\n            $('#body_temp_celsius').attr('data-bt-max', '43.33');\n            $('#body_temp_celsius').val(body_temp_celsius);\n            $('#body_temp_celsius').attr('placeholder', body_temp_unit_filter);\n          }\n        }\n\n        // Set Default Blood Type value\n        var blood_type_filter = $('input[name=blood_type_filter]').val();\n        var blood_type = $('select[name=\"blood_type\"]').val();\n        if (blood_type_filter != blood_type) {\n          $('select[name=\"blood_type\"]').val(blood_type_filter);\n          $(\"#blood_type option[value='\" + blood_type_filter + \"']\").attr('selected', 'selected');\n        }\n\n        // if (height_second_string == 'feet' && weight_second_string == 'kg') {\n        //   $('.height_inches1').show();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#height_inches1').val(height_third_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (\n        //   height_second_string == 'inch' &&\n        //   weight_second_string == 'kg'\n        // ) {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (height_second_string == 'm' && weight_second_string == 'kg') {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (height_second_string == 'cm' && weight_second_string == 'kg') {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (\n        //   height_second_string == 'feet' &&\n        //   weight_second_string == 'pound'\n        // ) {\n        //   $('.height_inches1').show();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#height_inches1').val(height_third_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (\n        //   height_second_string == 'inch' &&\n        //   weight_second_string == 'pound'\n        // ) {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (\n        //   height_second_string == 'm' &&\n        //   weight_second_string == 'pound'\n        // ) {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // } else if (\n        //   height_second_string == 'cm' &&\n        //   weight_second_string == 'pound'\n        // ) {\n        //   $('.height_inches1').hide();\n        //   $(\"#height_unit option[value='\" + height_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $(\"#weight_unit option[value='\" + weight_second_string + \"']\").attr(\n        //     'selected',\n        //     'selected'\n        //   );\n        //   $('#height_inches').val(height_first_string);\n        //   $('#weight_kgs').val(weight_first_string);\n        // }\n        // if (body_temp_second_string == '°C') {\n        //   $(\n        //     \"#body_temp_unit option[value='\" + body_temp_second_string + \"']\"\n        //   ).attr('selected', 'selected');\n        //   $('#body_temp_celsius').val(body_temp_first_string);\n        // } else if (body_temp_second_string == '°F') {\n        //   $(\n        //     \"#body_temp_unit option[value='\" + body_temp_second_string + \"']\"\n        //   ).attr('selected', 'selected');\n        //   $('#body_temp_celsius').val(body_temp_first_string);\n        // }\n      }\n    }\n  });\n});","define(\"clinic-dev/components/welcome-page\", [\"exports\", \"ember-welcome-page/components/welcome-page\"], function (_exports, _welcomePage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _welcomePage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-welcome-page/components/welcome-page\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/controllers/application\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    session: Ember.inject.service(),\n    idleTimer: Ember.inject.service(),\n    isLogin: false,\n    loginUser: '',\n    shiftDetail: '',\n    branchName: '',\n    pDetails: '',\n    role_route_p: '',\n    // For Permission\n\n    init() {\n      this._super(...arguments);\n\n      // Start idle tracking when the app loads\n      this.idleTimer.startTracking();\n\n      // Listen for session end to reset header\n      this.session.on('sessionEnded', () => {\n        this.send('resetHeader');\n        // Stop idle tracking when session ends\n        this.idleTimer.stopTracking();\n      });\n    },\n    willDestroy() {\n      this._super(...arguments);\n      // Stop idle tracking when controller destroyed\n      this.idleTimer.stopTracking();\n    },\n    permissionsCheck: Ember.computed('pDetails', 'session', function () {\n      if (this.session.getPermissionList() != null) {\n        var permissions = this.session.getPermissionList();\n        this.set('pDetails', permissions);\n      }\n      return this.pDetails;\n    }),\n    // for role route list\n    roleRoutePermissionsCheck: Ember.computed('role_route_p', 'session', function () {\n      if (this.session.getRoleRouteList() != null) {\n        var permissions = this.session.getRoleRouteList();\n        this.set('role_route_p', permissions);\n      }\n      return this.role_route_p;\n    }),\n    shiftCheck: Ember.computed('shiftDetail', 'session', function () {\n      if (this.session.getLoggedInUserShift() != null) {\n        var shift_detail = this.session.getLoggedInUserShift();\n        var shiftDetail = shift_detail;\n        this.set('shiftDetail', shiftDetail);\n      } else {\n        this.set('shiftDetail', '');\n      }\n      return this.shiftDetail;\n    }),\n    branchCheck: Ember.computed('branchName', 'session', function () {\n      if (this.session.getLocation() != null) {\n        var branch_detail = this.session.getLocation().split('-');\n        var branchName = branch_detail[1];\n        this.set('branchName', branchName);\n      } else {\n        this.set('branchName', '');\n      }\n      return this.branchName;\n    }),\n    loginCheck: Ember.computed('isLogin', 'session', function () {\n      if (this.session.getToken() != null) {\n        this.set('isLogin', true);\n      } else {\n        this.set('isLogin', false);\n      }\n      return this.isLogin;\n    }),\n    loginUsername: Ember.computed('loginUser', 'session', function () {\n      if (this.session.getLoggedInUserDetails() != null) {\n        this.set('loginUser', this.session.getLoggedInUserDetails());\n      } else {\n        this.set('loginUser', '');\n      }\n      return this.loginUser;\n    }),\n    actions: {\n      resetHeader() {\n        // Clear local properties\n        this.set('isLogin', false);\n        this.set('loginUser', '');\n        this.set('shiftDetail', '');\n        this.set('branchName', '');\n        this.set('pDetails', '');\n        this.set('role_route_p', '');\n        this.set('username', '');\n        this.set('password', '');\n\n        // Notify Ember to recompute bindings for header/top-nav\n        this.notifyPropertyChange('loginCheck');\n        this.notifyPropertyChange('loginUsername');\n        this.notifyPropertyChange('shiftCheck');\n        this.notifyPropertyChange('branchCheck');\n        this.notifyPropertyChange('permissionsCheck');\n        this.notifyPropertyChange('roleRoutePermissionsCheck');\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/appointment-detail\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    queryParams: ['p', 'sort', 'order', 'q'],\n    loginCheck: true,\n    branchAppointments: null,\n    assigned: null,\n    reassign_id: null,\n    dkb_appointments: null,\n    current_doc_appointments: null,\n    isDoctor: false,\n    completed: null,\n    doctors: null,\n    p: 1,\n    date_time_doctor: '',\n    state: '',\n    other_state: '',\n    other_city: '',\n    country: '',\n    phone_1: '',\n    phone_2: '',\n    date_of_birth: '',\n    age_years: '',\n    age_months: '',\n    age_days: '',\n    first_name: '',\n    middle_name: '',\n    last_name: '',\n    address_1: '',\n    address_2: '',\n    pin: '',\n    mode: '',\n    note: '',\n    selected_city: null,\n    loginCheck: true,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    stats: null,\n    priority: 'normal',\n    q: '',\n    page: 'Register',\n    title_prefix: '',\n    active_tab: 'home',\n    doctor_counter: null,\n    OnSpotDoc: null,\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      refreshAssignPatientModule(version) {\n        //in these line of code we set the values of of date, location and shift, Rahul Khan, 17 July 2019\n        var location = $('#location_id').val();\n        //var shift_value = $('#shift_id').val();\n        var date_of_appointment = moment($('#date_of_appointment').val()).format('YYYY-MM-DD');\n        if (date_of_appointment != 'Invalid date') {\n          var date = date_of_appointment;\n        } else {\n          alert('Please select date first.');\n          $('#date_of_appointment').focus();\n          return false;\n          var date = '';\n        }\n        if (location > 0) {\n          var location_id = location;\n        } else {\n          alert('Please select location first.');\n          $('select[id=location_id]').focus();\n          return false;\n          var location_id = '';\n        }\n        var shift_id = this.user_shift_id;\n        /* if(shift_value > 0){\n         var shift_id = shift_value;\n        }else{\n          alert(\"Please select shift first.\");\n          $(\"select[id=shift_id]\").focus();\n          return false;\n         var shift_id = '';\n        }*/\n\n        this.send('updateList', date, location_id, shift_id);\n        this.send('updateDkbList', date, location_id, shift_id);\n        this.send('getCompleted', date, location_id, shift_id, 2, version);\n        this.send('getEmailRMedicineQueuePatientsComplete', date, location_id, shift_id, 2, version);\n        this.send('getMedicineCompleted', date, location_id, shift_id, 2, version);\n        this.send('updateDoctorList', date, location_id, shift_id);\n      },\n      updateList(date, location_id, shift_id) {\n        //return false\n        // get branch appointments\n\n        var _this = this;\n        let utoken = _this.session.getToken();\n        // var d = new Date();\n        //var date_of_appointment = moment($('#date_of_appointment').val()).format('YYYY-MM-DD');\n        // doctors?branch=1&doctor_id=0b4ce8f5-e51e-11e5-9307-06de367cbccd&limit=500&dateTime=2016-03-11\n\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        $('body').addClass('modal-open');\n        var data = {\n          branch_id: location_id,\n          dateTime: date,\n          shift_id: shift_id\n        };\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/branch',\n          data: data,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('branchAppointments', res);\n            //console.log(res);\n          },\n          error: function (error, x, y) {}\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: data,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //\tconsole.log(res);\n            _this.set('assigned', res);\n          },\n          error: function (error, x, y) {},\n          complete: function () {}\n        });\n      },\n      assignPatient(doctor_id, patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var appointment_ids = $('input[name=selected_patient]:checked').map(function () {\n          return $(this).data('ap');\n        }).get();\n        var appointment_id = appointment_ids.join(',');\n        // alert(appointment_id); return false;\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/assignDoctor',\n          data: {\n            branch_id: branch_id,\n            user_id: patient_id,\n            doctor_id_1: doctor_id,\n            appointment_id: appointment_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {}\n          },\n          complete: function () {},\n          error: function (error, x, y) {}\n        });\n      },\n      cancelAssignment(id) {\n        if (confirm('Are you sure you want to cancel this assignment?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancelAssignment',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            // console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Assignment cancelled successfully.');\n            }\n          },\n          error: function (error, x, y) {\n            // console.error(error)\n          }\n        });\n      },\n      cancelOnSpot(id) {\n        if (confirm('Are you sure you want to cancel this appointment?') == false) {\n          return false;\n        }\n        var _this = this;\n        var isDoctor = this.isDoctor;\n        let token = _this.session.getToken();\n        var utoken = this.session.getLoggedInUserId();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancelOnSpot',\n          data: {\n            id: id,\n            user_id: utoken\n          },\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            // console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Appointment cancelled successfully.');\n            }\n          },\n          error: function (error, x, y) {\n            // console.error(error)\n          }\n        });\n      },\n      markComplete(id) {\n        if (confirm('Are you sure you want to complete this appointment?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/markComplete',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Appointment complete.');\n            } else {\n              alert('Sorry, some error occured');\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          }\n        });\n      },\n      closeReAssignModal() {\n        this.set('reassign_id', null);\n        $('#reAssignDoctor').addClass('fade');\n        $('.modal-backdrop').click();\n      },\n      reAssignModal(id) {\n        this.set('reassign_id', id);\n        $('#reAssignDoctor').removeClass('fade');\n      },\n      reAssign(id, doc_id) {\n        // var doc_id = $(\"select[name=reassign_doc]\").val();\n        // var id = this.get(\"reassign_id\",id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/reAssign',\n          data: {\n            id: id,\n            doctor_id: doc_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Reassign successfull.');\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          }\n        });\n      },\n      closeReScheduleModal() {\n        this.set('reschedule_id', null);\n        $('#reSchedule').addClass('fade');\n        $('.modal-backdrop').click();\n      },\n      reScheduleModal(id) {\n        this.set('reschedule_id', id);\n        // $(\"#reSchedule\").removeClass('fade');\n      },\n      reSchedule() {\n        var doc_id = $('#reSchedule select[name=reschedule_doc]').val();\n        var id = this.get('reschedule_id', id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/reSchedule',\n          data: {\n            id: id,\n            doctor_id: doc_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            _this.send('getCompleted');\n            _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Re-Schedule successfull.');\n            }\n          },\n          error: function (error, x, y) {}\n        });\n        this.send('closeReScheduleModal');\n      },\n      updateDkbList(date, location_id, shift_id) {\n        var dkb_id = _environment.default.APP.dkb_id;\n        // var branch_detail = this.get('session').getLocation().split('-');\n        // var branch_id = branch_detail[0];\n        // var d = new Date();\n        // var today = moment().format('YYYY-MM-DD');\n        //{branch_id:branch_id,dateTime:today,doctor_id:dkb_id,shift_id:this.get('user_shift_id')}\n        var data = {\n          branch_id: location_id,\n          dateTime: date,\n          shift_id: shift_id,\n          doctor_id: dkb_id\n        };\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: data,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('dkb_appointments', res);\n            //  _this.send('refreshModel');\n          },\n          complete: function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      },\n      updateDoctorList(date, location_id, shift_id) {\n        //// var branch_detail = this.get('session').getLocation().split('-');\n        //  var branch_id = branch_detail[0];\n        // var d = new Date();\n        // var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        //{branch_id:branch_id,dateTime:today,doctor_id:doctor_id,shift_id:this.get('user_shift_id')},\n        var data = {\n          branch_id: location_id,\n          dateTime: date,\n          shift_id: shift_id,\n          doctor_id: doctor_id\n        };\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: data,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('current_doc_appointments', res);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      showTab(tab) {\n        $('.tab-pane.active').removeClass('active');\n        $('#assign-tab-list > li.active').removeClass('active');\n        $('#' + tab + '.tab-pane').addClass('active');\n        $('[data-tab=' + tab + ']').parent('li').addClass('active');\n        this.set('active_tab', tab);\n        // this.send('updateDkbList')\n      },\n      getCompleted(date, location_id, shift_id, stage, version) {\n        //  var branch_detail = this.get('session').getLocation().split('-');\n        // var branch_id = branch_detail[0];\n        // var d = new Date();\n        // var today = moment($('#date_of_appointment').val()).format('YYYY-MM-DD');\n        // var doctor_id = this.get('session').getLoggedInUserId();\n        //{branch_id:branch_id,dateTime:today,shift_id:this.get('user_shift_id')}\n        var data = {\n          branch_id: location_id,\n          dateTime: date,\n          shift_id: shift_id\n        };\n\n        //var _this = this;\n        //if(date=='All'){\n        var date = date;\n        //  }else{\n        // var date = '';\n        // }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (version == 'new') {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/clinicpatients?shift_id=' + shift_id + '&branch_id=' + location_id + '&stage=' + stage + '&date=' + date;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var ParseData = JSON.parse(res);\n              _this.set('completed', ParseData.data);\n              _this.set('com_report_type', version);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        } else if (version == 'old') {\n          //_this.controllerFor('billing').send('getClinicPatientsComplete',shift_id ,branch_id,stage);\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/completed',\n            data: data,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('completed', res.data);\n              _this.set('com_report_type', version);\n            },\n            error: function (error, x, y) {\n              console.error(error);\n            }\n          });\n        }\n      },\n      getMedicineCompleted(date, location_id, shift_id, stage, version) {\n        var branch_detail = this.session.getLocation().split('-');\n        ///var branch_id = branch_detail[0];\n        // var d = new Date();\n        // var today = moment($('#date_of_appointment').val()).format('YYYY-MM-DD');\n        // var doctor_id = this.get('session').getLoggedInUserId();\n        ///{branch_id:branch_id,dateTime:today,shift_id:this.get('user_shift_id')}\n\n        var data = {\n          branch_id: location_id,\n          dateTime: date,\n          shift_id: shift_id\n        };\n\n        // if(date=='All'){\n        var date = date;\n        //}else{\n        //  var date = '';\n        //}\n        if (version == 'new') {\n          var _this = this;\n          let utoken = _this.session.getToken();\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/medicinepatient?shift_id=' + shift_id + '&branch_id=' + location_id + '&stage=' + stage + '&date=' + date;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var ParseData = JSON.parse(res);\n              //  var arr = [];\n              // ParseData.onspot.filter(function(item, index, self) {\n              // console.log(item.medicine_queue_number);\n              // console.log(item.medicine_complete);\n              //   if ((item.medicine_queue_number > 0) && (item.medicine_complete==0) ) {\n              //       arr.push(item);\n              //  }\n              //   });\n              //  console.log(arr);\n              _this.set('medicinecompleted', ParseData.data);\n              _this.set('med_com_report_type', version);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        } else if (version == 'old') {\n          var _this = this;\n          let utoken = _this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/medicinecompleted',\n            data: data,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('medicinecompleted', res.data);\n              _this.set('med_com_report_type', version);\n            },\n            error: function (error, x, y) {\n              console.error(error);\n            },\n            complete: function (res) {\n              console.log(res);\n            }\n          });\n        }\n      },\n      getEmailRMedicineQueuePatientsComplete: function (date, branch_id, shift_id, stage, version) {\n        //console.log(date);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/emailrmpatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n        if (version == 'new') {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var ParseData = JSON.parse(res);\n              _this.set('EmailRepeatMedicinePatientsBillComplete', ParseData.data);\n              _this.set('emailrm_med_com_report_type', version);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        } else if (version == 'old') {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var ParseData = JSON.parse(res);\n              _this.set('EmailRepeatMedicinePatientsBillComplete', ParseData.data);\n              _this.set('emailrm_med_com_report_type', version);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      enableForm() {\n        $('#on-spot-modal select:disabled').prop('disabled', false);\n        this.set('mode', 'clinic');\n        $('#on-spot-modal select[name=mode]').val('clinic');\n        $('#on-spot-modal input,textarea').prop('readonly', false);\n      },\n      disableForm() {\n        $('#on-spot-modal select:disabled').prop('disabled', true);\n        $('#on-spot-modal input,textarea').prop('readonly', true);\n      },\n      onSpotModal() {\n        this.send('enableForm');\n        $('#on-spot-modal').removeClass('hidden');\n        $('.modal-backdrop').click();\n      },\n      closeOnSpotModal() {\n        $('#modal-functions').removeClass('hidden');\n        $('#on-spot-registration').addClass('hidden');\n        //form reset\n        $('#on-spot-registration input,#on-spot-registration select,#on-spot-registration textarea').val('');\n        $('#on-spot-registration select[name=priority]').val('normal');\n        this.set('q', '');\n        this.set('patients', null);\n        this.set('onSpotDoc', null);\n        $('select[name=onSpotDoc]').val('');\n        this.send('disableForm');\n        $('#on-spot-modal').removeClass('in');\n        $('#on-spot-modal').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n      },\n      setCategory() {\n        var category = $('select[name=category]').val();\n        this.set('category', category);\n      },\n      setOnspotDoc() {\n        var onSpotDoc = $('select[name=onSpotDoc]').val();\n        this.set('onSpotDoc', onSpotDoc);\n      },\n      setTitlePrefix() {\n        var title_prefix = $('select[name=title_prefix]').val();\n        this.set('title_prefix', title_prefix);\n      },\n      setPriority() {\n        var priority = $('select[name=priority]').val();\n        this.set('priority', priority);\n      },\n      setBloodType() {\n        var blood_type = $('select[name=blood_type]').val();\n        this.set('blood_type', blood_type);\n      },\n      setAppointmentDoctor() {\n        var appointment_doctor = $('select[name=appointment_doctor]').val();\n        this.set('appointment_doctor', appointment_doctor);\n      },\n      search_patient() {\n        $('#on-spot-registration').addClass('hidden');\n        $('.onspot_listing_div').removeClass('hidden');\n        var _this = this;\n        var utoken = _this.session.getToken();\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            q: q\n          },\n          success: function (res) {\n            _this.set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.set('p', page);\n      },\n      updateLocationParams() {\n        var city_id = $('select[name=city]').val();\n        var selected_city = $.grep(this.cities, function (v, i) {\n          return v.id == city_id;\n        });\n        this.set('selected_city', selected_city.id);\n        this.set('state', selected_city[0].state);\n        this.set('country', selected_city[0].country);\n      },\n      //This below function is used for select value of Discount category for patient, Rahul Khan\n      updateDiscountCategoty() {\n        var discount_category_id_id = $('select[name=discount_category]').val();\n        this.set('selected_discount_category', discount_category_id_id);\n      },\n      updateCountry() {\n        var country_id = $('select[name=country]').val();\n        this.set('selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('pstates', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateState() {\n        var state_id = $('select[name=state]').val();\n        this.set('selected_state', state_id);\n\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again, Rahul Khan, 04 July 2019,\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            // _this.set('patient').set('cities', res.data);\n            _this.set('cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#other_state').val('').addClass('hidden');\n        } else {\n          $('#other_state').removeClass('hidden');\n        }\n      },\n      updateCity() {\n        var city_id = $('select[name=city]').val();\n        if (city_id != 'other') {\n          $('#other_city').val('').addClass('hidden');\n          this.set('selected_city', city_id);\n        } else {\n          $('#other_city').removeClass('hidden');\n          this.set('selected_city', 'other');\n        }\n      },\n      submitOnSpot(patient_id) {\n        console.log('appointmenrt controllers');\n        var _this = this;\n        let token = _this.session.getToken();\n        var onSpotDoc = this.onSpotDoc;\n        if (onSpotDoc == null || onSpotDoc == '') {\n          alert('Please Select a doctor.');\n          $('select[name=onSpotDoc]').focus();\n          return false;\n        } /*else if(data.urgent_status == 1) {\n          if((data.urgenttagnote == null) || (data.urgenttagnote == \"\")){\n            alert('Please enter reason');\n            $(\"#urgenttagnote\").focus();\n            return false;\n          }\n          }else if(data.appointment_type == \"\"){\n          alert('Please select appointment type');\n          $(\"#appointment_type\").focus();\n          return false;\n          }else if((data.appointment_type == 'ocp') && (data.ocp_visit_address == \"\")){\n            alert('Please enter OCP visit address');\n            $(\"#ocp_visit_address\").focus();\n            return false\n          }*/\n\n        var utoken = this.session.getLoggedInUserId();\n        var patient_id = patient_id || '';\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        if (patient_id != '') {\n          var data = {\n            doctor_id: onSpotDoc,\n            branch_id: branch_id,\n            uid: utoken,\n            shift_id: this.user_shift_id,\n            onspot: true,\n            patient_id: patient_id\n          };\n        } else {\n          var data = {\n            doctor_id: onSpotDoc,\n            branch_id: branch_id,\n            first_name: this.first_name,\n            middle_name: this.middle_name,\n            last_name: this.last_name,\n            gender: this.gender,\n            date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n            age_years: this.age_years,\n            age_months: this.age_months,\n            age_days: this.age_days,\n            phone_1: this.phone_1,\n            phone_2: this.phone_2,\n            address_1: this.address_1,\n            address_2: this.address_2,\n            title_prefix: this.title_prefix,\n            other_state: this.other_state,\n            other_city: this.other_city,\n            zip: this.zip,\n            mode: this.mode,\n            note: this.note,\n            category: this.category,\n            priority: this.priority,\n            blood_type: this.blood_type,\n            city: this.selected_city,\n            // city:$(\"select[name=city]\").val(),\n            state: this.selected_state,\n            country: this.selected_country,\n            uid: utoken,\n            shift_id: this.user_shift_id,\n            onspot: true\n          };\n        }\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'patients/register',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          data: data,\n          beforeSend: function () {\n            if (patient_id == '') {\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false;\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false;\n              } else if (data.phone_2.match('^[0-9]+$') == false) {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              } else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false;\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n            }\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.validate == true) {\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              _this.send('getCompleted');\n              _this.send('getMedicineCompleted');\n              _this.send('updateDoctorList');\n              _this.send('closeOnSpotModal');\n              alert('Patient registered and appointment booked successfully!');\n            } else if (res.validate = 'false') {\n              alert(res.message);\n            }\n          },\n          error: function (error, x, y) {\n            // console.log(error);\n          },\n          complete: function (res) {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      setGender() {\n        this.set('gender', $('select[name=gender]').val());\n      },\n      setMode() {\n        this.set('mode', $('select[name=mode]').val());\n      },\n      setNote() {\n        this.set('note', $('textarea#note').val());\n      },\n      prev(stats, p) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          this.set('p', page);\n        }\n      },\n      next(stats, p) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        }\n      },\n      goto() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {\n              console.log('Not complete');\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          this.set('p', page);\n        }\n      },\n      exportAppointments(shift_id) {\n        var export_date = $('#date_of_appointment').val();\n        var location = $('#location_id').val();\n        if (export_date.trim() == '') {\n          alert(\"Please selectd date first.\");\n          $('#date_of_appointment').focus();\n          return false;\n        }\n        if (location > 0) {\n          var location_id = location;\n        } else {\n          alert(\"Please select location first.\");\n          $(\"select[id=location_id]\").focus();\n          return false;\n          var location_id = '';\n        }\n        //location_id\n        var date_parts = export_date.split('/');\n        var date_of_export = date_parts[2] + '-' + date_parts[0] + '-' + date_parts[1];\n        let utoken = this.session.getToken();\n        let url = _environment.default.APP.lumen_api_url + `instruction/export?shift_id=${shift_id}&export_date=${date_of_export}&branch_id=${location_id}`;\n        $.ajax({\n          url: url,\n          method: 'GET',\n          xhrFields: {\n            responseType: 'blob'\n          },\n          headers: {\n            Authorization: `Bearer ${utoken}`\n          },\n          success: function (data, status, xhr) {\n            let blob = new Blob([data], {\n              type: xhr.getResponseHeader('Content-Type')\n            });\n            let link = document.createElement('a');\n            let fileName = \"appointments.xlsx\";\n\n            // agar server Content-Disposition bhejta hai to filename use karo\n            let disposition = xhr.getResponseHeader('Content-Disposition');\n            if (disposition && disposition.indexOf('filename=') !== -1) {\n              fileName = disposition.split('filename=')[1].replace(/\"/g, '');\n            }\n            let url = window.URL.createObjectURL(blob);\n            link.href = url;\n            link.download = fileName;\n            document.body.appendChild(link);\n            link.click();\n            document.body.removeChild(link);\n            window.URL.revokeObjectURL(url);\n          },\n          error: function (xhr) {\n            if (xhr.status === 401) {\n              alert(\"Unauthorized! Please login again.\");\n            } else {\n              alert(\"Export failed. Try again later.\");\n            }\n            console.error('Export failed:', xhr);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/appointment\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    slotLock: Ember.inject.service(),\n    ajaxAuth: Ember.inject.service(),\n    queryParams: ['p', 'sort', 'order', 'q', 'doctor_id', 'dateTime'],\n    q: '',\n    p: 1,\n    note: null,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    appointments: null,\n    loginCheck: true,\n    appointment_heading: '',\n    stats: null,\n    cancel_appointment_id: null,\n    dateTime: null,\n    doctor_id: null,\n    appointmentId: '',\n    state: '',\n    country: '',\n    phone_1: '',\n    phone_2: '',\n    date_of_birth: '',\n    age_years: '',\n    age_months: '',\n    age_days: '',\n    is_rescheduled: '0',\n    patient_id: '',\n    first_name: '',\n    middle_name: '',\n    last_name: '',\n    address_1: '',\n    address_2: '',\n    pin: '',\n    mode: '',\n    note: '',\n    selected_city: null,\n    loginCheck: true,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    stats: null,\n    priority: 'normal',\n    category: '',\n    pstates: '',\n    cities: '',\n    branch: '',\n    branches: '',\n    title_prefix: '',\n    editPage: false,\n    prev_week: 'prev_week_disable',\n    slotLockedId: null,\n    isUpdatingDob: false,\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    selectedAppointmentIds: Ember.A(),\n    selectAll: false,\n    modalOpen: false,\n    batches: [],\n    selectedReason: '',\n    refundQuery: '',\n    transactions: [],\n    batchesList: [],\n    currentBatch: null,\n    currentRefunds: [],\n    searchQuery: '',\n    statusFilter: '',\n    sourceFilter: '',\n    activeRefundTab: 'batches',\n    autoRefundsList: [],\n    autoRefundSearch: '',\n    autoRefundStatusFilter: '',\n    autoRefundGatewayFilter: '',\n    autoRefundPagination: null,\n    autoRefundLoading: false,\n    init() {\n      this._super();\n      this.selectedPaymentOptions = [];\n      this.selectedPaymentName = [];\n      /* AJAX call */\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let lockedId = this.get('slotLock').getLockedSlot();\n      this.set('slotLockedId', lockedId);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('countries', res.data);\n          //console.log(_this.get('countries'));\n        },\n        error: function (error, x, y) {}\n      });\n      /*in Below line code are getting all the discount categories, Rahul Khan 12_june_2019 */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/discount_catgories',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('discount_categories', res);\n        },\n        error: function (error, x, y) {}\n      });\n      this.set('page', 'Register');\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'getsetting/appointment_type',\n        method: 'GET',\n        data: '',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('appointment_types', JSON.parse(res));\n          setTimeout(function () {\n            $('.appointmenttype_icp').click();\n          }, 200);\n          // alert(\"\");\n        }\n      });\n      //Addred by Rahul khan 09_03_2020\n      var _this = this;\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/paymentmode';\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('pmode', res[0].name);\n          _this.set('Payment_mode', res);\n          //console.log(res);\n        },\n        complete: function (res) {\n          // console.log(\"Execution complete\");\n        }\n      });\n      var _this = this;\n      var patient_id = $.trim($('#patient_id').val());\n      /* if (patient_id == undefined) {\n              patient_id = _this.get('patient_id');\n          }*/\n\n      _this.set('pending_amount', '0.00');\n      if (patient_id != undefined && patient_id != '') {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + null;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data != null) {\n              _this.set('pending_amount', res.data.due_amount);\n              _this.set('pending_list', res);\n            } else {\n              _this.set('pending_amount', '0.00');\n              _this.set('pending_list', 'norecord');\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    cancelButtonLabel: Ember.computed('selectedAppointmentIds.[]', 'appointments.[]', function () {\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let appointments = this.get('appointments') || [];\n      if (selectedIds.length === 0) {\n        return 'Cancel';\n      }\n      let hasOnlineBooking = false;\n      for (let i = 0; i < appointments.length; i++) {\n        let appointment = appointments[i];\n        if (selectedIds.includes(appointment.id) && appointment.appointment_booked_from === 'online') {\n          hasOnlineBooking = true;\n          break;\n        }\n      }\n      return hasOnlineBooking ? 'Refund and Cancel schedule' : 'Cancel';\n    }),\n    cancelBulkLabel: Ember.computed('selectedAppointmentIds.[]', 'appointments.[]', function () {\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let appointments = this.get('appointments') || [];\n      let onlineSelected = appointments.filter(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'online');\n      if (onlineSelected.length > 0) {\n        return 'Cancel & refund selected (' + onlineSelected.length + ')';\n      }\n      return 'Cancel';\n    }),\n    fetchTransactions() {\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let appointments = this.get('appointments') || [];\n      let onlineAppointments = appointments.filter(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'online');\n      if (onlineAppointments.length === 0) {\n        this.set('transactions', []);\n        return Ember.RSVP.resolve([]);\n      }\n      let appointmentIds = onlineAppointments.map(a => a.id).join(',');\n      let _this = this;\n      let utoken = this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/gateway-transactions?appointment_ids=' + appointmentIds,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error === false && res.data) {\n              _this.set('transactions', res.data);\n              resolve(res.data);\n            } else {\n              _this.set('transactions', []);\n              resolve([]);\n            }\n          },\n          error: function (xhr) {\n            _this.set('transactions', []);\n            reject(xhr);\n          }\n        });\n      });\n    },\n    selectedOnlineAppointments: Ember.computed('appointments.[]', 'selectedAppointmentIds.[]', function () {\n      let appointments = this.get('appointments') || [];\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let selectedIdSet = new Set(selectedIds.map(id => Number(id)));\n      return appointments.filter(a => selectedIdSet.has(Number(a.id)) && a.appointment_booked_from === 'online');\n    }),\n    selectedTransactions: Ember.computed('transactions.[]', 'selectedOnlineAppointments.[]', function () {\n      let transactions = this.get('transactions') || [];\n      let selectedOnlineIds = new Set((this.get('selectedOnlineAppointments') || []).map(a => Number(a.id)));\n      return transactions.filter(t => {\n        let apptId = Number(t.appointment_id);\n        if (!selectedOnlineIds.has(apptId)) return false;\n        return true;\n      });\n    }),\n    onlineTotalAmount: Ember.computed('selectedTransactions.[]', function () {\n      let selected = this.get('selectedTransactions') || [];\n      let total = selected.reduce((sum, t) => sum + (parseFloat(t.amount) || 0), 0);\n      return total.toFixed(2);\n    }),\n    onlineGatewaySummary: Ember.computed('selectedTransactions.[]', function () {\n      let selected = this.get('selectedTransactions') || [];\n      let byGateway = {};\n      selected.forEach(t => {\n        let gw = t.gateway || 'razorpay';\n        byGateway[gw] = (byGateway[gw] || 0) + 1;\n      });\n      return Object.entries(byGateway).map(([gateway, count]) => ({\n        gateway,\n        count\n      }));\n    }),\n    allSelectedAreClinic: Ember.computed('selectedAppointmentIds.[]', 'appointments.[]', function () {\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let appointments = this.get('appointments') || [];\n      if (selectedIds.length === 0) return false;\n      let selectedAppointments = appointments.filter(a => selectedIds.includes(a.id));\n      return selectedAppointments.every(a => a.appointment_booked_from === 'clinic');\n    }),\n    selectedClinicAppointments: Ember.computed('appointments.[]', 'selectedAppointmentIds.[]', function () {\n      let appointments = this.get('appointments') || [];\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      return appointments.filter(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'clinic');\n    }),\n    cancelClinicLabel: Ember.computed('selectedClinicAppointments.[]', function () {\n      let clinicSelected = this.get('selectedClinicAppointments') || [];\n      if (clinicSelected.length > 0) {\n        let rawName = [clinicSelected[0].first_name, clinicSelected[0].middle_name, clinicSelected[0].last_name].filter(Boolean).join(' ');\n        let name = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n        return 'Cancel (' + (name || 'appointment') + ')';\n      }\n      return 'Cancel';\n    }),\n    isDoctorPage: Ember.computed('doctor_id', function () {\n      return !!this.get('doctor_id');\n    }),\n    shouldUseCancelAll: Ember.computed('selectAll', 'allSelectedAreClinic', 'isDoctorPage', function () {\n      return this.get('selectAll') === true && this.get('allSelectedAreClinic') === true && this.get('isDoctorPage') === true;\n    }),\n    customPopupTitle: Ember.computed('selectedAppointmentIds.[]', 'appointments.[]', function () {\n      let appointments = this.get('appointments') || [];\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let selected = appointments.find(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'online');\n      if (!selected) {\n        return '';\n      }\n      let loggedIn = '';\n      try {\n        loggedIn = this.get('session').getLoggedInUserName();\n      } catch (e) {\n        loggedIn = '';\n      }\n      let rawName = [selected.first_name, selected.middle_name, selected.last_name].filter(Boolean).join(' ');\n      let patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n      let warning = 'Please note that you, ' + loggedIn + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n      if (patientName) {\n        warning = 'Cancelling appointment for: ' + patientName + '. ' + warning;\n      }\n      return warning;\n    }),\n    modalAppointmentRows: Ember.computed('selectedAppointmentIds.[]', 'appointments.[]', 'transactions.[]', function () {\n      let appointments = this.get('appointments') || [];\n      let selectedIds = this.get('selectedAppointmentIds') || [];\n      let transactions = this.get('transactions') || [];\n      let txnsByAppt = {};\n      transactions.forEach(t => {\n        if (['success', 'completed'].includes(t.status) && t.gateway !== 'manual') {\n          txnsByAppt[Number(t.appointment_id)] = t;\n        }\n      });\n      return appointments.filter(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'online').map(a => {\n        let txn = txnsByAppt[Number(a.id)];\n        let rawName = [a.first_name, a.middle_name, a.last_name].filter(Boolean).join(' ');\n        let patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n        let rawAmount = txn ? parseFloat(txn.amount) : 0;\n        let safeAmount = isNaN(rawAmount) ? 0 : rawAmount;\n        return {\n          patientName: patientName || 'Unknown Patient',\n          doctorName: a.doctor_name || '',\n          appointmentId: a.id || '',\n          dateTime: a.dateTime || '',\n          amount: safeAmount.toFixed(2),\n          gateway: txn ? txn.gateway || '' : '',\n          visitStatus: a.visit_status || 0\n        };\n      });\n    }),\n    // Disable refund button if any selected appointment has visit_status = 2 (completed)\n    disableRefundButton: Ember.computed('modalAppointmentRows.@each.visitStatus', function () {\n      let rows = this.get('modalAppointmentRows') || [];\n      return rows.some(row => row.visitStatus == 2);\n    }),\n    filteredBatches: Ember.computed('batchesList.[]', 'searchQuery', 'statusFilter', 'sourceFilter', function () {\n      let batches = this.get('batchesList') || [];\n      let query = (this.get('searchQuery') || '').toLowerCase();\n      let status = this.get('statusFilter');\n      let source = this.get('sourceFilter');\n      return batches.filter(batch => {\n        if (status && (batch.status || '').toLowerCase() !== status.toLowerCase()) return false;\n        if (source && (batch.source || '').toLowerCase() !== source.toLowerCase()) return false;\n        if (query) {\n          let batchMatch = batch.batch_id && batch.batch_id.toLowerCase().includes(query) || batch.initiated_by && batch.initiated_by.toLowerCase().includes(query) || batch.patient && batch.patient.toLowerCase().includes(query) || batch.patient_name && batch.patient_name.toLowerCase().includes(query) || batch.patient_id && batch.patient_id.toLowerCase().includes(query);\n          if (!batchMatch && batch.refunds && batch.refunds.length) {\n            batchMatch = batch.refunds.some(r => {\n              let nameMatch = r.patient_name && r.patient_name.toLowerCase().includes(query);\n              let idMatch = r.patient_id && r.patient_id.toLowerCase().includes(query);\n              return nameMatch || idMatch;\n            });\n          }\n          if (!batchMatch) return false;\n        }\n        return true;\n      });\n    }),\n    filteredAutoRefunds: Ember.computed('autoRefundsList.[]', 'autoRefundSearch', 'autoRefundStatusFilter', 'autoRefundGatewayFilter', function () {\n      let refunds = this.get('autoRefundsList') || [];\n      let query = (this.get('autoRefundSearch') || '').toLowerCase();\n      let status = this.get('autoRefundStatusFilter');\n      let gateway = this.get('autoRefundGatewayFilter');\n      return refunds.filter(r => {\n        if (status && r.status !== status) return false;\n        if (gateway && r.gateway !== gateway) return false;\n        if (query) {\n          let match = r.patient_name && r.patient_name.toLowerCase().includes(query) || r.order_id && r.order_id.toLowerCase().includes(query) || r.original_txn_id && r.original_txn_id.toLowerCase().includes(query);\n          if (!match) return false;\n        }\n        return true;\n      });\n    }),\n    autoRefundProcessedCount: Ember.computed('autoRefundsList.[]', function () {\n      return (this.get('autoRefundsList') || []).filter(r => r.status === 'processed').length;\n    }),\n    autoRefundPendingCount: Ember.computed('autoRefundsList.[]', function () {\n      return (this.get('autoRefundsList') || []).filter(r => ['pending', 'initiated', 'queued'].includes(r.status)).length;\n    }),\n    autoRefundFailedCount: Ember.computed('autoRefundsList.[]', function () {\n      return (this.get('autoRefundsList') || []).filter(r => r.status === 'failed').length;\n    }),\n    autoRefundPaginationInfo: Ember.computed('autoRefundPagination', function () {\n      let p = this.get('autoRefundPagination');\n      if (!p) return '';\n      let start = p.total === 0 ? 0 : (p.current_page - 1) * p.per_page + 1;\n      let end = Math.min(p.current_page * p.per_page, p.total);\n      return start + ' to ' + end + ' of ' + p.total + ' entries';\n    }),\n    loadAutoRefunds(page) {\n      let _this = this;\n      let token = this.session.getToken();\n      let params = {\n        page: page || 1\n      };\n      let status = this.get('autoRefundStatusFilter');\n      let gateway = this.get('autoRefundGatewayFilter');\n      if (status) params.status = status;\n      if (gateway) params.gateway = gateway;\n      params.per_page = 10;\n      this.set('autoRefundLoading', true);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'v1/auto-refunds',\n        data: params,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.error === false) {\n            _this.set('autoRefundsList', res.data || []);\n            _this.set('autoRefundPagination', {\n              current_page: res.current_page || 1,\n              last_page: res.last_page || 1,\n              per_page: res.per_page || 10,\n              total: res.total || 0\n            });\n          }\n        },\n        complete: function () {\n          _this.set('autoRefundLoading', false);\n        }\n      });\n    },\n    batchPaginationInfo: Ember.computed('pagination.total', 'pagination.current_page', 'pagination.per_page', function () {\n      let total = parseInt(this.get('pagination.total')) || 0;\n      let page = parseInt(this.get('pagination.current_page')) || 1;\n      let perPage = parseInt(this.get('pagination.per_page')) || 10;\n      let start = total === 0 ? 0 : (page - 1) * perPage + 1;\n      let end = Math.min(page * perPage, total);\n      return 'Showing ' + start + ' to ' + end + ' of ' + total + ' entries';\n    }),\n    processedCount: Ember.computed('currentRefunds.[]', function () {\n      return (this.get('currentRefunds') || []).filter(r => r.status === 'processed').length;\n    }),\n    pendingCount: Ember.computed('currentRefunds.[]', function () {\n      return (this.get('currentRefunds') || []).filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length;\n    }),\n    failedCount: Ember.computed('currentRefunds.[]', function () {\n      return (this.get('currentRefunds') || []).filter(r => r.status === 'failed').length;\n    }),\n    filteredRefunds: Ember.computed('currentRefunds.[]', 'searchQuery', 'statusFilter', 'gatewayFilter', function () {\n      let refunds = this.get('currentRefunds') || [];\n      let query = (this.get('searchQuery') || '').toLowerCase();\n      let status = this.get('statusFilter');\n      let gateway = this.get('gatewayFilter');\n      return refunds.filter(refund => {\n        if (status && refund.status !== status) return false;\n        if (gateway && refund.gateway !== gateway) return false;\n        if (query) {\n          let match = refund.patient_name && refund.patient_name.toLowerCase().includes(query) || refund.appointment_id && refund.appointment_id.toString().toLowerCase().includes(query);\n          if (!match) return false;\n        }\n        return true;\n      });\n    }),\n    refundPage: 1,\n    refundPerPage: 10,\n    paginatedRefunds: Ember.computed('filteredRefunds.[]', 'refundPage', 'refundPerPage', function () {\n      let refunds = this.get('filteredRefunds') || [];\n      let page = parseInt(this.get('refundPage')) || 1;\n      let perPage = parseInt(this.get('refundPerPage')) || 10;\n      let start = (page - 1) * perPage;\n      return refunds.slice(start, start + perPage);\n    }),\n    refundTotalPages: Ember.computed('filteredRefunds.[]', 'refundPerPage', function () {\n      let refunds = this.get('filteredRefunds') || [];\n      let perPage = parseInt(this.get('refundPerPage')) || 10;\n      return Math.max(1, Math.ceil(refunds.length / perPage));\n    }),\n    pollBatchStatus(batchId) {\n      let _this = this;\n      let token = this.session.getToken();\n      function poll() {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              let batch = _this.get('batches').find(b => b.id === batchId);\n              if (batch) {\n                let updatedRefunds = res.refunds.map(r => ({\n                  id: r.appointment_id,\n                  patient: r.patient_name,\n                  patient_id: r.patient_id,\n                  status: r.status,\n                  ref: r.gateway_refund_id || r.arn_rrn_utr,\n                  gateway: r.gateway,\n                  amount: (parseFloat(r.amount) || 0).toFixed(2),\n                  created_at: r.created_at,\n                  order_id: r.order_id,\n                  reason: r.reason\n                }));\n                let updatedCounts = {\n                  total: updatedRefunds.length,\n                  processed: updatedRefunds.filter(r => r.status === 'processed').length,\n                  pending: updatedRefunds.filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length,\n                  failed: updatedRefunds.filter(r => r.status === 'failed').length,\n                  queued: updatedRefunds.filter(r => r.status === 'queued').length\n                };\n                let updatedBatch = Object.assign({}, batch, {\n                  refunds: updatedRefunds,\n                  status: res.batch ? res.batch.status : batch.status,\n                  counts: updatedCounts,\n                  allDone: updatedRefunds.every(r => r.status === 'processed' || r.status === 'failed')\n                });\n                let batches = _this.get('batches').map(b => b.id === batchId ? updatedBatch : b);\n                _this.set('batches', batches);\n              }\n              if (batch && !batch.allDone) {\n                setTimeout(poll, 5000);\n              }\n            }\n          }\n        });\n      }\n      poll();\n    },\n    updateBatchRefund(batchId, appointmentId, updates) {\n      let batches = this.get('batches').slice();\n      let batch = batches.find(b => b.id === batchId);\n      if (!batch) {\n        return;\n      }\n      let refundIndex = batch.refunds.findIndex(r => r.id === appointmentId);\n      if (refundIndex === -1) {\n        return;\n      }\n      batch.refunds = batch.refunds.map((r, i) => {\n        if (i !== refundIndex) {\n          return r;\n        }\n        return Object.assign({}, r, updates);\n      });\n      let counts = {\n        total: batch.refunds.length,\n        processed: 0,\n        pending: 0,\n        failed: 0,\n        queued: 0\n      };\n      batch.refunds.forEach(r => {\n        if (r.status === 'processed') counts.processed++;else if (r.status === 'failed') counts.failed++;else if (r.status === 'queued' || r.status === 'initiated') counts.queued++;else counts.pending++;\n      });\n      batch.counts = counts;\n      let allDone = batch.refunds.every(r => r.status === 'processed' || r.status === 'failed');\n      batch.allDone = allDone;\n      this.set('batches', batches);\n    },\n    performSingleCancel(id, note) {\n      var _this = this;\n      var utoken = _this.session.getLoggedInUserId();\n      var token = _this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve) {\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancel',\n          data: {\n            id: id,\n            user_id: utoken,\n            note: note\n          },\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            resolve(res);\n          },\n          error: function () {\n            resolve({\n              validate: false\n            });\n          }\n        });\n      });\n    },\n    getRefundAmount(appointment) {\n      let transactions = this.get('transactions') || [];\n      let txn = transactions.find(t => Number(t.appointment_id) === Number(appointment.id));\n      if (txn && ['success', 'completed'].includes(txn.status) && txn.gateway !== 'manual') {\n        return parseFloat(txn.amount) || 0;\n      }\n      // For online appointments, ONLY use gateway transactions. \n      // Ignore advance_payment_received (clinic ₹1 placeholder).\n      return 0;\n    },\n    refreshCurrentBatch() {\n      let _this = this;\n      let batchId = this.get('currentBatch.batch_id');\n      if (!batchId) return;\n      let token = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.error === false) {\n            _this.set('currentBatch', res.batch);\n            _this.set('currentRefunds', res.refunds || []);\n            _this.set('refundPage', 1);\n          }\n        }\n      });\n    },\n    refreshBatchFromBackend(batchId) {\n      let _this = this;\n      let token = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.error === false) {\n            let batch = _this.get('batches').find(b => b.id === batchId);\n            if (batch) {\n              let updatedRefunds = res.refunds.map(r => ({\n                id: r.appointment_id,\n                patient: r.patient_name,\n                patient_id: r.patient_id,\n                status: r.status,\n                ref: r.gateway_refund_id || r.arn_rrn_utr,\n                gateway: r.gateway,\n                amount: (parseFloat(r.amount) || 0).toFixed(2),\n                created_at: r.created_at,\n                order_id: r.order_id,\n                reason: r.reason\n              }));\n              let updatedCounts = {\n                total: updatedRefunds.length,\n                processed: updatedRefunds.filter(r => r.status === 'processed').length,\n                pending: updatedRefunds.filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length,\n                failed: updatedRefunds.filter(r => r.status === 'failed').length,\n                queued: updatedRefunds.filter(r => r.status === 'queued').length\n              };\n              let updatedBatch = Object.assign({}, batch, {\n                refunds: updatedRefunds,\n                status: res.batch ? res.batch.status : batch.status,\n                counts: updatedCounts,\n                allDone: updatedRefunds.every(r => r.status === 'processed' || r.status === 'failed')\n              });\n              let batches = _this.get('batches').map(b => b.id === batchId ? updatedBatch : b);\n              _this.set('batches', batches);\n            }\n          }\n        }\n      });\n    },\n    actions: {\n      onBack() {\n        this.transitionToRoute('manage-appointment');\n      },\n      setRefundTab(tab) {\n        this.set('activeRefundTab', tab);\n        if (tab === 'auto' && (this.get('autoRefundsList') || []).length === 0) {\n          this.loadAutoRefunds(1);\n        }\n      },\n      reloadAutoRefunds() {\n        this.loadAutoRefunds(1);\n      },\n      autoRefundPrevPage() {\n        let p = this.get('autoRefundPagination');\n        if (p && p.current_page > 1) {\n          this.loadAutoRefunds(p.current_page - 1);\n        }\n      },\n      autoRefundNextPage() {\n        let p = this.get('autoRefundPagination');\n        if (p && p.current_page < p.last_page) {\n          this.loadAutoRefunds(p.current_page + 1);\n        }\n      },\n      autoRefundGoToPage(page) {\n        this.loadAutoRefunds(page);\n      },\n      retryAutoRefund(refundId) {\n        let _this = this;\n        let token = this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'v1/refunds/' + refundId + '/retry',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              alert('Refund queued for retry');\n              _this.loadAutoRefunds(1);\n            } else {\n              alert(res.message || 'Failed to retry refund');\n            }\n          },\n          error: function () {\n            alert('Failed to retry refund');\n          }\n        });\n      },\n      viewBatchDetails(batchId) {\n        this.transitionToRoute('refund-dashboard.batch', batchId);\n      },\n      reloadBatches() {\n        let _this = this;\n        let token = this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              _this.set('batchesList', res.data || []);\n              var cp = res.current_page || 1;\n              var lp = res.last_page || 1;\n              _this.set('pagination', {\n                current_page: cp,\n                last_page: lp,\n                per_page: res.per_page || 10,\n                total: res.total || 0,\n                prev_page_url: cp > 1 ? 'prev' : null,\n                next_page_url: cp < lp ? 'next' : null\n              });\n            }\n          }\n        });\n      },\n      refreshCurrentBatch() {\n        this.refreshCurrentBatch();\n      },\n      refreshBatchFromBackend(batchId) {\n        this.refreshBatchFromBackend(batchId);\n      },\n      filterBatches() {\n        // computed properties handle the filtering automatically\n      },\n      filterRefunds() {\n        this.set('refundPage', 1);\n        // computed properties handle the filtering automatically\n      },\n      refundPrevPage() {\n        let page = parseInt(this.get('refundPage')) || 1;\n        if (page > 1) {\n          this.set('refundPage', page - 1);\n        }\n      },\n      refundNextPage() {\n        let page = parseInt(this.get('refundPage')) || 1;\n        let total = this.get('refundTotalPages') || 1;\n        if (page < total) {\n          this.set('refundPage', page + 1);\n        }\n      },\n      refundGoToPage(page) {\n        this.set('refundPage', page);\n      },\n      goBack() {\n        history.go(-1);\n      },\n      retryRefund(batchId, refundId) {\n        if (arguments.length === 1) {\n          refundId = batchId;\n          batchId = null;\n        }\n        let _this = this;\n        let token = this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'v1/refunds/' + refundId + '/retry',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              alert('Refund queued for retry');\n              if (batchId) {\n                _this.refreshBatchFromBackend(batchId);\n              } else {\n                _this.refreshCurrentBatch();\n              }\n            } else {\n              alert(res.message || 'Failed to retry refund');\n            }\n          },\n          error: function () {\n            alert('Failed to retry refund');\n          }\n        });\n      },\n      urgentCheckStatus(checked) {\n        if (checked == true) {\n          $('#urgenttagnote').css('display', 'block');\n        } else {\n          $('#urgenttagnote').css('display', 'none');\n        }\n      },\n      ResetPopupPaymentMode: function () {\n        var _this = this;\n        _this.selectedPaymentOptions.clear();\n        _this.selectedPaymentName.clear();\n        _this.recalculateAmount.resetPaymentDetailsComponentVariableAfterSubmit();\n      },\n      releaseHoldSlot() {\n        const route = this;\n        const lockedId = route.get('slotLockedId') || route.get('slotLock').getLockedSlot();\n        // Always clear locally first so stale id never causes false \"slot reserved\" errors\n        route.set('slotLockedId', null);\n        route.get('slotLock').clearLockedSlot();\n        if (!lockedId) return;\n        route.ajaxAuth.delete(`v1/appointments/release/${lockedId}`).catch(error => {\n          console.error('releaseHoldSlot error (slot may already be released):', error);\n        });\n      },\n      redirectPage() {\n        var page = this.redirectPage;\n        this.transitionToRoute(page);\n        //window.location.reload();\n      },\n      setMedicineTotalandPendingValue: function (value_array) {\n        var _this = this;\n        //console.log(value_array);\n        _this.set('payment_value', value_array);\n      },\n      paymentcomplete(medicine_details, patient_details, recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, print_id, eventAction) {\n        //console.log(medicine_details);\n        // var _this = this;\n        /* if (medicine_details != undefined && patient_details != undefined) {\n                  //This below code is used for calling the reprintOptions function to make prints according to checkbox, Rahul khan. 27 sept 2019\n                  _this.getRePrints(recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, print_id, eventAction);\n              }*/\n      },\n      paymentsaved(res) {\n        //console.log(res);\n        /* var _this = this;\n             let i18n = _this.get('i18n');\n              if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  $('#paymenterrors').html('<div class=\"alert alert-danger\">' + message + '</div>');\n              } else if (res.error == false && res.actions == 'add') {\n                  var message = i18n.t('billing.messages.savedPayment');\n                  console.log(message);\n                  get(_this, 'flashes').success(message);\n                  _this.transitionToRoute('billing.list');\n              }*/\n      },\n      setDateOfBirth() {\n        if (moment($('#date_of_birth').val(), 'MM/DD/YYYY', true).isValid()) {\n          var patient_dob = moment($('#date_of_birth').val(), 'MM/DD/YYYY').format('YYYY-MM-DD');\n          var current_date = moment().format('YYYY-MM-DD');\n          var age = this.dateDiff(new Date(current_date), new Date(patient_dob));\n          this.set('age_days', age.days);\n          this.set('age_months', age.months);\n          this.set('age_years', age.years);\n        }\n      },\n      //This below function us used for getting the raughly date of birth of patient from age, Rahul khan 05 nov 2019\n      getDateofBirth(date) {\n        //console.trace('getDateofBirth called');\n        //console.log(date);\n        this.set('isUpdatingDob', true);\n        let years = parseInt(date.year, 10) || 0;\n        let months = parseInt(date.month || date.months, 10) || 0;\n        let days = parseInt(date.day, 10) || 0;\n        let birthDate = moment().subtract(years, 'years').subtract(months, 'months').subtract(days, 'days').format('MM/DD/YYYY');\n\n        //console.log('birthDate', birthDate);\n\n        this.set('date_of_birth', birthDate);\n        //console.log('date_of_birth property =', this.get('date_of_birth'));\n        Ember.run.next(this, () => {\n          //console.log('input value =', $('#date_of_birth').val());\n          this.set('isUpdatingDob', false);\n        });\n      },\n      setDocId() {\n        var id = $('select[name=doctor]').val();\n        this.set('doctor_id', id);\n      },\n      setupRescheduleAppointment(redirectPage) {\n        if ($('input:radio:checked').length > 0 && $('input:radio:checked').val() > 0) {\n          var id = $('input:radio:checked').val();\n          //console.log(id);\n          //console.log(redirectPage);\n          this.set('id', id);\n          this.set('redirectPage', redirectPage);\n          //this.transitionToRoute('cancel-appointment.reschedule', {queryParams: { id: id },});\n          this.transitionToRoute('cancel-appointment.reschedule', id);\n        } else {\n          alert('Please select an appointment!');\n        }\n      },\n      getRescheduleAppointment(id, redirectPage) {\n        this.set('id', id);\n        this.set('redirectPage', redirectPage);\n        this.transitionToRoute('cancel-appointment.reschedule', id);\n      },\n      searchPatient() {\n        var q = this.q;\n        this.transitionToRoute('cancel-appointment.patient', {\n          queryParams: {\n            q: q\n          }\n        });\n      },\n      setBranch() {\n        var id = $('select[name=branch]').val();\n        this.set('branch', id);\n      },\n      searchDoctorPatient() {\n        if (this.doctor_id == null) {\n          alert('Please select a doctor');\n          $('select[name=doctor]').focus();\n          return false;\n        }\n        if (($('input[name=date]').val() || '').trim() == '') {\n          alert('Please enter a date');\n          $('input[name=date]').focus();\n          return false;\n        }\n        var GivenDate = ($('input[name=date]').val() || '').trim();\n        var CurrentDate = new Date();\n        var currentdates = moment(CurrentDate).format('MM/DD/YYYY');\n        var return_value = moment(currentdates).isSameOrBefore(GivenDate);\n        //console.log(return_value);\n        if (return_value == false) {\n          alert('The selected date should not be less than the current date. Please choose current date or future date');\n          $('input[name=date]').focus();\n          return false;\n        } else {\n          this.set('dateTime', moment($('input[name=date]').val()).format('YYYY-MM-DD'));\n          var dateTime = this.dateTime;\n          var doctor_id = this.doctor_id;\n          var branch = this.branch;\n          this.transitionToRoute('cancel-appointment.doctor', {\n            queryParams: {\n              doctor_id: doctor_id,\n              dateTime: dateTime,\n              branch: branch\n            }\n          });\n        }\n      },\n      showNoteDialog(appointmentId) {\n        let utoken = this.session.getToken();\n        var logged_in = this.get('session').getLoggedInUserName();\n        let id = appointmentId || $('input:radio:checked').val();\n        if (!id) {\n          alert('Please make a selection.');\n          return false;\n        }\n        this.set('cancel_appointment_id', id);\n        if (appointmentId) {\n          let appointments = this.get('appointments') || [];\n          let appointment = appointments.find(a => a.id == appointmentId);\n          this.set('advance_payment_received', appointment ? appointment.advance_payment_received : null);\n        } else {\n          this.set('advance_payment_received', $('input:radio:checked').attr('advance_payment'));\n        }\n        var advance_payment = this.advance_payment_received;\n        if (advance_payment == 1) {\n          $('#advance-payment-refund-note').show();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/getadvancepayment/',\n            data: {\n              id: id\n            },\n            async: false,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //console.log(res);\n              var amount = res.data[0].credit_amount;\n              $(' #advance-payment-refund-amount').empty().text(amount);\n            },\n            error: function (error, x, y) {\n              // console.error(error)\n            }\n          });\n        } else {\n          $(' #advance-payment-refund-note').hide();\n        }\n        let patientName = '';\n        if (appointmentId) {\n          let appointments = this.get('appointments') || [];\n          let appointment = appointments.find(a => a.id == appointmentId);\n          if (appointment) {\n            let rawName = [appointment.first_name, appointment.middle_name, appointment.last_name].filter(Boolean).join(' ');\n            patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n          }\n        }\n        let isOnlineZeroAmount = false;\n        if (appointmentId) {\n          let appt = (this.get('appointments') || []).find(a => a.id == appointmentId);\n          if (appt && appt.appointment_booked_from === 'online' && this.getRefundAmount(appt) <= 0) {\n            isOnlineZeroAmount = true;\n          }\n        }\n        let warningText = 'Please note that you, ' + logged_in + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n        if (patientName) {\n          warningText = 'Cancelling appointment for: ' + patientName + '. ' + warningText;\n        }\n        if (isOnlineZeroAmount) {\n          Swal.fire({\n            html: '<div>' + warningText + '</div><div style=\"color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:8px 10px;font-size:13px;margin-top:10px;\">Note: This is an online appointment with no amount due. The payment gateway and refund popup will not be shown because there is no payment to refund.</div>',\n            icon: 'warning',\n            width: 600,\n            showCancelButton: true,\n            allowOutsideClick: false,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            confirmButtonText: 'Ok'\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('#notebox').addClass('in');\n              $('#notebox').css('display', 'block');\n              $('body').addClass('modal-open');\n              // $('#notebox').removeClass('fade');\n              $('textarea[name=note]').val('');\n              $('textarea[name=note]').focus();\n            } else {\n              this.set('selectedAppointmentIds', Ember.A());\n              this.set('selectAll', false);\n              let appointments = this.get('appointments') || [];\n              appointments.forEach(appointment => {\n                Ember.set(appointment, 'isSelected', false);\n              });\n            }\n          });\n        } else {\n          Swal.fire({\n            text: warningText,\n            icon: 'warning',\n            width: 600,\n            showCancelButton: true,\n            allowOutsideClick: false,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            confirmButtonText: 'Ok'\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('#notebox').addClass('in');\n              $('#notebox').css('display', 'block');\n              $('body').addClass('modal-open');\n              // $('#notebox').removeClass('fade');\n              $('textarea[name=note]').val('');\n              $('textarea[name=note]').focus();\n            } else {\n              this.set('selectedAppointmentIds', Ember.A());\n              this.set('selectAll', false);\n              let appointments = this.get('appointments') || [];\n              appointments.forEach(appointment => {\n                Ember.set(appointment, 'isSelected', false);\n              });\n            }\n          });\n        }\n      },\n      openModal() {\n        this.set('modalOpen', true);\n        this.set('selectedReason', '');\n        this.fetchTransactions();\n      },\n      cancelOnlineAppointment(appointment) {\n        this.set('selectedAppointmentIds', Ember.A([appointment.id]));\n        Ember.set(appointment, 'isSelected', true);\n        this.set('selectedReason', '');\n        this.fetchTransactions().then(() => {\n          let refundAmount = this.getRefundAmount(appointment);\n          if (refundAmount > 0) {\n            this.set('modalOpen', true);\n          } else {\n            this.send('showNoteDialog', appointment.id);\n          }\n        }).catch(() => {\n          this.send('showNoteDialog', appointment.id);\n        });\n      },\n      closeModal() {\n        this.set('modalOpen', false);\n        this.set('selectedReason', '');\n        this.set('selectedAppointmentIds', Ember.A());\n        this.set('selectAll', false);\n        let appointments = this.get('appointments') || [];\n        appointments.forEach(appointment => {\n          Ember.set(appointment, 'isSelected', false);\n        });\n      },\n      confirmCancel(reason) {\n        let selectedIds = this.get('selectedAppointmentIds') || [];\n        let appointments = this.get('appointments') || [];\n        let selected = appointments.filter(a => selectedIds.includes(a.id) && a.appointment_booked_from === 'online');\n        if (selected.length === 0) {\n          return;\n        }\n        let _this = this;\n        let token = this.session.getToken();\n        let utoken = this.session.getLoggedInUserId();\n        this.set('modalOpen', false);\n        this.set('selectedReason', '');\n        this.set('selectedAppointmentIds', Ember.A());\n        this.set('selectAll', false);\n        appointments.forEach(appointment => {\n          Ember.set(appointment, 'isSelected', false);\n        });\n        if (selected.length === 1) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + selected[0].id + '/cancel',\n            data: {\n              note: reason || 'Cancelled from patient search'\n            },\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                let amount = parseFloat(res.amount || 0);\n                if (amount > 0 && res.batch_id) {\n                  let batchId = res.batch_id;\n                  let refund = {\n                    id: selected[0].id,\n                    patient: [selected[0].first_name, selected[0].middle_name, selected[0].last_name].filter(Boolean).join(' '),\n                    gateway: res.gateway,\n                    amount: res.amount,\n                    status: 'queued',\n                    ref: null\n                  };\n                  let batch = {\n                    id: batchId,\n                    status: 'processing',\n                    startedAt: 'just now',\n                    refunds: [refund],\n                    counts: {\n                      total: 1,\n                      processed: 0,\n                      pending: 1,\n                      failed: 0,\n                      queued: 1\n                    },\n                    allDone: false\n                  };\n                  let batches = _this.get('batches').slice();\n                  batches.unshift(batch);\n                  _this.set('batches', batches);\n                  _this.pollBatchStatus(batchId);\n                  (function () {\n                    let token = _this.session.getToken();\n                    let p = _this.get('p') || 1;\n                    let doctor_id = _this.get('doctor_id');\n                    let dateTime = _this.get('dateTime');\n                    let branch = _this.get('branch');\n                    let q = _this.get('q');\n                    let sort = _this.get('sort') || 'registration_number';\n                    let order = _this.get('order') || 'DESC';\n                    let url = doctor_id ? _environment.default.APP.api_url + 'appointments/doctors' : _environment.default.APP.api_url + 'appointments/search';\n                    let data = doctor_id ? {\n                      p: p,\n                      doctor_id: doctor_id,\n                      dateTime: dateTime,\n                      branch: branch\n                    } : {\n                      p: p,\n                      order: order,\n                      sort: sort,\n                      q: q\n                    };\n                    $.ajax({\n                      method: 'GET',\n                      url: url,\n                      data: data,\n                      headers: {\n                        \"Authorization\": `Bearer ${token}`\n                      },\n                      beforeSend: function () {\n                        $('#loading').addClass('in');\n                        $('#loading').css('display', 'block');\n                        $('body').addClass('modal-open');\n                      },\n                      success: function (res) {\n                        _this.set('appointments', res.data);\n                      },\n                      error: function () {},\n                      complete: function () {\n                        setTimeout(function () {\n                          $('#loading').removeClass('in');\n                          $('#loading').css('display', 'none');\n                          $('.modal-backdrop').remove();\n                          $('body').removeClass('modal-open');\n                        }, 500);\n                      }\n                    });\n                  })();\n                  alert('Appointment cancelled successfully. Refund queued.');\n                } else {\n                  (function () {\n                    let token = _this.session.getToken();\n                    let p = _this.get('p') || 1;\n                    let doctor_id = _this.get('doctor_id');\n                    let dateTime = _this.get('dateTime');\n                    let branch = _this.get('branch');\n                    let q = _this.get('q');\n                    let sort = _this.get('sort') || 'registration_number';\n                    let order = _this.get('order') || 'DESC';\n                    let url = doctor_id ? _environment.default.APP.api_url + 'appointments/doctors' : _environment.default.APP.api_url + 'appointments/search';\n                    let data = doctor_id ? {\n                      p: p,\n                      doctor_id: doctor_id,\n                      dateTime: dateTime,\n                      branch: branch\n                    } : {\n                      p: p,\n                      order: order,\n                      sort: sort,\n                      q: q\n                    };\n                    $.ajax({\n                      method: 'GET',\n                      url: url,\n                      data: data,\n                      headers: {\n                        \"Authorization\": `Bearer ${token}`\n                      },\n                      beforeSend: function () {\n                        $('#loading').addClass('in');\n                        $('#loading').css('display', 'block');\n                        $('body').addClass('modal-open');\n                      },\n                      success: function (res) {\n                        _this.set('appointments', res.data);\n                      },\n                      error: function () {},\n                      complete: function () {\n                        setTimeout(function () {\n                          $('#loading').removeClass('in');\n                          $('#loading').css('display', 'none');\n                          $('.modal-backdrop').remove();\n                          $('body').removeClass('modal-open');\n                        }, 500);\n                      }\n                    });\n                  })();\n                  alert('Appointment cancelled successfully. No refund applicable.');\n                }\n              } else if (res.validation == 'notcancelcurrentdate_appointment') {\n                alert(res.message || 'Cannot cancel current date appointment');\n              } else if (res.validation == 'visitcomplete') {\n                alert(res.message || 'Visit already completed');\n              } else {\n                alert(res.message || 'Failed to cancel appointment');\n              }\n            },\n            error: function () {\n              alert('Failed to cancel appointment. Please try again.');\n            }\n          });\n        } else {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'v1/appointments/bulk-cancel',\n            data: {\n              appointment_ids: selected.map(a => a.id),\n              note: reason || 'Cancelled from patient search'\n            },\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                let hasRefunds = res.processed && res.processed.length > 0;\n                if (hasRefunds) {\n                  let batchId = res.batch_id || 'BC-' + Date.now().toString().slice(-8);\n                  let refunds = res.processed.map(a => ({\n                    id: a.id,\n                    patient: [a.first_name, a.middle_name, a.last_name].filter(Boolean).join(' '),\n                    status: 'queued',\n                    ref: null\n                  }));\n                  let batch = {\n                    id: batchId,\n                    status: 'processing',\n                    startedAt: 'just now',\n                    refunds: refunds,\n                    counts: {\n                      total: refunds.length,\n                      processed: 0,\n                      pending: refunds.length,\n                      failed: 0,\n                      queued: refunds.length\n                    },\n                    allDone: false\n                  };\n                  let batches = _this.get('batches').slice();\n                  batches.unshift(batch);\n                  _this.set('batches', batches);\n                  _this.pollBatchStatus(batchId);\n                  (function () {\n                    let token = _this.session.getToken();\n                    let p = _this.get('p') || 1;\n                    let doctor_id = _this.get('doctor_id');\n                    let dateTime = _this.get('dateTime');\n                    let branch = _this.get('branch');\n                    let q = _this.get('q');\n                    let sort = _this.get('sort') || 'registration_number';\n                    let order = _this.get('order') || 'DESC';\n                    let url = doctor_id ? _environment.default.APP.api_url + 'appointments/doctors' : _environment.default.APP.api_url + 'appointments/search';\n                    let data = doctor_id ? {\n                      p: p,\n                      doctor_id: doctor_id,\n                      dateTime: dateTime,\n                      branch: branch\n                    } : {\n                      p: p,\n                      order: order,\n                      sort: sort,\n                      q: q\n                    };\n                    $.ajax({\n                      method: 'GET',\n                      url: url,\n                      data: data,\n                      headers: {\n                        \"Authorization\": `Bearer ${token}`\n                      },\n                      beforeSend: function () {\n                        $('#loading').addClass('in');\n                        $('#loading').css('display', 'block');\n                        $('body').addClass('modal-open');\n                      },\n                      success: function (res) {\n                        _this.set('appointments', res.data);\n                      },\n                      error: function () {},\n                      complete: function () {\n                        setTimeout(function () {\n                          $('#loading').removeClass('in');\n                          $('#loading').css('display', 'none');\n                          $('.modal-backdrop').remove();\n                          $('body').removeClass('modal-open');\n                        }, 500);\n                      }\n                    });\n                  })();\n                  alert('Appointments cancelled successfully. Refunds queued.');\n                } else {\n                  (function () {\n                    let token = _this.session.getToken();\n                    let p = _this.get('p') || 1;\n                    let doctor_id = _this.get('doctor_id');\n                    let dateTime = _this.get('dateTime');\n                    let branch = _this.get('branch');\n                    let q = _this.get('q');\n                    let sort = _this.get('sort') || 'registration_number';\n                    let order = _this.get('order') || 'DESC';\n                    let url = doctor_id ? _environment.default.APP.api_url + 'appointments/doctors' : _environment.default.APP.api_url + 'appointments/search';\n                    let data = doctor_id ? {\n                      p: p,\n                      doctor_id: doctor_id,\n                      dateTime: dateTime,\n                      branch: branch\n                    } : {\n                      p: p,\n                      order: order,\n                      sort: sort,\n                      q: q\n                    };\n                    $.ajax({\n                      method: 'GET',\n                      url: url,\n                      data: data,\n                      headers: {\n                        \"Authorization\": `Bearer ${token}`\n                      },\n                      beforeSend: function () {\n                        $('#loading').addClass('in');\n                        $('#loading').css('display', 'block');\n                        $('body').addClass('modal-open');\n                      },\n                      success: function (res) {\n                        _this.set('appointments', res.data);\n                      },\n                      error: function () {},\n                      complete: function () {\n                        setTimeout(function () {\n                          $('#loading').removeClass('in');\n                          $('#loading').css('display', 'none');\n                          $('.modal-backdrop').remove();\n                          $('body').removeClass('modal-open');\n                        }, 500);\n                      }\n                    });\n                  })();\n                  alert('Appointments cancelled successfully. No refunds applicable.');\n                }\n              } else {\n                alert(res.message || 'Failed to cancel appointments');\n              }\n            },\n            error: function () {\n              alert('Failed to cancel appointments. Please try again.');\n            }\n          });\n        }\n      },\n      closeBatch(batchId) {\n        let batches = this.get('batches').slice();\n        this.set('batches', batches.filter(b => b.id !== batchId));\n      },\n      cancelAllAppointmentWithReason() {\n        var _this = this;\n        if ($.trim($('textarea[name=cancel_note]').val()) == '') {\n          alert('Please enter a reason for cancellation.');\n          $('textarea[name=cancel_note]').focus();\n          return false;\n        }\n        if ($.trim($('textarea[name=cancel_note]').val().length) < 5) {\n          alert('Please enter minimum five characters reason for cancellation.');\n          $('textarea[name=cancel_note]').focus();\n          return false;\n        }\n        _this.set('cancel_note', $('textarea[name=cancel_note]').val());\n        $('#CancelAllnotebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        var note = _this.get('cancel_note');\n        let appointments = _this.get('appointments') || [];\n        if (!appointments.length) {\n          var branch = ($('select[name=branch]').val() || '').trim();\n          if (!branch && _this.get('branch')) {\n            branch = _this.get('branch').trim();\n          }\n          var doctor = _this.get('doctor_id');\n          var date = ($('input[name=date]').val() || '').trim();\n          if (!date && _this.get('dateTime')) {\n            date = _this.get('dateTime').trim();\n          }\n          var utoken = _this.get('session').getLoggedInUserId();\n          let token = _this.session.getToken();\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/cancelAll',\n            data: {\n              doctor: doctor,\n              user_id: utoken,\n              date: date,\n              branch: branch,\n              note: note\n            },\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            success: function (res) {\n              if (res.validate) {\n                alert('All Appointments cancelled successfully');\n                _this.set('branch', null);\n                _this.set('branch_id', '');\n                _this.set('dateTime', null);\n                _this.set('cancel_note', null);\n                _this.transitionToRoute('cancel-appointment');\n              } else if (res.validation == 'notset') {\n                alert('Not found any appointment for selected Doctor/date/branch.');\n              } else if (res.validation == 'notcancelAllcurrentdate_appointment') {\n                alert(res.message);\n              } else {\n                alert('Your request can not be processed right now. Please try after sometime. ');\n              }\n            }\n          });\n          return;\n        }\n        _this.set('selectedAppointmentIds', Ember.A(appointments.map(a => a.id)));\n        _this.fetchTransactions().then(function () {\n          let normalIds = [];\n          let onlineAppts = [];\n          appointments.forEach(a => {\n            if (a.appointment_booked_from === 'online' && _this.getRefundAmount(a) > 0) {\n              onlineAppts.push(a);\n            } else {\n              normalIds.push(a.id);\n            }\n          });\n          var cancelNext = function () {\n            if (!normalIds.length) {\n              return Promise.resolve();\n            }\n            let promise = Promise.resolve();\n            normalIds.forEach(id => {\n              promise = promise.then(() => _this.performSingleCancel(id, note));\n            });\n            return promise;\n          };\n          var cancelOnlineAppointmentsDirect = function (onlineAppts) {\n            if (!onlineAppts.length) {\n              return Promise.resolve();\n            }\n            let token = _this.session.getToken();\n            let note = _this.get('cancel_note');\n            if (onlineAppts.length === 1) {\n              return new Ember.RSVP.Promise(function (resolve, reject) {\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + onlineAppts[0].id + '/cancel',\n                  data: {\n                    note: note\n                  },\n                  headers: {\n                    \"Authorization\": `Bearer ${token}`\n                  },\n                  success: function (res) {\n                    if (res.validate == 'true') {\n                      let batchId = res.batch_id || 'BC-' + Date.now().toString().slice(-8);\n                      let refund = {\n                        id: onlineAppts[0].id,\n                        patient: [onlineAppts[0].first_name, onlineAppts[0].middle_name, onlineAppts[0].last_name].filter(Boolean).join(' '),\n                        status: 'queued',\n                        ref: null\n                      };\n                      let batch = {\n                        id: batchId,\n                        status: 'processing',\n                        startedAt: 'just now',\n                        refunds: [refund],\n                        counts: {\n                          total: 1,\n                          processed: 0,\n                          pending: 1,\n                          failed: 0,\n                          queued: 1\n                        },\n                        allDone: false\n                      };\n                      let batches = _this.get('batches').slice();\n                      batches.unshift(batch);\n                      _this.set('batches', batches);\n                      _this.pollBatchStatus(batchId);\n                      resolve();\n                    } else {\n                      alert('Failed to cancel online appointments: ' + (res.message || 'Please try again.'));\n                      reject();\n                    }\n                  },\n                  error: function () {\n                    alert('Failed to cancel online appointments: Please try again.');\n                    reject();\n                  }\n                });\n              });\n            } else {\n              return new Ember.RSVP.Promise(function (resolve, reject) {\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'v1/appointments/bulk-cancel',\n                  data: {\n                    appointment_ids: onlineAppts.map(a => a.id),\n                    note: note\n                  },\n                  headers: {\n                    \"Authorization\": `Bearer ${token}`\n                  },\n                  success: function (res) {\n                    if (res.validate == 'true') {\n                      let batchId = res.batch_id || 'BC-' + Date.now().toString().slice(-8);\n                      let refunds = onlineAppts.map(a => ({\n                        id: a.id,\n                        patient: [a.first_name, a.middle_name, a.last_name].filter(Boolean).join(' '),\n                        status: 'queued',\n                        ref: null\n                      }));\n                      let batch = {\n                        id: batchId,\n                        status: 'processing',\n                        startedAt: 'just now',\n                        refunds: refunds,\n                        counts: {\n                          total: refunds.length,\n                          processed: 0,\n                          pending: refunds.length,\n                          failed: 0,\n                          queued: refunds.length\n                        },\n                        allDone: false\n                      };\n                      let batches = _this.get('batches').slice();\n                      batches.unshift(batch);\n                      _this.set('batches', batches);\n                      _this.pollBatchStatus(batchId);\n                      resolve();\n                    } else {\n                      alert('Failed to cancel online appointments: ' + (res.message || 'Please try again.'));\n                      reject();\n                    }\n                  },\n                  error: function () {\n                    alert('Failed to cancel online appointments: Please try again.');\n                    reject();\n                  }\n                });\n              });\n            }\n          };\n          cancelNext().then(function () {\n            return cancelOnlineAppointmentsDirect.call(_this, onlineAppts);\n          }).then(function () {\n            if (!onlineAppts.length) {\n              _this.transitionToRoute('cancel-appointment');\n            } else {\n              (function () {\n                let token = _this.session.getToken();\n                let p = _this.get('p') || 1;\n                let doctor_id = _this.get('doctor_id');\n                let dateTime = _this.get('dateTime');\n                let branch = _this.get('branch');\n                let q = _this.get('q');\n                let sort = _this.get('sort') || 'registration_number';\n                let order = _this.get('order') || 'DESC';\n                let url = doctor_id ? _environment.default.APP.api_url + 'appointments/doctors' : _environment.default.APP.api_url + 'appointments/search';\n                let data = doctor_id ? {\n                  p: p,\n                  doctor_id: doctor_id,\n                  dateTime: dateTime,\n                  branch: branch\n                } : {\n                  p: p,\n                  order: order,\n                  sort: sort,\n                  q: q\n                };\n                $.ajax({\n                  method: 'GET',\n                  url: url,\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${token}`\n                  },\n                  beforeSend: function () {\n                    $('#loading').addClass('in');\n                    $('#loading').css('display', 'block');\n                    $('body').addClass('modal-open');\n                  },\n                  success: function (res) {\n                    _this.set('appointments', res.data);\n                  },\n                  error: function () {},\n                  complete: function () {\n                    setTimeout(function () {\n                      $('#loading').removeClass('in');\n                      $('#loading').css('display', 'none');\n                      $('.modal-backdrop').remove();\n                      $('body').removeClass('modal-open');\n                    }, 500);\n                  }\n                });\n              })();\n            }\n            _this.set('branch', null);\n            _this.set('branch_id', '');\n            _this.set('cancel_note', null);\n          });\n        }); // end fetchTransactions().then\n      },\n      cancelAllAppointments() {\n        if (this.doctor_id == null) {\n          alert('Please select a doctor');\n          $('select[name=doctor]').focus();\n          return false;\n        }\n        let branch = ($('select[name=branch]').val() || '').trim();\n        if (!branch && this.get('branch')) {\n          branch = this.get('branch').trim();\n        }\n        if (!branch) {\n          alert('Please select a branch.');\n          return false;\n        }\n        let date = ($('input[name=date]').val() || '').trim();\n        if (!date && this.get('dateTime')) {\n          date = this.get('dateTime').trim();\n        }\n        if (!date) {\n          alert('Please enter a date');\n          return false;\n        }\n        var GivenDate = date;\n        var CurrentDate = new Date();\n        var currentdates = moment(CurrentDate).format('MM/DD/YYYY');\n        if (GivenDate < currentdates) {\n          alert('The selected date should not be less than the current date. Please choose current date or future date');\n          $('input[name=date]').focus();\n          return false;\n        }\n        if (confirm('Are you sure? Clinic appointments will be cancelled directly. Online appointments with a payment will be cancelled and a refund will be initiated via the payment gateway (Razorpay/HDFC) to the patient\\'s original payment method. You can track the refund status later from the refund dashboard.') == false) {\n          return false;\n        }\n        $('#CancelAllnotebox').addClass('in');\n        $('#CancelAllnotebox').css('display', 'block');\n        $('textarea[name=cancel_note]').focus();\n        $('textarea[name=cancel_note]').val('');\n        $('body').addClass('modal-open');\n      },\n      cancelAppointment() {\n        var id = this.cancel_appointment_id;\n        if ($.trim($('textarea[name=note]').val()) == '') {\n          alert('Please enter a reason for cancellation.');\n          $('textarea[name=note]').focus();\n          return false;\n        }\n        if ($.trim($('textarea[name=note]').val().length) < 5) {\n          alert('Please enter minimum five characters reason for cancellation.');\n          $('textarea[name=note]').focus();\n          return false;\n        }\n        this.set('note', $('textarea[name=note]').val());\n        $('#notebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        var note = this.note;\n        var _this = this;\n        _this.performSingleCancel(id, note).then(function (res) {\n          if (res.validate == 'true') {\n            alert('Appointment cancelled successfully');\n            _this.set('note', '');\n            _this.set('q', '');\n            _this.set('dateTime', null);\n            _this.transitionToRoute('cancel-appointment');\n          } else if (res.validation == 'notcancelcurrentdate_appointment') {\n            alert(res.message);\n          } else if (res.validation == 'visitcomplete') {\n            alert(res.message);\n          } else {\n            alert('Your request can not be processed right now. Please try after sometime. ');\n          }\n        });\n      },\n      closeNoteBox() {\n        $('#notebox').css('display', 'none');\n        $('#CancelAllnotebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        // $('#notebox').addClass('fade');\n        this.set('note', null);\n        this.set('cancel_note', null);\n      },\n      //This function added for appointment Type options, rahul khan, 17_02_2021\n      appointmentType(type_code, type_name) {\n        //console.log(type_code);\n        $('#appointment_type').val(type_code);\n        //var type = this.get('appointmentType');\n        //var branchId = this.get('branchId');\n\n        $('.appointmentType_buttons').removeClass('btn-success');\n        $('.appointmentType_buttons').addClass('btn-info');\n        $('.appointmenttype_' + type_code).removeClass('btn-info');\n        $('.appointmenttype_' + type_code).addClass('btn-success');\n        $('.advance_payment_status').prop('checked', false); // Unchecks it\n        if (type_code == 'ocp') {\n          $('.location_row').css('display', 'block');\n          $('.ocp_appointments').css('display', 'block');\n          $('.regular_appointments').css('display', 'none'); //\n          $('.branch_div').css('display', 'none'); //\n          var doctorId = $('.selecteddoctor.btn-success').attr('id');\n          $('#' + doctorId).removeClass('btn-success');\n          $('#' + doctorId).addClass('btn-info');\n          var _this = this;\n          let utoken = _this.session.getToken();\n          var appointment_date = '';\n          if ($('#appointment_date').val() != '') {\n            appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n          } else {\n            var fullDate = new Date();\n            var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n            var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n            appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n          }\n          //alert(appointment_date);\n          this.set('appointment_heading', moment(appointment_date).format('ddd DD-MMM-YYYY'));\n          /* AJAX call */\n          $.ajax({\n            method: 'GET',\n            async: true,\n            url: _environment.default.APP.api_url + 'appointments/bookocpdoctor',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              appointment_date: appointment_date\n            },\n            dataType: 'json',\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (appointments) {\n              //_this.set('appointments', appointments);\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n                data: {},\n                async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                dataType: 'json',\n                success: function (result) {\n                  //_this.set('results', result);\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.api_url + 'appointments/ocpschedule/all',\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    data: {},\n                    async: false,\n                    dataType: 'json',\n                    success: function (resData) {\n                      //$('table.appointments tr.slot_detail').remove();\n                      //console.log(resData);\n                      $.ajax({\n                        method: 'GET',\n                        url: _environment.default.APP.api_url + 'appointments/ocpscheduleadjustment/all/' + appointment_date,\n                        headers: {\n                          \"Authorization\": `Bearer ${utoken}`\n                        },\n                        data: {},\n                        async: false,\n                        dataType: 'json',\n                        success: function (resDataAjs) {\n                          //console.log(resDataAjs);\n                          $.ajax({\n                            url: _environment.default.APP.lumen_api_url + 'getsetting/ocp_slots',\n                            method: 'GET',\n                            headers: {\n                              \"Authorization\": `Bearer ${utoken}`\n                            },\n                            data: '',\n                            async: false,\n                            success: function (res) {\n                              var ocpslots = JSON.parse(res);\n                              //_this.set('appointment_types', JSON.parse(res));\n                              var total_doctors = result.data.length;\n                              //console.log(total_doctors);\n                              var total_table_width = 90;\n                              var td_width = parseInt(total_table_width, 10) / total_doctors;\n                              var check_doctor_schedule_taken = 0;\n                              $('table.ocp_appointments tr.slot_detail').remove();\n                              var table_content = '';\n                              $.each(ocpslots, function (keys, vals) {\n                                table_content += '<tr class=\"slot_detail\">';\n                                table_content += '<td class=\"\" style=\"width:10%\">' + vals.name + '</td>';\n                                $.each(result.data, function (keyD, valD) {\n                                  var doctorid = valD.user_id;\n\n                                  //var day = moment(appointment_date).day() + 1;\n\n                                  //console.log('shubh ocp date=' + appointment_date);\n                                  //console.log('shubh ocp date day=' + day);\n\n                                  if (resData[doctorid] != undefined) {\n                                    var doctorSchedule = resData[doctorid][moment(appointment_date).day() + 1];\n                                  }\n                                  if (resDataAjs[doctorid] != undefined && resDataAjs[doctorid][moment(appointment_date).day() + 1] && resDataAjs[doctorid][moment(appointment_date).day() + 1].dateFrom != undefined && resDataAjs[doctorid][moment(appointment_date).day() + 1] && resDataAjs[doctorid][moment(appointment_date).day() + 1].dateTo != undefined && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid][moment(appointment_date).day() + 1].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid][moment(appointment_date).day() + 1].dateTo).format('YYYY-MM-DD')) {\n                                    var doctorSchedule = resDataAjs[doctorid][moment(appointment_date).day() + 1];\n                                  }\n                                  var check_status = 0;\n                                  if (doctorSchedule != undefined && (vals.code == 'bm' && parseInt(doctorSchedule.before_morning) == 1 || vals.code == 'am' && parseInt(doctorSchedule.after_morning) == 1 || vals.code == 'ae' && parseInt(doctorSchedule.after_evening) == 1)) {\n                                    //console.log(appointments.appointments.length);\n                                    //console.log(appointments.appointments);\n                                    if (appointments.data.length > 0) {\n                                      //console.log('1');\n                                      $.each(appointments.data, function (keyA, valA) {\n                                        // console.log(valA);\n                                        // console.log(\n                                        //   'doctorid=>' +\n                                        //     doctorid +\n                                        //     'appointment_date=>' +\n                                        //     appointment_date +\n                                        //     'data' +\n                                        //     valA.current_appointment_date\n                                        // );\n                                        if (doctorid == valA.doctor_id && vals.code == valA.ocp_slot && valA.appointment_type == 'ocp' && appointment_date == valA.current_appointment_date) {\n                                          table_content += '<td class=\"booked\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Appointment Type: ' + valA.appointment_type + '\" data-content=\"\">Booked</td>';\n                                          check_status = 1;\n                                        }\n                                      });\n                                      if (check_status == 0) {\n                                        table_content += '<td class=\"available ocp_available_slot\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + vals.name + '\" data-content=\"' + appointment_date + ' ' + vals.code + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                                      }\n                                    } else {\n                                      table_content += '<td class=\"available ocp_available_slot\" style=\"width:' + td_width + '%\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + appointment_date + ' ' + vals.code + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                                    }\n                                  } else {\n                                    //console.log(doctorSchedule.before_morning);\n                                    table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                                  }\n                                });\n                                table_content += '</tr>';\n                              });\n                              $('table.ocp_appointments').append(table_content);\n                            }\n                          });\n                        }\n                      });\n                    }\n                  });\n                }\n              });\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n\n          /* END AJAX call */\n        } else {\n          $('.location_row').css('display', 'none');\n          $('.ocp_appointments').css('display', 'none');\n          //$('.regular_appointments').css('display', 'block');\n          $('.branch_div').css('display', 'block'); //\n          var doctorId = $('.selecteddoctor.btn-success').attr('id');\n          $('#' + doctorId).removeClass('btn-success');\n          $('#' + doctorId).addClass('btn-info');\n          var default_branch_name = $('span.currentbranch').text();\n          var appointment_date = '';\n          if ($('#appointment_date').val() != '') {\n            appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n          } else {\n            var fullDate = new Date();\n            var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n            var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n            appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n          }\n          //this.set('appointment_heading', default_branch_name + ' ' + moment(appointment_date).format('ddd DD-MMM-YYYY'));\n        }\n        if (type_code == 'vc') {\n          // $('.regular_appointments').css('display', 'none');\n          if ($('.advance_payment_status').prop('checked') == false) {\n            $('.advance_payment_status').trigger('click');\n          }\n        }\n        this.set('appointment_type', type_code);\n        //console.log(\"Code =>\"+type_code+\"Name =>\"+type_name);\n      },\n      //This below function is used for toggle comment section for urgent note\n      urgentNote() {\n        // console.log($('input[name=\"urgent_status\"]'));\n        /* if($('input[name=\"urgent_status\"]').prop('checked') == true){\n            console.log(\"checked\");\n        }else{\n          console.log(\"un checked\");\n        }*/\n        $('input[name=\"urgent_status\"]').prop('checked', true);\n        console.log('ele');\n      },\n      branchAppointments(branch_id, branch_name) {\n        if (this.is_rescheduled == '0') {\n          this.set('date_time_doctor', '');\n          this.set('patient_id', '');\n          this.set('mode', '');\n          this.set('priority', 'normal');\n          this.set('category', '');\n          this.set('middle_name', '');\n          this.set('first_name', '');\n          this.set('title_prefix', '');\n          this.set('last_name', '');\n          this.set('gender', '');\n          this.set('phone_1', '');\n          this.set('phone_2', '');\n          this.set('address_1', '');\n          this.set('address_2', '');\n          this.set('selected_country', '');\n          this.set('selected_state', '');\n          this.set('selected_city', '');\n          this.set('zip', '');\n          this.set('note', '');\n          $('.patient_registration_form').hide();\n        }\n        $('.appointment_branch_id').val(branch_id);\n        this.set('button_clicked', 'branch_' + branch_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var appointment_date = '';\n        if ($('#appointment_date').val() != '') {\n          appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        } else {\n          var fullDate = new Date();\n          var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n          var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n          appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n        }\n        $('.doctor_weekly_appointment').hide();\n        $('.patient_list').hide();\n        $('.regular_appointments').show();\n        this.set('appointment_heading', branch_name + ' ' + moment(appointment_date).format('ddd DD-MMM-YYYY'));\n        this.set('branch_id', branch_id);\n        function normalizeSlot(slot) {\n          var parts = slot.split(':');\n          return parts[0].padStart(2, '0') + ':' + parts[1];\n        }\n        /* ================= BOOKED APPOINTMENTS ================= */\n        $.ajax({\n          method: 'GET',\n          async: true,\n          url: _environment.default.APP.api_url + 'appointments/' + branch_id + '/' + appointment_date,\n          data: {},\n          dataType: 'json',\n          headers: {\n            Authorization: `Bearer ${utoken}`\n          },\n          success: function (appointments) {\n            //console.log(appointments);\n            //_this.set('appointments', appointments);\n\n            $('button.appointment_buttons').removeClass('btn-info');\n            $('button.appointment_buttons').addClass('btn-info');\n            $('#branch_id').val(branch_id);\n            $('#date_time_doctor').val('');\n            $('.branch_' + branch_id).removeClass('btn-info');\n            $('.branch_' + branch_id).addClass('btn-success');\n            var type_code = $('#appointment_type').val();\n            $('.appointmentType_buttons').removeClass('btn-success');\n            $('.appointmentType_buttons').addClass('btn-info');\n            $('.appointmenttype_' + type_code).removeClass('btn-info');\n            $('.appointmenttype_' + type_code).addClass('btn-success');\n            //$('#urgent_status').prop('checked', true);\n            //$('#urgent_status').attr('checked', true);\n            //$('#urgenttagnote').val('');\n            //$('#urgenttagnote').css('display', 'block');\n            /* ================= LOCKED SLOTS (NEW) ================= */\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'appointments/locked-slots/' + branch_id + '/' + appointment_date,\n              dataType: 'json',\n              headers: {\n                Authorization: `Bearer ${utoken}`\n              },\n              success: function (lockedRes) {\n                var lockedSlots = lockedRes.data || [];\n\n                /* ================= DOCTORS ================= */\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n                  data: {},\n                  dataType: 'json',\n                  headers: {\n                    Authorization: `Bearer ${utoken}`\n                  },\n                  success: function (result) {\n                    //_this.set('result', result);\n                    /*******************************************************/\n                    /* ================= REGULAR SCHEDULE ================= */\n                    $.ajax({\n                      method: 'GET',\n                      url: _environment.default.APP.api_url + 'appointments/scheduleshift/all/' + branch_id,\n                      data: {},\n                      dataType: 'json',\n                      headers: {\n                        Authorization: `Bearer ${utoken}`\n                      },\n                      success: function (resData) {\n                        //$('table.appointments tr.slot_detail').remove();\n                        // console.log(resData);\n                        /* ================= ADJUSTMENT SCHEDULE ================= */\n                        $.ajax({\n                          method: 'GET',\n                          url: _environment.default.APP.api_url + 'appointments/scheduleadjustmentshift/all/' + branch_id + '/' + appointment_date,\n                          data: {},\n                          dataType: 'json',\n                          headers: {\n                            Authorization: `Bearer ${utoken}`\n                          },\n                          success: function (resDataAjs) {\n                            //$('table.appointments tr.slot_detail').remove();\n                            /* ================= TIMING ================= */\n                            $.ajax({\n                              method: 'GET',\n                              url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + branch_id,\n                              data: {},\n                              dataType: 'json',\n                              headers: {\n                                Authorization: `Bearer ${utoken}`\n                              },\n                              success: function (resTimeData) {\n                                var temp_array = [];\n                                var current_time = '';\n                                var current_time_mod = '';\n                                if (!(resTimeData.data[0].morning_charity_status > 0)) {\n                                  var morning_start_hour = resTimeData.data[0].morning_shift_start.substr(0, 2) * 60;\n                                  var morning_stop_hour = resTimeData.data[0].morning_shift_end.substr(0, 2) * 60;\n                                  for (var i = morning_start_hour; i <= morning_stop_hour; i += 10) {\n                                    current_time = parseInt(i / 60);\n                                    current_time_mod = String('0' + i % 60).slice(-2);\n                                    temp_array.push({\n                                      slot: current_time + ':' + current_time_mod,\n                                      shift: '1'\n                                    });\n                                  }\n                                  if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                                    temp_array.push({\n                                      slot: '---'\n                                    });\n                                  }\n                                }\n                                if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                                  var evening_start_hour = resTimeData.data[0].evening_shift_start.substr(0, 2) * 60;\n                                  var evening_stop_hour = resTimeData.data[0].evening_shift_end.substr(0, 2) * 60;\n                                  for (var i = evening_start_hour; i <= evening_stop_hour; i += 10) {\n                                    current_time = parseInt(i / 60);\n                                    current_time_mod = String('0' + i % 60).slice(-2);\n                                    temp_array.push({\n                                      slot: current_time + ':' + current_time_mod,\n                                      shift: '2'\n                                    });\n                                  }\n                                }\n                                //console.log(temp_array);\n                                $('table.appointments tr.slot_detail').remove();\n                                var table_content = null;\n                                $.each(temp_array, function (key, valS) {\n                                  table_content = '<tr class=\"slot_detail\">';\n                                  table_content += '<td class=\"\" style=\"width:10%\">' + valS.slot + '</td>';\n                                  $.each(result.data, function (keyD, valD) {\n                                    var full_start_time = [];\n                                    var full_end_time = [];\n                                    var full_start_time_evening = [];\n                                    var full_end_time_evening = [];\n                                    var total_doctors = result.data.length;\n                                    var total_table_width = 90;\n                                    var td_width = parseInt(total_table_width, 10) / total_doctors;\n                                    var check_doctor_schedule_taken = 0;\n                                    //table_content += '<td class=\"\" style=\"width:'+td_width+'%\">'+valD.user_id+'</td>';\n                                    //\tif(resData.data.length > 0){\n                                    var doctorid = valD.user_id;\n                                    var shift = valS.shift;\n                                    var day = moment(appointment_date).day() + 1;\n                                    //console.log(day);\n                                    //console.log(day+1);\n                                    //console.log(resData[doctorid]);\n                                    // Check adjustment schedule first — it overrides regular schedule\n                                    if (resDataAjs[doctorid] != undefined && resDataAjs[doctorid][shift] != undefined && resDataAjs[doctorid][shift][day] != undefined && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid][shift][day].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid][shift][day].dateTo).format('YYYY-MM-DD')) {\n                                      var resObjAjs = resDataAjs[doctorid][shift][day];\n                                      full_start_time = resObjAjs.StartTime.split(':');\n                                      full_end_time = resObjAjs.EndTime.split(':');\n                                    } else if (resData[doctorid] != undefined && resData[doctorid][shift] != undefined && resData[doctorid][shift][day] !== undefined) {\n                                      var resObj = resData[doctorid][shift][day];\n                                      full_start_time = resObj.StartTime.split(':');\n                                      full_end_time = resObj.EndTime.split(':');\n                                    } else {\n                                      table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                                      return true;\n                                    }\n                                    var isBooked = false;\n                                    var isLocked = false;\n                                    var check_status = 0;\n                                    var start_time_minute = parseInt(full_start_time[0]) * 60 + parseInt(full_start_time[1]);\n                                    var end_time_minute = parseInt(full_end_time[0]) * 60 + parseInt(full_end_time[1]);\n                                    var full_time_slot = valS.slot.split(':');\n                                    var time_slot_minute = parseInt(full_time_slot[0]) * 60 + parseInt(full_time_slot[1]);\n                                    //console.log(\"slot\"+valS.slot+\"time_slot_minute\"+time_slot_minute+\"start_time_minute\"+start_time_minute+\"end_time_minute\"+end_time_minute);\n                                    if (parseInt(time_slot_minute) > parseInt(end_time_minute) || parseInt(time_slot_minute) < parseInt(start_time_minute) || valS.slot == '---') {\n                                      table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                                    } else {\n                                      var check_status = 0;\n                                      $.each(appointments.data, function (keyA, valA) {\n                                        if (parseInt(valD.user_id) === parseInt(valA.doctor_id) && valS.slot == valA.appointment_time) {\n                                          table_content += '<td class=\"booked\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Appointment Type: ' + valA.appointment_type.toUpperCase() + '\">Booked</td>';\n                                          check_status = 1;\n                                        }\n                                      });\n                                      /* ============ LOCKED SLOT CHECK (NEW – NO EXISTING LOGIC TOUCHED) ============ */\n                                      if (check_status == 0) {\n                                        $.each(lockedSlots, function (lk, lv) {\n                                          if (parseInt(lv.doctor_id) === parseInt(valD.user_id) && normalizeSlot(lv.slot) === normalizeSlot(valS.slot)) {\n                                            var appointment_date = moment(lv.appointment_date).format('YYYY-MM-DD');\n                                            table_content += '<td data-lockedid=\"' + lv.reservation_id + '\" data-doctorname=\"' + lv.doctor_name + '\" data-doctorid=\"' + lv.doctor_id + '\" data-slot=\"' + lv.slot + '\" data-branchid=\"' + lv.branch_id + '\" data-appointmentdate=\"' + appointment_date + '\" class=\"locked unlockedbranch\" ' + 'style=\"width:' + td_width + '%\" ' + 'data-toggle=\"tooltip\" ' + 'data-placement=\"top\" ' + 'data-original-title=\"Slot is locked. Click to unlock\">' + '<i class=\"fa fa-lock\"></i> Locked' + '</td>';\n                                            check_status = 1;\n                                            return false; // break loop\n                                          }\n                                        });\n                                      }\n                                      if (check_status == 0) {\n                                        table_content += '<td class=\"available available_slot branchlockedcheck\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-doctorname=\"' + valD.Name + '\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + valS.slot + '\" data-content=\"' + appointment_date + ' ' + valS.slot + ':00?' + valD.user_id + '?' + valS.shift + '\" rel=\"\">Available</td>';\n                                      }\n                                    }\n                                  });\n                                  table_content += '</tr>';\n                                  $('table.appointments').append(table_content);\n                                });\n                              }\n                            });\n                          }\n                        });\n                      }\n                    });\n                  }\n                });\n              }\n            });\n          }\n        });\n      },\n      nextAvailableDates(branches, slots) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var is_th = false;\n        var appointment_date = '';\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        if ($('#appointment_date').val() != '') {\n          appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        } else {\n          var fullDate = new Date();\n          var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n          var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n          appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n        }\n        $.each(branches, function (keyB, valB) {\n          var date_range = [];\n          // alert((moment(appointment_date).add('days', 0).format('YYYY-MM-DD')));\n          // alert(date_range);\n          var appointments = '';\n          var temp_array = [];\n          if ($('#count_available').val() > 0) {\n            var count_days = $('#count_available').val();\n          } else {\n            var count_days = 1;\n          }\n          temp_array.push(valB);\n          // alert(appointment_date);\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/doctor/' + doctor_id + '/nextavailable/' + appointment_date + '/' + valB.id + '/' + count_days,\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.data.length > 0) {\n                //console.log(res.data[0].available_date);\n                // alert(res.data[0].available_date);\n                //$('#appointment_date').val(moment(res.data[0].available_date).format('YYYY-MM-DD'));\n                $('#appointment_date').val(moment(appointment_date).add(7, 'days').format('MM/DD/YYYY'));\n                _this.send('doctorAppointments', doctor_id, temp_array, slots);\n              }\n            },\n            error: function (error, x, y) {\n              // console.log(ENV.APP.api_url+\"appointments/doctor/\"+doctor_id+\"/nextavailable/\"+appointment_date+\"/\"+valB.id);\n              // alert(y);\n            }\n          });\n          /* END AJAX call */\n        });\n        /* END Each */\n      },\n      nextDates(branches, slots) {\n        var appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        $('#appointment_date').val(moment(appointment_date).add(7, 'days').format('MM/DD/YYYY'));\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        this.send('doctorAppointments', doctor_id, branches, slots);\n      },\n      prevDates(branches, slots) {\n        var appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        $('#appointment_date').val(moment(appointment_date).subtract('days', 7).format('MM/DD/YYYY'));\n        var doctorClass = $('.selecteddoctor.btn-success').attr('id');\n        var doctor_class = doctorClass.split('_');\n        var doctor_id = doctor_class[1];\n        this.send('doctorAppointments', doctor_id, branches, slots);\n      },\n      ressetCounter() {\n        $('.initial_select_date').attr('data-count', 0);\n        this.set('prev_week', 'prev_week_disable');\n      },\n      doctorAppointments(doctor_id, branches, slots) {\n        if (this.is_rescheduled == '0') {\n          this.set('date_time_doctor', '');\n          this.set('patient_id', '');\n          this.set('mode', '');\n          this.set('priority', 'normal');\n          this.set('category', '');\n          this.set('title_prefix', '');\n          this.set('first_name', '');\n          this.set('middle_name', '');\n          this.set('last_name', '');\n          this.set('gender', '');\n          this.set('phone_1', '');\n          this.set('phone_2', '');\n          this.set('address_1', '');\n          this.set('address_2', '');\n          this.set('selected_country', '');\n          this.set('selected_state', '');\n          this.set('selected_city', '');\n          this.set('zip', '');\n          this.set('note', '');\n          this.set('appointment_type', '');\n          $('.patient_registration_form').hide();\n        }\n        var appointment_type = this.set('appointment_type', $('#appointment_type').val());\n        // console.log(appointment_type);\n        var type = this.appointment_type;\n        //console.log(type);\n        $('.appointmentType_buttons').removeClass('btn-success');\n        $('.appointmentType_buttons').addClass('btn-info');\n        $('#appointmenttype_' + type).removeClass('btn-info');\n        $('#appointmenttype_' + type).addClass('btn-success');\n        //console.log(appointment_type);\n        $('.appointment_doctor_id').val(doctor_id);\n        $('.appointment_branch_id').val('');\n        this.set('button_clicked', 'doctor_' + doctor_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var is_th = false;\n        var appointment_date = '';\n        if ($('#appointment_date').val() != '') {\n          appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n        } else {\n          var fullDate = new Date();\n          var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n          var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n          appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n        }\n        // alert(appointment_date);\n\n        /* AJAX call */\n        $('.doctor_weekly_appointment').show();\n        $('.regular_appointments').hide();\n        $('.ocp_appointments_regular').hide();\n        $('.patient_list').hide();\n        $('button.appointment_buttons').removeClass('btn-info');\n        $('button.appointment_buttons').addClass('btn-info');\n        $('.doctor_' + doctor_id).removeClass('btn-info');\n        $('.doctor_' + doctor_id).addClass('btn-success');\n        $('.appointmenttype_' + type).removeClass('btn-info');\n        $('.appointmenttype_' + type).addClass('btn-success');\n        $('.btn-info.btn-success').removeClass('btn-success');\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        $('body').addClass('modal-open');\n        //console.log(branches);\n        // Start code  get doctor weekly appointments\n        var booked_appointment_array = [];\n        // Start code  get doctor weekly appointments\n        var adjustment_schedule_appointment_array = [];\n        //Locked slots array\n        var locked_slots_array = [];\n\n        // ================= LOCKED SLOTS =================\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'appointments/locked-slots/' + appointment_date,\n          async: false,\n          dataType: 'json',\n          headers: {\n            Authorization: `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (!res.error) locked_slots_array = res.data || [];\n          }\n        });\n        function normalizeSlot(slot) {\n          var parts = slot.split(':');\n          return parts[0] + ':' + parts[1];\n        }\n\n        // Function to check if a slot is locked for a specific doctor, branch, and date\n        function isSlotLocked(slot, doctorId, branchId, date) {\n          //console.log(slot);\n          //console.log(doctorId);\n          //console.log(branchId);\n          //console.log(date);\n\n          return locked_slots_array.some(l => parseInt(l.doctor_id) === parseInt(doctorId) && parseInt(l.branch_id) === parseInt(branchId) && l.appointment_date === date && normalizeSlot(l.slot) === normalizeSlot(slot));\n        }\n        function getReservationId(slot, doctorId, branchId, date) {\n          let found = locked_slots_array.find(l => parseInt(l.doctor_id) === parseInt(doctorId) && parseInt(l.branch_id) === parseInt(branchId) && l.appointment_date === date && normalizeSlot(l.slot) === normalizeSlot(slot));\n          return found ? found.reservation_id || found.reservationId || '' : '';\n        }\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctor/' + doctor_id + '/weekly/' + appointment_date,\n          data: {},\n          async: false,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);//Appointments\n            booked_appointment_array = res;\n          },\n          error: function (error, x, y) {\n            _this.controller.set('appointmentsD', y);\n          }\n        });\n        // End code get doctor weekly appointments\n\n        if (appointment_type == 'ocp') {\n          $('table.ocp_doctor_appointments thead').remove();\n          $('table.ocp_doctor_appointments tbody').remove();\n          var table_content = '';\n          var date_range = [];\n          for (var i = 0; i < 7; i++) {\n            date_range.push(moment(appointment_date).add(i, 'days').format('YYYY-MM-DD'));\n          }\n          $('#date_time_doctor').val('');\n          //******************* */\n          // Get doctor wise ocp regular sechulde Shubh Tiwari 07-02-2024\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/ocpschedule/' + doctor_id,\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resData) {\n              // Get doctor wise ocp adjustment sechulde Shubh Tiwari 07-02-2024\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'appointments/ocpscheduleadjustment/' + doctor_id + '/' + appointment_date,\n                data: {},\n                async: false,\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resDataAjs) {\n                  // Get doctor wise booked OCP Appointments Shubh Tiwari 07-02-2024\n                  $.ajax({\n                    url: _environment.default.APP.lumen_api_url + 'getsetting/ocp_slots',\n                    method: 'GET',\n                    data: '',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      var ocpslots = JSON.parse(res);\n\n                      // Start render ocp  visit Appointment time slot code Shubh Tiwari 07-02-2019\n                      $('table.ocp_doctor_appointments tr.slot_detail').remove();\n                      // var table_content = \"\";\n                      table_content = '<thead style=\"width:100%\"><tr><th class=\"col-8\">Time Slots</th>';\n                      $.each(date_range, function (keyDate, valDate) {\n                        table_content += '<th class=\"col-8\">' + moment(valDate).format('ddd DD-MM-YYYY') + '</th>';\n                      });\n                      table_content += '</tr></thead><tbody>';\n                      $.each(ocpslots, function (keys, vals) {\n                        //console.log(vals.name);\n                        //console.log('appintment call');\n                        table_content += '<tr class=\"slot_detail\">';\n                        table_content += '<td class=\"\" style=\"width:12.5%\">' + vals.name + '</td>';\n                        $.each(date_range, function (keyDate, valDate) {\n                          var doctorid = doctor_id;\n                          //var day = moment(valDate).day() + 1;\n                          //console.log(valDate);\n                          if (resData[doctorid] != undefined) {\n                            var doctorSchedule = resData[doctorid][moment(valDate).day() + 1];\n                          }\n                          if (resDataAjs[doctorid] != undefined && resDataAjs[doctor_id][moment(valDate).day() + 1] && resDataAjs[doctor_id][moment(valDate).day() + 1].dateFrom != undefined && resDataAjs[doctor_id][moment(valDate).day() + 1] && resDataAjs[doctor_id][moment(valDate).day() + 1].dateTo != undefined && moment(valDate).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid][moment(valDate).day() + 1].dateFrom).format('YYYY-MM-DD') && moment(valDate).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid][moment(valDate).day() + 1].dateTo).format('YYYY-MM-DD')) {\n                            //console.log(resDataAjs[doctorid][day].dateFrom);\n                            var doctorSchedule = resDataAjs[doctorid][moment(valDate).day() + 1];\n                          }\n                          var check_status = 0;\n                          if (doctorSchedule != undefined && (vals.code == 'bm' && parseInt(doctorSchedule.before_morning) == 1 || vals.code == 'am' && parseInt(doctorSchedule.after_morning) == 1 || vals.code == 'ae' && parseInt(doctorSchedule.after_evening) == 1)) {\n                            // console.log(doctorSchedule.before_morning);\n                            //console.log(doctorSchedule['before_morning']);\n                            if (booked_appointment_array.data.length > 0) {\n                              $.each(booked_appointment_array.data, function (keyA, valA) {\n                                if (doctor_id == valA.doctor_id && vals.code == valA.ocp_slot && valA.appointment_type == 'ocp' && valDate == valA.appointment_date) {\n                                  table_content += '<td class=\"booked col-8\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Appointment Type: ' + valA.appointment_type.toUpperCase() + '\" data-content=\"\">Booked</td>';\n                                  check_status = 1;\n                                }\n                              });\n                              if (check_status == 0) {\n                                table_content += '<td class=\"available ocp_available_slot col-8\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + valDate + ' ' + vals.code + ':00?' + doctor_id + '\" rel=\"\">Available</td>';\n                              }\n                            } else {\n                              table_content += '<td class=\"available ocp_available_slot col-8\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + valDate + ' ' + vals.code + ':00?' + doctor_id + '\" rel=\"\">Available</td>';\n                            }\n                          } else {\n                            //console.log(doctorSchedule.before_morning);\n                            table_content += '<td class=\"not_available col-8\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\" is not available on this time slot.\">N/A</td>';\n                          }\n                        });\n                        table_content += '</tr>';\n                      });\n                      $('table.ocp_doctor_appointments').append(table_content);\n                      // End render ocp  visit Appointment time slot code Shubh Tiwari 07-02-2019\n                    }\n                  });\n                }\n              });\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          $('#appointment_date').val(moment(date_range[0]).format('MM/DD/YYYY'));\n        } else {\n          $('table.doctor_appointmentsconsolidated thead').remove();\n          $('table.doctor_appointmentsconsolidated tbody').remove();\n          $('table.doctor_appointmentsconsolidated .slot_details').remove();\n          var table_content = '';\n          // Start table header, written by Shubh Tiwari 2022\n          table_content = '<thead style=\"width:100%\"><tr><th class=\"col-8\">Time Slots</th>';\n          var date_range = [];\n          for (var i = 0; i < 7; i++) {\n            date_range.push(moment(appointment_date).add(i, 'days').format('YYYY-MM-DD'));\n          }\n          $.each(date_range, function (keyDate, valDate) {\n            table_content += '<th class=\"col-8\">' + moment(valDate).format('ddd DD-MM-YYYY') + '</th>';\n          });\n          table_content += '</tr></thead>';\n          // End table header\n          // Get min and max time set of morning and evening for each branch from branch management, Shubh Tiwari 07-02-2024\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/consolidatedtimings',\n            data: {},\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resConsolidate) {\n              var temp_array = [];\n              var current_time = '';\n              var current_time_mod = '';\n              if (moment(resConsolidate.data[0].morningend).format('HH:mm:ss') >= moment(resConsolidate.data[0].eveningstart).format('HH:mm:ss')) {\n                //console.log('a');\n                // Convert times to minutes for easier calculation\n                //Shubh 28-Feb-2025 fixed for including minutes in slot calculation. it was earlier causing issues by only taking hours.\n                var morningstart = parseInt(resConsolidate.data[0].morningstart.substr(0, 2)) * 60 + parseInt(resConsolidate.data[0].morningstart.substr(3, 2));\n                var morningend = parseInt(resConsolidate.data[0].morningend.substr(0, 2)) * 60 + parseInt(resConsolidate.data[0].morningend.substr(3, 2));\n                var eveningstart = parseInt(resConsolidate.data[0].eveningtart.substr(0, 2)) * 60 + parseInt(resConsolidate.data[0].eveningtart.substr(3, 2));\n                var eveningend = parseInt(resConsolidate.data[0].eveningend.substr(0, 2)) * 60 + parseInt(resConsolidate.data[0].eveningend.substr(3, 2));\n                for (var i = morningstart; i <= morningend; i += 10) {\n                  current_time = parseInt(i / 60);\n                  current_time_mod = String('0' + i % 60).slice(-2);\n                  //console.log({slot: current_time + ':' + current_time_mod, shift: '1'});\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '1'\n                  });\n                  //console.log('morning');\n                }\n                //temp_array.push({ slot: '---' });\n                for (var j = eveningstart; j <= eveningend; j += 10) {\n                  current_time = parseInt(j / 60);\n                  current_time_mod = String('0' + j % 60).slice(-2);\n                  //console.log({slot: current_time + ':' + current_time_mod, shift: '2'});\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '2'\n                  });\n                  //console.log('evening');\n                }\n              } else {\n                //console.log('b');\n                for (var k = resConsolidate.data[0].morningstart; k <= resConsolidate.data[0].morningend; k += 10) {\n                  current_time = parseInt(k / 60);\n                  current_time_mod = String('0' + k % 60).slice(-2);\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '1'\n                  });\n                }\n                temp_array.push({\n                  slot: '---'\n                });\n                for (var l = resConsolidate.data[0].eveningstart; l <= resConsolidate.data[0].eveningend; l += 10) {\n                  current_time = parseInt(l / 60);\n                  current_time_mod = String('0' + l % 60).slice(-2);\n                  temp_array.push({\n                    slot: current_time + ':' + current_time_mod,\n                    shift: '2'\n                  });\n                }\n              }\n              //console.log(temp_array);\n              // Default table generate for consolidated sechdule with default availability N/A, Shubh Tiwari\n              $.each(temp_array, function (keyS, valS) {\n                table_content += '<tr class=\"slot_details\">';\n                table_content += '<td class=\"col-8\">' + valS.slot + '</td>';\n                var full_start_time = [];\n                var full_end_time = [];\n                $.each(date_range, function (keyDate, valDate) {\n                  var classslot = valS.slot.replace(/:/g, '_');\n                  //var classslot = doctor_id+ valS.shift + (moment(valDate).day() + 1);\n                  table_content += '<td class=\"not_available col-8 ' + moment(valDate).format('YYYY-MM-DD') + '' + classslot + '\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor is not available on this time slot.\">N/A</td>';\n                });\n                table_content += '</tr>';\n              });\n              $('table.doctor_appointmentsconsolidated thead').remove();\n              $('table.doctor_appointmentsconsolidated tbody').remove();\n              $('table.doctor_appointmentsconsolidated .slot_details').remove();\n              $('table.doctor_appointmentsconsolidated').append(table_content);\n\n              // iteration of branch array and Regular sechdule  , Shubh Tiwari 13-02-2024\n              $.each(branches, function (keyB, valB) {\n                var date_range = [];\n                for (var m = 0; m < 7; m++) {\n                  date_range.push(moment(appointment_date).add(m, 'days').format('YYYY-MM-DD'));\n                }\n                var appointments = '';\n\n                // Get doctor wise icp,phone,email and vc regular sechulde Shubh Tiwari 07-02-2024\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.api_url + 'appointments/scheduleshift/' + doctor_id + '/' + valB.id,\n                  data: {},\n                  dataType: 'json',\n                  async: false,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resData) {\n                    //console.log(res);//Appointments\n                    $('#branch_id').val('');\n                    $('#date_time_doctor').val('');\n                    // temp_array store morning, afternoon and evening 10 minute time interval slot Shubh Tiwari 07-02-2024\n                    $.each(temp_array, function (keyS, valS) {\n                      //var full_start_time = [];\n                      //var full_end_time = [];\n                      $.each(date_range, function (keyDate, valDate) {\n                        if (resData[valB.id] != undefined && resData[valB.id][valS.shift] != undefined && resData[valB.id][valS.shift][moment(valDate).day() + 1] != undefined) {\n                          var full_start_time = resData[valB.id][valS.shift][moment(valDate).day() + 1].StartTime.split(':');\n                          var full_end_time = resData[valB.id][valS.shift][moment(valDate).day() + 1].EndTime.split(':');\n                          var start_time_minute = full_start_time[0] * 60 + full_start_time[1];\n                          var end_time_minute = full_end_time[0] * 60 + full_end_time[1];\n                          var full_time_slot = valS.slot.split(':');\n                          var time_slot_minute = full_time_slot[0] * 60 + full_time_slot[1];\n                          if (parseInt(time_slot_minute) >= parseInt(start_time_minute) && parseInt(time_slot_minute) <= parseInt(end_time_minute) || valS.slot == '---') {\n                            var classslot = valS.slot.replace(/:/g, '_');\n                            //var classslot = doctor_id+ valS.shift + (moment(valDate).day() + 1);\n                            if (!$('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).hasClass('booked')) {\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available').removeClass('not_available');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available_slot');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('doctorlockedcheck');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text(valB.title);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Date: ' + moment(valDate).format('DD-MM-YYYY') + ',\\n Slot: ' + valS.slot + ',\\n Branch:' + valB.title);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('data-content', moment(valDate).format('YYYY-MM-DD') + ' ' + valS.slot + ':00?' + doctor_id + '?' + valS.shift);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('rel', valB.id);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + classslot).attr('data-branchid', valB.id).attr('data-branchtitle', valB.title).attr('data-doctorid', doctor_id).attr('data-date', valDate).attr('data-slot', valS.slot);\n                            }\n                          }\n                        }\n                      });\n                    });\n                  }\n                });\n                /* END AJAX call */\n                //branches loop end  here\n              });\n\n              // iteration of branch array and adjustment sechdule  , Shubh Tiwari 13-02-2024\n              $.each(branches, function (keyB, valB) {\n                var date_range = [];\n                for (var m = 0; m < 7; m++) {\n                  date_range.push(moment(appointment_date).add(m, 'days').format('YYYY-MM-DD'));\n                }\n                // Get doctor wise icp,phone,email and vc Adjustment sechulde Shubh Tiwari 07-02-2024\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.api_url + 'appointments/scheduleadjustmentshift/' + doctor_id + '/' + valB.id + '/' + appointment_date,\n                  data: {},\n                  async: false,\n                  dataType: 'json',\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resDataAjs) {\n                    //console.log(res);//Appointments\n                    $('#branch_id').val('');\n                    $('#date_time_doctor').val('');\n                    // temp_array store morning, afternoon and evening 10 minute time interval slot Shubh Tiwari 07-02-2024\n                    $.each(temp_array, function (keyS, valS) {\n                      //var full_start_time = [];\n                      //var full_end_time = [];\n                      $.each(date_range, function (keyDate, valDate) {\n                        if (resDataAjs[valB.id] != undefined && resDataAjs[valB.id][valS.shift] != undefined && resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1] && resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateFrom != undefined && resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1] && resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateTo != undefined && moment(valDate).format('YYYY-MM-DD') >= moment(resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateFrom).format('YYYY-MM-DD') && moment(valDate).format('YYYY-MM-DD') <= moment(resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].dateTo).format('YYYY-MM-DD')) {\n                          //console.log('Adjustment schedule block execute');\n                          //console.log('day='+parseInt(moment(valDate).day() +1)+'branch='+valB.title);\n                          var full_start_time = resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].StartTime.split(':');\n                          //console.log('full_start_time='+full_start_time);\n                          var full_end_time = resDataAjs[valB.id][valS.shift][moment(valDate).day() + 1].EndTime.split(':');\n                          //console.log('full_end_time='+full_end_time);\n                          var check_status = 0;\n                          var adjustment_start_time_minute = parseInt(full_start_time[0] * 60) + parseInt(full_start_time[1]);\n                          //console.log('full_start_time[0]='+full_start_time[0]);\n                          //console.log('full_start_time[1]='+full_start_time[1]);\n                          //console.log('adjustment_start_time_minute='+adjustment_start_time_minute);\n                          var adjustment_end_time_minute = parseInt(full_end_time[0] * 60) + parseInt(full_end_time[1]);\n                          //console.log('adjustment_end_time_minute='+adjustment_end_time_minute);\n                          var full_time_slot = valS.slot.split(':');\n                          //console.log('full_time_slot='+full_time_slot);\n                          var regular_time_slot_minute = parseInt(full_time_slot[0] * 60) + parseInt(full_time_slot[1]);\n                          //console.log('regular_time_slot_minute='+regular_time_slot_minute);\n                          //console.log('regular_time_slot_minute=='+regular_time_slot_minute+'adjustment_start_time_minute=='+adjustment_start_time_minute+'adjustment_end_time_minute=='+adjustment_end_time_minute);\n                          if (regular_time_slot_minute >= adjustment_start_time_minute && regular_time_slot_minute <= adjustment_end_time_minute || valS.slot == '---') {\n                            //console.log('adjustment block execute A');\n                            var classslot = valS.slot.replace(/:/g, '_');\n                            //var classslot = doctor_id + valS.shift + (moment(valDate).day() + 1);\n                            if (!$('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).hasClass('booked')) {\n                              //add this code .removeClass('not_available') for opening the slot as per adjustment, Shubh 28 Feb 2025\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available').removeClass('not_available');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('available_slot');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('doctorlockedcheck');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text(valB.title);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Date: ' + moment(valDate).format('DD-MM-YYYY') + ',\\n Slot: ' + valS.slot + ',\\n Branch:' + valB.title);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('data-content', moment(valDate).format('YYYY-MM-DD') + ' ' + valS.slot + ':00?' + doctor_id + '?' + valS.shift);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('rel', valB.id);\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + classslot).attr('data-branchid', valB.id).attr('data-branchtitle', valB.title).attr('data-doctorid', doctor_id).attr('data-date', valDate).attr('data-slot', valS.slot);\n                            }\n                          } else if (regular_time_slot_minute >= adjustment_start_time_minute || adjustment_end_time_minute <= regular_time_slot_minute) {\n                            //console.log('Not available block execute');\n                            var classslot = valS.slot.replace(/:/g, '_');\n                            //var classslot = doctor_id + valS.shift + (moment(valDate).day() + 1);\n                            if (!$('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).hasClass('booked')) {\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('not_available').removeClass('available');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).removeClass('available_slot');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text('N/A');\n                              $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Doctor is not available on this time slot.');\n                            }\n                          }\n                        }\n                      });\n                    });\n                  },\n                  complete: function () {\n                    setTimeout(function () {\n                      $('#loading').removeClass('in');\n                      $('#loading').css('display', 'none');\n                      $('.modal-backdrop').remove();\n                      $('body').removeClass('modal-open');\n                    }, 500);\n                  }\n                });\n              });\n\n              // iteration of branch array and Booked Appointment sechdule  , Shubh Tiwari 13-02-2024\n              $.each(branches, function (keyB, valB) {\n                var date_range = [];\n                for (var m = 0; m < 7; m++) {\n                  date_range.push(moment(appointment_date).add(m, 'days').format('YYYY-MM-DD'));\n                }\n\n                //$('#branch_id').val('');\n                //$('#date_time_doctor').val('');\n                $.each(temp_array, function (keyS, valS) {\n                  $.each(date_range, function (keyDate, valDate) {\n                    if (booked_appointment_array.data.length > 0) {\n                      //console.log('booked block execute');\n                      // Check Booked condition Shubh Tiwari 07-02-2024\n                      $.each(booked_appointment_array.data, function (keyA, valA) {\n                        if (doctor_id == valA.doctor_id && valS.slot == valA.appointment_time && valB.id == valA.branch_id && valDate == valA.appointment_date) {\n                          //table_content += '<td class=\"booked col-8\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: '+valA.OldRegistrationNo+', \\n Appointment Id: '+ valA.id +',\\n Patient Name: '+valA.first_name+' '+valA.last_name+',\\n Doctor: '+valA.doctor_name+'\" data-content=\"\">Booked</td>';\n                          var classslot = valS.slot.replace(/:/g, '_');\n                          //var classslot = doctor_id + valS.shift + (moment(valDate).day() + 1);\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('booked').removeClass('not_available');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('booked').removeClass('available');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('booked').removeClass('available_slot');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).addClass('booked').removeClass('doctorlockedcheck');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).text('Booked');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('title', 'Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Branch: ' + valB.title + ',\\n Appointment Type: ' + '<b>' + valA.appointment_type.toUpperCase() + '</b>');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).attr('data-html', 'true');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).removeAttr('data-content');\n                          $('.' + moment(valDate).format('YYYY-MM-DD') + '' + classslot).removeAttr('rel');\n                          //check_status = 1;\n                        }\n                      });\n                    }\n                  });\n                });\n              });\n              // lock the slots which are in locked_slots_array , Shubh Tiwari 28-02-2024\n              // 🔒 LOCK SLOTS UI RENDER (FINAL REPLACEMENT)\n              $.each(branches, function (keyB, valB) {\n                var branchId = valB.id;\n                $.each(date_range, function (keyDate, valDate) {\n                  $.each(temp_array, function (keyS, valS) {\n                    var classslot = valS.slot.replace(/:/g, '_');\n\n                    // ⚠️ IMPORTANT: same selector + doctorunlockedcheck\n                    var selector = '.' + moment(valDate).format('YYYY-MM-DD') + classslot;\n                    var $cell = $(selector);\n                    if ($cell.length === 0) return;\n\n                    // 🔍 check slot locked or not\n                    if (!$cell.hasClass('booked') && isSlotLocked(valS.slot, doctor_id, branchId, valDate)) {\n                      $cell.removeClass('available available_slot not_available doctorlockedcheck').addClass('locked doctorunlockedcheck') // 🔓 unlock clickable\n                      .attr('data-branchid', branchId).attr('data-doctorid', doctor_id).attr('data-date', valDate).attr('data-slot', valS.slot).attr('data-lockedid', getReservationId(valS.slot, doctor_id, branchId, valDate)).attr('data-toggle', 'tooltip').attr('data-placement', 'top').attr('title', '🔒 Slot is locked. Click to unlock').html('<i class=\"fa fa-lock\"></i> Locked');\n                    }\n                  });\n                });\n              });\n              $('#appointment_date').val(moment(date_range[0]).format('MM/DD/YYYY'));\n            }\n          });\n        }\n        /* END Each */\n      },\n      search_patient() {\n        var _this = this;\n        var utoken = _this.session.getToken();\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        // $('#patient_id').val('');\n        this.set('patient_id', '');\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n            $('div.patient_registration_form').hide();\n            $('div.patient_list').show();\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.transitionToRoute({\n          queryParams: {\n            sort: sort,\n            order: order,\n            p: page,\n            q: q\n          }\n        });\n      },\n      prev(stats, p) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      next(stats, p) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      goto() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          var q = this.q;\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      patientDetail(patientId) {\n        this.set('editPage', true);\n        this.set('patient_id', patientId);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        //set selected patient id to patient_id\n        this.set('patient_id', patientId);\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/' + patientId,\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            var patient_data = res.data[0];\n            //console.log(patient_data);\n            //$('.first_name').val(patient_data.first_name);\n            //$('.last_name').val(patient_data.last_name);\n            //$('.middle_name').val(patient_data.middle_name);\n            //$('.OldRegistrationNo').val(patient_data.OldRegistrationNo);\n            _this.set('OldRegistrationNo', patient_data.OldRegistrationNo);\n            _this.set('id', patientId);\n            _this.set('title_prefix', patient_data.title_prefix);\n            _this.set('first_name', patient_data.first_name);\n            _this.set('middle_name', patient_data.middle_name);\n            _this.set('last_name', patient_data.last_name);\n            _this.set('gender', patient_data.gender);\n            _this.set('phone_1', patient_data.phone_res);\n            _this.set('phone_2', patient_data.mobile_res);\n            _this.set('address_1', patient_data.full_address_per);\n            _this.set('address_2', patient_data.full_address_res);\n            _this.set('selected_country', patient_data.country_id_per);\n            _this.set('selected_discount_category', patient_data.discount_category); //in this line we have added the discount_category to set value in edit form, Rahul Khan\n            _this.set('selected_state', patient_data.state_id_per);\n            _this.set('selected_city', patient_data.city_id_per);\n            _this.set('zip', patient_data.pincode_per);\n            _this.set('mode', patient_data.mode);\n            _this.set('note', patient_data.note);\n            _this.set('priority', patient_data.priority);\n            _this.set('category', patient_data.category);\n            _this.set('blood_type', patient_data.blood_type);\n            _this.set('email_id', patient_data.email_id);\n            _this.set('same_as_shipping', patient_data.same_as_shipping);\n            _this.set('shipping_full_address_per', patient_data.shipping_full_address_per);\n            _this.set('shipping_full_address_res', patient_data.shipping_full_address_res);\n            _this.set('shipping_country_id', patient_data.shipping_country_id);\n            _this.set('shipping_state_id', patient_data.shipping_state_id);\n            _this.set('shipping_city_id', patient_data.shipping_city_id);\n            _this.set('shipping_pin_code', patient_data.shipping_pin_code);\n            _this.set('shipping_mobile', patient_data.shipping_mobile);\n            _this.set('shipping_state_name', patient_data.shipping_state_name);\n            _this.set('shipping_city_name', patient_data.shipping_city_name);\n            //In this below if condition we have added last condition \"|| patient_data.date_of_birth=='0000-00-00'\" to set null value of date of birth\n\n            if (patient_data.date_of_birth == '' || patient_data.date_of_birth == null || patient_data.date_of_birth == '0000-00-00') {\n              _this.set('date_of_birth', '');\n            } else {\n              _this.set('date_of_birth', moment(patient_data.date_of_birth).format('MM/DD/YYYY'));\n            }\n            if (patient_data.age_years == '0') {\n              _this.set('age_years', '');\n            } else {\n              _this.set('age_years', patient_data.age_years);\n            }\n            if (patient_data.age_months == '0') {\n              _this.set('age_months', '');\n            } else {\n              _this.set('age_months', patient_data.age_months);\n            }\n            if (patient_data.age_days == '0') {\n              _this.set('age_days', '');\n            } else {\n              _this.set('age_days', patient_data.age_days);\n            }\n            $('div.patient_list').hide();\n            $('div.patient_registration_form').show();\n            //diable form fields again.\n            $('#register_patient select').prop('disabled', true);\n            $('#register_patient input,#register_patient textarea').prop('readonly', true);\n            $(window).scrollTop($('#patient_registration_form').offset().top);\n          },\n          error: function (error, x, y) {},\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        var country_id = this.selected_country;\n        /* AJAX call */\n        var _this = this;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          dataType: 'json',\n          success: function (res) {\n            _this.set('pstates', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        var state_id = this.selected_state;\n        var city_id = this.selected_city;\n        /* AJAX call */\n        var _this = this;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            state_id: state_id\n          },\n          async: false,\n          dataType: 'json',\n          success: function (res) {\n            _this.set('cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        /* In this below line of code is used for getting removing other* field boxs for state and city field. Rahul,Khan 04 July 2019*/\n        $('#other_state').val('').addClass('hidden');\n        $('#other_city').val('').addClass('hidden');\n      },\n      reloadDashboard() {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        //alert(branch_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/' + branch_id,\n          data: {},\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('appointments', res);\n            _this.set('appointmentsD', res);\n            // alert($('#button_clicked').val());\n            $('#' + $('#button_clicked').val()).click();\n          },\n          error: function (error, x, y) {\n            alert('Some went wrong! Please refresh the page manually to see the changes!');\n          }\n        });\n        // this.transitionTo('appointment');\n      },\n      prevSearch(stats, p) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/search',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('appointments', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      nextSearch(stats, p) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/search',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('appointments', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          // if(q!='')\n          // {\n          //   this.transitionTo({queryParams:{sort:sort,order:order,p:page,q:q}})\n          //\n          // }\n          // else {\n          //   this.transitionTo({queryParams:{sort:sort,order:order,p:page}})\n          // }\n        }\n      },\n      gotoSearch() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/search',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('appointments', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          var q = this.q;\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      getDoctorCharges() {\n        /// console.log(\"ddd\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var doctor_id = $('.appointment_doctor_id').val();\n        var location_id = $('.appointment_branch_id').val();\n        var logged_in_id = _this.session.getLocation().split('-')[0];\n        if (location_id != undefined && location_id != '') {\n          var branch_id = location_id;\n        } else {\n          var branch_id = logged_in_id;\n        }\n        //console.log(location_id);\n        var base_url = _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id + '/' + branch_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('doctorcharges', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      toggleAppointmentSelection(appointment) {\n        let selectedIds = this.get('selectedAppointmentIds') || Ember.A();\n        let appointmentId = appointment.id;\n        let isSelected = !selectedIds.includes(appointmentId);\n        if (isSelected) {\n          selectedIds.addObject(appointmentId);\n        } else {\n          selectedIds.removeObject(appointmentId);\n        }\n        Ember.set(appointment, 'isSelected', isSelected);\n        let appointments = this.get('appointments') || [];\n        this.set('selectAll', appointments.length > 0 && selectedIds.length === appointments.length);\n      },\n      toggleSelectAll() {\n        let selectAll = this.get('selectAll');\n        let appointments = this.get('appointments') || [];\n        let selectedIds = this.get('selectedAppointmentIds') || Ember.A();\n        let newValue = !selectAll;\n        if (newValue) {\n          selectedIds.clear();\n          appointments.forEach(appointment => {\n            Ember.set(appointment, 'isSelected', true);\n            selectedIds.addObject(appointment.id);\n          });\n        } else {\n          appointments.forEach(appointment => {\n            Ember.set(appointment, 'isSelected', false);\n          });\n          selectedIds.clear();\n        }\n        this.set('selectAll', newValue);\n      },\n      toggleSelect(id) {\n        let selectedIds = this.get('selectedAppointmentIds') || Ember.A();\n        let appointments = this.get('appointments') || [];\n        let appointment = appointments.find(a => a.id === id);\n        if (selectedIds.includes(id)) {\n          selectedIds.removeObject(id);\n          if (appointment) Ember.set(appointment, 'isSelected', false);\n        } else {\n          selectedIds.addObject(id);\n          if (appointment) Ember.set(appointment, 'isSelected', true);\n        }\n        this.set('selectAll', appointments.length > 0 && selectedIds.length === appointments.length);\n      }\n    },\n    //This function get Year Month and Days form data of birth of patient\n    dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n      /*\n       * Now we deal with the negatives\n       */\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    },\n    //Rahul khan 04_02_2021\n    time_slot_start: _environment.default.APP.time_slot_start,\n    time_slot_stop: _environment.default.APP.time_slot_stop,\n    time_slot_array: Ember.computed('time_slot_start', 'time_slot_stop', function () {\n      var temp_array = [];\n      var start_hour = _environment.default.APP.time_slot_start * 60;\n      var stop_hour = _environment.default.APP.time_slot_stop * 60;\n      var current_time = '';\n      var current_time_mod = '';\n      for (var i = start_hour; i <= stop_hour; i += 10) {\n        current_time = parseInt(i / 60);\n        current_time_mod = String('0' + i % 60).slice(-2);\n        temp_array.push({\n          slot: current_time + ':' + current_time_mod\n        });\n      }\n      return temp_array;\n    })\n  });\n});","define(\"clinic-dev/controllers/billing\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\", \"qunit\"], function (_exports, _environment, _emberData, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"@ember/application\",0,\"ember-data\",0,\"qunit\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    print: Ember.inject.service('print-options'),\n    flashes: Ember.inject.service('flash-messages'),\n    appController: Ember.inject.controller('application'),\n    permissions: Ember.inject.service('userPermissionsService'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    NumberInWords: Ember.inject.service('numberinwords'),\n    routing: Ember.inject.service('-routing'),\n    status_id: 2,\n    isDisabled: false,\n    isPaymentLoading: false,\n    sourceLookupCache: null,\n    currentCancelMode: null,\n    _sourceLookupRequestId: 0,\n    cancellationRefundPopupOpen: false,\n    cancellationRefundAppointmentRows: [],\n    customCancellationTitle: '',\n    showBatchDetails: false,\n    currentBatch: null,\n    currentRefunds: [],\n    cancellationSuccessMessage: '',\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      _this._super(...arguments);\n      var payerId = _this.instruction;\n      _this.selectedPaymentOptions = [];\n      _this.selectedPaymentName = [];\n      _this.chargeArray = [];\n      _this.consultancyArray = [];\n      _this.medicineDiscountArray = [];\n      var advance_label_message = _this.get('i18n').t('appcommon.label.advanceLabel');\n      _this.set('advance_label', advance_label_message);\n      var totalduelabel_with_previous_pg = _this.get('i18n').t('appcommon.label.totalduelabel_with_previous_pg');\n      _this.set('totalduelabel_with_previous_pg', totalduelabel_with_previous_pg);\n      var totalduelabelwithBothPG = _this.get('i18n').t('appcommon.label.totalduelabelwithBothPG');\n      _this.set('totalduelabelwithBothPG', totalduelabelwithBothPG);\n      var totalduelabel_with_current_pg = _this.get('i18n').t('appcommon.label.totalduelabel_with_current_pg');\n      _this.set('totalduelabel_with_current_pg', totalduelabel_with_current_pg);\n      var detailstotalduelabelwithBothPG = _this.get('i18n').t('appcommon.label.detailstotalduelabelwithBothPG');\n      _this.set('detailstotalduelabelwithBothPG', detailstotalduelabelwithBothPG);\n      var normalcasepg = _this.get('i18n').t('appcommon.label.normalcasepg');\n      _this.set('normalcasepg', normalcasepg);\n      var normalpgcurentdue = _this.get('i18n').t('appcommon.label.normalpgcurentdue');\n      _this.set('normalpgcurentdue', normalpgcurentdue);\n      var normalAminusB = _this.get('i18n').t('appcommon.label.normalAminusB');\n      _this.set('normalAminusB', normalAminusB);\n      var normalAminusBminusC = _this.get('i18n').t('appcommon.label.normalAminusBminusC');\n      _this.set('normalAminusBminusC', normalAminusBminusC);\n    },\n    refreshCurrentBatch: function () {\n      let _this = this;\n      let batchId = _this.get('currentBatch.id');\n      if (!batchId) return;\n      let token = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.error === false) {\n            let updatedRefunds = res.refunds.map(r => ({\n              id: r.appointment_id,\n              patient: r.patient_name,\n              patient_id: r.patient_id,\n              status: r.status,\n              ref: r.gateway_refund_id || r.arn_rrn_utr,\n              gateway: r.gateway,\n              amount: (parseFloat(r.amount) || 0).toFixed(2),\n              created_at: r.created_at,\n              order_id: r.order_id,\n              reason: r.reason\n            }));\n            let updatedCounts = {\n              total: updatedRefunds.length,\n              processed: updatedRefunds.filter(r => r.status === 'processed').length,\n              pending: updatedRefunds.filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length,\n              failed: updatedRefunds.filter(r => r.status === 'failed').length,\n              queued: updatedRefunds.filter(r => r.status === 'queued').length\n            };\n            let updatedBatch = Object.assign({}, _this.get('currentBatch'), {\n              refunds: updatedRefunds,\n              status: res.batch ? res.batch.status : _this.get('currentBatch.status'),\n              counts: updatedCounts,\n              allDone: updatedRefunds.every(r => r.status === 'processed' || r.status === 'failed')\n            });\n            _this.set('currentBatch', updatedBatch);\n            _this.set('currentRefunds', updatedRefunds);\n          }\n        }\n      });\n    },\n    actions: {\n      pharmacyView: function (appointment_id, billing_id, patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'check_pharmacy',\n          data: {\n            id: appointment_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (dispatch_result) {\n            console.log('new code');\n            if (billing_id != dispatch_result.billing_id && dispatch_result.d_status == 'Yes' && dispatch_result.action == \"exists_dispatch\" && dispatch_result.error == false) {\n              var error = 'Attention: Changes Detected! Your previous bill has been altered. A new bill has been identified.';\n              Swal.fire({\n                icon: 'warning',\n                title: 'Warning',\n                html: error,\n                width: 600,\n                //showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              }).then(result => {\n                if (result.isConfirmed) {\n                  _this.transitionToRoute('pharmacy.view', appointment_id, dispatch_result.billing_id, patient_id);\n                }\n              });\n            } else {\n              _this.transitionToRoute('pharmacy.view', appointment_id, billing_id, patient_id);\n            }\n          },\n          complete: function (dispatch_result) {\n            _this.set('isDisabled', false);\n          }\n        });\n      },\n      getLastEditBy: function (appointment_id, billing_id) {\n        this.getLastEditBy(appointment_id, billing_id);\n      },\n      removeBillingInProgress(patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        Swal.fire({\n          text: 'Are you sure you want to remove this billing in-progress?',\n          icon: 'warning',\n          width: 600,\n          allowOutsideClick: false,\n          showDenyButton: true,\n          denyButtonText: `Cancel`,\n          confirmButtonText: 'Yes, remove it'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/removeprogress';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: patient_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'billing_remove') {\n                  let shift_id = _this.session.getLoggedInUserShift();\n                  //This Below code line is used for getting Branch id for login user\n                  let branch_id = _this.session.getLocation().split('-')[0];\n                  _this.send('getClinicPatientsIncomplete', shift_id, branch_id, '0');\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, Something went wrong, Please try again.', 'billing-dashboard');\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      historyClearCheckbox: function () {\n        var appointment = [];\n        $.each($('input.clearcheckbox:checkbox:checked'), function () {\n          appointment.push($(this).data('appointment'));\n        });\n        //$('#visithistoryPopup').modal('hide');\n        if (appointment.length > 0) {\n          Swal.fire({\n            text: 'Are you sure you want to clear visit history?',\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            showDenyButton: true,\n            denyButtonText: `Cancel`,\n            confirmButtonText: 'Yes, clear it'\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('li :checkbox').prop('checked', false);\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n              $('#importvisitid').val('');\n            }\n          });\n        } else {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please check checkbox first!', 'visitmessage');\n        }\n      },\n      loadMoreHistory: function (limit, patient_id, filter) {\n        //var pages = page+1;\n        var _this = this;\n        var data_limit = parseInt(limit) + 5;\n        _this.send('getPatientHistory', patient_id, filter, data_limit);\n      },\n      getBPLocation: function (billing_id) {\n        this.getBillingPharmacyId(billing_id);\n      },\n      getPBSLocation: function (billing_id, appointment_id) {\n        this.getPrescribedBranchShiftId(billing_id, appointment_id);\n      },\n      // getCWPInstruction: function (billing_id) {\n      //   this.getCWPInstruction(billing_id);\n      // },\n      visitEditCheck: function (appointment_id, billing_id, patient_id) {\n        this.visitEditCheck(appointment_id, billing_id, patient_id);\n      },\n      checkBilling: function (appointment_id, billing_id) {\n        this.checkBilling(appointment_id, billing_id);\n      },\n      checkVisiting: function (appointment_id, patient_id) {\n        this.checkVisiting(appointment_id, patient_id);\n      },\n      getVisitBilledDate: function (patient_id) {\n        this.getVisitBilledDate(patient_id);\n      },\n      getLastPaidAmount: function (appointment_id, billing_id) {\n        this.getLastPaidAmount(appointment_id, billing_id);\n      },\n      onChangesPGCalculation: function (action, value) {\n        var _this = this;\n        var pg_charge = $('input[name=pagepayment_gateway_charge]').val();\n        var billing_id = $('input:hidden[name=billing_id]').val();\n        var visiting_id = $('input:hidden[name=visiting_id]').val();\n        var ischecked = $('input[name=pagepayment_gateway_checkbox]').is(':checked');\n        _this.onChangesOtherChargePGCalculation(pg_charge, billing_id, visiting_id, ischecked, action, value);\n      },\n      applyPGChargeOnBillPatient: function (PGChargePercentage, billing_id, visiting_id, isChecked) {\n        var _this = this;\n        _this.applyPGChargeOnBillPatient(PGChargePercentage, billing_id, visiting_id, isChecked);\n      },\n      openShiftReportPopup() {\n        //The below code is used for getting collection for current shift (Nishant 23-Aug-2022)\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var today = moment().format('YYYY-MM-DD');\n        //console.log(today);\n        //getting shift id & Branch id for login user from session\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/shiftcollection/' + shift_id + '/' + branch_id + '/' + today;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('shift_report_popup');\n            _this.set('collectiondata', res);\n            _this.set('shift', shift_id);\n            //_this.send('getShiftCollection', res.data);\n          },\n          complete: function () {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      },\n      confirmCloseShift() {\n        //Nishant 24-Aug-2022 - Confirmation for Closing shift & api call to record the data\n        var _this = this;\n        Swal.fire({\n          html: 'Please make sure you have confirmed the amounts. <br/>' + 'The totals will be saved for reporting purposes. <br/><br/>' + 'Press \"Confirm\" to close the shift & \"Cancel\" to go back',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Confirm!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            //If confirmed, save the data into table.\n            _this.send('saveShiftCollection', _this.get('collectiondata.data'));\n          }\n        });\n      },\n      saveShiftCollection: function (collectiondata) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        let created_by = _this.session.getLoggedInUserId();\n        var shift_collection = collectiondata;\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/shiftcollection';\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            shift_id: shift_id,\n            branch_id: branch_id,\n            created_by: created_by,\n            collection_details: shift_collection\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.error == false && res.message == 'add') {\n              _this.recalculateAmount.allSuccessMessage('Shift totals saved successfully.');\n              _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('shift_report_popup');\n            } else if (res.error == true) {\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('There was a problem saving data. Try again later', 'shift_report_popup');\n            }\n          },\n          complete: function () {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      },\n      updateDkbList() {},\n      updateDoctorList() {},\n      updateList() {\n        var _this = this;\n        _this.send('getPendingPatientRecords');\n      },\n      //This function is used for pure Paylater cases when no part payment was made. It is called from Manage transaction page only.\n      openPayTransactionPopup: function (appointment_id, patient_id, OldRegistrationNo, first_name, middle_name, last_name, received_amount, page_name, prescribe_doctor, chargeCode, total_visit) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var billing_id = 0;\n        var consultancy_fee = 0;\n        var consultancy_print_code = 'SDC';\n        var medicine_print_code = 'MDN';\n        var previous_due_amount = 0; //Nishant 14-Oct-2022 - Set default value\n        var previous_balance_status = 'due'; //Nishant 14-Oct-2022 - Set default value\n        var total_balance_status = ''; //Nishant 14-Oct-2022 - Set default value\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n        if (patient_id != undefined && appointment_id != undefined) {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n              if (res.data != null) {\n                var previous_balance_mode = Math.sign(res.data.due_amount);\n                if (previous_balance_mode == 1) {\n                  previous_balance_status = 'due';\n                  total_balance_status = 'Due';\n                } else if (previous_balance_mode == -1) {\n                  previous_balance_status = 'adv';\n                  total_balance_status = 'Advance';\n                } else if (previous_balance_mode == 0) {\n                  previous_balance_status = 'due';\n                  total_balance_status = 'Due';\n                }\n                previous_due_amount = Math.abs(res.data.due_amount); //Send only positive value\n              }\n              //Nishant 14-Oct-2022 - removed redundant code in if/else passed conditional variables instead.\n              _this.manageTransactionAdvancePayPopup(OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, previous_due_amount, received_amount, page_name, prescribe_doctor, chargeCode, previous_balance_status, total_balance_status, total_visit);\n              // Shubh Tiwari as on 25 April 2023 add default disable\n              $('#dueadv').attr('disabled', 'disabled');\n            },\n            complete: function (res) {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      //Below function is called from Manage transaction list.js page only for Advanced paid amount by Patient but frontdesk user is cancel for that patient due to any reason,\n      AdvanceAmountPaymentPopup: function (OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, doctor_fees, consultancy_print_code, medicine_print_code, total_visit, total_received, pg_amount, page_name, prescribe_doctor, previous_bill_paid, prescribed_shift, prescribed_branch) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var total_balance = Math.abs(parseFloat(total_visit) - parseFloat(total_received)).toFixed(2);\n        var print_value = 'domestic';\n        var shippingResult = '';\n        //Nishant 22-Nov-2022 define variables with default values to refactor code.\n        var previous_balance_mode = 0;\n        var previous_pending = 0;\n        var previous_balance_status = 'due';\n        if (patient_id != undefined && patient_id != '' && appointment_id != undefined && appointment_id != '') {\n          //Nishant 15-Oct-2022 - in advance payment we should get previous appointments due, not latest one. so pass appointment id & billing id also to api call\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n              if (res.data != null) {\n                previous_balance_mode = Math.sign(res.data.due_amount);\n                if (previous_balance_mode == 1) {\n                  previous_balance_status = 'due';\n                } else if (previous_balance_mode == -1) {\n                  previous_balance_status = 'adv';\n                } else if (previous_balance_mode == 0) {\n                  previous_balance_status = 'due';\n                }\n                previous_pending = Math.abs(parseFloat(res.data.due_amount).toFixed(2));\n              }\n              //Nishant 22-nov-2022 - Fix issue I637 for due case also. We need to include previous dues in transaction status calculation.\n              //So bring the calculation from above here when we get previous dues from api\n              var transaction_status = parseFloat(previous_balance_mode * previous_pending) + parseFloat(total_visit) - parseFloat(total_received);\n              var transaction_mode = Math.sign(transaction_status);\n              if (transaction_mode == 1) {\n                var mode_value = '0';\n                var total_balance_status = 'Due';\n              } else if (transaction_mode == -1) {\n                var mode_value = '1';\n                var total_balance_status = 'Advance';\n              } else if (transaction_mode == 0) {\n                var mode_value = '0';\n                var total_balance_status = 'Due';\n              }\n              //Nishant 22-nov-2022 - refactored code to call this function once only outside if/else block above\n\n              _this.send('setMedicineTotalandPendingValue', {\n                OldRegistrationNo: OldRegistrationNo,\n                FirstName: first_name,\n                MiddleName: middle_name,\n                LastName: last_name,\n                VisitDue: total_visit,\n                PreviousBalance: previous_pending,\n                ReceivedAmount: total_received,\n                TotalDue: total_balance,\n                ModeValue: mode_value,\n                patientId: patient_id,\n                PrintValue: print_value,\n                ShippingResult: shippingResult,\n                PageName: page_name,\n                MedicinePrintCode: medicine_print_code,\n                ConsultancyPrintCode: consultancy_print_code,\n                ConsultancyFee: doctor_fees,\n                TotalBalanceStatus: total_balance_status,\n                VisitingId: appointment_id,\n                BillingId: billing_id,\n                PrescribeDoctor: prescribe_doctor,\n                PreviousBalanceStatus: previous_balance_status,\n                totalHidden: parseFloat(total_visit),\n                // - parseFloat(res.data.due_amount),\n                paylaterAmount: 0,\n                PreviousPGAmount: 0,\n                //pg_amount,\n                currentPGAmount: 0,\n                currentPGCharge: 0,\n                PreviousBillPaid: previous_bill_paid,\n                prescribed_shift: prescribed_shift,\n                prescribed_branch: prescribed_branch\n              });\n            },\n            complete: function () {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      // Below function is called from Manage transaction list.js page only for online paid payment detaisl popup,\n      showPaymentDetailsPopup: function (orderId, billingCount) {\n        var _this = this;\n        if (_this._pollTimer) {\n          clearTimeout(_this._pollTimer);\n          _this._pollTimer = null;\n        }\n        _this.set('_activePollBatchId', null);\n        _this.set('showBatchDetails', false);\n        _this.set('currentBatch', null);\n        _this.set('currentRefunds', []);\n        _this.set('cancellationSuccessMessage', '');\n        // Disable refund button if multiple billing records exist for this appointment\n        _this.set('disableRefundButton', billingCount > 1);\n        let utoken = _this.session.getToken();\n        _this.set('isPaymentLoading', true);\n        _this.set('online_payment_details', []);\n        if (orderId != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/payment-details/' + orderId;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              _this.set('isPaymentLoading', false);\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('onlinePaymentDetailsPopup');\n              _this.send('setOnlinePaymentDetails', res.data);\n            },\n            complete: function () {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      // Below function is called from online payment details popup for refund\n      openCancellationRefundPopup: function (paymentData, options) {\n        var _this = this;\n        let optionsObj = options || {};\n        let manageTransactionMode = optionsObj.manageTransactionMode || false;\n        let utoken = _this.session.getToken();\n        let appointmentId = paymentData.appointment_id;\n        if (!appointmentId) {\n          swal('Appointment information not found for this payment!');\n          return;\n        }\n        _this.set('isPaymentLoading', true);\n        // First fetch the appointment details\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + appointmentId,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data) {\n              let appointment = res.data;\n              let rawName = [appointment.first_name, appointment.middle_name, appointment.last_name].filter(Boolean).join(' ');\n              let patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n\n              // Now fetch gateway transactions to verify eligibility\n              $.ajax({\n                url: _environment.default.APP.lumen_api_url + 'v1/gateway-transactions?appointment_ids=' + appointmentId,\n                method: 'GET',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (txnRes) {\n                  _this.set('isPaymentLoading', false);\n                  let transactions = txnRes.error === false && txnRes.data ? txnRes.data : [];\n                  _this.set('gatewayTransactions', transactions);\n                  let eligibleAmount = 0;\n                  let eligibleGateway = paymentData.gateway || 'razorpay';\n                  transactions.forEach(txn => {\n                    if (['success', 'completed'].includes(txn.status) && txn.gateway !== 'manual') {\n                      eligibleAmount += parseFloat(txn.amount) || 0;\n                      eligibleGateway = txn.gateway;\n                    }\n                  });\n                  let row = {\n                    patientName: patientName || 'Unknown Patient',\n                    doctorName: appointment.doctor_name || '',\n                    appointmentId: appointment.id || '',\n                    dateTime: appointment.dateTime || '',\n                    amount: eligibleAmount.toFixed(2),\n                    gateway: eligibleGateway,\n                    visitStatus: appointment.visit_status || 0\n                  };\n\n                  // Disable refund button if visit_status is 2 (completed) for online appointments,\n                  // OR if it was already disabled due to multiple billing records (billingCount > 1)\n                  let alreadyDisabled = _this.get('disableRefundButton') || false;\n                  let disableRefundButton = alreadyDisabled || appointment.appointment_booked_from === 'online' && appointment.visit_status == 2;\n                  _this.set('disableRefundButton', disableRefundButton);\n                  let loggedIn = '';\n                  try {\n                    loggedIn = _this.session.getLoggedInUserName();\n                  } catch (e) {\n                    loggedIn = '';\n                  }\n                  let warning = 'Please note that you, ' + loggedIn + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n                  if (patientName) {\n                    warning = 'Cancelling appointment for: ' + patientName + '. ' + warning;\n                  }\n                  if (eligibleAmount > 0) {\n                    _this.set('cancellationRefundAppointmentRows', [row]);\n                    _this.set('customCancellationTitle', warning);\n                    _this.set('cancellationRefundPopupOpen', true);\n                  } else if (manageTransactionMode) {\n                    _this.showOnlineZeroRefundWarning(appointmentId, warning, patientName);\n                  } else {\n                    _this.set('cancellationRefundAppointmentRows', [row]);\n                    warning += ' No eligible online payment found for refund. The appointment will be cancelled without a refund.';\n                    _this.set('customCancellationTitle', warning);\n                    _this.set('cancellationRefundPopupOpen', true);\n                  }\n                },\n                error: function () {\n                  _this.set('isPaymentLoading', false);\n                  if (manageTransactionMode) {\n                    let $cancelBtn = $('#manage-transaction-cancel');\n                    let $rescheduleBtn = $('#manage-transaction-reschedule');\n                    if ($cancelBtn.length) {\n                      $cancelBtn.attr('disabled', 'disabled');\n                    }\n                    if ($rescheduleBtn.length) {\n                      $rescheduleBtn.attr('disabled', 'disabled');\n                    }\n                  }\n                  swal('Failed to verify payment details for this online appointment. Cancellation is blocked. Please try again.');\n                }\n              });\n            }\n          },\n          error: function () {\n            _this.set('isPaymentLoading', false);\n            if (manageTransactionMode) {\n              let $cancelBtn = $('#manage-transaction-cancel');\n              let $rescheduleBtn = $('#manage-transaction-reschedule');\n              if ($cancelBtn.length) {\n                $cancelBtn.attr('disabled', 'disabled');\n              }\n              if ($rescheduleBtn.length) {\n                $rescheduleBtn.attr('disabled', 'disabled');\n              }\n            }\n            swal('Failed to load appointment details for this online appointment. Cancellation is blocked. Please try again.');\n          }\n        });\n      },\n      // Below function handles confirmation of cancellation and refund from manage-transaction\n      confirmCancellationRefund: function (reason) {\n        var _this = this;\n        let rows = _this.get('cancellationRefundAppointmentRows') || [];\n        if (rows.length === 0) {\n          return;\n        }\n        let row = rows[0];\n        let appointmentId = row.appointmentId;\n        let token = _this.session.getToken();\n        _this.set('cancellationRefundPopupOpen', false);\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + appointmentId + '/cancel',\n          data: {\n            note: reason || 'Cancelled from manage transaction'\n          },\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              let amount = parseFloat(res.amount || 0);\n              // Stop any previous batch polling/UI so only this patient's batch is shown\n              if (_this._pollTimer) {\n                clearTimeout(_this._pollTimer);\n                _this._pollTimer = null;\n              }\n              _this.set('_activePollBatchId', null);\n              _this.set('showBatchDetails', false);\n              _this.set('currentBatch', null);\n              _this.set('currentRefunds', []);\n              _this.set('cancellationSuccessMessage', '');\n              if (amount > 0 && res.batch_id) {\n                let batchId = res.batch_id;\n                let refund = {\n                  id: appointmentId,\n                  patient: row.patientName,\n                  gateway: res.gateway,\n                  amount: res.amount,\n                  status: 'queued',\n                  ref: null,\n                  created_at: new Date().toISOString()\n                };\n                let batch = {\n                  id: batchId,\n                  status: 'processing',\n                  startedAt: 'just now',\n                  refunds: [refund],\n                  counts: {\n                    total: 1,\n                    processed: 0,\n                    pending: 1,\n                    failed: 0,\n                    queued: 1\n                  },\n                  allDone: false\n                };\n                _this.set('currentBatch', batch);\n                _this.set('currentRefunds', [refund]);\n                _this.set('showBatchDetails', true);\n                _this.set('cancellationSuccessMessage', res.message || 'Appointment cancelled successfully. Refund queued.');\n                if (typeof _this.pollCurrentBatch === 'function') {\n                  _this.pollCurrentBatch(batchId);\n                }\n                // Show clear success message to user\n                Swal.fire({\n                  title: 'Success',\n                  text: 'Appointment cancelled successfully. Refund queued.',\n                  icon: 'success',\n                  confirmButtonText: 'OK'\n                });\n              } else {\n                _this.set('cancellationSuccessMessage', res.message || 'Appointment cancelled successfully. No refund applicable.');\n                Swal.fire({\n                  title: 'Success',\n                  text: 'Appointment cancelled successfully. No refund applicable.',\n                  icon: 'success',\n                  confirmButtonText: 'OK'\n                });\n              }\n              _this.set('cancellationRefundAppointmentRows', []);\n              _this.set('customCancellationTitle', '');\n              // Refresh the manage-transaction list so the just-cancelled patient is removed\n              if ($.fn.DataTable.isDataTable('#manage_appointment')) {\n                $('#manage_appointment').DataTable().ajax.reload(null, false);\n              }\n            } else if (res.validation == 'notcancelcurrentdate_appointment') {\n              alert(res.message || 'Cannot cancel current date appointment');\n              _this.set('cancellationRefundAppointmentRows', []);\n              _this.set('customCancellationTitle', '');\n            } else if (res.validation == 'visitcomplete') {\n              alert(res.message || 'Visit already completed');\n              _this.set('cancellationRefundAppointmentRows', []);\n              _this.set('customCancellationTitle', '');\n            } else {\n              alert(res.message || 'Failed to cancel appointment');\n              _this.set('cancellationRefundAppointmentRows', []);\n              _this.set('customCancellationTitle', '');\n            }\n          },\n          error: function () {\n            alert('Failed to cancel appointment. Please try again.');\n            _this.set('cancellationRefundAppointmentRows', []);\n            _this.set('customCancellationTitle', '');\n          }\n        });\n      },\n      closeBatchDetails: function () {\n        if (this._pollTimer) {\n          clearTimeout(this._pollTimer);\n          this._pollTimer = null;\n        }\n        this.set('_activePollBatchId', null);\n        this.set('showBatchDetails', false);\n        this.set('currentBatch', null);\n        this.set('currentRefunds', []);\n        this.set('cancellationSuccessMessage', '');\n      },\n      refreshCurrentBatch: function () {\n        this.refreshCurrentBatch();\n      },\n      clearCancellationSuccessMessage: function () {\n        this.set('cancellationSuccessMessage', '');\n      },\n      pollCurrentBatch: function (batchId) {\n        let _this = this;\n        let token = _this.session.getToken();\n\n        // Stop any in-flight poll from a previous batch\n        if (_this._pollTimer) {\n          clearTimeout(_this._pollTimer);\n          _this._pollTimer = null;\n        }\n        _this.set('_activePollBatchId', batchId);\n        function poll() {\n          if (_this.get('_activePollBatchId') !== batchId) {\n            return;\n          }\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            success: function (res) {\n              if (_this.get('_activePollBatchId') !== batchId) {\n                return;\n              }\n              if (res.error === false) {\n                let batch = _this.get('currentBatch');\n                let allDone = false;\n                if (batch) {\n                  let updatedRefunds = res.refunds.map(r => ({\n                    id: r.appointment_id,\n                    patient: r.patient_name,\n                    patient_id: r.patient_id,\n                    status: r.status,\n                    ref: r.gateway_refund_id || r.arn_rrn_utr,\n                    gateway: r.gateway,\n                    amount: (parseFloat(r.amount) || 0).toFixed(2),\n                    created_at: r.created_at,\n                    order_id: r.order_id,\n                    reason: r.reason\n                  }));\n                  let updatedCounts = {\n                    total: updatedRefunds.length,\n                    processed: updatedRefunds.filter(r => r.status === 'processed').length,\n                    pending: updatedRefunds.filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length,\n                    failed: updatedRefunds.filter(r => r.status === 'failed').length,\n                    queued: updatedRefunds.filter(r => r.status === 'queued').length\n                  };\n                  allDone = updatedRefunds.every(r => r.status === 'processed' || r.status === 'failed');\n                  let updatedBatch = Object.assign({}, batch, {\n                    refunds: updatedRefunds,\n                    status: res.batch ? res.batch.status : batch.status,\n                    counts: updatedCounts,\n                    allDone: allDone\n                  });\n                  _this.set('currentBatch', updatedBatch);\n                  _this.set('currentRefunds', updatedRefunds);\n                }\n                if (batch && !allDone) {\n                  _this._pollTimer = setTimeout(poll, 5000);\n                } else {\n                  _this._pollTimer = null;\n                  _this.set('_activePollBatchId', null);\n                }\n              }\n            }\n          });\n        }\n        poll();\n      },\n      closeCancellationRefundPopup: function () {\n        this.set('cancellationRefundPopupOpen', false);\n        this.set('cancellationRefundAppointmentRows', []);\n        this.set('customCancellationTitle', '');\n      },\n      // Below function is called from Manage transaction list.js page only for pending/partial payment paid amount popup,\n      pendingAmountPaymentPopup: function (OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, doctor_fees, consultancy_print_code, medicine_print_code, total_visit,\n      //data-visit-due-amount = visit_due_amount from query in appointment.php. This is Med + Cons + other chrage total for the visit\n      total_received, pg_amount, page_name, prescribe_doctor, previous_bill_paid, prescribed_shift, prescribed_branch) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var total_balance = Math.abs(parseFloat(total_visit) - (parseFloat(total_received) - parseFloat(pg_amount))).toFixed(2);\n        var print_value = 'domestic';\n        var shippingResult = '';\n        //Nishant 22-Nov-2022 define variables with default values to refactor code.\n        var previous_balance_mode = 0;\n        var previous_pending = 0;\n        var previous_balance_status = 'due';\n        if (patient_id != undefined && patient_id != '' && appointment_id != undefined && appointment_id != '' && billing_id != undefined && billing_id != '') {\n          //Nishant 30-Oct-2022 - in case of partial payments, on manage transaction page also, we need to get old billing dues not the current appointment's. So pass apptid & billid also.\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n              if (res.data != null) {\n                previous_balance_mode = Math.sign(res.data.due_amount);\n                if (previous_balance_mode == 1) {\n                  previous_balance_status = 'due';\n                } else if (previous_balance_mode == -1) {\n                  previous_balance_status = 'adv';\n                } else if (previous_balance_mode == 0) {\n                  previous_balance_status = 'due';\n                }\n                previous_pending = Math.abs(parseFloat(res.data.due_amount).toFixed(2));\n              }\n              //Nishant 22-nov-2022 - Fix issue I637. We need to include previous dues in transaction status calculation.\n              //So bring the calculation from above here when we get previous dues from api\n              var transaction_status = parseFloat(previous_balance_mode * previous_pending) + parseFloat(total_visit) - (parseFloat(total_received) - parseFloat(pg_amount));\n              var transaction_mode = Math.sign(transaction_status);\n              if (transaction_mode == 1) {\n                var mode_value = '0';\n                var total_balance_status = 'Due';\n              } else if (transaction_mode == -1) {\n                var mode_value = '1';\n                var total_balance_status = 'Advance';\n                //TODO-Check if needed to add back pg amount for payments 22Nov22: total_balance = total_balance + parseFloat(pg_amount);\n              } else if (transaction_mode == 0) {\n                var mode_value = '0';\n                var total_balance_status = 'Due';\n              }\n              //Nishant 22-nov-2022 - refactored code to call this function once only outside if/else block above\n\n              _this.send('setMedicineTotalandPendingValue', {\n                OldRegistrationNo: OldRegistrationNo,\n                FirstName: first_name,\n                MiddleName: middle_name,\n                LastName: last_name,\n                VisitDue: total_visit,\n                PreviousBalance: previous_pending,\n                ReceivedAmount: total_received,\n                TotalDue: total_balance,\n                ModeValue: mode_value,\n                patientId: patient_id,\n                PrintValue: print_value,\n                ShippingResult: shippingResult,\n                PageName: page_name,\n                MedicinePrintCode: medicine_print_code,\n                ConsultancyPrintCode: consultancy_print_code,\n                ConsultancyFee: doctor_fees,\n                TotalBalanceStatus: total_balance_status,\n                VisitingId: appointment_id,\n                BillingId: billing_id,\n                PrescribeDoctor: prescribe_doctor,\n                PreviousBalanceStatus: previous_balance_status,\n                totalHidden: parseFloat(total_visit),\n                // - parseFloat(res.data.due_amount), this should have been just the visit due amount  - Nishant 4/Nov/2022\n                paylaterAmount: 0,\n                PreviousPGAmount: 0,\n                //pg_amount,\n                currentPGAmount: 0,\n                PreviousBillPaid: previous_bill_paid,\n                currentPGCharge: 0,\n                prescribed_shift: prescribed_shift,\n                prescribed_branch: prescribed_branch\n              });\n              // Shubh Tiwari as on 25 April 2023 add default disable\n              $('#dueadv').attr('disabled', 'disabled');\n            },\n            complete: function () {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      getDoctorCharges(doctor_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        //var doctor_id =  $('.appointment_doctor_id').val();\n        var location_id = _this.session.getLocation().split('-')[0];\n        var base_url = _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id + '/' + location_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doctorcharges', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      cancelAppointment() {\n        var id = this.cancel_appointment_id;\n        if ($.trim($('textarea[name=note]').val()) == '') {\n          alert('Please enter a reason for cancellation.');\n          $('textarea[name=note]').focus();\n          return false;\n        }\n        if ($.trim($('textarea[name=note]').val().length) < 5) {\n          alert('Please enter minimum five characters reason for cancellation.');\n          $('textarea[name=note]').focus();\n          return false;\n        }\n        this.set('note', $('textarea[name=note]').val());\n        $('#notebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        // $('#notebox').addClass('fade');\n        var note = this.note;\n        var _this = this;\n        let token = _this.session.getToken();\n        var utoken = this.session.getLoggedInUserId();\n        var mode = _this.get('currentCancelMode');\n        if (mode === 'online') {\n          _this.cancelOnlineAppointmentById(id, note, token);\n        } else {\n          _this.cancelClinicAppointment(id, note, token, utoken);\n        }\n      },\n      closeNoteBox() {\n        $('#notebox').css('display', 'none');\n        $('#CancelAllnotebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        // $('#notebox').addClass('fade');\n        this.set('note', null);\n        this.set('cancel_note', null);\n      },\n      cancelSelectedAppointment() {\n        let _this = this;\n        let $selected = $('#manage_appointment tbody input[type=\"radio\"]:checked');\n        if ($selected.length === 0) {\n          alert('Please make a selection.');\n          return false;\n        }\n        let appointmentId = $.trim($selected.val());\n        let source = $.trim($selected.attr('data-appointment-booked-from') || '');\n        if (source) {\n          _this.dispatchCancelBySource(appointmentId, source);\n        } else {\n          _this.resolveAndDispatchCancel(appointmentId, $selected);\n        }\n      },\n      showNoteDialog(mode) {\n        if (typeof $('input:radio:checked').val() == 'undefined') {\n          alert('Please make a selection.');\n          return false;\n        }\n        this.set('currentCancelMode', mode || 'clinic');\n        $('#notebox').addClass('in');\n        $('#notebox').css('display', 'block');\n        $('body').addClass('modal-open');\n        // $('#notebox').removeClass('fade');\n        $('textarea[name=note]').val('');\n        $('textarea[name=note]').focus();\n        var pending_amount = $('.pending_amount').attr('data-pending-amount');\n        if (pending_amount != '') {\n          $('#advance-payment-refund-note').css('display', 'block');\n          $('#advance-payment-refund-amount').empty().text(pending_amount);\n        } else {\n          $('#advance-payment-refund-note').css('display', 'none');\n        }\n        this.set('cancel_appointment_id', $('input:radio:checked').val());\n      },\n      setupRescheduleAppointment(redirectPage) {\n        if ($('input:radio:checked').length > 0 && $('input:radio:checked').val() > 0) {\n          var id = $('input:radio:checked').val();\n          var source = $.trim($('input:radio:checked').attr('data-appointment-booked-from') || '');\n          var _this = this;\n          if (source) {\n            if (source.toLowerCase() === 'online') {\n              Swal.fire({\n                title: 'Reschedule not available',\n                text: 'Reschedule is not available for online appointments. Please cancel and book a new appointment.',\n                icon: 'error',\n                width: 650\n              });\n              return;\n            }\n            _this.set('id', id);\n            _this.set('redirectPage', redirectPage);\n            _this.transitionToRoute('cancel-appointment.reschedule', id);\n          } else {\n            _this.set('id', id);\n            _this.set('redirectPage', redirectPage);\n            var requestId = ++_this._sourceLookupRequestId;\n            var utoken = _this.session.getToken();\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + id,\n              method: 'GET',\n              headers: {\n                Authorization: `Bearer ${utoken}`\n              },\n              dataType: 'json',\n              success: function (res) {\n                if (requestId !== _this._sourceLookupRequestId) {\n                  return;\n                }\n                if (res.data && res.data.appointment_booked_from) {\n                  let resolvedSource = res.data.appointment_booked_from.toLowerCase().trim();\n                  if (!_this.sourceLookupCache) {\n                    _this.set('sourceLookupCache', {});\n                  }\n                  _this.sourceLookupCache[id] = resolvedSource;\n                  if (resolvedSource === 'online') {\n                    Swal.fire({\n                      title: 'Reschedule not available',\n                      text: 'Reschedule is not available for online appointments. Please cancel and book a new appointment.',\n                      icon: 'error',\n                      width: 650\n                    });\n                    return;\n                  }\n                  _this.transitionToRoute('cancel-appointment.reschedule', id);\n                } else {\n                  Swal.fire({\n                    title: 'Unable to determine source',\n                    text: 'Unable to determine the appointment source. Please try again or contact support.',\n                    icon: 'error'\n                  });\n                }\n              },\n              error: function () {\n                if (requestId !== _this._sourceLookupRequestId) {\n                  return;\n                }\n                Swal.fire({\n                  title: 'Lookup failed',\n                  text: 'Failed to verify appointment details. Please try again.',\n                  icon: 'error'\n                });\n              }\n            });\n          }\n        } else {\n          alert('Please select an appointment!');\n        }\n      },\n      getPreviousPGCharge: function (appointment_id, correct_bill = \"0\") {\n        var _this = this;\n        _this.getPreviousPGCharge(appointment_id, correct_bill);\n      },\n      getPGCharge: function (appointment_id, billing_id) {\n        var _this = this;\n        _this.getPGCharge(appointment_id, billing_id);\n      },\n      transactionAppointmentSearch() {\n        var _this = this;\n        var doctor_id = _this.get('doctor_id');\n        var doctorId = doctor_id == undefined ? '' : doctor_id;\n        var branch_id = _this.get('branch_id');\n        var branch_id = _this.get('branch_id');\n        var branchId = branch_id == undefined ? _this.session.getLocation().split('-')[0] : branch_id;\n        var fromdate = $('#from_date').val() || '';\n        var todate = $('#to_date').val() || '';\n        var statusId = _this.get('status_id');\n        if (!statusId) {\n          alert('Please select Status.');\n          return;\n        }\n        var patientinfo = $('#patient_info').val() || '';\n        var mobileno = $('#mobile_no').val() || '';\n        var registration_no = $('#registration').val() || '';\n        var appointment_id = $('#appointment_id').val() || '';\n        _this.getPendingPatientRecords(doctorId, branchId, fromdate, todate, statusId, patientinfo, mobileno, registration_no, appointment_id);\n      },\n      applyPGCharge: function (PG, billingId, visitId, isChecked) {\n        var _this = this;\n        _this.send('applyPGChargeOnBillPatient', PG, billingId, visitId, isChecked);\n      },\n      getPendingPatientRecords: function () {\n        var _this = this;\n        var doctor_id = _this.get('doctor_id');\n        if (doctor_id == undefined) {\n          var doctorId = '';\n        } else {\n          var doctorId = doctor_id;\n        }\n        var branch_id = _this.get('branch_id');\n        if (branch_id == undefined) {\n          var branch_detail = _this.session.getLocation().split('-');\n          var branchId = branch_detail[0];\n        } else {\n          var branchId = branch_id;\n        }\n        var from_date = $('#from_date').val();\n        if (from_date == undefined) {\n          var fromdate = '';\n        } else {\n          var fromdate = from_date;\n        }\n        var to_date = $('#to_date').val();\n        if (to_date == undefined) {\n          var todate = '';\n        } else {\n          var todate = to_date;\n        }\n        var status_id = _this.get('status_id');\n        if (status_id == undefined) {\n          var statusId = 2;\n        } else {\n          var statusId = status_id;\n        }\n        var patient_info = $('#patient_info').val();\n        if (patient_info == undefined) {\n          var patientinfo = '';\n        } else {\n          var patientinfo = patient_info;\n        }\n        var mobile_no = $('#mobile_no').val();\n        if (mobile_no == undefined) {\n          var mobileno = '';\n        } else {\n          var mobileno = mobile_no;\n        }\n        var registration = $('#registration').val();\n        if (registration == undefined) {\n          var registration_no = '';\n        } else {\n          var registration_no = registration;\n        }\n        var appointment_id = $('#appointment_id').val();\n        if (appointment_id == undefined) {\n          var appointment_id = '';\n        } else {\n          var appointment_id = appointment_id;\n        }\n        _this.getPendingPatientRecords(doctorId, branchId, fromdate, todate, statusId, patientinfo, mobileno, registration_no, appointment_id);\n      },\n      getPatientAddress: function (patient_id, appointment_id) {\n        this.set('patient_id', patient_id);\n        this.set('appointment_id', appointment_id);\n        this.getPatientAddress(patient_id, appointment_id);\n      },\n      getAppointmentId: function (appointment_id) {\n        this.set('print_appointment_id', appointment_id);\n      },\n      visitTransactionList: function (visit_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var transation_array = [];\n        if (visit_id != undefined && billing_id != undefined) {\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'billing/transationdetails',\n            method: 'POST',\n            data: {\n              bill_id: billing_id,\n              visit_id: visit_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (trans_res) {\n              transation_array = [];\n              $.each(trans_res, function (index, value_array) {\n                $.each(value_array, function (index, value_array2) {\n                  transation_array.push(value_array2);\n                });\n              });\n              _this.send('getTransactionDetails', transation_array);\n            },\n            complete: function () {}\n          });\n        }\n      },\n      openTransactionPopup: function (billing_id, appointment_id, patient_id, OldRegistrationNo, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, total_amount, received_amount, pg_amount, page_name, prescribe_doctor) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n        if (patient_id != undefined && appointment_id != undefined) {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              if (res.data != null) {\n                _this.set('pending_amount', res.data.due_amount);\n                _this.set('pending_list', res);\n                var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n                _this.openTransactionPopup(OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, total_amount, res.data.due_amount, received_amount, pg_amount, page_name, prescribe_doctor);\n              } else {\n                _this.openTransactionPopup(OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, total_amount, '0', received_amount, pg_amount, page_name, prescribe_doctor);\n              }\n            },\n            complete: function (res) {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      openPaymentPopup: function (patient_id, prescribe_doc_name) {\n        this.openPaymentPopup(patient_id, prescribe_doc_name);\n      },\n      ResetPGAmount: function () {\n        var _this = this;\n        _this.set('PGAmount', 0);\n      },\n      getPrintoption: function (appointment_id) {\n        var _this = this;\n        _this.getPrintoption(appointment_id);\n      },\n      getMedicinePrepared: function (appointment_id) {\n        var _this = this;\n        _this.getMedicinePrepared(appointment_id);\n      },\n      getMedicineDiscountButton: function (data) {\n        var _this = this;\n        _this.set('medicine_discount_remove_button', data);\n      },\n      getTotalTransaction: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var transation_array = [];\n        if (appointment_id != undefined && billing_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/totalamount/' + appointment_id + '/' + billing_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (trans_res) {\n              transation_array = [];\n              $.each(trans_res, function (index, value_array) {\n                $.each(value_array, function (index, value_array2) {\n                  transation_array.push(value_array2);\n                });\n              });\n              _this.send('getTotalTransactionDetails', transation_array);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      getPatientTransactions: function (patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var transation_array = [];\n        if (patient_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/patienttransactions/' + patient_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (trans_res) {\n              transation_array = [];\n              $.each(trans_res, function (index, value_array) {\n                $.each(value_array, function (index, value_array2) {\n                  transation_array.push(value_array2);\n                });\n              });\n              _this.send('getTotalTransactionDetails', transation_array);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      applyDiscountCharge() {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var disc_value = $('.discount_percentage').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var medprint = $('.grdtot').attr('data-medprint');\n        var garndt_value = parseInt($('.onthemed').text());\n        if (disc_value == '') {\n          var message = i18n.t('billing.messages.selectdiscount');\n          _this.flashes.danger(message);\n        } else if (disc_value < 1) {\n          var message = i18n.t('billing.messages.notless');\n          _this.flashes.danger(message);\n          $('.discount_percentage').val('');\n        } else if (disc_value > 100) {\n          var message = i18n.t('billing.messages.notgreater');\n          _this.flashes.danger(message);\n          $('.discount_percentage').val('');\n        } else {\n          swal({\n            title: 'Are you sure you want to apply ' + disc_value + '% discount on medicine total=' + garndt_value,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              event.preventDefault();\n              $('#discount_reason').val('');\n              _this.set('reasonparameter', '');\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('discountspopup');\n              var data = {\n                medicine_total: garndt_value,\n                discount: disc_value,\n                bill_id: bill_id,\n                visit_id: visit_id,\n                medprint: medprint\n              };\n              _this.set('reasonparameter', data);\n              $('#discount_reason').focus();\n            }\n          });\n        }\n      },\n      addDiscountReason: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var resone_data = _this.get('reasonparameter');\n        let user_id = this.session.getLoggedInUserId();\n        var garndt_value = resone_data.medicine_total;\n        var disc_value = resone_data.discount;\n        var bill_id = resone_data.bill_id;\n        var visit_id = resone_data.visit_id;\n        var medprint = resone_data.medprint;\n        $('#discount_reason').empty();\n        var error = '';\n        var discount_reason = $.trim($('#discount_reason').val());\n        if (discount_reason == '') {\n          error += \"<p align='center'>Please enter reason</p>\";\n          $('#discount_reason').focus();\n        } else if (discount_reason.length < 5) {\n          error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n          $('#discount_reason').focus();\n        }\n        if (error == '') {\n          _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('discountspopup');\n          var _this = this;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/discountonthefly';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              medicine_total: garndt_value,\n              discount: disc_value,\n              bill_id: bill_id,\n              visit_id: visit_id,\n              reason: discount_reason,\n              user_id: user_id,\n              medprint: medprint\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              //$('.perremove').remove();\n              if (res.error == false && res.message == 'applydiscount') {\n                var message = i18n.t('billing.messages.applydiscount', {\n                  object: disc_value\n                });\n                _this.flashes.success(message);\n                //$('.grdtot').val(res.discount_value);\n                _this.set('onthefly_discount', res.discount_percentage);\n                _this.set('remove_discount_button', res.discount);\n                _this.set('medicine_discount_reason', res.reason);\n                _this.set('medicine_print_code', res.medicine_print_code);\n                $('.discount_percentage').attr('disabled', true);\n                $('.disdisable').attr('disabled', true);\n                _this.send('onChangesPGCalculation', 'remove', res.discount_amount);\n                // This below code commented by shubh tiwari as on 28-07-2022\n                //_this.recalculateAmount.updateTotal(garndt_value, 'add', '', 'billpatient_add_discount');\n              } else if (res.error == true && res.message == 'notgreater') {\n                var message = i18n.t('billing.messages.notgreater');\n                _this.flashes.danger(message);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function (res) {\n              $('.discount_percentage').val('');\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        } else {\n          $('#discounterror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#discounterror .alert').fadeToggle(5000);\n        }\n      },\n      removeMedicineDiscount(discount) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var percentage_value = $('.onthefly_per').text();\n        var discount_value = parseFloat($('.onthemed').text()).toFixed(2);\n        swal({\n          title: 'Are you sure you want to remove ' + percentage_value + ' discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/discoutremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                discount: discount\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'discount_remove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Discount ' + percentage_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  _this.set('medicine_discount', 0);\n                  _this.set('remove_discount_button', '');\n                  _this.set('medicine_discount_reason', '');\n                  _this.set('medicine_print_code', 'MDN');\n                  $('.discount_percentage').attr('disabled', false);\n                  $('.disdisable').attr('disabled', false);\n                  var med_main = discount_value;\n                  var medicine_percentage = parseInt(percentage_value);\n                  var decou = (medicine_percentage / 100).toFixed(2); //its convert 10 into 0.10\n                  var med_mult = med_main * decou; // gives the value for subtract from main value\n                  var med_eVal = isNaN(med_mult) ? 0.0 : med_mult;\n                  _this.send('onChangesPGCalculation', 'add', med_eVal);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                $('.grdtot').val(discount_value);\n                // This below code commented by shubh tiwari as on 28-07-2022\n                //_this.recalculateAmount.updateTotal(discount_value,'remove','','billpatient_remove_discount');\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        });\n      },\n      // for consultancy weave function\n      consultancyWave: function () {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var consultancy = $('.consultancy').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var consprint = $('.consultancy').attr('data-consprint');\n        if (consultancy == '0') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          swal({\n            title: 'Are you sure you want to waive ' + consultancy + ' consultancy fees?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              event.preventDefault();\n              $('#consultancy_discount_reason').val('');\n              _this.set('consultancyWaveparameter', '');\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('consultancydiscountpopup');\n              var data = {\n                consultancy: consultancy,\n                bill_id: bill_id,\n                visit_id: visit_id,\n                consprint: consprint\n              };\n              _this.set('consultancyWaveparameter', data);\n              $('#consultancy_discount_reason').focus();\n            }\n          });\n        }\n      },\n      consultancyWaivedReason: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var resone_data = _this.get('consultancyWaveparameter');\n        let user_id = this.session.getLoggedInUserId();\n        //console.log(resone_data);\n        var consultancy = resone_data.consultancy;\n        var bill_id = resone_data.bill_id;\n        var visit_id = resone_data.visit_id;\n        var consprint = resone_data.consprint;\n        $('#consultancy_discount_reason').empty();\n        var error = '';\n        var discount_reason = $.trim($('#consultancy_discount_reason').val());\n        if (discount_reason == '') {\n          error += \"<p align='center'>Please enter reason</p>\";\n          $('#consultancy_discount_reason').focus();\n        } else if (discount_reason.length < 5) {\n          error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n          $('#consultancy_discount_reason').focus();\n        }\n        if (error == '') {\n          _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('consultancydiscountpopup');\n          var _this = this;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/consultancywaive';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              consultancy: consultancy,\n              bill_id: bill_id,\n              visit_id: visit_id,\n              reason: discount_reason,\n              user_id: user_id,\n              consprint: consprint\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              if (res.error == false && res.message == 'consultancywaved') {\n                var message = i18n.t('billing.messages.consultancywaived', {\n                  object: consultancy\n                });\n                _this.flashes.success(message);\n                _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n                _this.set('consultancy_discount', res.percentage);\n                _this.set('consultancy_waive_type', res.waive_type);\n                _this.set('consultancy_print_code', res.print_code);\n                _this.set('consultancy_waived_reason', res.reason);\n                _this.set('consultancy_remove_button', res.billing_id);\n                _this.set('consultancy_waived_amount', 0);\n                $('.consdisable').attr('disabled', true);\n                _this.send('onChangesPGCalculation', 'remove', consultancy);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function (res) {\n              // This below code commented by shubh tiwari as on 28-07-2022\n              //var resone_data = _this.get('consultancyWaveparameter');\n              //var waive_consultancy = parseInt(resone_data.consultancy);\n              //_this.recalculateAmount.updateTotal(waive_consultancy,'add','','billpatient_waived_consultancy');\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        } else {\n          $('#conwaveerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#conwaveerror .alert').fadeToggle(5000);\n        }\n      },\n      removeWaiveConsutancy() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var consultancy_value = parseInt($('.cons_dis').text());\n        swal({\n          title: 'Are you sure you want to remove consultancy discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/consultanyremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                bill_id: bill_id,\n                visit_id: visit_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'cwaiveremove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Consultancy fees ' + consultancy_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  _this.set('consultancy_fees', consultancy_value);\n                  _this.set('consultancy_discount', 0);\n                  _this.set('consultancy_waive_type', '');\n                  _this.set('consultancy_print_code', 'SDC');\n                  _this.set('consultancy_waived_reason', '');\n                  _this.set('consultancy_remove_button', '');\n                  _this.set('consultancy_waived_amount', consultancy_value);\n                  $('.cons_dis').removeClass('discount');\n                  $('.consdisable').attr('disabled', false);\n                  _this.send('onChangesPGCalculation', 'add', consultancy_value);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                // This below code commented by shubh tiwari as on 28-07-2022\n                //$('.consultancy').val(consultancy_value);\n                //var waive_consultancy = parseInt(consultancy_value);\n                //_this.recalculateAmount.updateTotal(waive_consultancy,'remove','','billpatient_remove_consultancy');\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        });\n      },\n      addCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var value = $('#medicine_charge option:selected').val();\n        var label = $('#medicine_charge option:selected').text();\n        var charge_id = $('#medicine_charge option:selected').data('cid');\n        var shipping = $('#medicine_charge option:selected').data('shipping-related');\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        let user_id = _this.session.getLoggedInUserId();\n        if (value == '') {\n          var message = i18n.t('billing.messages.selectcharge');\n          _this.flashes.danger(message);\n        } else {\n          if (label == 'Other') {\n            event.preventDefault();\n            $('#charge_name').val('');\n            $('#charge_amount').val('');\n            $('#charge_code').val('');\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('OtherCharge');\n            $('#charge_name').focus();\n          } else {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/addothercharge';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                bill_id: bill_id,\n                visit_id: visit_id,\n                patient_id: patient_id,\n                charge_amount: value,\n                charge_code: charge_id,\n                charge_name: label,\n                user_id: user_id,\n                shipping: shipping\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                //$('.perremove').remove();\n                if (res.error == false && res.message == 'add') {\n                  var message = i18n.t('billing.messages.addothercharge', {\n                    object: label\n                  });\n                  _this.flashes.success(message);\n                  _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                  _this.send('onChangesPGCalculation', 'add', value);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  _this.flashes.danger(message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n            // This below code commented by shubh tiwari as on 28-07-2022\n            //_this.send('getAddChargeList',_this.get('chargeArray').addObject(data));\n            //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n            //_this.recalculateAmount.updateTotal(value, 'add');\n          }\n          $('#medicine_charge')[0].selectedIndex = 0;\n          if (value == 'Other') {\n            $('option[data-cid=' + charge_id + ']').attr('disabled', false);\n          } else {\n            $('option[data-cid=' + charge_id + ']').attr('disabled', true);\n          }\n        }\n        if (shipping == 1) {\n          $('#dispatch').prop('checked', true);\n        }\n      },\n      removeAddedOtherCharge(id, charge_amount, charge_name, billing_id, appointment_id, shipping) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        swal({\n          title: 'Are you sure you want to delete this ' + charge_name,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/chargeremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              data: {\n                id: id,\n                bill_id: billing_id,\n                visit_id: appointment_id\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'charge_remove') {\n                  var message = i18n.t('billing.messages.removeothercharge', {\n                    object: charge_name\n                  });\n                  _this.flashes.success(message);\n                  _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                  _this.send('onChangesPGCalculation', 'remove', charge_amount);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  _this.flashes.danger(message);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $(\"#medicine_charge option:contains('\" + charge_amount + \"')\").removeAttr('disabled');\n                }, 500);\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n            if (shipping == 1) {\n              $('#dispatch').prop('checked', false);\n            }\n            var script = $('option[value=' + charge_amount + ']').removeAttr('disabled');\n            _this.recalculateAmount.timeBasedScriptExecution(script);\n          }\n        });\n      },\n      addOtherCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        $('#charge_name').empty();\n        $('#charge_amount').empty();\n        $('#charge_code').empty();\n        var error = '';\n        var charge_name = $('#charge_name').val();\n        var charge_amount = $('#charge_amount').val();\n        var charge_code = $('#charge_code').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        let user_id = _this.session.getLoggedInUserId();\n        var shipping = 0;\n        //var shipping = $('#medicine_charge option:selected').data('shipping-related');\n        //let charge_id = Math.random().toString(36).substring(7);\n        if (charge_name == '') {\n          error += \"<p align='center'>Please enter Charge Name</p>\";\n          $('#charge_name').focus();\n        } else if (charge_code == '') {\n          error += \"<p align='center'>Please enter Charge Code</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code != charge_code.match(/^[a-zA-Z\\s]+$/)) {\n          error += \"<p align='center'>Please input alphabet characters only</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code.length < 2) {\n          error += \"<p align='center'>Charge code : min 2 character allowed</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code.length > 3) {\n          error += \"<p align='center'>Charge code : max 3 character allowed</p>\";\n          $('#charge_code').focus();\n        } else if (charge_amount == '') {\n          error += \"<p align='center'>Please enter Charge Amount</p>\";\n          $('#charge_amount').focus();\n        }\n        if (error == '') {\n          _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('OtherCharge');\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/addothercharge';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              bill_id: bill_id,\n              visit_id: visit_id,\n              patient_id: patient_id,\n              charge_amount: charge_amount,\n              charge_code: charge_code,\n              charge_name: charge_name,\n              user_id: user_id,\n              shipping: shipping\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              //$('.perremove').remove();\n              if (res.error == false && res.message == 'add') {\n                var message = i18n.t('billing.messages.addothercharge', {\n                  object: charge_name\n                });\n                _this.flashes.success(message);\n                _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                _this.send('onChangesPGCalculation', 'add', charge_amount);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function () {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        } else {\n          $('#chargeerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#chargeerror .alert').fadeToggle(5000);\n        }\n      },\n      onChangesAddCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var charge_id = event.target.getAttribute('data-chargeid');\n        var billing_id = $('input:hidden[name=billing_id]').val();\n        var visiting_id = $('input:hidden[name=visiting_id]').val();\n        var charge_amount = event.target.value;\n        if (charge_amount != '' && (charge_id != undefined || charge_id == '')) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'billing/updateothercharge',\n            data: {\n              charge_id: charge_id,\n              charge_amount: charge_amount,\n              billing_id: billing_id,\n              visiting_id: visiting_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              if (res.error == true && res.actions == 'message') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.success(message);\n              } else if (res.error == false && res.message == 'update') {\n                _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                _this.send('onChangesPGCalculation');\n              }\n            },\n            error: function (res) {\n              // console.error(res);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        } else {\n          var message = i18n.t('billing.messages.emptyAddedchargeinput', {\n            object: charge_name\n          });\n          _this.flashes.danger(message);\n        }\n      },\n      onKeyupPGCalculation: function () {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var pg_charge = event.target.value;\n        //console.log(pg_charge);\n        var ischecked = $('input[name=pagepayment_gateway_checkbox]').is(':checked');\n        var billing_id = $('input:hidden[name=billing_id]').val();\n        var visiting_id = $('input:hidden[name=visiting_id]').val();\n        if (pg_charge != '' && ischecked == true) {\n          _this.send('applyPGChargeOnBillPatient', pg_charge, billing_id, visiting_id, true);\n        } else if (pg_charge == '') {\n          pg_charge = 0;\n          _this.send('applyPGChargeOnBillPatient', pg_charge, billing_id, visiting_id, false);\n          var message = i18n.t('billing.validationErrorMessage.payment_gateway_charge');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'pagepayment_gateway_charge');\n          _this.set('pgAmountText', 0);\n          _this.set('PGAmount', 0);\n          _this.set('PGChargePercentage', '');\n          $('input[name=pagepayment_gateway_checkbox]').focus();\n        }\n      },\n      onlyAllow2Decimals(e1, event) {\n        var boxId = '#' + event.path[0].id;\n        var t = e1.toString().split('.');\n        if (t[1] != null) {\n          if (t[1].length == 2) {\n            this.limitDecimal = e1;\n          }\n          if (t[1].length >= 2) {\n            e1 = this.limitDecimal;\n            return false;\n          }\n        }\n      },\n      onChangesPGCharge: function (event) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var pgpercentage = event.target.getAttribute('pgpercentage');\n        //console.log(event.target.value);\n        if (event.target.value != '') {\n          //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n          _this.recalculateAmount.updateTotal();\n        } else {\n          var message = i18n.t('billing.messages.emptyAddedchargeinput', {\n            object: pgpercentage\n          });\n          _this.flashes.danger(message);\n        }\n      },\n      paymentcomplete(medicine_details, patient_details, recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, print_id, eventAction) {\n        //console.log(medicine_details);\n        // var _this = this;\n        /* if (medicine_details != undefined && patient_details != undefined) {\n                  //This below code is used for calling the reprintOptions function to make prints according to checkbox, Rahul khan. 27 sept 2019\n                  _this.getRePrints(recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, print_id, eventAction);\n              }*/\n      },\n      paymentsaved(res, redirect_page) {\n        // console.log(res);\n        var _this = this;\n        let i18n = _this.get('i18n');\n        if (res.error == true && res.actions == 'datainsufficient') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          $('#paymenterrors').html('<div class=\"alert alert-danger\">' + message + '</div>');\n        } else if (res.error == false && res.actions == 'add' && redirect_page == 'Bill Patient') {\n          var message = i18n.t('billing.messages.savedPayment');\n          _this.flashes.success(message);\n          if (_this.get('appController').get('lastRoute') == 'billinghistory') {\n            _this.transitionToRoute('billing.history');\n          } else {\n            _this.transitionToRoute('billing.list');\n          }\n        } else if (res.error == false && res.actions == 'add' && redirect_page == 'Manage Transaction') {\n          var message = i18n.t('billing.messages.savedPayment');\n          _this.flashes.success(message);\n          _this.transitionToRoute('manage-transaction.list');\n          _this.send('getPendingPatientRecords');\n        } else if (res.error == false && res.actions == 'add' && redirect_page == 'Billed Patient Details') {\n          var message = i18n.t('billing.messages.savedPayment');\n          _this.flashes.success(message);\n          if (_this.get('appController').get('lastRoute') == 'managetransaction') {\n            _this.transitionToRoute('manage-transaction.list');\n          } else {\n            const currentRouteName = _this.get('routing.currentRouteName');\n            const currentRouteInstance = Ember.getOwner(_this).lookup(`route:${currentRouteName}`);\n            currentRouteInstance.refresh();\n          }\n        } else if (res.error == false && res.actions == 'add' && redirect_page == 'Correct Bill') {\n          var message = i18n.t('billing.messages.savedPayment');\n          _this.flashes.success(message);\n          _this.transitionToRoute('billing.history');\n        }\n      },\n      clearDisccountinput: function () {\n        $('.discount_percentage').val('');\n      },\n      getVialData: function (changeVial) {\n        //console.log(changeVial);\n        this.set('changeVialData', changeVial);\n      },\n      pastMedicineEditPopup: function (appointment_id, billing_id, patient_id, history_visit_id) {\n        var date = this.billDate;\n        var date_formate = moment(date).format('DD-MM-YYYY');\n        swal({\n          title: 'Are you sure you want to edit past transaction? This will update old bill and effect daily collections for ' + date_formate + '.',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            this.transitionToRoute('billing.pastprescribeedit', appointment_id, billing_id, patient_id, history_visit_id);\n          }\n        });\n      },\n      medicineEditPopup: function (appointment_id, billing_id, patient_id, history_visit_id, prescribe_doc_name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'checkdispatch',\n          data: {\n            id: appointment_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (dispatch_result) {\n            if (dispatch_result.d_status == 'Yes' && dispatch_result.action == \"exists_dispatch\" && dispatch_result.error == false) {\n              var message = i18n.t('billing.messages.checkPatientDispatch', {\n                object: dispatch_result.user_name.Name,\n                date: dispatch_result.dispatch_date\n              });\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'billpatient');\n            } else if (dispatch_result.action == \"not_dispatch\" && dispatch_result.error == true) {\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'tabsexist',\n                data: {\n                  p_id: patient_id\n                },\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.p_edit_status == 'Yes' && res.action == \"exists_data\" && res.error == false) {\n                    var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n                      object: prescribe_doc_name,\n                      page: 'editing a Presciption/Case taking',\n                      branch_name: res.branch_name.title,\n                      shift_name: res.shift_name\n                    });\n                    _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'billpatient');\n                  } else if (res.action == \"no_exists_data\" && res.error == true) {\n                    swal({\n                      title: 'Are you sure you want to edit prescription?',\n                      icon: 'warning',\n                      buttons: true,\n                      dangerMode: true\n                    }).then(willDelete => {\n                      if (willDelete) {\n                        _this.transitionToRoute('billing.prescribeedit', appointment_id, billing_id, patient_id, history_visit_id);\n                      }\n                    });\n                  }\n                }\n              });\n            }\n          }\n        });\n      },\n      /* This function get Payment Mode and make out side the action block*/\n      getPaymentMode: function () {\n        this.getPaymentMode();\n      },\n      /* On change set payment mode value for mode on popup of payment Shubh Tiwari 02-01-2020*/\n      changePopupPaymentMode: function (item, name, isChecked) {\n        var _this = this;\n        if (isChecked) {\n          _this.get('selectedPaymentOptions').addObject(item);\n          _this.get('selectedPaymentName').addObject(name);\n        } else {\n          _this.get('selectedPaymentOptions').removeObject(item);\n          _this.get('selectedPaymentName').removeObject(name);\n        }\n        let payment_option_id = _this.get('selectedPaymentOptions');\n        let payment_option_name = _this.get('selectedPaymentName');\n        var html = '';\n        payment_option_id.forEach(function (element, i) {\n          var get_fill_amount = $('#payment_' + element).val();\n          var get_fill_reference_no = $('#reference_no_' + element).val();\n          if (get_fill_amount == undefined || get_fill_reference_no == undefined) {\n            var mode_amount = '';\n            var reference_no = '';\n          } else {\n            var mode_amount = get_fill_amount;\n            var reference_no = get_fill_reference_no;\n          }\n          if (element == 1) {\n            html += '<div class=\"row form-group\">';\n            html += '<div class=\"col-md-3\"><label for=\"' + payment_option_name[i] + '\">' + payment_option_name[i] + ' <i class=\"fas fa-rupee-sign\"></i> :</label></div>';\n            html += '<div class=\"col-md-9\"><input type=\"text\" class=\"form-control  numeric payment-method payment_' + element + ' mode-price\" id=\"payment_' + element + '\" data-mode=\"' + payment_option_name[i] + '\" name=\"payment_' + element + '\" value=\"' + mode_amount + '\" placeholder=\"Please enter ' + payment_option_name[i] + ' amount\"></div>';\n            html += '<div><input type=\"hidden\" class=\"form-control reference_no\" id=\"reference_no_' + element + '\" name=\"reference_no_' + element + '\" placeholder=\"Please enter ' + payment_option_name[i] + ' reference no\"></div>';\n            html += '</div>';\n          } else {\n            html += '<div class=\"row form-group\">';\n            html += '<div class=\"col-md-3\"><label for=\"' + payment_option_name[i] + '\">' + payment_option_name[i] + ' <i class=\"fas fa-rupee-sign\"></i> :</label></div>';\n            html += '<div class=\"col-md-3\"><input type=\"text\" class=\"form-control  numeric payment-method payment_' + element + ' mode-price\" id=\"payment_' + element + '\" data-mode=\"' + payment_option_name[i] + '\" name=\"payment_' + element + '\" value=\"' + mode_amount + '\" placeholder=\"' + payment_option_name[i] + ' amount..\"></div>';\n            html += '<div class=\"col-md-2\"><label class=\"payment-ref\" for=\"' + payment_option_name[i] + '\">' + payment_option_name[i] + ' Ref No:</label></div>';\n            html += '<div class=\"col-md-4\"><input type=\"text\" class=\"form-control reference_no\" id=\"reference_no_' + element + '\" name=\"reference_no_' + element + '\" value=\"' + reference_no + '\" placeholder=\"Please enter ' + payment_option_name[i] + ' reference no\"></div>';\n            html += '</div>';\n          }\n        });\n        $('.payment-option-list').html(html);\n        $('#recieved').val('');\n        //var payment_method =_this.getPaymentTemplate(payment_option_id,payment_option_name)\n\n        //this.set('pmode', mode);\n      },\n      /* On click close or back button  restset payment mode value for mode on popup of payment*/\n      ResetPopupPaymentMode: function () {\n        $('#patient_options tbody tr td input[type=\"checkbox\"]').each(function () {\n          $(this).prop('checked', false);\n        });\n        $('.nobreak').attr('checked', false);\n        $('.payment-method').removeClass('error');\n        $('.payment-option-list').html('');\n        $('#paymenterror').html('');\n        this.selectedPaymentOptions = [];\n        this.selectedPaymentName = [];\n        $('.reference_no').val('');\n        $('#recieved').val('');\n        //$('.refund_class').html('');\n        //this.getPaymentMode();\n      },\n      clearSelectedCheckbox: function () {\n        $('.geometry').prop('checked', false);\n        $('.checkAll').prop('checked', false);\n        $('li :checkbox').prop('checked', false);\n        $('.cleartable li :checkbox').prop('checked', false);\n        $('.clearcheckbox').prop('checked', false);\n        $('.cleartable').prop('checked', false);\n      },\n      setMedicineTotalandPendingValue: function (value_array) {\n        var _this = this;\n        //console.log(value_array);\n        _this.set('payment_value', value_array);\n      },\n      setOnlinePaymentDetails: function (paymentData) {\n        var _this = this;\n        // Convert object into array\n        _this.set('online_payment_details', [paymentData]);\n        let gatewayArray = _this.convertObjectToArray(paymentData.gateway_response);\n        _this.set('gateway_response_list', gatewayArray);\n      },\n      setMedicineTotalVisitPendingValue: function (value_array) {\n        var _this = this;\n        _this.set('payment_popup_value', value_array);\n      },\n      getTransactionDetails: function (value_array) {\n        var _this = this;\n        //_this.set('transction_details', '');\n        _this.set('transction_details', value_array);\n      },\n      getTotalTransactionDetails: function (value_array) {\n        var _this = this;\n        _this.set('total_transction_details', ' ');\n        _this.set('total_transction_details', value_array);\n        var sum = 0;\n        var credit = 0;\n        var debit = 0;\n        $.each(value_array, function (index, value) {\n          //console.log(value_array)\n          if (value.refund_flag == 1) {\n            //debit = parseFloat(debit) + parseFloat(value.mode_price) + parseFloat(value.pg_amount);\n            debit = parseFloat(debit) + parseFloat(value.mode_price);\n          } else {\n            //credit = parseFloat(credit) + parseFloat(value.mode_price) + parseFloat(value.pg_amount);\n            credit = parseFloat(credit) + parseFloat(value.mode_price);\n          }\n          sum = parseFloat(credit - debit).toFixed(2);\n        });\n        _this.set('total_transction', sum);\n      },\n      // historyClearCheckbox: function () {\n      //   var _this = this;\n      //   var appointment = [];\n      //   var table_row = '';\n      //   var instructionselect = '';\n\n      //   $.each($(\"input[name='parent_history']:checked\"), function () {\n      //     appointment.push($(this).data('appointment'));\n      //   });\n\n      //   if (appointment.length > 0) {\n      //     swal({\n      //       title: 'Are you sure you want to clear visit history?',\n      //       icon: 'warning',\n      //       buttons: true,\n      //       dangerMode: true,\n      //     }).then((willDelete) => {\n      //       if (willDelete) {\n      //         $('li :checkbox').prop('checked', false);\n      //         $('#importvisitid').val('');\n      //       }\n      //     });\n      //   }\n      // },\n      // loadMoreHistory: function (limit, patient_id) {\n      //   //var pages = page+1;\n      //   var _this = this;\n      //   var data_limit = parseInt(limit) + 5;\n      //   _this.send('getPatientHistory', patient_id, data_limit);\n      // },\n      /*This script is used for get already medicine prescribe deatils on click clear button July 20 2019 Shubh Tiwari */\n      prescribeeeditClearCheckbox: function (appointment_id, billing_id) {\n        var _this = this;\n        var appointment = [];\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n        });\n        if (appointment.length > 0) {\n          if (appointment_id == undefined) {\n            appointment_id = _this.get('appointment_id');\n          }\n          if (billing_id == undefined) {\n            billing_id = _this.get('billing_id');\n          }\n          swal({\n            title: 'Are you sure you want to clear visit history?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              _this.getPrescribeRecords(appointment_id, billing_id);\n              $('li :checkbox').prop('checked', false);\n              $('#importvisitid').val('');\n              $('#visitmessage').html('<div class=\"alert alert-success\"> Visit history clear successfully! </div>');\n              $('#visitmessage .alert').fadeToggle(10000);\n            }\n          });\n        }\n      },\n      importVisitData: function (billing, visiting) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            billing: billing,\n            visiting: visiting\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      // historycheckBoxCheck:function(){\n      //     $(document).ready(function(){\n      //         $('li :checkbox').on('click', function () {\n      //             var $chk = $(this),\n      //                 $li = $chk.closest('li'),\n      //                 $ul, $parent;\n      //             if ($li.has('table-data ul')) {\n      //                 $li.find(':checkbox').not(this).prop('checked', this.checked)\n      //             }\n      //             do {\n      //                 $ul = $li.parent();\n      //                 $parent = $ul.siblings(':checkbox');\n      //                 if ($chk.is(':checked')) {\n      //                     $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0)\n      //                 } else {\n      //                     $parent.prop('checked', false)\n      //                 }\n      //                 $chk = $parent;\n      //                 $li = $chk.closest('li');\n      //             } while ($ul.is(':not(.someclass)'));\n      //         });\n      //      });\n      // },\n      //This below function is used for getting charge master list\n      getChargeList: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/charges?datalist=doc';\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('charge_list', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      //This below function is used for getting total medicine prescribe cost\n      getTotalMedicineCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/charges?datalist=doc';\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('charge_listsss', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      //check dublicate medicine,potency,dilution and form\n      billingDataSubmit: function (e) {\n        //   console.log(\"Billing function submit , Shubh Tiwari\");\n        //   return false;\n        var error = '';\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        if (!$('#sort-serial').is(':checked')) {\n          var _this = this;\n          var tableId = 'prescriptionmedicine tbody.tbody';\n          _this.sortMedicineRow(tableId);\n          //console.log('not check');\n        }\n        //This below code is used for checking the duplicate mix, Shubh Tiwari. 29 dec 2020\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        var uniqueMixArray = [];\n        var duplicateMixArray = [];\n        $('.cw_mix_row').each(function () {\n          var mixid = $(this).attr('data-mixid');\n          var id = $(this).attr('id');\n          var idnum = id.replace('id-', '');\n          var form = $('#prescribeform-' + idnum).val();\n          var combo_id = mixid + '_' + form;\n          // console.log(combo_id);\n          var keyindex = uniqueMixArray.indexOf(combo_id);\n          if (keyindex == -1) {\n            uniqueMixArray.push(combo_id);\n          } else if (mixid > 0) {\n            duplicateMixArray.push(mixid);\n          }\n          //return false;\n        });\n        //console.log(uniqueMixArray);\n        // console.log(duplicateMixArray);\n        //return false;\n\n        duplicateMixArray.forEach(function (item) {\n          $(\"[data-mixid^='\" + item + \"']\").each(function () {\n            $(this).addClass('duplicate');\n            var item = $(this).attr('id');\n            var idnum = item.split('-')[1];\n            var rownumber = $('#srno-' + idnum).val();\n            error += '<p> The medicine/Mix for serial number ' + rownumber + ' already added. </p>';\n          });\n        });\n\n        /* End code here for duplicate Medicine/Mix serial number*/\n        //This below each loop used the serial number input box, Rahul Khan 10 Aug 2019\n        $('.srnoItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            $('.srnoItem').focus();\n            return false;\n          }\n          //This below section is used for validation duplicate the Medicine/Mix Serial Number, Rahul Khan, 08 Aug 2019\n          var value1 = $(this).val();\n          var id1 = $(this).attr('id');\n          var duplicateRow = $('.srnoItem').map(function () {\n            var value2 = $(this).val();\n            var id2 = $(this).attr('id');\n            if (id1 != id2 && value1 == value2) {\n              return value2;\n            }\n          }).get();\n          if (duplicateRow.length > 0) {\n            //  swal(\"Duplicate!\", \"This medicine/Mix seriel number is occupied by already added Medcine/Mix.\", \"error\");\n            // $(\"#\"+id1).addClass(\"duplicate_serial\");\n            error += \"<p> The medicine/Mix serial number should't not same. </p>\";\n            $('#' + id1).focus();\n          } else {\n            $('#' + id1).removeClass('duplicate_serial');\n          }\n          //end code added for validation the Medicine/Mix serial number not be duplicate.\n          count++;\n        });\n        //This below each loop used the medicine name column,\n        var duplicateMedicineArray = [];\n        var notSetMedicineArray = [];\n        $('.cw-search-box .medicineItem').each(function (count) {\n          // if($.trim($(this).val()) == '')\n          // {\n          //     error += \"<p> Please enter medicine name at \"+(count+1)+\" row</p>\";\n          //     $('.medicineItem').focus();\n          //     return false;\n          // }\n\n          //This below section is used for validation duplicate the Medicine/Mix Serial Number, Rahul Khan, 10 Aug 2019\n          //var value1 = $( this ).val();\n          var id1 = $(this).attr('id');\n          var idnum1 = id1.replace('medicine_name-', '');\n          var idnum1 = idnum1.replace('mix_', '');\n          if ($('#id-' + idnum1).hasClass('ontheflymix')) {\n            var value1 = idnum1;\n            var prescribeFormValue1 = idnum1;\n          } else {\n            var value1 = $(this).attr('data-medicine');\n            // var value1  = $(this).attr('data-medicine').trim();//In this line we changed the value of value1 variable, value of input box to attribute \"data-medicine\",Rahul Khan, 16 aug 2019\n            var prescribeFormValue1 = $('#prescribeform-' + idnum1).val(); //In these below lines code is used for getting the form value, Rahul Khan 16 Aug 2019\n            var prescribeFormValue1 = prescribeFormValue1.split('-')[2];\n          }\n\n          // var idnum1 = id1.replace('medicine_name-','');\n\n          var duplicateRow = $('.cw-search-box .medicineItem').map(function () {\n            //var value2 = $(this).val();\n\n            var id2 = $(this).attr('id');\n            var medicine_status = $('#' + id2).attr('medicine_status');\n            var idnum = id2.replace('medicine_name-', '');\n            var idnum = idnum.replace('mix_', '');\n            if ($('#id-' + idnum).hasClass('ontheflymix')) {\n              var value2 = idnum;\n              var prescribeFormValue2 = idnum;\n            } else {\n              var value2 = $(this).attr('data-medicine');\n              //  var value2  = $(this).attr('data-medicine').trim();//In this line we changed the value of value2 variable, value of input box to attribute \"data-medicine\",Rahul Khan, 16 aug 2019\n              var prescribeFormValue2 = $('#prescribeform-' + idnum).val(); //In these below lines code is used for getting the form value, Rahul Khan 16 Aug 2019\n              var prescribeFormValue2 = prescribeFormValue2.split('-')[2];\n            }\n            if (id1 != id2 && value1 == value2 && prescribeFormValue1 == prescribeFormValue2) {\n              var keyindex = duplicateMedicineArray.indexOf(idnum);\n              if (keyindex == -1) {\n                duplicateMedicineArray.push(idnum);\n              }\n              //duplicateMedicineArray.push(idnum);\n              return idnum;\n            }\n            if (id1 != id2 && medicine_status == 'notset') {\n              var keyindex = notSetMedicineArray.indexOf(idnum);\n              if (keyindex == -1) {\n                notSetMedicineArray.push(idnum);\n              }\n            }\n          }).get();\n\n          //end code added for validation the Medicine/Mix serial number not be duplicate.\n          count++;\n        });\n        duplicateMedicineArray.forEach(function (item) {\n          var idnumber = $('#srno-' + item).val();\n          $('#id-' + item).addClass('duplicate');\n          error += '<p> The medicine/Mix for serial number ' + idnumber + ' already added. </p>';\n        });\n        if (duplicateMedicineArray.length == 0 && duplicateMixArray.length == 0) {\n          $(\"[id^='id-']\").removeClass('duplicate');\n        }\n        notSetMedicineArray.forEach(function (item) {\n          var srno = $('.srno-' + item).val();\n          // $(\"#id-\"+item).addClass(\"duplicate\");\n          error += '<p>Please select the medicine from the drop down for row ' + srno + ' </p>';\n          // swal(\"Duplicate!\", medicine_duplicate, \"warning\");\n        });\n\n        //This below function is used for checking the duplicate medicine added, Rahul Khan 10 Aug 2019\n        // $('#prescriptionmedicine .tbody tr').each(function(index1){\n        //     var row = $(this)\n        //     var medicine_val = row.find(\"td:nth-child(3) input\").val();\n        //     var potency_val = row.find(\"td:nth-child(4) input\").val();\n        //     var dilution_val = row.find(\"td:nth-child(5) input\").val();\n        //     var form_val = row.find(\"select\").val();\n        //     $('#prescriptionmedicine .tbody tr').each(function(index2){\n        //         var compare_row = $(this)\n        //         var compare_medicine_val = compare_row.find(\"td:nth-child(3) input\").val();\n        //         var compare_potency_val = compare_row.find(\"td:nth-child(4) input\").val();\n        //         var compare_dilution_val = compare_row.find(\"td:nth-child(5) input\").val();\n        //         var compare_form_val = compare_row.find(\"select\").val();\n        //         if(index1!=index2 && medicine_val==compare_medicine_val && potency_val==compare_potency_val && dilution_val==compare_dilution_val && form_val==compare_form_val){\n        //             error += \"<p> The medicine/Mix for \"+(index2+1)+\" row already added. </p>\";\n        //             row.addClass('duplicate');\n        //           compare_row.addClass('duplicate');\n\n        //         }else{\n        //           row.removeClass('duplicate');\n        //           compare_row.removeClass('duplicate');\n        //         }\n        //      })\n        // })\n        // if($('tr.duplicate').length>0){\n        //    swal('Sorry, In this row Medicine, Potency, Dilution, and Form are equal.Please select/enter another Form or Medicine Name');\n        //  }\n\n        $('.medicineItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            // error += \"<p> Please select instruction  at \"+(count+1)+\" row</p>\";\n            var id = $(this).attr('id');\n            var idnum = id.replace('medicine_name-', '');\n            var idnumber = $('#srno-' + idnum).val();\n            //error += \"<p> Please select the instruction for medicine at serial number \" + idnumber + \" </p>\";\n            error += '<p> Please enter medicine name at ' + idnumber + ' row</p>';\n            // $('.instructionItem').focus();\n            $('#' + id).focus();\n            return false;\n          }\n          count++;\n        });\n        $('.potencyItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            // error += \"<p> Please select instruction  at \"+(count+1)+\" row</p>\";\n            var id = $(this).attr('id');\n            var idnum = id.replace('potency-', '');\n            var idnumber = $('#srno-' + idnum).val();\n            //error += \"<p> Please select the instruction for medicine at serial number \" + idnumber + \" </p>\";\n            error += '<p> Please enter potency at  ' + idnumber + ' row</p>';\n            // $('.instructionItem').focus();\n            $('#' + id).focus();\n            return false;\n          }\n          count++;\n        });\n\n        // $('.potencyItem').each(function (count) {\n        //     if ($.trim($(this).val()) == '') {\n        //         error += \"<p> Please enter potency at \" + (count + 1) + \" row</p>\";\n        //         $('.potencyItem').focus();\n        //         return false;\n        //     }\n        //     count++;\n        // });\n        $('.dilutionItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            // error += \"<p> Please select instruction  at \"+(count+1)+\" row</p>\";\n            var id = $(this).attr('id');\n            var idnum = id.replace('dilution-', '');\n            var idnumber = $('#srno-' + idnum).val();\n            //error += \"<p> Please select the instruction for medicine at serial number \" + idnumber + \" </p>\";\n            error += '<p> Please enter dilution at  ' + idnumber + ' row</p>';\n            // $('.instructionItem').focus();\n            $('#' + id).focus();\n            return false;\n          }\n          count++;\n        });\n\n        // $('.dilutionItem').each(function (count) {\n        //     if ($.trim($(this).val()) == '') {\n        //         error += \"<p> Please enter dilution at \" + (count + 1) + \" row</p>\";\n        //         $('.dilutionItem').focus();\n        //         return false;\n        //     }\n        //     count++;\n        // });\n\n        $('.formItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            $('.formItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.factorItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            $('.factorItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.medicinevialItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            error += '<p> Please enter vial ' + (count + 1) + ' row</p>';\n            $('.medicinevialItem').focus();\n            return false;\n          }\n          count++;\n        });\n\n        //    $('.instructionItem').each(function(count){\n        //     if($.trim($(this).val())=='')\n        //     {\n        //     // error += \"<p> Please select instruction  at \"+(count+1)+\" row</p>\";\n        //     var id = $(this).attr('id');\n        //     var idnum = id.replace('instruction-','');\n        //     var idnumber = $(\"#srno-\"+idnum).val();\n        //     error += \"<p> Please select the instruction for medicine at serial number \"+idnumber+\" </p>\";\n        //     // $('.instructionItem').focus();\n        //     $(this).focus();\n        //      return false;\n        //     }\n        //         count++;\n        //    });\n\n        $('.inst_other').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            // error += \"<p> Please select instruction  at \"+(count+1)+\" row</p>\";\n            var id = $(this).attr('id');\n            var idnum = id.replace('edit_instruction-', '');\n            var idnumber = $('#srno-' + idnum).val();\n            error += '<p> Please select the instruction for medicine at serial number ' + idnumber + ' </p>';\n            // $('.instructionItem').focus();\n            $(this).focus();\n            return false;\n          }\n          count++;\n        });\n        $('.medicineMixItem').each(function (count) {\n          if ($.trim($(this).val()) == '') {\n            error += '<p> Please enter mix name  at ' + (count + 1) + ' row</p>';\n            $('.medicineMixItem').focus();\n            return false;\n          }\n          count++;\n        });\n\n        // $('.precribe_pharmacy_instruction').each(function(){\n        //console.log($(\".precribe_pharmacy_instruction\").val());\n        /*  if($.trim($(\".precribe_pharmacy_instruction\").val())=='')\n                {\n                    error += \"<p> Enter pharmacy instruction </p>\";\n                    $('.precribe_pharmacy_instruction').focus();\n                    return false;\n                }*/\n\n        // });\n        var reason = $('#medicine_edit_reason').val();\n        if (reason != undefined) {\n          var edit_reason = reason;\n        } else {\n          var edit_reason = '';\n        }\n        var edit_page = $('#prescribeedit').val();\n        //console.log(reason);\n        //console.log(edit_page);\n        if ((edit_page == 'prescribeedit' || edit_page == 'errorcorrection') && reason == '') {\n          event.preventDefault();\n          _this.recalculateAmount.showPopupWithPassingDynamicPopupId('MedicineEditReasonPopup');\n          $('#edit_reason').focus();\n        }\n\n        //Nishant: Fixing issue DKBC22-I692: If pharmacy & billing location were not found in submitted data, we set it to logged in user's session branch id\n        if (edit_page == 'prescribeedit') {\n          if ($('#billing_location').val() == undefined || $('#billing_location').val() == '0' || $('#billing_location').val() == '') $('#billing_location').val(_this.get('session').getLocation().split('-')[0]);\n          if ($('#pharmacy_location').val() == undefined || $('#pharmacy_location').val() == '0' || $('#pharmacy_location').val() == '') $('#pharmacy_location').val(_this.get('session').getLocation().split('-')[0]);\n        }\n        var form = $('#cwPrescribeForm');\n        //console.log(form.serialize());\n        let i18n = _this.get('i18n');\n        if (error == '') {\n          $('#displayerror').html('');\n          if (edit_page != 'prescribeedit' && edit_page == undefined) {\n            //console.log('prescription-a');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/prescribe',\n              method: 'POST',\n              data: {\n                user_id: login_user_id,\n                shift_id: shift_id,\n                edit_reason: edit_reason,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false && res.actions == 'add') {\n                  var message = i18n.t('billing.messages.savedBilling');\n                  _this.flashes.success(message);\n                  _this.transitionToRoute('billing.billpatient', res);\n                  _this.set('appointment_id', res.appointment_id);\n                  _this.set('billing_id', res.billing_id);\n                  _this.set('patient_id', res.patient_id);\n                  _this.set('importvisitid', res.importvisitid);\n                  _this.send('getRecords', res.appointment_id, res.billing_id);\n                  _this.send('getBilledPrescribeDetail', res.appointment_id, res.billing_id);\n                  _this.send('getLastEditBy', res.appointment_id, res.billing_id);\n                  _this.send('getApplyMedicineDiscount', res.appointment_id, res.billing_id);\n                  _this.send('getApplyConsultancyWaived', res.appointment_id, res.billing_id);\n                  _this.send('getPatientAddress', res.patient_id, res.appointment_id);\n                  _this.send('getPreviousPGCharge', res.appointment_id);\n                  _this.send('getMedicinePrepared', res.appointment_id);\n\n                  //$res['actions'] ='duplicatedata';\n                } else if (res.error == true && res.actions == 'duplicatedata') {\n                  var message = i18n.t('billing.messages.duplicatedata');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false) {\n                  _this.set('vali_errors', res.message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          } else if (edit_page == 'prescribeedit' && reason != '') {\n            //console.log('prescription-b');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/prescribe',\n              method: 'POST',\n              data: {\n                user_id: login_user_id,\n                shift_id: shift_id,\n                edit_reason: edit_reason,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false && res.actions == 'add') {\n                  var message = i18n.t('billing.messages.savedBilling');\n                  _this.flashes.success(message);\n                  _this.transitionToRoute('billing.billpatient', res);\n                  _this.set('appointment_id', res.appointment_id);\n                  _this.set('billing_id', res.billing_id);\n                  _this.set('patient_id', res.patient_id);\n                  _this.set('importvisitid', res.importvisitid);\n                  _this.send('getRecords', res.appointment_id, res.billing_id);\n                  _this.send('getBilledPrescribeDetail', res.appointment_id, res.billing_id);\n                  _this.send('getLastEditBy', res.appointment_id, res.billing_id);\n                  _this.send('getApplyMedicineDiscount', res.appointment_id, res.billing_id);\n                  _this.send('getApplyConsultancyWaived', res.appointment_id, res.billing_id);\n                  _this.send('getPatientAddress', res.patient_id, res.appointment_id);\n                  _this.send('getPreviousPGCharge', res.appointment_id);\n                  _this.send('getMedicinePrepared', res.appointment_id);\n                  //$res['actions'] ='duplicatedata';\n                } else if (res.error == true && res.actions == 'duplicatedata') {\n                  var message = i18n.t('billing.messages.duplicatedata');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false) {\n                  _this.set('vali_errors', res.message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          } else if (edit_page == 'errorcorrection' && reason != '') {\n            console.log('prescription-c');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/prescribe',\n              method: 'POST',\n              data: {\n                user_id: login_user_id,\n                shift_id: shift_id,\n                edit_reason: edit_reason,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false && res.actions == 'add') {\n                  var message = i18n.t('billing.messages.savedBilling');\n                  _this.flashes.success(message);\n                  _this.transitionToRoute('billing.correctbill', res);\n                  _this.set('appointment_id', res.appointment_id);\n                  _this.set('billing_id', res.billing_id);\n                  _this.set('patient_id', res.patient_id);\n                  _this.set('importvisitid', res.importvisitid);\n                  _this.send('getRecords', res.appointment_id, res.billing_id);\n                  _this.send('getApplyMedicineDiscount', res.appointment_id, res.billing_id);\n                  _this.send('getApplyConsultancyWaived', res.appointment_id, res.billing_id);\n                  _this.send('getPatientAddress', res.patient_id, res.appointment_id);\n                  _this.send('getPreviousPGCharge', res.appointment_id);\n                  _this.send('getMedicinePrepared', res.appointment_id);\n                  //$res['actions'] ='duplicatedata';\n                } else if (res.error == true && res.actions == 'duplicatedata') {\n                  var message = i18n.t('billing.messages.duplicatedata');\n                  $('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false) {\n                  _this.set('vali_errors', res.message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        } else {\n          $('#displayerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          //$(\"#displayerror .alert\").fadeToggle(10000);\n        }\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 5_july_2019\n      getPrescribeRecords: function (appointment_id, billing_id) {\n        this.getPrescribeRecords(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 10_FEB_2020\n      getVisitStatus: function (appointment_id, billing_id) {\n        this.getVisitStatus(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getClinicPatientsIncomplete: function (shift_id, branch_id, stage, date) {\n        this.getClinicPatientsIncomplete(shift_id, branch_id, stage, date);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getClinicPatientsComplete: function (shift_id, branch_id, stage) {\n        this.getClinicPatientsComplete(shift_id, branch_id, stage);\n      },\n      getIncompletePharmacyList: function (shift_id, branch_id, stage) {\n        this.getIncompletePharmacyList(shift_id, branch_id, stage);\n      },\n      getCompletePharmacyList: function (shift_id, branch_id, stage) {\n        this.getCompletePharmacyList(shift_id, branch_id, stage);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 03 July 2023\n      getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 03 July 2023\n      getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 27_june_2019\n      //  getPreviousPendingRecord: function(patient_id){\n      //     this.getPreviousPendingRecord(patient_id);\n      // },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 27_june_2019\n      //  getPreviousPendingRecord: function(patient_id){\n      //     this.getPreviousPendingRecord(patient_id);\n      // },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getCurrentPaymentCharge: function (appointment_id, billing_id) {\n        this.getCurrentPaymentCharge(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 29_june_2019\n      getPreviousPendingAmount: function (patient_id, appointment_id, billing_id) {\n        this.getPreviousPendingAmount(patient_id, appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06 Feb 2020\n      getPreviousBillAmount: function (appointment_id, billing_id) {\n        this.getPreviousBillAmount(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getPreviousVisitPendingAmount: function (patient_id, visit_id) {\n        this.getPreviousVisitPendingAmount(patient_id, visit_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getAfterVisitPendingAmount: function (appointment_id, billing_id) {\n        this.getAfterVisitPendingAmount(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getBilledPreviousPaymentCharge: function (appointment_id, billing_id) {\n        this.getBilledPreviousPaymentCharge(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getPatientVisitComment: function (patient_id, visit_id) {\n        this.getPatientVisitComment(patient_id, visit_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getVisitCharges: function (appointment_id, billing_id) {\n        this.getVisitCharges(appointment_id, billing_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getPreviousVisitCharges: function (appointment_id, billing_id) {\n        this.getPreviousVisitCharges(appointment_id, billing_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getApplyMedicineDiscount: function (appointment_id, billing_id) {\n        this.getApplyMedicineDiscount(appointment_id, billing_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getApplyConsultancyWaived: function (appointment_id, billing_id) {\n        this.getApplyConsultancyWaived(appointment_id, billing_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 13 Feb 2020\n      getPreviousBillConsultancyAmount: function (appointment_id, billing_id) {\n        this.getPreviousBillConsultancyAmount(appointment_id, billing_id);\n      },\n      getCheckedVaue: function (checkbox_checked_vaue) {\n        //Rahul khan\n        var html = '';\n        html += '<table id=\"cwarecombo\" class=\"table table-bordered table-hover\"><thead><th width=\"10%\">S.No.</th><th width=\"40%\">Medicine Name</th><th width=\"50%\">Instruction</th></thead><tbody>';\n        for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n          var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val();\n          var srno = $('#srno-' + checkbox_checked_vaue[i]).val();\n          var instruction = $('#edit_instruction-' + checkbox_checked_vaue[i]).val() || '';\n          html += '<tr><td class=\"rowvalue\" id=\"' + checkbox_checked_vaue[i] + '\">' + srno + '</td><td style=\"text-align:left\">' + medicine + '</td><td style=\"text-align:left\">' + instruction + '</td></tr>';\n        }\n        html += '</tbody></table>';\n        $('#selecteddosage').append(html);\n      },\n      setDropdownId: function (id) {\n        var html = '';\n        html += '<input type=\"hidden\" value=\"' + id + '\" id=\"' + id + '\">';\n        $('#otherinstructionid').append(html);\n      },\n      getRecords: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (appointment_id == undefined) {\n          appointment_id = _this.get('appointment_id');\n        }\n        if (billing_id == undefined) {\n          billing_id = _this.get('billing_id');\n        }\n        if (appointment_id != undefined && billing_id != undefined) {\n          $.ajax({\n            type: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'billing/prescribedetail/' + appointment_id + '/' + billing_id,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            async: false,\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (response) {\n              $('.tbody').empty();\n              _this.set('pharmacy_instruction', '');\n              //_this.set('reason', '');\n              if (response[0].length > 0) {\n                _this.set('billpatient', response[0]);\n                _this.set('medicine_amount', response.total_amount);\n                _this.set('bill_id', response[0][0].bill_id);\n                _this.set('medicine_flag', response[0][0].medicine_flag);\n                _this.set('billing_location', response[0][0].data.billing_location);\n                _this.set('pharmacy_location', response[0][0].data.pharmacy_location);\n                _this.set('import_visit_id', response[0][0].data.importvisitid);\n                _this.set('visit_id', response[0][0].visit_id);\n                if (response[0][0].pharmacy_instruction != null && response[0][0].pharmacy_instruction != '' && response[0][0].reason != null && response[0][0].reason != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response[0][0].pharmacy_instruction + '\\n' + 'Edit Reason: ' + response[0][0].reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha12');\n                } else if (response[0][0].pharmacy_instruction != null && response[0][0].pharmacy_instruction != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response[0][0].pharmacy_instruction;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha123');\n                } else if (response[0][0].reason != null && response[0][0].reason != '') {\n                  var pharmacy_message = 'Edit Reason: ' + response[0][0].reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha1234');\n                }\n              } else {\n                _this.set('billpatient', response[0]);\n                _this.set('bill_id', response.bill_id);\n                _this.set('billing_location', response.billing_location);\n                _this.set('pharmacy_location', response.pharmacy_location);\n                _this.set('import_visit_id', response.importvisitid);\n                _this.set('visit_id', response.visit_id);\n                _this.set('medicine_flag', response.medicine_flag);\n                if (response.instruction != '' && response.instruction != null && response.edit_reason != '' && response.edit_reason != null) {\n                  var pharmacy_message = 'Instructions/notes: ' + response.instruction + '\\n' + 'Edit Reason: ' + response.edit_reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha1');\n                } else if (response.instruction != null && response.instruction != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response.instruction;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha2');\n                } else if (response.edit_reason != null && response.edit_reason != '') {\n                  var pharmacy_message = 'Edit Reason: ' + response.edit_reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha3');\n                }\n              }\n              //_this.set('import_visit_id', response[0][0].data.importvisitid);\n              //_this.set('pharmacy_instruction', response[0][0].pharmacy_instruction);\n              //_this.set('reason', response[0][0].reason);\n              //console.log(response[0][0].pharmacy_instruction);\n              //_this.set('visit_id', response[0][0].visit_id);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      getLastVisitHistory: function (patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (patient_id == undefined) {\n          patient_id = _this.get('patient_id');\n        }\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/last_visit/' + patient_id;\n        if (patient_id != undefined) {\n          //$('.loader').show();\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            async: false,\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              //console.log(res);\n              $('.loader').hide();\n              if (res.error == true && res.count == 0) {\n                _this.set('last_visit_history', res.count);\n              } else {\n                _this.set('last_visit_history', res);\n              }\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      getPatientHistory: function (patient_id, filter, data_limit) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (patient_id == undefined) {\n          patient_id = _this.get('patient_id');\n        }\n        if (patient_id != undefined && data_limit != undefined) {\n          var base_url_limit = _environment.default.APP.lumen_api_url + 'billing/history/' + patient_id + '/' + filter + '?limit=' + data_limit;\n        } else {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/history/' + patient_id + '/' + filter;\n        }\n        if (patient_id != undefined && data_limit == undefined) {\n          $('#loader').show();\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              $('#loader').hide();\n              //console.log(res);\n              _this.set('PatientHistory', res);\n              _this.set('filterParameter', filter);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        } else if (patient_id != undefined && data_limit != undefined) {\n          $('#history-loader').show();\n          $.ajax({\n            url: base_url_limit,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //console.log(res);\n              $('#history-loader').hide();\n              _this.set('PatientHistory', res);\n              _this.set('filterParameter', filter);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      getPreviousPatientHistory: function (appointment_id, patient_id, importvisitid) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (patient_id == undefined && appointment_id == undefined && importvisitid == undefined) {\n          patient_id = _this.get('patient_id');\n          appointment_id = _this.get('appointment_id');\n          importvisitid = _this.get('importvisitid');\n        }\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/previoushistory/' + appointment_id + '/' + patient_id + '/' + importvisitid;\n        if (patient_id != undefined && appointment_id != undefined && importvisitid != undefined) {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //console.log(res);\n              _this.set('PatientHistory', res);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      getPrescribeDetail: function (appointment_id, billing_id) {\n        //console.log(appointment_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        // if (appointment_id == undefined) {\n        //   appointment_id = _this.get('appointment_id');\n        // }\n        if (appointment_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/prescribe/' + appointment_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              var branch_id = _this.get('session').getLocation().split('-')[0];\n              //This below ajax added for shift timings\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + branch_id,\n                data: {},\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resTimeData) {\n                  //console.log(resTimeData.data[0]);\n                  var resobj = resTimeData.data[0];\n                  var ParseData = JSON.parse(res);\n                  let shift_id = _this.get('session').getLoggedInUserShift();\n                  var appointment_type_code = ParseData.data[0].appointment_type;\n\n                  //Nishant 10-Nov-2022 - use the prescribed shift instead of logged in user shift in case it is found in database. This is to handle a case when billing is done in different shift\n                  if (ParseData.data[0].prescribed_shift !== null && ParseData.data[0].prescribed_shift !== '') shift_id = ParseData.data[0].prescribed_shift;\n                  // alert(ParseData.data[0].prescribed_shift);\n\n                  var shift_charity = 0;\n                  if (shift_id == 1 && resobj.morning_charity_status == 1 || shift_id == 2 && resobj.evening_charity_status == 1) {\n                    var shift_charity = 1;\n                  }\n                  //This below id added for passing the appointment_id to pharmacy-details-component\n                  _this.set('PrescribePatient', ParseData.data);\n                  _this.set('PrescribePatientHead', ParseData.data[0]);\n                  _this.set('PrescribingDoctor', ParseData.data[0].prescribing_doc_id);\n                  // console.log(ParseData.data[0].prescribing_doc_id);\n                  _this.getbilledConsultancyFees(ParseData.data[0].prescribing_doc_id, billing_id);\n                  _this.getPatientDiscount(ParseData.data[0].discount_id, shift_charity);\n                }\n              });\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n        _this.set('isDisabled', false);\n      },\n      getBilledPrescribeDetail: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        // if (appointment_id == undefined) {\n        //   appointment_id = _this.get('appointment_id');\n        // }\n        if (appointment_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/prescribe/' + appointment_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            //headers: {\"Authorization\":\"Bearer \" + utoken},\n            success: function (res) {\n              var branch_id = _this.get('session').getLocation().split('-')[0];\n              //This below ajax added for shift timings\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + branch_id,\n                data: {},\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resTimeData) {\n                  //console.log(resTimeData.data[0]);\n                  var resobj = resTimeData.data[0];\n                  var ParseData = JSON.parse(res);\n                  let shift_id = _this.get('session').getLoggedInUserShift();\n\n                  //Nishant 10-Nov-2022 - use the prescribed shift instead of logged in user shift in case it is found in database. This is to handle a case when billing is done in different shift\n                  if (ParseData.data[0].prescribed_shift !== null && ParseData.data[0].prescribed_shift !== '') shift_id = ParseData.data[0].prescribed_shift;\n                  var shift_charity = 0;\n                  if (shift_id == 1 && resobj.morning_charity_status == 1 || shift_id == 2 && resobj.evening_charity_status == 1) {\n                    var shift_charity = 1;\n                  }\n\n                  //This below id added for passing the appointment_id to pharmacy-details-component\n                  _this.set('PrescribePatient', ParseData.data);\n                  _this.set('PrescribePatientHead', ParseData.data[0]);\n                  _this.set('PrescribingDoctor', ParseData.data[0].prescribing_doc_id);\n                  // console.log(ParseData.data[0].prescribing_doc_id);\n                  _this.getbilledConsultancyFees(ParseData.data[0].prescribing_doc_id, billing_id);\n                  _this.getPatientDiscount(ParseData.data[0].discount_id, shift_charity);\n                }\n              });\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      //This function is used for Medicine prepared/un-prepared for patient, 18 Feb 2023\n      medicinePrepared(visit_id, billing_id, medicine_flag) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = this.session.getLoggedInUserId();\n        var prepared_data = {\n          visiting_id: visit_id,\n          billing_id: billing_id,\n          user_id: login_user_id,\n          med_flag: medicine_flag\n        };\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'medicineprepared',\n          data: prepared_data,\n          dataType: 'json',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error == true && res.status == 'datainsufficient') {\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(res.message, 'pharmacyerror');\n            } else if (res.error == false && (res.status == 'prepared' || res.status == 'not_prepared')) {\n              _this.recalculateAmount.allSuccessMessage(res.message);\n              _this.send('getRecords', res.visit_id, res.bill_id);\n            }\n          }\n        });\n      },\n      //This function is used for complete pharmacy for patient, 02 July 2019\n      pharmacyComplete(visiting_id, billing_id, patient_id) {\n        console.log('Old Billing Id=' + billing_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'check_pharmacy',\n          data: {\n            id: visiting_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (dispatch_result) {\n            console.log('new code');\n            console.log('new Billing Id=' + dispatch_result.billing_id);\n            if (billing_id != dispatch_result.billing_id && dispatch_result.d_status == 'Yes' && dispatch_result.action == \"exists_dispatch\" && dispatch_result.error == false) {\n              var error = 'Attention: Changes Detected! Your previous bill has been altered. A new bill has been identified.';\n              Swal.fire({\n                icon: 'warning',\n                title: 'Warning',\n                html: error,\n                width: 600,\n                //showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              }).then(result => {\n                if (result.isConfirmed) {\n                  _this.transitionToRoute('pharmacy.view', visiting_id, dispatch_result.billing_id, patient_id);\n                }\n              });\n            } else {\n              var login_user_id = _this.session.getLoggedInUserId();\n              var shift_id = _this.session.getLoggedInUserShift();\n              var prescriptionemail = $('input[name=prescriptionemail]:checked').val();\n              var data = {\n                visiting_id: visiting_id,\n                billing_id: billing_id,\n                status: 3,\n                user_id: login_user_id,\n                patient_id: patient_id,\n                shift_id: shift_id\n              };\n              var addressDetails = _this.shipp;\n              var shippingResult = _this.shippingValidation.shippingValidation(addressDetails);\n              //console.log(shippingResult);\n              if (shippingResult.dispatchOrPickup == \"D\" && shippingResult != false) {\n                shippingResult['patient_id'] = patient_id;\n                shippingResult['appointment_id'] = visiting_id;\n                shippingResult['created_by'] = login_user_id;\n                shippingResult['prescription_email'] = prescriptionemail;\n                shippingResult['shift_id'] = shift_id;\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n                  data: {\n                    data: shippingResult\n                  },\n                  dataType: 'json',\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  //async: false,\n                  success: function (resship_validation) {\n                    if (resship_validation.error == true) {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'pharmacyerror');\n                    } else if (resship_validation.error == false) {\n                      $.ajax({\n                        url: _environment.default.APP.lumen_api_url + 'visit/update',\n                        method: 'POST',\n                        data: data,\n                        headers: {\n                          \"Authorization\": `Bearer ${utoken}`\n                        },\n                        success: function (res) {\n                          if (res.error == false) {\n                            $.ajax({\n                              method: 'POST',\n                              url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                              data: {\n                                data: shippingResult\n                              },\n                              dataType: 'json',\n                              async: false,\n                              headers: {\n                                \"Authorization\": `Bearer ${utoken}`\n                              },\n                              success: function (resship) {\n                                if (resship.error == false) {\n                                  var message = i18n.t('pharmacy.messages.pharmacyComplete');\n                                  _this.flashes.success(message);\n                                  _this.transitionToRoute('pharmacy.list');\n                                }\n                              }\n                            });\n                          } else if (res.error == true) {\n                            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(res.visit, 'pharmacyerror');\n                            _this.set('isDisabled', false);\n                          }\n                        }\n                      });\n                    }\n                  }\n                });\n              } else if ((shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && (shippingResult != false || shippingResult == false)) {\n                $.ajax({\n                  url: _environment.default.APP.lumen_api_url + 'visit/update',\n                  method: 'POST',\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    if (res.error == false) {\n                      var message = i18n.t('pharmacy.messages.pharmacyComplete');\n                      _this.flashes.success(message);\n                      _this.transitionToRoute('pharmacy.list');\n                    } else if (res.error == true) {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(res.visit, 'pharmacyerror');\n                      _this.set('isDisabled', false);\n                    }\n                  }\n                });\n              }\n            }\n          }\n        });\n        // Disable the button\n        _this.set('isDisabled', true);\n      },\n      //This function is used for complete pharmacy for patient, 02 July 2019\n      billingMarkComplete(visiting_id, patient_id, billing_id, doc_id, billing_location, pharmacy_location) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var login_user_id = this.session.getLoggedInUserId();\n        var stage_billing = 0;\n        var stage_billing_complete = 2;\n        if (doc_id == undefined) {\n          var doc_id_value = 0;\n        } else {\n          var doc_id_value = doc_id;\n        }\n        var data = {\n          visiting_id: visiting_id,\n          patient_id: patient_id,\n          billing_id: billing_id,\n          doc_id: doc_id_value,\n          status: 2,\n          user_id: login_user_id,\n          billing_location: billing_location,\n          pharmacy_location: pharmacy_location\n        };\n        swal({\n          title: 'Are you sure you want to mark this visit completed?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'visit/markupdate',\n              method: 'POST',\n              data: data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function () {\n                var message = i18n.t('billing.messages.BillingComplete');\n                _this.flashes.success(message);\n                // this.getClinicPatientsComplete(shift_id, branch_id,stage_billing_complete);\n\n                let shift_id = _this.get('session').getLoggedInUserShift();\n                //This Below code line is used for getting Branch id for login user\n                let branch_id = _this.get('session').getLocation().split('-')[0];\n\n                //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n                _this.getClinicPatientsIncomplete(shift_id, branch_id, stage_billing);\n\n                //This below code function is used for getting inclinic Patients in at Billing Dashboard which complete billing process\n                _this.getClinicPatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n                //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n                _this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n                //This below code function is used for getting Patients in Medicine Queue at Billling Dashboard which complete billing process\n                _this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n                // _this.transitionToRoute('billing.list');\n                //location.reload();\n              }\n            });\n          }\n        });\n      },\n      //This function is used for check patient in doctor queue, Shubh Tiwari 13 July 2023\n      checkPatientInDoctorQueue(visiting_id, billing_id, patient_id, prescribe_doc_name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        //This Below code line is used for getting shift id for login user\n        let shift_id = this.session.getLoggedInUserShift();\n        //This Below code line is used for getting Branch id for login user\n        let branch_id = this.session.getLocation().split('-')[0];\n        let user_id = this.session.getLoggedInUserId();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'tabsexist',\n          data: {\n            p_id: patient_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.p_edit_status == 'Yes' && res.action == \"exists_data\" && res.error == false) {\n              var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n                object: prescribe_doc_name,\n                page: 'editing a Presciption/Case taking',\n                branch_name: res.branch_name.title,\n                shift_name: res.shift_name\n              });\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'billing-dashboard');\n            } else if (res.action == \"no_exists_data\" && res.error == true) {\n              $.ajax({\n                url: _environment.default.APP.lumen_api_url + 'billing/progress',\n                method: 'POST',\n                data: {\n                  appointment_id: visiting_id,\n                  patient_id: patient_id,\n                  user_id: user_id,\n                  shift_id: shift_id,\n                  branch_id: branch_id,\n                  billing_id: billing_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#loading').addClass('in');\n                  $('#loading').css('display', 'block');\n                  $('body').addClass('modal-open');\n                },\n                success: function (res) {\n                  //console.log(res);\n                  if (res.error == false && res.actions == 'add') {\n                    _this.transitionToRoute('billing.billpatient', visiting_id, billing_id, patient_id);\n                  } else if (res.error == false && res.actions == 'patient_exist') {\n                    var error = 'This patient is already in billing progress';\n                    Swal.fire({\n                      icon: 'error',\n                      title: 'Oops...',\n                      html: error,\n                      width: 600,\n                      showCloseButton: true,\n                      allowOutsideClick: false,\n                      confirmButtonText: `Ok`\n                    });\n                  }\n                },\n                error: function (error, x, y) {},\n                complete: function () {\n                  setTimeout(function () {\n                    $('#loading').removeClass('in');\n                    $('#loading').css('display', 'none');\n                    $('.modal-backdrop').remove();\n                    $('body').removeClass('modal-open');\n                  }, 500);\n                }\n              });\n            }\n          }\n        });\n      },\n      //This function is used for complete pharmacy for patient, 02 July 2019\n      billingComplete(visiting_id, patient_id, billing_id, doc_id, billing_location, pharmacy_location) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var login_user_id = this.session.getLoggedInUserId();\n        var stage_billing = 0;\n        var stage_billing_complete = 2;\n        if (doc_id == undefined) {\n          var doc_id_value = 0;\n        } else {\n          var doc_id_value = doc_id;\n        }\n        var data = {\n          visiting_id: visiting_id,\n          patient_id: patient_id,\n          billing_id: billing_id,\n          doc_id: doc_id_value,\n          status: 2,\n          user_id: login_user_id,\n          billing_location: billing_location,\n          pharmacy_location: pharmacy_location\n        };\n        swal({\n          title: 'Are you sure you want to mark this visit completed?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'visit/update',\n              method: 'POST',\n              data: data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function () {\n                var message = i18n.t('billing.messages.BillingComplete');\n                _this.flashes.success(message);\n                // this.getClinicPatientsComplete(shift_id, branch_id,stage_billing_complete);\n\n                let shift_id = _this.get('session').getLoggedInUserShift();\n                //This Below code line is used for getting Branch id for login user\n                let branch_id = _this.get('session').getLocation().split('-')[0];\n\n                //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n                _this.getClinicPatientsIncomplete(shift_id, branch_id, stage_billing);\n\n                //This below code function is used for getting inclinic Patients in at Billing Dashboard which complete billing process\n                _this.getClinicPatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n                //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n                _this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n                //This below code function is used for getting Patients in Medicine Queue at Billling Dashboard which complete billing process\n                _this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n                // _this.transitionToRoute('billing.list');\n                //location.reload();\n              }\n            });\n          }\n        });\n      },\n      //This function is used for getting the On the fly mix medicine posiibile forms, Rahul; khan 09 sept 2019\n      getmixForms: function (value) {\n        var midicinePotencty = $('#medi_potn_combo').val();\n        var midicineClass = $('#medi_potn_combo').attr('class');\n        var currenyRowidNum = midicineClass.replace('mix_', '');\n        var midicinePotencty = midicinePotencty.split(',');\n        var midicinePotencty = JSON.stringify(midicinePotencty);\n        var row = $('#prescriptionmedicine').find('tr:first').attr('id');\n        var next_sr_no = row.replace(/[^\\d.]/g, '');\n        var next = parseInt(next_sr_no);\n        var selectedForm = $('#prescribeform-' + next).val();\n        var selectedOptionText = $('#prescribeform-' + next + \" option[value^='\" + selectedForm + \"']\").text();\n        let utoken = this.session.getToken();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'mixmedicine/forms',\n          data: {\n            data: midicinePotencty\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            // console.log(response);\n            //  $(\"#mixforms\").append(formDiv);\n            $('#prescribeform-' + currenyRowidNum).empty();\n            //This condition is used to set selected the form as per first medicine,\n            //this.getItems();\n            response.forEach(function (form) {\n              var selected = ' ';\n              if (selectedOptionText == form.form_code) {\n                var selected = 'selected';\n              }\n              var formDiv = '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n              $('#prescribeform-' + currenyRowidNum).append(formDiv);\n            });\n            //   _this.set('mixforms', response);\n            //_this.controllerFor('').set('mixforms', response);\n            //  _this.controllerFor('settings.masters.medicines.mix').set('mixforms', \"dd\");\n          }\n        });\n      },\n      //This below function is used for setting the Print Type for controller,Rahul Khan, !3Sept2019\n      reprintOptions: function () {\n        // $(\"input.cw_print_check\").attr('checked',false);\n        this.set('print_domestic', true);\n        this.set('print_international', false);\n        $('input.cw_print_check').removeAttr('checked');\n        $('input.cw_print_check').prop('checked', false);\n        var print_value = $(\"input[name='print-option']:checked\").val();\n        if (print_value == 'domestic') {\n          this.set('print_domestic', true);\n          this.set('print_international', false);\n        } else if (print_value == 'international') {\n          this.set('print_domestic', false);\n          this.set('print_international', true);\n        }\n      },\n      //This below function is used for set the print type all\n      setprintType: function () {\n        $(event.target).prop('checked', true);\n        var radioValue = event.target.value;\n        if (radioValue == 'international') {\n          $('input.print_international').prop('checked', true);\n          this.set('print_domestic', false);\n          this.set('print_international', true);\n        } else if (radioValue == 'domestic') {\n          $('input.print_domestic').prop('checked', true);\n          this.set('print_domestic', true);\n          this.set('print_international', false);\n        }\n      },\n      getRePrints: function (recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction) {\n        //console.log('In getReprints Action:' + recieved_amount);\n        this.getRePrints(recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction, 'reprint');\n      },\n      //This below function used for gettiing the patient pharmacy instruction history, Rahul Khan, 30 Sept 2019\n      getPharmacyHistory: function (patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/getPharmacyHistory/' + patient_id + '/' + appointment_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            _this.set('pharmacyHistory', response);\n          }\n        });\n      },\n      //This below function used for gettiing the Visit Billing Details,Shubh Tiwari, 4 Feb 2020\n      getVisitBillingList: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/getVisitBillingList/' + appointment_id + '/' + billing_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            _this.set('visitBillingHistory', response);\n          }\n        });\n      }\n    },\n    getBillingPharmacyId: function (billingId) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'location/' + billingId,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true && res.message == 'ok') {\n            _this.set('billing_listing_id', res.billing);\n            _this.set('pharmacy_listing_id', res.pharmacy);\n          } else if (res.status == false && res.message == 'datainsufficient') {\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Oops something went wrong. please reload the page and try again', 'visitmessage');\n          }\n        }\n      });\n    },\n    getPrescribedBranchShiftId: function (billingId, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (billingId == undefined && appointment_id !== undefined) {\n        var ajax_url = _environment.default.APP.lumen_api_url + 'prescribelocation/0/' + appointment_id;\n      } else {\n        var ajax_url = _environment.default.APP.lumen_api_url + 'prescribelocation/' + billingId + '/' + appointment_id;\n      }\n      $.ajax({\n        method: 'GET',\n        url: ajax_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true && res.message == 'ok') {\n            _this.set('prescribe_branch', res.prescribed_branch);\n            _this.set('prescribe_shift', res.prescribed_shift);\n          } else if (res.status == false && res.message == 'datainsufficient') {\n            var shift_id = _this.get('session').getLoggedInUserShift();\n            var branch_id = _this.get('session').getLocation().split('-')[0];\n            _this.set('prescribe_branch', branch_id);\n            _this.set('prescribe_shift', shift_id);\n            //_this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Oops something went wrong. please reload the page and try again','visitmessage');\n          }\n        }\n      });\n    },\n    getLastEditBy: function (appointment_id, billingId) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prescriptionlastedit/' + appointment_id + '/' + billingId,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true && res.message == 'ok') {\n            if (res.username == null) {\n              _this.set('last_prescription_edited_by', '');\n              _this.set('last_prescription_edited_date', '');\n            } else {\n              _this.set('last_prescription_edited_by', res.username.Name);\n              _this.set('last_prescription_edited_date', res.creation_date);\n            }\n          } else if (res.status == false && res.message == 'datainsufficient') {\n            _this.set('last_prescription_edited_by', '');\n            _this.set('last_prescription_edited_date', '');\n          }\n        }\n      });\n    },\n    // getCWPInstruction: function (billingId) {\n    //   var _this = this;\n    //   $.ajax({\n    //     method: 'GET',\n    //     url: ENV.APP.lumen_api_url + 'cwpinstruction/' + billingId,\n    //     success: function (res) {\n    //       //console.log(res);\n    //       if (res.status == true && res.message == 'ok') {\n    //         _this.set('billing_instruction', res.prescribed_branch);\n    //       } else if (res.status == false && res.message == 'datainsufficient') {\n    //         _this.set('billing_instruction', '');\n    //         //_this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Oops something went wrong. please reload the page and try again','visitmessage');\n    //       }\n    //     },\n    //   });\n    // },\n    onChangesOtherChargePGCalculation: function (pg, billingId, visitId, isChecked, action, value) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.get('i18n');\n      var grandTotal = 0;\n      var chargeTotal = 0;\n      var total_amount = 0;\n      var stval = $.trim(parseFloat($('.grdtot').val()));\n      grandTotal += isNaN(stval) ? 0 : stval;\n      $('.box-charge').each(function () {\n        var chargeval = parseFloat($(this).val());\n        chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n      });\n      var consultancy = $('.consultancy').val();\n      var pending = $('.pending').val();\n      var charge = parseInt(consultancy, 10) + parseFloat(pending);\n      var total = parseFloat(grandTotal) + parseFloat(charge) + parseFloat(chargeTotal);\n      var paid_amount = $('.paid_amount').attr('data-paid-amount');\n      var previous_bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n      var pg_amount = $('.pg_amount').attr('data-pg-amount');\n      var previous_pg_amount = isNaN(pg_amount) ? 0.0 : pg_amount;\n      var total_due = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(previous_pg_amount));\n      if (action == 'add') {\n        total_amount = parseFloat(total_due) + parseFloat(value);\n      } else if (action == 'remove') {\n        total_amount = parseFloat(total_due) - parseFloat(value);\n      } else {\n        total_amount = parseFloat(total_due);\n      }\n      var eVal = isNaN(total_amount) ? 0.0 : total_amount;\n      //console.log(eVal);\n      $.ajax({\n        method: 'POST',\n        url: _environment.default.APP.lumen_api_url + 'pgcharge',\n        data: {\n          billingId: billingId,\n          visitId: visitId,\n          pg: pg,\n          checkbox: isChecked,\n          total: eVal\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n        },\n        success: function (res) {\n          if (res.status == true) {\n            _this.set('PGChargeDisable', res.PGChargeDisable);\n            _this.set('pgAmountText', res.pgAmountText);\n            _this.set('PGAmount', res.PGAmount);\n            _this.set('PGChargeChecked', res.checked);\n            _this.set('PGChargePercentage', res.PGChargePercentage);\n          } else if (res.status == false) {\n            _this.set('PGChargeDisable', res.PGChargeDisable);\n            _this.set('pgAmountText', res.pgAmountText);\n            _this.set('PGAmount', res.PGAmount);\n            _this.set('PGChargeChecked', res.checked);\n            _this.set('PGChargePercentage', res.PGChargePercentage);\n          }\n        },\n        error: function (res) {\n          // console.error(res);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n    },\n    visitEditCheck(appointment_id, billing_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'editcheck/' + appointment_id + '/' + billing_id + '/' + patient_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true && res.message == 'ok') {\n            _this.set('visitEdit', res.data);\n          } else if (res.status == false && res.message == 'datainsufficient') {\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Oops something went wrong. please reload the page and try again', 'visitmessage');\n          }\n        }\n      });\n    },\n    checkBilling(appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'check-billing/' + appointment_id + '/' + billing_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          _this.set('enableButton', res.enableButton ? false : true);\n        }\n      });\n    },\n    checkVisiting(appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'check-visit/' + appointment_id + '/' + patient_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          _this.set('editEnableButton', res.enableButton ? false : true);\n        }\n      });\n    },\n    getVisitBilledDate(patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billdate/' + patient_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true && res.message == 'ok') {\n            _this.set('billDate', res.date);\n          } else if (res.status == false && res.message == 'datainsufficient') {\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Oops something went wrong. please reload the page and try again', 'visitmessage');\n          }\n        }\n      });\n    },\n    getLastPaidAmount(appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'lastpaidamount/' + appointment_id + '/' + billing_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          if (res.status == true) {\n            _this.set('lastPaidAmount', res.recieved_amount);\n            _this.set('lastPreviousPaidAmount', res.previous_bill_paid_amount);\n            _this.set('total_received_label', res.total_received_label);\n          } else if (res.status == false) {\n            _this.set('lastPaidAmount', res.recieved_amount);\n            _this.set('lastPreviousPaidAmount', res.previous_bill_paid_amount);\n            _this.set('total_received_label', res.total_received_label);\n          }\n        }\n      });\n    },\n    manageTransactionAdvancePayPopup: function (OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, pending_value, total_visit, page_name, prescribe_doctor, chargeCode, previous_balance_status, total_balance_status, total_visit_amount) {\n      var _this = this;\n      _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n      var total = parseFloat(total_visit);\n      var TotalDue = parseFloat(total_visit);\n      var print_value = 'domestic';\n      var shippingResult = '';\n      var ReceivedAmount = 0;\n      var transaction_status = parseFloat(total_visit) - parseFloat(ReceivedAmount);\n      var transaction_mode = Math.sign(transaction_status);\n      if (transaction_mode == 1) {\n        var mode_value = '0';\n        var total_balance_status = 'Due';\n      } else if (transaction_mode == -1) {\n        var mode_value = '1';\n        var total_balance_status = 'Advance';\n      }\n      _this.send('setMedicineTotalandPendingValue', {\n        OldRegistrationNo: OldRegistrationNo,\n        FirstName: first_name,\n        MiddleName: middle_name,\n        LastName: last_name,\n        VisitDue: total,\n        PreviousBalance: pending_value,\n        ReceivedAmount: ReceivedAmount,\n        TotalDue: TotalDue,\n        ModeValue: mode_value,\n        patientId: patient_id,\n        PrintValue: print_value,\n        ShippingResult: shippingResult,\n        PageName: page_name,\n        MedicinePrintCode: medicine_print_code,\n        ConsultancyPrintCode: consultancy_print_code,\n        ConsultancyFee: consultancy_fee,\n        TotalBalanceStatus: total_balance_status,\n        VisitingId: appointment_id,\n        BillingId: billing_id,\n        PrescribeDoctor: prescribe_doctor,\n        chargeCode: chargeCode,\n        PreviousBalanceStatus: previous_balance_status,\n        paylaterAmount: total_visit_amount,\n        currentPGAmount: 0,\n        PreviousPGAmount: 0\n      });\n      setTimeout(function () {\n        $('.paynowadvance').css('display', 'none');\n        $('.paylateradvance').css('display', 'block');\n        $('.doctor_id').val(prescribe_doctor);\n        $('.appointment_id').val(appointment_id);\n        $('.patient_id').val(patient_id);\n      }, 500);\n    },\n    getPreviousPGCharge(appointment_id, correct_bill = '0') {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'getpreviouspgcharge/' + appointment_id + '/' + correct_bill,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.set('PGamount', res.data);\n        }\n      });\n    },\n    getPGCharge(appointment_id, billing_id) {\n      //Nishant 1/Jan/2023 - Commented code below as we may not need it\n      // var _this = this;\n      // $.ajax({\n      //   method: 'GET',\n      //   url:\n      //     ENV.APP.lumen_api_url +\n      //     'getpgcharge/' +\n      //     appointment_id +\n      //     '/' +\n      //     billing_id,\n      //   success: function (res) {\n      //     //console.log(res);\n      //     _this.set('PGamount', res.data);\n      //   },\n      // });\n    },\n    applyPGChargeOnBillPatient: function (PGCharge, billingId, visitId, isChecked) {\n      var _this = this;\n      let i18n = _this.get('i18n');\n      let utoken = _this.session.getToken();\n      if (PGCharge == 'default') {\n        var pg = _environment.default.pgcharge.default;\n      } else {\n        var pg = PGCharge;\n      }\n      var total = $('.total').attr('data-onlyservice-amount');\n      var paid_amount = $('.total_dues').attr('data-service-total-due');\n      if (paid_amount == undefined || paid_amount == '') {\n        var amount = total;\n      } else if (paid_amount != undefined || paid_amount != '') {\n        var amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n      }\n      $.ajax({\n        method: 'POST',\n        url: _environment.default.APP.lumen_api_url + 'pgcharge',\n        data: {\n          billingId: billingId,\n          visitId: visitId,\n          pg: pg,\n          checkbox: isChecked,\n          total: amount\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n        },\n        success: function (res) {\n          if (res.status == true) {\n            _this.set('PGChargeDisable', res.PGChargeDisable);\n            _this.set('pgAmountText', res.pgAmountText);\n            _this.set('PGAmount', res.PGAmount);\n            _this.set('PGChargeChecked', res.checked);\n            _this.set('PGChargePercentage', res.PGChargePercentage);\n          } else if (res.status == false) {\n            _this.set('PGChargeDisable', res.PGChargeDisable);\n            _this.set('pgAmountText', res.pgAmountText);\n            _this.set('PGAmount', res.PGAmount);\n            _this.set('PGChargeChecked', res.checked);\n            _this.set('PGChargePercentage', res.PGChargePercentage);\n            //var message = i18n.t('billing.messages.datainsufficient');\n            //_this.flashes.danger(message);\n          }\n        },\n        error: function (res) {\n          // console.error(res);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n    },\n    dispatchCancelBySource(appointmentId, source) {\n      let _this = this;\n      let normalized = (source || '').toLowerCase().trim();\n      if (normalized === 'online') {\n        _this.handleOnlineCancel(appointmentId);\n      } else {\n        _this.handleClinicCancel(appointmentId);\n      }\n    },\n    resolveAndDispatchCancel(appointmentId, $selected) {\n      let _this = this;\n      let utoken = _this.session.getToken();\n      let requestId = ++_this._sourceLookupRequestId;\n      let $cancelBtn = $('#manage-transaction-cancel');\n      let $rescheduleBtn = $('#manage-transaction-reschedule');\n      if ($cancelBtn.length) {\n        $cancelBtn.attr('disabled', 'disabled');\n      }\n      if ($rescheduleBtn.length) {\n        $rescheduleBtn.attr('disabled', 'disabled');\n      }\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + appointmentId,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: function (res) {\n          if (requestId !== _this._sourceLookupRequestId) {\n            return;\n          }\n          if (!res.data || !res.data.appointment_booked_from) {\n            Swal.fire({\n              title: 'Unable to determine source',\n              text: 'Unable to determine the appointment source. Please try again or contact support.',\n              icon: 'error'\n            });\n            return;\n          }\n          let resolvedSource = (res.data.appointment_booked_from || '').toLowerCase().trim();\n          if (!_this.sourceLookupCache) {\n            _this.set('sourceLookupCache', {});\n          }\n          _this.sourceLookupCache[appointmentId] = resolvedSource;\n          let $current = $('#manage_appointment tbody input[type=\"radio\"]:checked');\n          if ($current.length === 0 || $.trim($current.val()) !== String(appointmentId)) {\n            return;\n          }\n          _this.applySourceToButtonState(resolvedSource, $cancelBtn, $rescheduleBtn);\n          _this.dispatchCancelBySource(appointmentId, resolvedSource);\n        },\n        error: function () {\n          if (requestId !== _this._sourceLookupRequestId) {\n            return;\n          }\n          Swal.fire({\n            title: 'Lookup failed',\n            text: 'Failed to verify appointment details. Please try again.',\n            icon: 'error'\n          });\n        }\n      });\n    },\n    handleClinicCancel(appointmentId) {\n      let _this = this;\n      let loggedIn = '';\n      try {\n        loggedIn = _this.session.getLoggedInUserName();\n      } catch (e) {\n        loggedIn = '';\n      }\n      let warningText = 'Please note that you, ' + loggedIn + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n      Swal.fire({\n        text: warningText,\n        icon: 'warning',\n        width: 600,\n        showCancelButton: true,\n        allowOutsideClick: false,\n        confirmButtonColor: '#3085d6',\n        cancelButtonColor: '#d33',\n        confirmButtonText: 'Ok'\n      }).then(result => {\n        if (result.isConfirmed) {\n          _this.set('currentCancelMode', 'clinic');\n          _this.set('cancel_appointment_id', appointmentId);\n          _this.send('showNoteDialog', 'clinic');\n        }\n      });\n    },\n    handleOnlineCancel(appointmentId) {\n      let _this = this;\n      _this.send('openCancellationRefundPopup', {\n        appointment_id: appointmentId,\n        gateway: 'razorpay'\n      }, {\n        manageTransactionMode: true,\n        openZeroRefundPopup: false\n      });\n    },\n    showOnlineZeroRefundWarning(appointmentId, warningText, patientName) {\n      let _this = this;\n      if (!warningText) {\n        let loggedIn = '';\n        try {\n          loggedIn = _this.session.getLoggedInUserName();\n        } catch (e) {\n          loggedIn = '';\n        }\n        warningText = 'Please note that you, ' + loggedIn + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n      }\n      Swal.fire({\n        html: '<div>' + warningText + '</div><div style=\"color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:8px 10px;font-size:13px;margin-top:10px;\">Note: This is an online appointment with no amount due. The payment gateway and refund popup will not be shown because there is no payment to refund.</div>',\n        icon: 'warning',\n        width: 600,\n        showCancelButton: true,\n        allowOutsideClick: false,\n        confirmButtonColor: '#3085d6',\n        cancelButtonColor: '#d33',\n        confirmButtonText: 'Ok'\n      }).then(result => {\n        if (result.isConfirmed) {\n          _this.set('currentCancelMode', 'online');\n          _this.set('cancel_appointment_id', appointmentId);\n          _this.send('showNoteDialog', 'online');\n        }\n      });\n    },\n    cancelOnlineAppointmentById(id, note, token) {\n      var _this = this;\n      $.ajax({\n        method: 'POST',\n        url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + id + '/cancel',\n        data: {\n          note: note\n        },\n        headers: {\n          Authorization: `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.validate == 'true') {\n            alert('Appointment cancelled successfully');\n            _this.set('note', '');\n            _this.set('q', '');\n            _this.set('dateTime', null);\n            _this.set('currentCancelMode', null);\n            _this.send('getPendingPatientRecords');\n          } else {\n            alert(res.message || 'Your request can not be processed right now. Please try after sometime. ');\n          }\n        },\n        error: function () {\n          alert('Failed to cancel appointment. Please try again.');\n        }\n      });\n    },\n    cancelClinicAppointment(id, note, token, utoken) {\n      var _this = this;\n      $.ajax({\n        method: 'POST',\n        url: _environment.default.APP.api_url + 'appointments/cancel',\n        data: {\n          id: id,\n          user_id: utoken,\n          note: note\n        },\n        headers: {\n          Authorization: `Bearer ${token}`\n        },\n        success: function (res) {\n          if (res.validate == 'true') {\n            alert('Appointment cancelled successfully');\n            //reset\n            _this.set('note', '');\n            _this.set('q', '');\n            _this.set('dateTime', null);\n            _this.set('currentCancelMode', null);\n            _this.transitionToRoute('manage-transaction.list');\n            _this.send('getPendingPatientRecords');\n          } else if (res.validation == 'notsetpriviousdate') {\n            alert(res.message);\n          } else if (res.validation == 'visitcomplete') {\n            alert(res.message);\n          } else {\n            alert('Your request can not be processed right now. Please try after sometime. ');\n          }\n        }\n      });\n    },\n    getTotalRefundAmount(appointmentId) {\n      let transactions = this.get('gatewayTransactions') || [];\n      let eligible = transactions.filter(t => Number(t.appointment_id) === Number(appointmentId) && ['success', 'completed'].includes(t.status) && t.gateway !== 'manual');\n      return eligible.reduce((sum, t) => sum + (parseFloat(t.amount) || 0), 0);\n    },\n    applySourceToButtonState(source, $cancelBtn, $rescheduleBtn) {\n      let normalized = (source || '').toLowerCase().trim();\n      let isOnline = normalized === 'online';\n      if ($cancelBtn.length) {\n        $cancelBtn.removeAttr('disabled');\n      }\n      if ($rescheduleBtn.length) {\n        if (isOnline) {\n          $rescheduleBtn.attr('disabled', 'disabled');\n        } else {\n          $rescheduleBtn.removeAttr('disabled');\n        }\n      }\n    },\n    resolveAppointmentSource(appointmentId, $cancelBtn, $rescheduleBtn) {\n      let _this = this;\n      let utoken = _this.session.getToken();\n      if ($cancelBtn.length) {\n        $cancelBtn.attr('disabled', 'disabled');\n      }\n      if ($rescheduleBtn.length) {\n        $rescheduleBtn.attr('disabled', 'disabled');\n      }\n      let requestId = ++_this._sourceLookupRequestId;\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + appointmentId,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: function (res) {\n          if (requestId !== _this._sourceLookupRequestId) {\n            return;\n          }\n          if (res.data && res.data.appointment_booked_from) {\n            let source = (res.data.appointment_booked_from || '').toLowerCase().trim();\n            if (!_this.sourceLookupCache) {\n              _this.set('sourceLookupCache', {});\n            }\n            _this.sourceLookupCache[appointmentId] = source;\n            let $current = $('#manage_appointment tbody input[type=\"radio\"]:checked');\n            if ($current.length === 0 || $.trim($current.val()) !== String(appointmentId)) {\n              return;\n            }\n            _this.applySourceToButtonState(source, $cancelBtn, $rescheduleBtn);\n          } else {\n            Swal.fire({\n              title: 'Unable to determine source',\n              text: 'Unable to determine the appointment source. Please try again or contact support.',\n              icon: 'error'\n            });\n          }\n        },\n        error: function () {\n          if (requestId !== _this._sourceLookupRequestId) {\n            return;\n          }\n          Swal.fire({\n            title: 'Lookup failed',\n            text: 'Failed to verify appointment details. Please try again.',\n            icon: 'error'\n          });\n        }\n      });\n    },\n    updateManageTransactionButtonState: function () {\n      var _this = this;\n      let $selected = $('#manage_appointment tbody input[type=\"radio\"]:checked');\n      let $cancelBtn = $('#manage-transaction-cancel');\n      let $rescheduleBtn = $('#manage-transaction-reschedule');\n      if ($selected.length === 0) {\n        if ($cancelBtn.length) {\n          $cancelBtn.attr('disabled', 'disabled');\n        }\n        if ($rescheduleBtn.length) {\n          $rescheduleBtn.attr('disabled', 'disabled');\n        }\n        $('.pending_amount').attr('data-pending-amount', '');\n        return;\n      }\n      let payment_id = $.trim($selected.attr('data-payment_id'));\n      let payment_status = $.trim($selected.attr('data-payment_status'));\n      let billing_id = $.trim($selected.attr('data-billing_id'));\n      let visit_status = $.trim($selected.attr('data-visit_status'));\n      let appointment_id = $.trim($selected.val());\n      let source = $.trim($selected.attr('data-appointment-booked-from') || '');\n      let pendingAmount = $.trim($('.pendingAmount' + appointment_id).text());\n      let canAct = false;\n      if (payment_id != 'null' && payment_status == '2' && billing_id != 'null' && appointment_id != 'null' && visit_status == '1') {\n        canAct = true;\n        $('.pending_amount').attr('data-pending-amount', pendingAmount);\n      } else if (payment_id != 'null' && payment_status == '1' && billing_id != 'null' && appointment_id != 'null' && visit_status == '0') {\n        canAct = false;\n        $('.pending_amount').attr('data-pending-amount', '');\n      } else if (payment_id == 'null' && payment_status == '2' && billing_id != 'null' && appointment_id != 'null' && visit_status == '0') {\n        canAct = true;\n        $('.pending_amount').attr('data-pending-amount', '');\n      } else if (payment_id != 'null' && payment_status == '2' && billing_id != 'null' && appointment_id != 'null' && (visit_status == '2' || visit_status == '3')) {\n        canAct = false;\n        $('.pending_amount').attr('data-pending-amount', '');\n      } else if (payment_id == 'null' && payment_status == '1' && billing_id == 'null' && appointment_id != 'null' && visit_status == '0') {\n        canAct = false;\n        $('.pending_amount').removeAttr('data-pending-amount');\n      } else {\n        canAct = false;\n        $('.pending_amount').attr('data-pending-amount', '');\n      }\n      if (!canAct) {\n        if ($cancelBtn.length) {\n          $cancelBtn.attr('disabled', 'disabled');\n        }\n        if ($rescheduleBtn.length) {\n          $rescheduleBtn.attr('disabled', 'disabled');\n        }\n        return;\n      }\n      if (source) {\n        _this.applySourceToButtonState(source, $cancelBtn, $rescheduleBtn);\n      } else {\n        let cached = _this.sourceLookupCache && _this.sourceLookupCache[appointment_id];\n        if (cached) {\n          _this.applySourceToButtonState(cached, $cancelBtn, $rescheduleBtn);\n        } else {\n          _this.resolveAppointmentSource(appointment_id, $cancelBtn, $rescheduleBtn);\n        }\n      }\n    },\n    getPendingPatientRecords: function (doctorId, branchId, fromdate, todate, statusId, patientInfo, mobileNo, registrationNo, appointmentId) {\n      // Initialize DataTables API object and configure table for pharmacy history,written by shubh tiwari as on 03-08-2022\n      var _this = this;\n      let utoken = this.session.getToken();\n      let canShowRazorandHDFCButton = this.permissions.can(\"showRazorandHDFCButton\");\n      $(document).ready(function () {\n        jQuery.noConflict();\n        //$(\"#pharmacy_historybody\").empty();\n        $('#manage_appointment').DataTable().destroy();\n        var table = $('#manage_appointment').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: _environment.default.APP.lumen_api_url + 'pendingpatient?branch_id=' + branchId + '&pending_status=' + statusId + '&doctor_id=' + doctorId + '&from_date=' + fromdate + '&to_date=' + todate + '&patient_info=' + patientInfo + '&mobile_no=' + mobileNo + '&registration=' + registrationNo + '&appointment_id=' + appointmentId,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            }\n          },\n          columns: [{\n            data: 'appointment_id',\n            width: '10px',\n            render: function (data, type, row) {\n              let select_radio = '';\n              if (type === 'display') {\n                if (row.appointment_id != '' || row.appointment_id != null) {\n                  select_radio += '<input type=\"radio\" name=\"sel\" class=\"checkenabledisablecancelandreschedulebutton\"  data-payment_id=\"' + row.payment_id + '\" data-payment_status=\"' + row.payment_status + '\" data-billing_id=\"' + row.billing_id + '\" data-visit_status=\"' + row.visit_status + '\" data-billing_count=\"' + (row.billing_count || 1) + '\" data-appointment-booked-from=\"' + (row.appointment_booked_from || '') + '\" value=\"' + data + '\">';\n                }\n              }\n              return select_radio;\n            }\n          }, {\n            data: 'appointment_id',\n            width: '50px',\n            render: function (data, type, row) {\n              let bookedFrom = (row.appointment_booked_from || '').toLowerCase();\n              let badgeClass = 'default';\n              let badgeText = '-';\n              if (bookedFrom === 'online') {\n                badgeClass = 'success';\n                badgeText = 'Online';\n              } else if (bookedFrom === 'clinic') {\n                badgeClass = 'primary';\n                badgeText = 'Clinic';\n              } else if (bookedFrom === 'kiosk') {\n                badgeClass = 'warning';\n                badgeText = 'Kiosk';\n              }\n              return '<strong>' + data + '</strong><br><span class=\"badge badge-' + badgeClass + ' badge-xs\">' + badgeText + '</span>';\n            }\n          }, {\n            data: 'title',\n            width: '10px'\n          }, {\n            className: 'text-uppercase',\n            data: 'appointment_type',\n            width: '60px'\n          }, {\n            data: 'transaction_time',\n            width: '125px'\n          }, {\n            data: 'total_due_amount',\n            width: '80px',\n            render: function (data, type, row) {\n              let amount = 0;\n              let status = '';\n              let rupees = '<strong><i class=\"fas fa-rupee-sign\"></i></strong>' + ' ';\n              if (type === 'display') {\n                var total_received = Math.abs(row.pending_amount);\n                var total = parseFloat(total_received).toFixed(2);\n                var transaction_mode = Math.sign(row.pending_amount);\n                amount = '<span class=\"pendingAmount' + row.appointment_id + '\">' + total + '</span>';\n                if (transaction_mode == 1) {\n                  status = '(A)';\n                } else if (transaction_mode == -1) {\n                  status = '(D)';\n                } else if (transaction_mode == 0) {\n                  status = '(D)';\n                }\n              }\n              return rupees + amount + '  ' + status;\n            }\n          }, {\n            data: 'payment_status',\n            visible: false,\n            //Nishant 11-Jan-2023 hide this column for now as the Type/Status column will show same value for every record and does not add value at the moment. Deleting the column was messing up sorting of data for some reason so hiding it.\n            mRender: function (data, type) {\n              if (type === 'display') {\n                let payment_status = '';\n                switch (data) {\n                  case '1':\n                    payment_status = 'Cancelled Appointments';\n                    break;\n                  case '2':\n                    payment_status = 'Pending Payment';\n                    break;\n                  case '3':\n                    payment_status = 'All';\n                    break;\n                }\n                return payment_status;\n              }\n              return data;\n            }\n          }, {\n            className: 'text-capitalize',\n            data: 'name',\n            width: '200px',\n            render: function (data, type, row) {\n              var registration_no = '';\n              if (type === 'display') {\n                if (row.OldRegistrationNo == '') {\n                  registration_no = '  (<b>NP</b>)';\n                } else {\n                  registration_no = '  (<b>' + row.OldRegistrationNo + '</b>)';\n                }\n              }\n              return row.name + registration_no;\n            }\n          }, {\n            data: 'remark',\n            width: '100px'\n          }, {\n            className: 'prescribe-button',\n            width: '120px',\n            mRender: function (data, type, row) {\n              var prescribe_url = '<div class=\"dt-action-buttons\">';\n              var pay_button = '';\n              var pay_button_status = Math.sign(row.pending_amount);\n              if (pay_button_status == 1) {\n                pay_button = 'Refund';\n              } else if (pay_button_status == -1) {\n                pay_button = 'Pay';\n              } else if (pay_button_status == 0) {\n                pay_button = 'Pay';\n              }\n              if (type === 'display') {\n                if (row.payment_id != null) {\n                  if (row.payment_status == '2') {\n                    //partial payment case (normal billing part payment or partial advance both come here)\n                    prescribe_url += '<button type=\"button\" name=\"pay\" data-first_name=\"' + row.first_name + '\" data-middle_name=\"' + row.middle_name + '\" data-last_name=\"' + row.last_name + '\" data-billing_id=\"' + row.billing_id + '\" data-appointment_id=\"' + row.appointment_id + '\" data-prescribed_shift=\"' + row.prescribed_shift + '\" data-prescribed_branch=\"' + row.prescribed_branch + '\" data-patient_id=\"' + row.patient_id + '\" data-OldRegistrationNo=\"' + row.OldRegistrationNo + '\" data-name=\"' + row.name + '\" data-consultancy_fees=\"' + row.consultancy_fees + '\" data-consultancy_print_code=\"' + row.consultancy_print_code + '\" data-medicine_print_code=\"MDN\" data-total_due_amount=\"' + row.total_due_amount + '\" data-recieved_amount=\"' + row.recieved_amount + '\" data-pg_amount=\"' + row.pg_amount + '\" data-page_name=\"Manage Transaction\" data-doctor_id=\"' + row.doctor_id + '\" data-visit_due_amount=\"' + row.visit_due_amount + '\" data-credit_amount=\"' + row.credit_amount + '\" data-debit_amount=\"' + row.debit_amount + '\" data-previous-bill-paid=\"' + row.previous_bill_paid_amount + '\" class=\"btn btn-warning btn-xs pendingAmountPopup\">' + pay_button + '</button>';\n                    prescribe_url += ' ';\n                    if (row.visit_status != '1') {\n                      prescribe_url += '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/billedpatient/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '/' + row.importvisitid + '\" title=\"Details\" class=\"btn btn-primary btn-xs\"> Details </a>';\n                    }\n                    prescribe_url += ' ';\n                    // Hide Payment Details for previous billing records (when multiple billing records exist for same appointment)\n                    if (row.appointment_booked_from === 'online' && row.online_order_id && canShowRazorandHDFCButton && (row.billing_count <= 1 || !row.billing_count)) {\n                      prescribe_url += '<button type=\"button\" name=\"showPaymentDetails\" data-order-id=\"' + row.online_order_id + '\" data-billing-count=\"' + (row.billing_count || 1) + '\" title=\"Payment Details \" class=\"btn btn-success btn-xs showPaymentDetailsPopup\"> Payment Details </button>';\n                    }\n                  } else if (row.payment_status == '1') {\n                    //Cancelled Appointment with advance case\n                    prescribe_url += '<button type=\"button\" name=\"pay\" data-first_name=\"' + row.first_name + '\" data-middle_name=\"' + row.middle_name + '\" data-last_name=\"' + row.last_name + '\" data-billing_id=\"' + row.billing_id + '\" data-appointment_id=\"' + row.appointment_id + '\" data-patient_id=\"' + row.patient_id + '\" data-OldRegistrationNo=\"' + row.OldRegistrationNo + '\" data-name=\"' + row.name + '\" data-consultancy_fees=\"' + row.consultancy_fees + '\" data-consultancy_print_code=\"' + row.consultancy_print_code + '\" data-medicine_print_code=\"MDN\" data-total_due_amount=\"' + row.total_due_amount + '\" data-recieved_amount=\"' + row.recieved_amount + '\" data-pg_amount=\"' + row.pg_amount + '\" data-page_name=\"Manage Transaction\" data-doctor_id=\"' + row.doctor_id + '\" data-visit_due_amount=\"' + row.visit_due_amount + '\" data-credit_amount=\"' + row.credit_amount + '\" data-debit_amount=\"' + row.debit_amount + '\" data-previous-bill-paid=\"' + row.previous_bill_paid_amount + '\" data-prescribed_shift=\"' + row.prescribed_shift + '\" data-prescribed_branch=\"' + row.prescribed_branch + '\" class=\"btn btn-warning btn-xs payAdvanceAmountButCancelPopup\">' + pay_button + '</button>';\n                  }\n                } else if (row.payment_id == null) {\n                  //No payment record, so this would be accept later case\n                  if (row.payment_status == '1') {\n                    //if cancelled, then show nothing\n                    prescribe_url += ' ';\n                  } else {\n                    //paylater case\n                    prescribe_url += '<button type=\"button\" name=\"pay\" data-first_name=\"' + row.first_name + '\" data-middle_name=\"' + row.middle_name + '\" data-last_name=\"' + row.last_name + '\" data-appointment_id=\"' + row.appointment_id + '\" data-patient_id=\"' + row.patient_id + '\" data-OldRegistrationNo=\"' + row.OldRegistrationNo + '\" data-name=\"' + row.name + '\" data-consultancy_fees=\"' + row.consultancy_fees + '\" data-consultancy_print_code=\"' + row.consultancy_print_code + '\" data-medicine_print_code=\"MDN\" data-total_due_amount=\"' + row.total_due_amount + '\" data-recieved_amount=\"' + row.recieved_amount + '\" data-pg_amount=\"' + row.pg_amount + '\" data-previous-bill-paid=\"' + row.previous_bill_paid_amount + '\" data-page_name=\"appointment\" data-doctor_id=\"' + row.doctor_id + '\"  data-prescribed_shift=\"' + row.prescribed_shift + '\" data-prescribed_branch=\"' + row.prescribed_branch + '\" class=\"btn btn-warning btn-xs payAdvanceButAcceptLaterPayment\"> ' + pay_button + '</button>';\n                  }\n                }\n              }\n              prescribe_url += '</div>';\n              return prescribe_url;\n            }\n          }],\n          drawCallback: function () {\n            _this.updateManageTransactionButtonState();\n          }\n        });\n        // Redraw the table\n        table.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          table.draw();\n        });\n      });\n    },\n    getPatientAddress: function (patient_id, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        async: false,\n        success: function (res) {\n          if (res.data.length > 0) {\n            var addressData = res.data[0];\n            var address = _this.recalculateAmount.getShippingAddress(addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n            var shipping_address_1 = addressData.shipping_address_one;\n            var shipping_address_2 = addressData.shipping_address_two;\n            var shipping_selected_country = addressData.shipping_country;\n            var shipping_selected_state = addressData.shipping_state;\n            var shipping_selected_city = addressData.shipping_city;\n            var shipping_zip = addressData.shipping_pin_code;\n            var shipping_mob = addressData.shipping_mobile_no;\n            var shipp = {\n              shipping_address_1: shipping_address_1,\n              shipping_address_2: shipping_address_2,\n              shipping_selected_country: shipping_selected_country,\n              shipping_selected_state: shipping_selected_state,\n              shipping_selected_city: shipping_selected_city,\n              shipping_zip: shipping_zip,\n              shipping_mob: shipping_mob,\n              updateInMaster: 0\n            };\n            if (addressData.billing_location == 0) {\n              var billing_location = _this.session.getLocation().split('-')[0];\n            } else {\n              var billing_location = addressData.billing_location;\n            }\n            if (addressData.pickup_location == 0) {\n              var pickup_location = _this.session.getLocation().split('-')[0];\n            } else {\n              var pickup_location = addressData.pickup_location;\n            }\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('shiping_pickup', addressData.dispatch_or_pickup);\n            _this.set('shipping_pharmacy_location', pickup_location);\n            _this.set('shipping_billing_location', billing_location);\n            _this.set('prescription_email', addressData.prescription_email);\n            _this.set('shipp', shipp);\n            _this.set('address', address);\n            _this.set('ajaxState', shipp.shipping_selected_state);\n            _this.set('ajaxCountry', shipp.shipping_selected_country);\n            $('#shipping_address_column').empty().html(address);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  var address = _this.recalculateAmount.getShippingAddress(data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                  var shipping_address_1 = data.full_address_per;\n                  var shipping_address_2 = data.full_address_res;\n                  var shipping_selected_country = data.country_id_per;\n                  var shipping_selected_state = data.state_id_per;\n                  var shipping_selected_city = data.city_id_per;\n                  var shipping_zip = data.pincode_per;\n                  var shipping_mob = data.phone_res;\n                } else {\n                  var address = _this.recalculateAmount.getShippingAddress(data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                  var shipping_address_1 = data.shipping_full_address_per;\n                  var shipping_address_2 = data.shipping_full_address_res;\n                  var shipping_selected_country = data.shipping_country_id;\n                  var shipping_selected_state = data.shipping_state_id;\n                  var shipping_selected_city = data.shipping_city_id;\n                  var shipping_zip = data.shipping_pin_code;\n                  var shipping_mob = data.shipping_mobile;\n                }\n                var shipp = {\n                  shipping_address_1: shipping_address_1,\n                  shipping_address_2: shipping_address_2,\n                  shipping_selected_country: shipping_selected_country,\n                  shipping_selected_state: shipping_selected_state,\n                  shipping_selected_city: shipping_selected_city,\n                  shipping_zip: shipping_zip,\n                  shipping_mob: shipping_mob,\n                  updateInMaster: 0\n                };\n                _this.set('address_mismatch', 0);\n                _this.set('shiping_pickup', 'P');\n                _this.set('shipping_pharmacy_location', '');\n                _this.set('shipping_billing_location', '');\n                _this.set('prescription_email', '');\n                _this.set('shipp', shipp);\n                _this.set('address', address);\n                _this.set('ajaxState', shipp.shipping_selected_state);\n                _this.set('ajaxCountry', shipp.shipping_selected_country);\n                $('#shipping_address_column').empty().html(address);\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: _this.get('ajaxCountry')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: _this.get('ajaxState')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    //This function is called by billing pages including edit, correct, details etc\n    openPaymentPopup: function (patient_id, prescribe_doc_name) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.get('i18n');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'tabsexist',\n        data: {\n          p_id: patient_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.p_edit_status == 'Yes' && res.action == \"exists_data\" && res.error == false) {\n            var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n              object: prescribe_doc_name,\n              page: 'editing a Presciption/Case taking',\n              branch_name: res.branch_name.title,\n              shift_name: res.shift_name\n            });\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'billpatient');\n          } else if (res.action == \"no_exists_data\" && res.error == true) {\n            //var _this = this;\n            var grandTotal = 0;\n            var chargeTotal = 0;\n            var bill_paid_amount = 0;\n            var branch_detail = _this.session.getLocation().split('-');\n            var branch_id = branch_detail[0];\n            var addressDetails = _this.shipp;\n            var shippingResult = _this.shippingValidation.shippingValidation(addressDetails, branch_id);\n            var appointment_id = $('input[type=hidden][name=visiting_id]').val();\n            var patient_id = $('input[type=hidden][name=patient_id]').val();\n            var doctor_id = _this.session.getLoggedInUserId();\n            //console.log(shippingResult);\n            $('#pending').empty();\n            $('#pending').html('');\n            if (shippingResult.dispatchOrPickup == \"D\" && shippingResult != false) {\n              shippingResult['patient_id'] = patient_id;\n              shippingResult['appointment_id'] = appointment_id;\n              shippingResult['created_by'] = doctor_id;\n              $.ajax({\n                method: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n                data: {\n                  data: shippingResult\n                },\n                dataType: 'json',\n                //async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resship_validation) {\n                  if (resship_validation.error == true) {\n                    _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'dicoundisplayerror');\n                  } else if (resship_validation.error == false) {\n                    _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n                  }\n                }\n              });\n            } else if ((shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && (shippingResult != false || shippingResult == false)) {\n              _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n            }\n            // grandTotal variable on factor change\n            $('.grdtot').each(function () {\n              var stval = parseFloat($(this).val());\n              grandTotal += isNaN(stval) ? 0 : stval;\n            });\n            //  previous_bill_amount variable on total received\n            $('.received_amount').each(function () {\n              var stval = parseFloat($(this).val());\n              bill_paid_amount += isNaN(stval) ? 0 : stval;\n            });\n            // chargeTotal variable for get total charge price\n            $('.box-charge').each(function () {\n              var chargeval = parseFloat($(this).val());\n              chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n            });\n            var currentpgcharge = $('#pagepayment_gateway_charge').val();\n            var current_pg_charge = isNaN(currentpgcharge) ? 0 : currentpgcharge;\n            var previous_pg_amount = $('#pg_amount').val();\n            var previous_pgAmount = isNaN(previous_pg_amount) ? 0 : previous_pg_amount;\n            var consultancy = $('.consultancy').val();\n            var pending = $('.pending').val();\n            var pgAmount = $('#pgAmount').val();\n            var charge = parseInt(consultancy, 10);\n            var pending_value = parseFloat(pending).toFixed(2);\n            var med_total_with_charge = parseInt(charge) + parseFloat(chargeTotal) + parseFloat(grandTotal) + parseFloat(pending_value);\n            // console.log('consultancy:'+charge);\n            // console.log('box-charge:'+chargeTotal);\n            // console.log('Med-charge:'+grandTotal);\n            // console.log('pending:'+pending_value);\n            // console.log('med_total_with_charge:'+med_total_with_charge);\n            /*chnages chargetodecimal variable value parseInt to parseFloat as on 06 Aug 2019 by Shubh Tiwari*/\n            var chargetodecimal = parseFloat(med_total_with_charge).toFixed(2);\n            var total = isNaN(chargetodecimal) ? 0.0 : chargetodecimal;\n            var PG_amount = parseFloat(pgAmount).toFixed(2);\n            var PGtotal = isNaN(PG_amount) ? 0.0 : PG_amount;\n            var totaldue = parseFloat(total) - (parseFloat(bill_paid_amount) - parseFloat(previous_pgAmount)) + parseFloat(PGtotal);\n            var total_due = parseFloat(totaldue).toFixed(2);\n            var print_value = $(\"input[name='print_option']:checked\").val();\n            var patient_id = $('#patient_id').val();\n            var page_name = $('#page').val();\n            var OldRegistrationNo = $('#OldRegistrationNo').val();\n            var first_name = $('#FirstName').val();\n            var middle_name = $('#MiddleName').val();\n            var last_name = $('#LastName').val();\n            var doctor_fees = $('#doctor_fees').val();\n            var visiting_id = $('#visiting_id').val();\n            var billing_id = $('#billing_id').val();\n            var previous_bill_paid = $('.paid_amount').attr('data-paid-amount');\n            var paid_bill = $('.secondround').attr('data-partialtotal');\n            var second_paid_amount = isNaN(paid_bill) ? 0.0 : paid_bill;\n            if (second_paid_amount != undefined && previous_bill_paid != undefined) {\n              var bill_amount = 0;\n            } else if (previous_bill_paid == undefined) {\n              var bill_amount = 0;\n            } else {\n              var bill_amount = previous_bill_paid;\n            }\n            var prescribe_doctor = $('#PrescribingDoctor').val();\n            var total_received = bill_paid_amount;\n            var medicine_print_code = 'MDN';\n            var consultancy_print_code = 'SDC';\n            //var total_with_pending = parseFloat(total) + parseFloat(pending_value);\n            //var total_due_amount = parseFloat(total) - parseFloat(total_received);\n            var transaction_status = parseFloat(total) - (parseFloat(bill_paid_amount) - parseFloat(previous_pgAmount)) + parseFloat(PGtotal);\n            var previous_balance_mode = Math.sign(pending_value);\n            if (previous_balance_mode == 1) {\n              var previous_balance_status = 'due';\n            } else if (previous_balance_mode == -1) {\n              var previous_balance_status = 'adv';\n            } else if (previous_balance_mode == 0) {\n              var previous_balance_status = 'due';\n            }\n            var transaction_mode = Math.sign(transaction_status);\n            if (transaction_mode == 1) {\n              var mode_value = '0';\n              var total_balance_status = 'DUE';\n            } else if (transaction_mode == -1) {\n              var mode_value = '1';\n              var total_balance_status = 'ADVANCE';\n            } else if (transaction_mode == 0) {\n              var mode_value = '0';\n              var total_balance_status = 'NO DUE';\n            }\n            _this.send('setMedicineTotalandPendingValue', {\n              OldRegistrationNo: OldRegistrationNo,\n              FirstName: first_name,\n              MiddleName: middle_name,\n              LastName: last_name,\n              VisitDue: total,\n              PreviousBalance: Math.abs(parseFloat(pending_value).toFixed(2)),\n              ReceivedAmount: total_received,\n              TotalDue: total_due,\n              ModeValue: mode_value,\n              patientId: patient_id,\n              PrintValue: print_value,\n              ShippingResult: shippingResult,\n              PageName: page_name,\n              MedicinePrintCode: medicine_print_code,\n              ConsultancyPrintCode: consultancy_print_code,\n              ConsultancyFee: doctor_fees,\n              TotalBalanceStatus: total_balance_status,\n              VisitingId: visiting_id,\n              BillingId: billing_id,\n              PrescribeDoctor: prescribe_doctor,\n              PreviousPGAmount: 0,\n              //previous_pgAmount,\n              PreviousBillPaid: bill_amount,\n              PreviousBalanceStatus: previous_balance_status,\n              totalHidden: parseFloat(total) - parseFloat(pending_value),\n              //pending_value is debit - credit of last visit or manually set previous_due amount from payment table.\n              paylaterAmount: 0,\n              currentPGAmount: PGtotal,\n              currentPGCharge: current_pg_charge\n            });\n          }\n        }\n      });\n    },\n    //This below function is used for getting patient previous visit pending amount\n    // getPreviousPaymentCharge: function (appointment_id, billing_id) {\n    //   var _this = this;\n    //   if (appointment_id == undefined && billing_id == undefined) {\n    //     appointment_id = _this.get('appointment_id');\n    //     billing_id = _this.get('billing_id');\n    //   }\n    //   var base_url =\n    //     ENV.APP.lumen_api_url +\n    //     'billing/previousgatewaycharge/' +\n    //     appointment_id +\n    //     '/' +\n    //     billing_id;\n    //   if (appointment_id != undefined && billing_id != undefined) {\n    //     $.ajax({\n    //       url: base_url,\n    //       method: 'GET',\n    //       success: function (res) {\n    //         if (res > 0) {\n    //           _this.set('gateway_charge', res);\n    //         }\n    //       },\n    //       complete: function (res) {\n    //         //console.log(\"Execution complete\");\n    //       },\n    //     });\n    //   }\n    // },\n    //Action Block end here\n    //This function is used for getting the selected Re-Prints, Rahul Khan, 13 sept 2019 Testtest\n    getRePrints: function (recieved_amount, medicine_amount, remaining_balance, remaining_Balance_Status, vial_data, charge_data, factor_perce_value2, consultancy_status, medicine_print_code, consultancy_print_code, refund, Prescriptions_Totals, previous_due, pg_amount, print_id, eventAction, printfrom) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //console.log(eventAction);\n      //console.log(print_id);\n      var visit_charge_code_array = [];\n      var total_transction = _this.get('total_transction');\n      var medicineDetails = _this.get('billpatient');\n      var pg_amount = _this.get('billed_gateway_charge');\n      var visit_pending_amount = _this.get('visit_pending_amount');\n      var patientDetails = _this.get('PrescribePatient');\n      var recevedAmount = _this.get('visitTotalReceived');\n      var PrescriptionTotal = _this.get('PrescriptionTotal');\n      var medicineTotal = _this.get('medicineTotal');\n      var remainingBalanceStatus = _this.get('remainingBalanceStatus');\n      var total_due_amount = _this.get('total_due_amount');\n      var recieved_paid_amount = _this.get('recieved_amount');\n      var refundStatus = _this.get('refundStatus');\n      var remainingBalance = _this.get('remainingBalance');\n      var UserchangeVialData = _this.get('changeVialData');\n      var visit_charges = _this.get('charge_code');\n      var medDiscounts = _this.get('medDiscounts');\n      var consultancy_waived = _this.get('consultancy_waived');\n      var cons_print_code = _this.get('consultancy_print_code');\n      var med_print_code = _this.get('medicine_print_code');\n      //console.log('In getReprints Function total_due_amount:' + total_due_amount);\n      //console.log('In getReprints Function remainingBalance:' + remainingBalance);\n      if (pg_amount == undefined) {\n        var pg_amount = pg_amount;\n      }\n      //console.log(pg_amount);\n      if (medicineTotal == undefined) {\n        var medicineTotal = medicine_amount;\n      }\n      if (recevedAmount == undefined) {\n        var recevedAmount = recieved_amount;\n      }\n      if (remainingBalanceStatus == undefined) {\n        var remainingBalanceStatus = remaining_Balance_Status;\n      }\n      if (remainingBalance == undefined) {\n        var remainingBalance = remaining_balance;\n      }\n      if (UserchangeVialData == undefined) {\n        var UserchangeVialData = vial_data;\n      }\n      if (visit_charges == undefined) {\n        if (charge_data.firstObject != undefined) {\n          $.each(charge_data, function (key, value) {\n            visit_charge_code_array.push(value.charge_code.toUpperCase());\n          });\n        }\n        var visit_charges = visit_charge_code_array;\n      }\n      if (medDiscounts == undefined) {\n        var medDiscounts = factor_perce_value2;\n      }\n      if (consultancy_waived == undefined) {\n        var consultancy_waived = consultancy_status;\n      }\n      if (cons_print_code == undefined) {\n        cons_print_code = consultancy_print_code;\n      }\n      if (med_print_code == undefined) {\n        med_print_code = medicine_print_code;\n      }\n      if (PrescriptionTotal == undefined) {\n        PrescriptionTotal = Prescriptions_Totals;\n      }\n      if (visit_pending_amount == undefined) {\n        visit_pending_amount = previous_due;\n      }\n\n      //console.log(remainingBalanceStatus);\n      var printFormats = [];\n      $('input.cw_print_check:checked').each(function () {\n        var value = this.value;\n        printFormats.push(value);\n      });\n      //console.log(printFormats);\n      if (printFormats.indexOf('1') !== -1) {\n        // console.log(\"Domestic Prescription\");\n        var appointment_id = $('input[type=hidden][name=visiting_id]').val();\n        var patient_id = $('input[type=hidden][name=patient_id]').val();\n        var doctor_id = $('input[type=hidden][name=PrescribingDoctor]').val();\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          _this.getAdvisedPrint(appointment_id, patient_id, doctor_id);\n        }\n      }\n      // return false;\n      //This below print function is works for Domestic prescription print\n      if (printFormats.indexOf('inc_presc') !== -1) {\n        // console.log(\"Domestic Prescription\");\n        _this.prescription(medicineDetails, patientDetails, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code);\n      }\n      //This below print function is works for International Prescription Print\n      if (printFormats.indexOf('cons_presc') !== -1) {\n        //console.log('International Prescription');\n        _this.prescription_receipt(medicineDetails, patientDetails, medicineTotal, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code);\n      }\n      //This below print function is works for Domestic Consignment Prescription Print\n      if (printFormats.indexOf('domst_cons_presc') !== -1) {\n        //console.log('Domestic Consignment Prescription');\n        _this.domestic_prescription(medicineDetails, patientDetails, recevedAmount, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, PrescriptionTotal, visit_pending_amount, remainingBalance, remainingBalanceStatus, refundStatus, total_due_amount, recieved_paid_amount, pg_amount, total_transction);\n      }\n      //This below print function is works for Medical Print\n      if (printFormats.indexOf('medical_certificate') !== -1) {\n        //console.log('Medical Certificate');\n        var appointment_id = $('input[type=hidden][name=visiting_id]').val();\n        if (appointment_id == undefined) {\n          var visit_id = _this.get('appointment_id');\n        } else {\n          var visit_id = $('input[type=hidden][name=visiting_id]').val();\n        }\n        var patient_details = patientDetails;\n        var salutationss = patient_details[0].salutation;\n        if (salutationss != '') {\n          var title = salutationss + '.';\n        } else {\n          var title = '';\n        }\n        var patientDetails = patient_details[0];\n        if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n          var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n          var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n          var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n          var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n        } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n          var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n          var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n          var name = title + ' ' + f_name + ' ' + l_name;\n        } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n          var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n          var name = title + ' ' + f_name;\n        } else {\n          var f_name = patient_details[0].first_name;\n          var name = title + ' ' + f_name;\n        }\n        if (patientDetails.gender !== '' && patientDetails.gender !== null) {\n          var gender = patientDetails.gender;\n        } else {\n          var gender = '';\n        }\n        var patient_birthday = patient_details[0].birthday;\n        var years = patient_details[0].age;\n        var months = patient_details[0].months;\n        var days = patient_details[0].days;\n        var visit_date = moment().format('YYYY-MM-DD');\n        var patient_dob = _this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n        if (patient_dob !== null && patient_dob !== '') {\n          var dob = patient_dob;\n        } else {\n          var dob = '';\n        }\n        let loginUser = this.session.printUser();\n        var prescribe_doctor = patient_details[0].prescribing_doc_name;\n        var today = moment().format('DD-MM-YYYY HH:mm:ss A');\n        var d = '';\n        /******This ajax request is used for making the *******/\n        /*********This condition is used for checking the doctor priscribing doctor print format********/\n        var doctor_id = this.PrescribingDoctor;\n        if (doctor_id == null) {\n          doctor_id = 0;\n        }\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'symptom/' + visit_id,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            var symptom = [];\n            res.data.forEach(function (val, index) {\n              var table_diesase_name = '';\n              var DKBC_disease_id = val.DKBC_disease_id;\n              var DKBC_organ_id = val.DKBC_organ_id;\n              var DKBC_system_id = val.DKBC_system_id;\n              var DKBC_disease_others = val.DKBC_disease_others;\n              var DKBC_organ_others = val.DKBC_organ_others;\n              var DKBC_system_others = val.DKBC_system_others;\n              var ICD_disease_name = val.certificate_name;\n              var disease = val.disease;\n              var organ = val.organ;\n              var system = val.system;\n              if (disease != undefined) {\n                var disease_name = disease.name;\n              }\n              if (organ != undefined) {\n                var organ_name = organ.name;\n              }\n              if (system != undefined) {\n                var system_name = system.name;\n              }\n              if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n                //console.log('case-taken-a');\n                var table_diesase_name = '<u>' + disease_name + ' (' + organ_name + ' , ' + system_name + ')' + '</u>';\n              } else if (DKBC_disease_id != 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n                //console.log('case-taken-b');\n                var table_diesase_name = '<u>' + disease_name + ' (' + DKBC_organ_others + ' , ' + DKBC_system_others + ')' + '</u>';\n              } else if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id == 0) {\n                //console.log('case-taken-c');\n                var table_diesase_name = '<u>' + disease_name + ' (' + organ_name + ' , ' + DKBC_system_others + ')' + '</u>';\n              } else if (DKBC_disease_id == 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n                // console.log('case-taken-d');\n                var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + organ_name + ' , ' + system_name + ')' + '</u>';\n              } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id != 0) {\n                //console.log('case-taken-e');\n                var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + DKBC_organ_others + ' , ' + system_name + ')' + '</u>';\n              } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0 && DKBC_disease_others == null && DKBC_organ_others == null && DKBC_system_others == null) {\n                //console.log('case-taken-f');\n                var table_diesase_name = '<u>' + ICD_disease_name + '</u>';\n              } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n                //console.log('case-taken-g');\n                var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + DKBC_organ_others + ' , ' + DKBC_system_others + ')' + '</u>';\n              }\n              symptom.push(table_diesase_name);\n            });\n            _this.get('dkbcPrint').medicalCertificateHtml(today, name, symptom, doctor_id, prescribe_doctor, loginUser, d, gender, dob, patient_details, medicineDetails);\n            symptom = [];\n          }\n        });\n      }\n      //This below print function is works for Medicine Vials Print\n      if (printFormats.indexOf('med_label') !== -1) {\n        var patient = _this.get('PrescribePatient');\n        _this.label(medicineDetails, patient, UserchangeVialData);\n      }\n      //This below print function is works for Reciept Print\n      if (printFormats.indexOf('receipt') !== -1) {\n        //console.log(\"Receipt\");\n        var patient = _this.get('PrescribePatient');\n        _this.receipt(patient, recevedAmount, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, refundStatus, PrescriptionTotal, visit_pending_amount, printfrom, pg_amount, total_transction, medicineDetails);\n      }\n      //This below function is works for Reciept Print with charges\n      if (printFormats.indexOf('receipt_with_charge') !== -1) {\n        //alert(\"receipt_with_charge reprint\")\n        // console.log(\"Receipt\");\n        _this.receipt_with_charge(patientDetails, recevedAmount);\n      }\n      //This below function is works for address label print\n      if (printFormats.indexOf('add_label') !== -1) {\n        //console.log(\"add_label\");\n        var appointment_id = $('input[type=hidden][name=visiting_id]').val();\n        var patient = _this.get('PrescribePatient');\n        _this.address_label(patient, appointment_id);\n      }\n      //This below function is works for enevelope lable print\n      if (printFormats.indexOf('evlp_label') !== -1) {\n        var called = 'getprint';\n        //console.log(eventAction);\n        //console.log(print_id);\n        var patient = _this.get('PrescribePatient');\n        if (print_id != 'nopopup' && eventAction != 'NoprintPrescribe') {\n          _this.envelope_label(medicineDetails, patient, recevedAmount, remainingBalance, remainingBalanceStatus, visit_charges, medDiscounts, consultancy_waived, med_print_code, cons_print_code, refundStatus, PrescriptionTotal, total_due_amount, recieved_paid_amount, visit_pending_amount, pg_amount, total_transction);\n        }\n      }\n    },\n    //This below function is used for getting all precribed patient data for Billing Dashboard, Rahul Khan 10_may_2019\n    getClinicPatientsIncomplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/billinglist?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": \"Bearer \" + utoken\n        },\n        success: function (res) {\n          //console.log(res);\n          var ParseData = JSON.parse(res);\n          var clinicPatients = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp';\n          });\n          var OCPPatients = ParseData.data.filter(function (el) {\n            return el.appointment_type != 'icp';\n          });\n          _this.set('clinicPatients', clinicPatients);\n          _this.set('OCPPatients', OCPPatients);\n        },\n        complete: function (res) {}\n      });\n      // Initialize DataTables API object and configure table for pharmacy history,written by shubh tiwari as on 03-08-2022\n      $(document).ready(function () {\n        jQuery.noConflict();\n        //$(\"#pharmacy_historybody\").empty();\n        $('#pharmacy_history').DataTable().destroy();\n        var table = $('#pharmacy_history').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: base_url,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'name',\n            render: function (data, type, row) {\n              var country = '';\n              // let status = '';\n              // let balance_amount_html = '';\n              // var total_received = Math.abs(row.balance_amount);\n              // var total = parseFloat(total_received).toFixed(2);\n              // var transaction_mode = Math.sign(row.balance_amount);\n              // if (transaction_mode == 1) {\n              //   status = '(A)';\n              // } else if (transaction_mode == -1) {\n              //   status = '(D)';\n              // } else if (transaction_mode == 0) {\n              //   status = '(D)';\n              // }\n\n              // if (total > 0) {\n              //   balance_amount_html = '<span class=\"balance_flag-alignment ml-2\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Amount : ' + total + '  ' + status + '\"><i class=\"fas fa-rupee-sign\"></i></span>';\n              // }\n              if (type === 'display') {\n                if (row.doc_label == '') {\n                  country += '<sup><i class=\"fa fa-repeat\" aria-hidden=\"true\" title=\"Repeat Medicine\"></i></sup>';\n                }\n                if (row.visit_status == 1) {\n                  country += '<span style=\"padding-right:10px;cursor:pointer;\" title=\"Bill Not Paid\"><img src=\"./../img/blink.gif\"></span>';\n                }\n              }\n              return data + ' ' + country;\n            }\n          }, {\n            data: 'OldRegistrationNo',\n            render: function (data, type, row) {\n              var registrationNo = '';\n              if (type === 'display') {\n                if (row.OldRegistrationNo == '') {\n                  registrationNo += 'NP';\n                }\n              }\n              return data + ' ' + registrationNo;\n            }\n          }, {\n            data: 'doc_label',\n            render: function (data, type, row) {\n              var patient_label = '';\n              if (type === 'display') {\n                if (row.doc_label == '') {\n                  patient_label += '<i > Repeat Medicine </i>';\n                }\n              }\n              return data + ' ' + patient_label;\n            }\n          }, {\n            className: 'text-uppercase',\n            data: 'appointment_type',\n            render: function (data, type) {\n              if (type === 'display') {\n                let appointment_type = '';\n                switch (data) {\n                  case 'vc':\n                    appointment_type = 'fas fa-video';\n                    break;\n                  case 'icp':\n                    appointment_type = 'icon-user';\n                    break;\n                  case 'ocp':\n                    appointment_type = 'fas fa-hospital';\n                    break;\n                  case 'phone':\n                    appointment_type = 'fa fa-phone-square';\n                    break;\n                  case 'email':\n                    appointment_type = 'fas fa-envelope';\n                    break;\n                }\n                return '<i class=\"' + appointment_type + ' d-icon-space margin-right-10\" title=\"' + data + '\"></i>' + data;\n              }\n              return data;\n            }\n          }, {\n            data: 'prescribe_datetime'\n          }, {\n            className: 'prescribe-button',\n            mRender: function (data, type, row) {\n              var prescribe_url = '';\n              if (type === 'display') {\n                prescribe_url += '<a href=\"' + _environment.default.crossOriginWhitelist + '/pharmacy/view/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '\" title=\"Prescribe Details\" class=\"btn btn-primary btn-xs\"> View </a>';\n              }\n              return prescribe_url;\n            }\n          }]\n        });\n        // Redraw the table\n        table.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          table.draw();\n        });\n      });\n      // Initialize DataTables API object and configure table for billing history, written by shubh tiwari as on 03-08-2022\n      $(document).ready(function () {\n        jQuery.noConflict();\n        //$(\"#pharmacy_historybody\").empty();\n        $('#billing_history').DataTable().destroy();\n        var table = $('#billing_history').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: base_url,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'name',\n            render: function (data, type, row) {\n              var patient_name = '';\n              // let status = '';\n              // let balance_amount_html = '';\n              // var total_received = Math.abs(row.balance_amount);\n              // var total = parseFloat(total_received).toFixed(2);\n              // var transaction_mode = Math.sign(row.balance_amount);\n              // if (transaction_mode == 1) {\n              //   status = '(A)';\n              // } else if (transaction_mode == -1) {\n              //   status = '(D)';\n              // } else if (transaction_mode == 0) {\n              //   status = '(D)';\n              // }\n\n              // if (total > 0) {\n              //   balance_amount_html = '<span class=\"balance_flag-alignment ml-2\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Amount : ' + total + '  ' + status + '\"><i class=\"fas fa-rupee-sign\"></i></span>';\n              // }\n              if (type === 'display') {\n                if (row.doc_label == '') {\n                  patient_name += '<sup><i class=\"fa fa-repeat\" aria-hidden=\"true\" title=\"Repeat Medicine\"></i></sup>';\n                }\n                if (row.billing_id != 0) {\n                  patient_name += '<sup><i class=\"fa fa-plus\" aria-hidden=\"true\" title=\"Already Prescribed\"></i></sup>';\n                }\n              }\n              return data + ' ' + patient_name;\n            }\n          }, {\n            data: 'OldRegistrationNo',\n            render: function (data, type, row) {\n              var registrationNo = '';\n              if (type === 'display') {\n                if (row.OldRegistrationNo == '') {\n                  registrationNo += 'NP';\n                }\n              }\n              return data + ' ' + registrationNo;\n            }\n          }, {\n            data: 'doc_label',\n            render: function (data, type, row) {\n              var patient_label = '';\n              if (type === 'display') {\n                if (row.doc_label == '') {\n                  patient_label += '<i > Repeat Medicine </i>';\n                }\n              }\n              return data + ' ' + patient_label;\n            }\n          }, {\n            className: 'text-uppercase',\n            data: 'appointment_type',\n            render: function (data, type) {\n              if (type === 'display') {\n                let appointment_type = '';\n                switch (data) {\n                  case 'vc':\n                    appointment_type = 'fas fa-video';\n                    break;\n                  case 'icp':\n                    appointment_type = 'icon-user';\n                    break;\n                  case 'ocp':\n                    appointment_type = 'fas fa-hospital';\n                    break;\n                  case 'phone':\n                    appointment_type = 'fa fa-phone-square';\n                    break;\n                  case 'email':\n                    appointment_type = 'fas fa-envelope';\n                    break;\n                }\n                return '<i class=\"' + appointment_type + ' d-icon-space margin-right-10\" title=\"' + data + '\"></i>' + data;\n              }\n              return data;\n            }\n          }, {\n            data: 'prescribe_datetime'\n          }, {\n            className: 'prescribe-button',\n            mRender: function (data, type, row) {\n              var prescribe_url = '';\n              if (type === 'display') {\n                if (row.billing_id == 0 && row.error_correction == 'No') {\n                  prescribe_url += '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/prescribe/' + row.appointment_id + '/' + row.patient_id + '\" title=\"Prescribe Details\" class=\"btn btn-primary btn-xs\"> Prescribe </a>';\n                }\n                if (row.billing_id != 0 && row.error_correction == 'No') {\n                  prescribe_url += '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/billpatient/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '\" title=\"Prescribe Details\" class=\"btn btn-primary btn-xs\"> Prescribe </a>';\n                }\n                if (row.billing_id != 0 && row.error_correction == 'Yes') {\n                  prescribe_url += '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/correctbill/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '\" title=\"Error Correction\" class=\"btn btn-primary btn-xs\"> Error Correction </a>';\n                }\n              }\n              return prescribe_url;\n            }\n          }]\n        });\n        // Redraw the table\n        table.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          table.draw();\n        });\n      });\n    },\n    //This below function is used for getting all precribed patient data for Billing Dashboard, Rahul Khan 10_may_2019\n    getClinicPatientsComplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/billinglist?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          var clinicPatientsBillComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp';\n          });\n          var OCPPatientsBillComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type != 'icp';\n          });\n          _this.set('clinicPatientsBillComplete', clinicPatientsBillComplete);\n          _this.set('OCPPatientsBillComplete', OCPPatientsBillComplete);\n        },\n        complete: function (res) {}\n      });\n    },\n    getIncompletePharmacyList: function (shift_id, branch_id, stage) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/pharmacylist?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          var clinicPatients = ParseData.data.filter(function (el) {\n            if (el.factor_count > 0 && el.factor_count != null) {\n              return el.appointment_type == 'icp';\n            }\n          });\n          var OCPPatients = ParseData.data.filter(function (el) {\n            if (el.factor_count > 0 && el.factor_count != null) {\n              return el.appointment_type != 'icp';\n            }\n          });\n          _this.set('clinicPatients', clinicPatients);\n          _this.set('OCPPatients', OCPPatients);\n        },\n        complete: function (res) {}\n      });\n    },\n    getCompletePharmacyList: function (shift_id, branch_id, stage) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/pharmacylist?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          var clinicPatientsBillComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp';\n          });\n          var OCPPatientsBillComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type != 'icp';\n          });\n          _this.set('clinicPatientsBillComplete', clinicPatientsBillComplete);\n          _this.set('OCPPatientsBillComplete', OCPPatientsBillComplete);\n        },\n        complete: function (res) {}\n      });\n    },\n    //This below function is used for getting All Branch Patients and\n    getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/medicinepatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          //  var arr = [];\n          // ParseData.onspot.filter(function(item, index, self) {\n          // console.log(item.medicine_queue_number);\n          // console.log(item.medicine_complete);\n          //   if ((item.medicine_queue_number > 0) && (item.medicine_complete==0) ) {\n          //       arr.push(item);\n          //  }\n          //   });\n          //  console.log(arr);\n          _this.set('RepeatMedicinePatients', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    //This below function is used for getting All Branch Patients and\n    getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      //console.log(date);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/medicinepatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          //console.log(ParseData);\n          //  var arr = [];\n          // ParseData.onspot.filter(function(item, index, self) {\n          // console.log(item.medicine_queue_number);\n          // console.log(item.medicine_complete);\n          //   if ((item.medicine_queue_number > 0) && (item.medicine_complete==0) ) {\n          //       arr.push(item);\n          //  }\n          //   });\n          //  console.log(arr);\n          _this.set('RepeatMedicinePatientsBillComplete', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    //This below function is used for getting All Branch Patients and\n    getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/emailrmpatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          _this.set('EmailRepeatMedicinePatients', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    //This below function is used for getting All Branch Patients and\n    getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      //console.log(date);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/emailrmpatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + date;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          _this.set('EmailRepeatMedicinePatientsBillComplete', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    //This below function is used for getting doctor consutancy fees\n    getConsultancyFees: function (doctor_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (doctor_id > 0) {\n        //This is condition is added to set consultancy charge Zero for Repeat medicine Case, Rahul khan 02 nov 2019\n        var base_url = _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            res.forEach(function (charge_medicine, index) {\n              $(\"#medicine_charge option[data-cid*='\" + charge_medicine.charge_code + \"']\").val(charge_medicine.price);\n              if (charge_medicine.charge_code == 'cns') {\n                if (charge_medicine.price != '') {\n                  _this.set('consultancy_fees', parseFloat(charge_medicine.price));\n                  _this.set('consultancy_print_code', charge_medicine.print_code);\n                } else {\n                  _this.set('consultancy_fees', '0.00');\n                  _this.set('consultancy_print_code', 'SDC');\n                }\n              }\n              if (charge_medicine.charge_code == 'mdn') {\n                if (charge_medicine.print_code != '') {\n                  _this.set('medicine_print_code', charge_medicine.print_code);\n                } else {\n                  _this.set('medicine_print_code', 'MDN');\n                }\n              }\n            });\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      } else {\n        _this.set('consultancy_fees', '0.00');\n        _this.set('consultancy_print_code', 'SDC');\n        _this.set('medicine_print_code', 'MDN');\n      }\n    },\n    getbilledConsultancyFees: function (doctor_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (doctor_id > 0) {\n        //This is condition is added to set consultancy charge Zero for Repeat medicine Case, Rahul khan 02 nov 2019\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/doctorcharges/' + doctor_id + '/' + billing_id;\n        $.ajax({\n          cache: false,\n          url: base_url,\n          method: 'GET',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            res.forEach(function (charge_medicine, index) {\n              if (charge_medicine.consultancy_fees !== '') {\n                _this.set('consultancy_fees', parseFloat(charge_medicine.consultancy_fees));\n                _this.set('consultancy_print_code', charge_medicine.consultancy_print_code);\n              } else {\n                _this.set('consultancy_fees', '0.00');\n                _this.set('consultancy_print_code', 'SDC');\n              }\n            });\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n            //console.log(\"Execution complete\");\n          }\n        });\n      } else {\n        _this.set('consultancy_fees', '0.00');\n        _this.set('consultancy_print_code', 'SDC');\n        _this.set('medicine_print_code', 'MDN');\n      }\n    },\n    //This below function is used for getting doctor consutancy fees\n    getPatientDiscount: function (discount_id, shift_charity) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var discount_cat_id = discount_id;\n      //This if condtion for patient normal category comment by shubh as 29 june\n      if (discount_id == 0 || discount_id == undefined) {\n        var discount_cat_id = 1;\n      }\n      var page_name = _this.get('page');\n      //console.log(page_name);\n      //This below is used for appling the consultancy waive for all evening shift patient, Rahul Khan, 29 Aug 2019\n      if (page_name == 'Bill Patient' || page_name == 'Billed Patient Details' || page_name == 'Prescribed Billing Details') {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/discounts/' + discount_cat_id;\n        $.ajax({\n          cache: false,\n          url: base_url,\n          method: 'GET',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            var consutancy_percentage = res[0].charge_code;\n            var medicine_percentage = res[1].charge_code;\n            if (consutancy_percentage == 'cns' && medicine_percentage == 'mdn') {\n              _this.set('consultancy_discount', res[0].percentage);\n              _this.set('medicine_discount', res[1].percentage);\n            } else {\n              _this.set('consultancy_normal_discount', '0.00');\n              _this.set('medicine_normal_discount', '0.00');\n            }\n          },\n          complete: function (res) {\n            if (shift_charity == 1) {\n              _this.set('consultancy_discount', 100);\n            }\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      } else {\n        _this.set('consultancy_normal_discount', '0.00');\n        _this.set('medicine_normal_discount', '0.00');\n      }\n    },\n    //This below function is used for getting patient pending amount\n    getPreviousPendingAmount: function (patient_id, appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (patient_id == undefined) {\n        patient_id = _this.get('patient_id');\n      }\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n      if (patient_id != undefined && appointment_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.data != null) {\n              _this.set('pending_amount', res.data.due_amount);\n              _this.set('pending_list', res);\n            } else {\n              _this.set('pending_amount', '0.00');\n              _this.set('pending_list', 'norecord');\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting patient previous bill amount\n    getPreviousBillAmount: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/previousbillamt/' + appointment_id;\n      if (appointment_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            _this.set('previous_bill_amount', parseFloat(res).toFixed(2));\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting patient previous bill consultancy amount\n    // getPreviousBillConsultancyAmount: function (appointment_id, billing_id) {\n    //   var _this = this;\n    //   if (appointment_id == undefined && billing_id == undefined) {\n    //     appointment_id = _this.get('appointment_id');\n    //     billing_id = _this.get('billing_id');\n    //   }\n    //   var base_url =\n    //     ENV.APP.lumen_api_url +\n    //     'billing/previousbillconsamt/' +\n    //     appointment_id +\n    //     '/' +\n    //     billing_id;\n    //   if (appointment_id != undefined && billing_id != undefined) {\n    //     $.ajax({\n    //       url: base_url,\n    //       method: 'GET',\n    //       beforeSend: function () {\n    //         _this.recalculateAmount.popupLoaderOpen();\n    //       },\n    //       success: function (res) {\n    //         //console.log(res[0].waive_consultancy_fees);\n    //         if (res[0].waive_consultancy_fees != null) {\n    //           if (res[0].waive_consultancy_fees > 0) {\n    //             setTimeout(function () {\n    //               var consultancy_value = parseFloat(0).toFixed(2);\n    //               //  $('.cons_dis').addClass('discount');\n    //               $('.cons_dis').addClass('percentage');\n    //               $('.cons_waived').text('Waived');\n    //               $('.consultancy').val('0.00');\n    //               $('.const_remove_button').html(\n    //                 '<span class=\"btn btn-danger btn-sm const_remove\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove Consultancy3\"></i></span>'\n    //               );\n    //               var grandTotal = 0;\n    //               $('.box-charge').each(function () {\n    //                 var stval = parseFloat($(this).val());\n    //                 grandTotal += isNaN(stval) ? 0 : stval;\n    //               });\n    //               $('.consdisable').attr('disabled', true);\n    //               var grand_total = $('.grdtot').val();\n    //               $('.consultancy').val(consultancy_value);\n    //               var pending = $('.pending').val();\n    //               var charge =\n    //                 parseInt(consultancy_value, 10) + parseFloat(pending);\n    //               //  var total = parseFloat(charge)+parseFloat(grand_total)+grandTotal;\n    //               var total =\n    //                 parseFloat(charge) +\n    //                 parseFloat(grand_total) +\n    //                 parseFloat(grandTotal);\n    //               var eVal = isNaN(total) ? 0.0 : total;\n    //               //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n    //               var previous_bill_amount = $('.paid_amount').val();\n    //               var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    //               var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n    //               if (bill_paid_amount == 0) {\n    //                 console.log('Not Include Previous Bill Amount');\n    //                 var total_med_amount = parseFloat(eVal).toFixed(2);\n    //                 $('.total').val(total_med_amount);\n    //                 $('.total').attr('data-original_amount', total_med_amount);\n    //                 var total_due1 = parseFloat(\n    //                   total_med_amount - bill_paid_amount\n    //                 );\n    //                 var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n    //                 var total_due = Math.abs(total_due_amount).toFixed(2);\n    //                 $('.total_dues').val(total_due);\n    //                 $('.total_dues').attr('data-total-dues', total_due);\n    //                 /* payment gatway charge calculation charge */\n    //                 if ($('.payment_gateway_checkbox').is(':checked')) {\n    //                   var percentage = $('.payment_gateway_charge').val();\n    //                   if (percentage != '') {\n    //                     var paid_amounts = bill_paid_amount;\n    //                     var total_amounts = isNaN(total_med_amount)\n    //                       ? 0.0\n    //                       : total_med_amount;\n    //                     if (paid_amounts != 0 && total_amounts != '') {\n    //                       console.log('a');\n    //                       var total_due_amount =\n    //                         parseFloat(total_amounts) - parseFloat(paid_amounts);\n    //                       var calcPrice = (total_due_amount * percentage) / 100;\n    //                       var add_percentage_price =\n    //                         parseFloat(total_due_amount) + parseFloat(calcPrice);\n    //                       $('.total_dues').val(add_percentage_price.toFixed(2));\n    //                     } else if (paid_amounts == 0 && total_amounts != '') {\n    //                       console.log('b');\n    //                       var calcPrice = (total_amounts * percentage) / 100;\n    //                       var add_percentage_price =\n    //                         parseFloat(total_amounts) + parseFloat(calcPrice);\n    //                       $('.total').val(add_percentage_price.toFixed(2));\n    //                     }\n    //                   } else {\n    //                     var total_amounts = $('.total').attr(\n    //                       'data-original_amount'\n    //                     );\n    //                     var paid_amounts =\n    //                       $('.paid_amount').attr('data-paid-amount');\n    //                     var paid_amounts =\n    //                       $('.total_dues').attr('data-total-dues');\n    //                     $('.total').val(total_amounts);\n    //                     $('.paid_amount').val(paid_amounts);\n    //                     $('.total_dues').val(paid_amounts);\n    //                   }\n    //                 }\n    //                 /* payment gatway charge calculation charge end */\n    //                 var remaining_balance_status = Math.sign(total_due_amount);\n    //                 if (remaining_balance_status == 1) {\n    //                   var payment_status = 'DUE';\n    //                 } else if (remaining_balance_status == -1) {\n    //                   var payment_status = 'ADVANCE';\n    //                 } else if (remaining_balance_status == 0) {\n    //                   var payment_status = 'NO DUE';\n    //                 }\n    //                 $('.payment_status').text('(' + payment_status + ')');\n\n    //                 $('.due_payment_status').text('(' + payment_status + ')');\n\n    //                 if (total_due == 0.0) {\n    //                   $('.cashpopup').attr('disabled', true);\n    //                 } else {\n    //                   $('.cashpopup').removeAttr('disabled');\n    //                 }\n    //               } else {\n    //                 console.log('Include Previous Bill Amount');\n    //                 var total_med_amount = parseFloat(med_amount).toFixed(2);\n    //                 var payment_gateway_charge = $('.gateway_charge').val();\n    //                 var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n    //                 var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n    //                 var total_due_amount =\n    //                   parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n    //                 var total_due_amount_upto_two_decimal =\n    //                   total_due_amount.toFixed(2);\n    //                 var total_due_amount_plus_pg_amount =\n    //                   parseFloat(total_due_amount_upto_two_decimal) +\n    //                   parseFloat(pg_amount);\n    //                 var total_amount = Math.abs(\n    //                   total_due_amount_plus_pg_amount\n    //                 ).toFixed(2);\n    //                 var remaining_balance_status = Math.sign(\n    //                   total_due_amount_plus_pg_amount\n    //                 );\n    //                 if (remaining_balance_status == 1) {\n    //                   var payment_status = 'DUE';\n    //                 } else if (remaining_balance_status == -1) {\n    //                   var payment_status = 'ADVANCE';\n    //                 } else if (remaining_balance_status == 0) {\n    //                   var payment_status = 'NO DUE';\n    //                 }\n    //                 $('.total').val(total_med_amount);\n    //                 $('.total').attr('data-original_amount', total_med_amount);\n    //                 $('.total_dues').val(total_amount);\n    //                 $('.total_dues').attr('data-total-dues', total_amount);\n    //                 /* payment gatway charge calculation charge */\n    //                 if ($('.payment_gateway_checkbox').is(':checked')) {\n    //                   var percentage = $('.payment_gateway_charge').val();\n    //                   if (percentage != '') {\n    //                     var paid_amounts = bill_paid_amount;\n    //                     var total_amounts = total_med_amount;\n    //                     var total_amounts = isNaN(total_med_amount)\n    //                       ? 0.0\n    //                       : total_med_amount;\n    //                     if (paid_amounts != 0 && total_amounts != '') {\n    //                       console.log('a');\n    //                       var total_due_amount =\n    //                         parseFloat(total_amounts - paid_amounts) +\n    //                         parseFloat(pg_amount);\n    //                       var calcPrice = (total_due_amount * percentage) / 100;\n    //                       var add_percentage_price =\n    //                         parseFloat(total_due_amount) + parseFloat(calcPrice);\n    //                       $('.total_dues').val(add_percentage_price.toFixed(2));\n    //                     } else if (paid_amounts == 0 && total_amounts != '') {\n    //                       console.log('b');\n    //                       var calcPrice = (total_amounts * percentage) / 100;\n    //                       var add_percentage_price =\n    //                         parseFloat(total_amounts) + parseFloat(calcPrice);\n    //                       $('.total').val(add_percentage_price.toFixed(2));\n    //                     }\n    //                   } else {\n    //                     var total_amounts = $('.total').attr(\n    //                       'data-original_amount'\n    //                     );\n    //                     var paid_amounts =\n    //                       $('.paid_amount').attr('data-paid-amount');\n    //                     var paid_amounts =\n    //                       $('.total_dues').attr('data-total-dues');\n    //                     $('.total').val(total_amounts);\n    //                     $('.paid_amount').val(paid_amounts);\n    //                     $('.total_dues').val(paid_amounts);\n    //                   }\n    //                 }\n    //                 /* payment gatway charge calculation charge end */\n    //                 $('.payment_status').text('(' + payment_status + ')');\n    //                 // for refund cases added by shubh Tiwari 9 April 2020\n    //                 if (payment_status == 'ADVANCE') {\n    //                   $('.total_due_refund').html('Refund Amount ₹ ');\n    //                   $('#recieved').attr('placeholder', 'Refund');\n    //                   $('.total_recieved_refund').text('Refund ₹ :');\n    //                   $('.refund_class').html(\n    //                     '<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">'\n    //                   );\n    //                 }\n\n    //                 if (total_amount == 0.0) {\n    //                   $('.cashpopup').attr('disabled', true);\n    //                 } else {\n    //                   $('.cashpopup').removeAttr('disabled');\n    //                 }\n    //               }\n    //             }, 1000);\n    //           }\n    //         }\n    //       },\n    //       complete: function (res) {\n    //         _this.recalculateAmount.popupLoaderClose();\n    //       },\n    //     });\n    //   }\n    // },\n    //This below function is used for getting patient previous visit pending amount\n    getPreviousVisitPendingAmount: function (patient_id, visit_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (patient_id == undefined && visit_id == undefined) {\n        patient_id = _this.get('patient_id');\n        visit_id = _this.get('appointment_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/visitpending/' + patient_id + '/' + visit_id;\n      if (patient_id != undefined && visit_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            //console.log(res);\n            if (res.data != null) {\n              _this.set('visit_pending_amount', res.data.due_amount);\n            } else {\n              _this.set('visit_pending_amount', '0.00');\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting patient current payment charge\n    getCurrentPaymentCharge: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'visitpgcharge/' + appointment_id + '/' + billing_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('PGChargeDisable', res.PGChargeDisable);\n            _this.set('PGChargeChecked', res.checked);\n            _this.set('pgAmountText', res.pgAmountText);\n            _this.set('PGAmount', res.PGAmount);\n            _this.set('PGChargePercentage', res.PGChargePercentage);\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    getBilledPreviousPaymentCharge: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined && billing_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/billedgatewaycharge/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.length > 0) {\n              _this.set('billed_gateway_charge', res[0].previous_gateway_amount);\n              // _this.set('total_pg_percentage', res[0].gateway_charge);\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting patient previous visit pending amount\n    getAfterVisitPendingAmount: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined && billing_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/visitafterpending/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.length > 0) {\n              if (res[0].previous_due_amount != 0) {\n                //alert('hghhgfhgfhf');\n                setTimeout(function () {\n                  $('.pending').val(res[0].previous_due_amount.toFixed(2));\n                  var grandTotal = 0;\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  var grand_total = $('.grdtot').val();\n                  var consultancy = $('.consultancy').val();\n                  var pending_value = parseFloat(res[0].previous_due_amount);\n                  var total = parseFloat(grand_total) + parseFloat(grandTotal) + parseFloat(pending_value) + parseFloat(consultancy);\n                  //var eVal = (isNaN(med_totals)) ? 0.00 : med_totals;\n                  var eVal = isNaN(total) ? 0.0 : total;\n                  var med_totals = parseFloat(eVal).toFixed(2);\n                  var med_amount = isNaN(med_totals) ? 0.0 : med_totals;\n\n                  //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n                  var previous_bill_amount = $('.paid_amount').val();\n                  var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n                  var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n                  if (bill_paid_amount == 0) {\n                    //console.log('Not Include Previous Bill Amount');\n                    var total_med_amount = parseFloat(med_amount).toFixed(2);\n                    $('.total').val(total_med_amount);\n                    $('.total').attr('data-original_amount', total_med_amount);\n                    var recevedAmount = $('.received_amount').val();\n                    var total_due1 = parseFloat(total_med_amount - recevedAmount);\n                    var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n                    var total_due = Math.abs(total_due_amount).toFixed(2);\n                    $('.total_dues').val(total_due);\n                    $('.total_dues').attr('data-total-dues', total_due);\n                    /* payment gatway charge calculation charge */\n                    if ($('.payment_gateway_checkbox').is(':checked')) {\n                      var percentage = $('.payment_gateway_charge').val();\n                      if (percentage != '') {\n                        var paid_amounts = bill_paid_amount;\n                        var total_amounts = isNaN(total_med_amount) ? 0.0 : total_med_amount;\n                        if (paid_amounts != 0 && total_amounts != '') {\n                          //console.log('a');\n                          var total_due_amount = parseFloat(total_amounts) - parseFloat(paid_amounts);\n                          var calcPrice = total_due_amount * percentage / 100;\n                          var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                          $('.total_dues').val(add_percentage_price.toFixed(2));\n                        } else if (paid_amounts == 0 && total_amounts != '') {\n                          //console.log('b');\n                          var calcPrice = total_amounts * percentage / 100;\n                          var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                          $('.total').val(add_percentage_price.toFixed(2));\n                        }\n                      } else {\n                        var total_amounts = $('.total').attr('data-original_amount');\n                        var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                        var paid_amounts = $('.total_dues').attr('data-total-dues');\n                        $('.total').val(total_amounts);\n                        $('.paid_amount').val(paid_amounts);\n                        $('.total_dues').val(paid_amounts);\n                      }\n                    }\n                    /* payment gatway charge calculation charge end */\n                    var remaining_balance_status = Math.sign(total_due_amount);\n                    if (remaining_balance_status == 1) {\n                      var payment_status = 'DUE';\n                    } else if (remaining_balance_status == -1) {\n                      var payment_status = 'ADVANCE';\n                    } else if (remaining_balance_status == 0) {\n                      var payment_status = 'NO DUE';\n                    }\n                    $('.payment_status').text('(' + payment_status + ')');\n                    $('.due_payment_status').text('(' + payment_status + ')');\n                    if (total_due == 0.0) {\n                      $('.cashpopup').attr('disabled', true);\n                    } else {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                  } else {\n                    //console.log('Include Previous Bill Amount');\n                    var total_med_amount = parseFloat(med_amount).toFixed(2);\n                    //console.log(med_amount + 'shubh');\n                    var payment_gateway_charge = $('.gateway_charge').val();\n                    var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n                    var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n                    var total_due_minus_previous_bill_amnt = parseFloat(total_med_amount - bill_paid_amount) + parseFloat(pg_amount);\n                    //console.log(total_due_minus_previous_bill_amnt);\n                    var total_due_minus_previous_bill_amnt_upto_two_decimal = total_due_minus_previous_bill_amnt.toFixed(2);\n                    var total_amount = Math.abs(total_due_minus_previous_bill_amnt_upto_two_decimal).toFixed(2);\n                    var remaining_balance_status = Math.sign(total_due_minus_previous_bill_amnt_upto_two_decimal);\n                    if (remaining_balance_status == 1) {\n                      var payment_status = 'DUE';\n                    } else if (remaining_balance_status == -1) {\n                      var payment_status = 'ADVANCE';\n                    } else if (remaining_balance_status == 0) {\n                      var payment_status = 'NO DUE';\n                    }\n                    $('.total').val(total_med_amount);\n                    $('.total').attr('data-original_amount', total_med_amount);\n                    $('.total_dues').val(total_amount);\n                    $('.total_dues').attr('data-total-dues', total_amount);\n                    /* payment gatway charge calculation charge */\n                    if ($('.payment_gateway_checkbox').is(':checked')) {\n                      var percentage = $('.payment_gateway_charge').val();\n                      if (percentage != '') {\n                        var paid_amounts = bill_paid_amount;\n                        var total_amounts = total_med_amount;\n                        var total_amounts = isNaN(total_med_amount) ? 0.0 : total_med_amount;\n                        if (paid_amounts != 0 && total_amounts != '') {\n                          //console.log('a');\n                          var total_due_amount = parseFloat(total_amounts - paid_amounts) + parseFloat(pg_amount);\n                          var calcPrice = total_due_amount * percentage / 100;\n                          var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                          $('.total_dues').val(add_percentage_price.toFixed(2));\n                        } else if (paid_amounts == 0 && total_amounts != '') {\n                          //console.log('b');\n                          var calcPrice = total_amounts * percentage / 100;\n                          var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                          $('.total').val(add_percentage_price.toFixed(2));\n                        }\n                      } else {\n                        var total_amounts = $('.total').attr('data-original_amount');\n                        var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                        var total_dues = $('.total_dues').attr('data-total-dues');\n                        $('.total').val(total_amounts);\n                        $('.paid_amount').val(paid_amounts);\n                        $('.total_dues').val(total_dues);\n                      }\n                    }\n                    /* payment gatway charge calculation charge end */\n                    $('.payment_status').text('(' + payment_status + ')');\n                    // for refund cases added by shubh Tiwari 9 April 2020\n                    if (payment_status == 'ADVANCE') {\n                      $('.total_due_refund').html('Refund Amount ₹ ');\n                      $('#recieved').attr('placeholder', 'Refund');\n                      $('.total_recieved_refund').text('Refund ₹ :');\n                      $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n                    }\n                    if (total_amount == 0.0) {\n                      $('.cashpopup').attr('disabled', true);\n                    } else {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                    /* Payment button enable when paid amount and total amount are equal*/\n                    if (total_med_amount == paid_amount) {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                  }\n                }, 1000);\n              }\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting patient previous visit pending comment\n    getPatientVisitComment: function (patient_id, visit_id) {\n      //Nishant:25-Oct-2022 - Commented below code as it appears that this code is not doing anything useful because the variable we set 'visit_pending_list' is not defined anywhere in any file.\n      // var _this = this;\n      // if (patient_id == undefined && visit_id == undefined) {\n      //   patient_id = _this.get('patient_id');\n      //   visit_id = _this.get('appointment_id');\n      // }\n      // var base_url =\n      //   ENV.APP.lumen_api_url +\n      //   'billing/visitpendingcomment/' +\n      //   patient_id +\n      //   '/' +\n      //   visit_id;\n      // if (patient_id != undefined && visit_id != undefined) {\n      //   $.ajax({\n      //     url: base_url,\n      //     method: 'GET',\n      //     beforeSend: function () {\n      //       _this.recalculateAmount.popupLoaderOpen();\n      //     },\n      //     success: function (res) {\n      //       if (res.data != null) {\n      //         _this.set('visit_pending_list', res);\n      //       } else {\n      //         _this.set('visit_pending_list', 'norecord');\n      //       }\n      //     },\n      //     complete: function (res) {\n      //       _this.recalculateAmount.popupLoaderClose();\n      //     },\n      //   });\n      // }\n    },\n    getPrescribeRecords: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $('.loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (prescribe_editresponse) {\n            $('.tbody').empty();\n            $('.loader').hide();\n            _this.set('prescribe_edit', prescribe_editresponse);\n          },\n          complete: function (res) {\n            // console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    //This below function is used for getting visit status, Shubh Tiwari, 10 Feb 2020\n    getVisitStatus: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/visitstatus/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.length > 1) {\n              _this.set('backpage', 2);\n            } else {\n              _this.set('backpage', 1);\n            }\n          },\n          complete: function (res) {\n            // console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getApplyMedicineDiscount: function (appointment_id, billing_id) {\n      //This below function is used for getting apply medicine discount for perticular visit, Shubh Tiwari 28 October 2021\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          cache: false,\n          url: _environment.default.APP.lumen_api_url + 'billing/medicinediscount/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          dataType: 'json',\n          //async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.discount_on_med > 0) {\n              _this.set('onthefly_discount', res.discount_on_med);\n              _this.set('medicine_discount_reason', res.med_resson);\n              _this.set('medicine_print_code', res.medicine_print_code);\n              if (res.discount_on_med != 0) {\n                _this.set('remove_discount_button', res.discount_id);\n              } else {\n                _this.set('remove_discount_button', '');\n              }\n              setTimeout(function () {\n                $('.discount_percentage').attr('disabled', true);\n                $('.disdisable').attr('disabled', true);\n                _this.recalculateAmount.updateTotal();\n              }, 1000);\n            } else {\n              _this.set('onthefly_discount', '');\n              _this.set('remove_discount_button', '');\n              _this.set('medicine_discount_reason', '');\n              _this.set('medicine_print_code', '');\n              _this.set('medicine_discount', 0);\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    getApplyConsultancyWaived: function (appointment_id, billing_id) {\n      //This below function is used for getting apply waived for perticular visit,Shubh Tiwari 28 October 2021\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          cache: false,\n          url: _environment.default.APP.lumen_api_url + 'billing/consultancywaive/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          dataType: 'json',\n          //async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            //This is previous statement for if condition, We replaced this with new because now need the remove button for all cases,\n            if (res.waive_type == 'Waived') {\n              _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n              _this.set('consultancy_discount', 0);\n              _this.set('consultancy_waive_type', res.waive_type);\n              _this.set('consultancy_print_code', res.consultancy_print_code);\n              _this.set('consultancy_waived_reason', res.consultacy_reason);\n              _this.set('consultancy_remove_button', res.billing_id);\n              _this.set('consultancy_waived_amount', 0);\n              setTimeout(function () {\n                $('.cons_dis').addClass('discount');\n                $('.consdisable').attr('disabled', true);\n                _this.recalculateAmount.updateTotal();\n              }, 1000);\n            } else if (res.waive_type == 'Not Set') {\n              _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n              _this.set('consultancy_discount', '0');\n              _this.set('consultancy_waive_type', res.waive_type);\n              _this.set('consultancy_print_code', res.consultancy_print_code);\n              _this.set('consultancy_waived_reason', res.consultacy_reason);\n              _this.set('consultancy_remove_button', res.billing_id);\n              _this.set('consultancy_waived_amount', '0');\n            } else if (res.waive_type == '') {\n              _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n              _this.set('consultancy_discount', '0');\n              _this.set('consultancy_waive_type', res.waive_type);\n              _this.set('consultancy_print_code', res.consultancy_print_code);\n              _this.set('consultancy_waived_reason', res.consultacy_reason);\n              _this.set('consultancy_remove_button', res.billing_id);\n              _this.set('consultancy_waived_amount', '0');\n            } else {\n              _this.set('consultancy_fees', '');\n              _this.set('consultancy_discount', '');\n              _this.set('consultancy_waive_type', '');\n              _this.set('consultancy_print_code', '');\n              _this.set('consultancy_waived_reason', '');\n              _this.set('consultancy_remove_button', '');\n              _this.set('consultancy_waived_amount', '');\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting all the patient visit changes which applied, Rahul Khan, 12 July 2019\n    getPreviousVisitCharges: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/previousbillothercharge/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (prescribe_editresponse) {\n            $('#loader').hide();\n            // $(\".tbody\").empty();\n            var visit_charge_array = [];\n            var visit_charge_amount_array = [];\n            var jsondata = JSON.stringify(prescribe_editresponse.other_charges);\n            //console.log('JSONdata:'+jsondata);\n            _this.set('previous_edit_page_visit_charges', jsondata);\n            _this.set('visit_charges', prescribe_editresponse.other_charges);\n            /*This below code is used for making disabled already selected charges, Rahul Khan 23 july 2019 */\n            if (prescribe_editresponse.other_charges.length > 0) {\n              $.each(prescribe_editresponse.other_charges, function (key, value) {\n                visit_charge_array.push(value.charge_code.toUpperCase());\n                visit_charge_amount_array.push(value.charge_amount);\n                $(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n              });\n            }\n            var total_charge = _this.sum(visit_charge_amount_array);\n            _this.set('total_charge', total_charge);\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    //This below function is used for getting all the patient visit changes which applied, Rahul Khan, 12 July 2019\n    getVisitCharges: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/visitcharges/' + appointment_id + '/' + billing_id;\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (prescribe_editresponse) {\n            $('#loader').hide();\n            var visit_charge_array = [];\n            var visit_charge_amount_array = [];\n            //console.log(prescribe_editresponse);\n            _this.set('visit_charges', prescribe_editresponse);\n            if (prescribe_editresponse.length > 0) {\n              //console.log(prescribe_editresponse.other_charges);\n              $.each(prescribe_editresponse, function (key, value) {\n                visit_charge_array.push(value.charge_code.toUpperCase());\n                visit_charge_amount_array.push(value.charge_amount);\n                $('option[data-cid=' + value.charge_code + ']').attr('disabled', true);\n              });\n            }\n            _this.set('charge_code', visit_charge_array);\n            var total_charge = _this.sum(visit_charge_amount_array);\n            _this.set('total_charge', total_charge);\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n        //This below function is used for getting the total amount received for perticular visit, Rahul Khan 16 july 2019\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/visitreceivedamount/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            _this.set('direct_biller_name', res.direct_biller_name.direct_biller_name);\n            _this.set('without_prescription_reason', res.direct_biller_name.cwp_reason);\n            _this.set('direct_biller_time', res.direct_biller_name.creation_date);\n            _this.set('prescription_type', res.direct_biller_name.pharmacy_instruction);\n            var total_received_array = [];\n            var total_due_array = [];\n            var biller_name_array = [];\n            var refund_flag_name_array = [];\n            var previous_bill_paid_amount_array = [];\n            var transaction_time_array = [];\n            var credit_amount_array = [];\n            var debit_amount_array = [];\n            var total_due_amount_array = [];\n            var recieved_amount_array = [];\n            if (res.recieved_amount.length > 0) {\n              $.each(res.recieved_amount, function (index, item) {\n                total_received_array.push(item.recieved_amount);\n                total_due_array.push(item.debit_amount);\n                previous_bill_paid_amount_array.push(item.previous_bill_paid_amount);\n                biller_name_array.push(item.biller_name);\n                refund_flag_name_array.push(item.refund_flag);\n                transaction_time_array.push(item.transaction_time);\n                credit_amount_array.push(item.credit_amount);\n                debit_amount_array.push(item.debit_amount);\n                total_due_amount_array.push(item.visit_due_amount);\n                recieved_amount_array.push(item.recieved_amount);\n              });\n            }\n            //console.log(total_received_array);\n            //console.log(refund_flag_name_array);\n            var receved_amount = _this.sum(total_received_array);\n            var recevedAmount = parseFloat(receved_amount).toFixed(2);\n            var total_refund_and_received_amt = parseFloat(res.amount).toFixed(2);\n            //console.log(total_due_amount_array);\n            if (total_due_array.length > 1) {\n              var remaining_balance = total_due_array.slice(0, 0); //Nishant - we sorted the result from visitreceivedamount API to have latest on top, so now slice(-1) is changed to slice(0) to get first item\n              var debit_amount = debit_amount_array.slice(0, 0);\n              var credit_amount = credit_amount_array.slice(0, 0);\n              //var due_amount = total_due_amount_array.slice(-1);\n              var due_amount = res.recieved_amount[0].total_due_amount;\n              var pg_amount = 0;\n              var visit_due_amount_plus_pg_amount = parseFloat(due_amount) + parseFloat(pg_amount);\n              var total_due_amount = parseFloat(visit_due_amount_plus_pg_amount).toFixed(2);\n              var recieved_amount = res.recieved_amount[0].recieved_amount;\n              //console.log(due_amount);\n              //var previous_bill_paid_amount = previous_bill_paid_amount_array.slice(-1);\n              var previous_bill_paid_amount = _this.sum(previous_bill_paid_amount_array);\n              var paid_amount = parseFloat(previous_bill_paid_amount).toFixed(2);\n              //var remain_balance = parseFloat(remaining_balance).toFixed(2);\n              var biller_name = res.recieved_amount[0].biller_name;\n              var refund_flag = res.recieved_amount[0].refund_flag; //refund_flag_name_array.slice(0,0);\n              var bill_time = res.recieved_amount[0].transaction_time;\n              // var billing_time =  moment(new Date(bill_time)).format('D MMM, YYYY, h:mm');\n              var billing_time = bill_time;\n\n              //var remain_balance = '';\n              //Nishant 11/Nov/2022 - refactor code for remaining balance calculation\n              var {\n                balance,\n                remaining_balance,\n                remaining_Balance_Status\n              } = _this.getBalanceStatus(recieved_amount, total_due_amount, refund_flag);\n              var transaction_mode = res.transaction_mode.transaction_mode;\n            } else if (total_due_array.length == 1) {\n              //console.log('remain-2');\n              var domestic_prescr = parseFloat(res.recieved_amount[0].visit_due_amount).toFixed(2);\n              var transaction_mode = res.transaction_mode.transaction_mode;\n              var paid_amount = parseFloat(res.recieved_amount[0].previous_bill_paid_amount).toFixed(2);\n              var biller_name = res.recieved_amount[0].biller_name;\n              var refund_flag = res.recieved_amount[0].refund_flag;\n              var total_due_amount = res.recieved_amount[0].total_due_amount;\n              // here changes var received_amount = res.amount to res.recieved_amount[0].recieved_amount, Written by shubh tiwari as on 30 August 2022\n              var recieved_amount = res.recieved_amount[0].recieved_amount;\n              var billing_time = res.recieved_amount[0].transaction_time;\n              var remain_balance = '';\n\n              //Nishant 11/Nov/2022 - refactor code for remaining balance calculation\n              var {\n                balance,\n                remaining_balance,\n                remaining_Balance_Status\n              } = _this.getBalanceStatus(recieved_amount, total_due_amount, refund_flag);\n            } else {\n              var total_due_amount = 0;\n              var recieved_amount = 0;\n              var domestic_prescr = 0;\n              var paid_amount = 0;\n              var remaining_balance = 0;\n              var transaction_mode = '';\n              var biller_name = null;\n              var billing_time = null;\n            }\n            //console.log(parseInt(paid_amount)+parseFloat(res.payment_gateway_amount));\n            _this.set('total_due_amount', total_due_amount);\n            _this.set('recieved_amount', recieved_amount);\n            _this.set('PrescriptionTotal', domestic_prescr);\n            _this.set('visitTotalReceived', total_refund_and_received_amt);\n            _this.set('previous_bill_paid_amount', paid_amount);\n            _this.set('remainingBalance', remaining_balance);\n            _this.set('remainingBalanceStatus', remaining_Balance_Status);\n            _this.set('billing_user_name', biller_name);\n            _this.set('refundStatus', refund_flag);\n            _this.set('transaction_mode', transaction_mode);\n            _this.set('billing_time', billing_time);\n            //console.log(remaining_balance_status);\n            //console.log(remain_balance)\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n        //This below function is used for getting payment mode against billing id of each visist, Shubh Tiwari 31 Dec 2019\n        var mode_array = [];\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/visitpaymentmode/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (mode_res) {\n            //console.log(mode_res.transaction_mode);\n            if (mode_res.transaction_mode != undefined) {\n              if (mode_res.transaction_mode.length > 0) {\n                _this.set('more_mode', 'yes');\n                $.each(mode_res.transaction_mode, function (index, item) {\n                  mode_array.push(item.transaction_mode);\n                });\n                var show_only_thrree_mode = mode_array.slice(0, 1);\n                _this.set('partial_transaction_mode', show_only_thrree_mode);\n              }\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n        //This below function is used for getting the total amount received for perticular visit, Rahul Khan 16 july 2019\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/visitdiscount/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            _this.set('medicineTotal', res.discount_after_med_cost);\n            _this.set('medDiscounts', res.discount_on_med);\n            _this.set('consultancy_waived', res.waive_type);\n            _this.set('med_discount_reason', res.med_resson);\n            _this.set('consultacy_reason', res.consultacy_reason);\n            //console.log(res.med_resson);\n            //console.log(res.consultacy_reason);\n            //console.log(res.discount_apply_name);\n            //console.log(res.consultacy_apply_name);\n            if (res.med_resson != null && res.med_resson != '' && res.consultacy_reason != null && res.consultacy_reason != '' && res.discount_apply_name != null && res.consultacy_apply_name != null) {\n              var pharmacy_message = '\\n' + 'Medicine Discount By: ' + res.discount_apply_name + '\\n' + 'Medicine discount Reason: ' + res.med_resson + '\\n' + 'Consultancy Waived By: ' + res.consultacy_apply_name + '\\n' + 'Consultancy Waived Reason: ' + res.consultacy_reason;\n              _this.set('pharmacy_message', pharmacy_message);\n\n              //console.log('pha1');\n            } else if (res.med_resson != '' && res.med_resson != null && res.discount_apply_name != null) {\n              var pharmacy_message = '\\n' + 'Medicine Discount By: ' + res.discount_apply_name + '\\n' + 'Medicine discount Reason: ' + res.med_resson;\n              _this.set('pharmacy_message', pharmacy_message);\n\n              //console.log('pha2');\n            } else if (res.consultacy_reason != null && res.consultacy_reason != '' && res.consultacy_apply_name != null) {\n              var pharmacy_message = '\\n' + 'Consultancy Waived By: ' + res.consultacy_apply_name + '\\n' + 'Consultancy Waived Reason: ' + res.consultacy_reason;\n              _this.set('pharmacy_message', pharmacy_message);\n\n              //console.log('pha3');\n            }\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderOpen();\n          }\n        });\n      }\n    },\n    /* This function getting Payment mode */\n    getPaymentMode: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/paymentmode';\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('pmode', res[0].name);\n          _this.set('Payment_mode', res);\n          //console.log(res);\n        },\n        complete: function (res) {\n          // console.log(\"Execution complete\");\n        }\n      });\n    },\n    /* for Domestic */\n    prescription: function (medicine_details, patient_details, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code) {\n      var patientDetails = patient_details[0];\n      var salutationss = patient_details[0].salutation;\n      if (salutationss == '') {\n        var title = '';\n      } else {\n        var title = salutationss + '.';\n      }\n      if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var name = title + ' ' + f_name;\n      } else {\n        var f_name = patient_details[0].first_name;\n        var name = title + ' ' + f_name;\n      }\n      if (patientDetails.gender !== '' && patientDetails.gender !== null) {\n        var gender = patientDetails.gender;\n      } else {\n        var gender = '';\n      }\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      //var visit_date = patient_details[0].dateTime;\n      var visit_date = moment().format('YYYY-MM-DD');\n      var patient_dob = this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      if (patient_dob !== null && patient_dob !== '') {\n        var dob = patient_dob;\n      } else {\n        var dob = '';\n      }\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      let loginUser = this.session.printUser();\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%;'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width=20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          //var formanddilution = medicine_details[i].data.form_name+\" x\" + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          /* if(midicine_type=='single'){\n                       var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                   }else{\n                       var formanddilution ='';\n                   }*/\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align:center'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      var url = '';\n      if (doctor_id == null) {\n        //console.log(patient_details[0]);\n        //console.log(medicine_details[0].data.importvisitid);\n        var importvisitid = medicine_details[0].data.importvisitid;\n        if (importvisitid === 0) {\n          var appointmentId = patient_details[0].id;\n        } else {\n          var appointmentId = medicine_details[0].data.importvisitid;\n        }\n        var patientId = patient_details[0].patient_id;\n        // Construct alternate URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrmprs/' + patientId + '/' + appointmentId;\n      } else {\n        // Default URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += '<div>';\n          d += \"<div style='text-align:left;width:40%;float:left;margin-left:80px;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span<br/>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:26px;'>\" + Caseid + '</span<br/>';\n          d += '</div><br/><br/>';\n          d += \"<p style='text-align:center;clear:both;'>\";\n          d += \"<span style='font-size:26px;text-transform: capitalize;'><b>\" + name + ' ' + '(' + gender + dob + ')' + '</b></span>';\n          d += '</p>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:18px;'>Rx.</span><br/> \";\n          d += '</div>';\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:22px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr >';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr >';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table><br>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only </span>\";\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span></div><br/>\";\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px; font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n            myWindow.document.close();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    },\n    /* for Domestic with Charge*/\n    domestic_prescription: function (medicine_details, patient_details, totalAmount, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, PrescriptionTotal, visit_pending_amount, remainingBalance, remainingBalanceStatus, refundStatus, total_due_amount, recieved_paid_amount, pg_amount, total_transction) {\n      var patientDetails = patient_details[0];\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      if (remainingBalanceStatus == 'ADVANCE') {\n        var advance_text = 'held as ' + remainingBalanceStatus + ' payment';\n      } else {\n        var advance_text = remainingBalanceStatus;\n      }\n      if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var name = title + ' ' + f_name;\n      } else {\n        var f_name = patient_details[0].first_name;\n        var name = title + ' ' + f_name;\n      }\n      if (patientDetails.gender !== '' && patientDetails.gender !== null) {\n        var gender = patientDetails.gender;\n      } else {\n        var gender = '';\n      }\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      //var visit_date = patient_details[0].dateTime;\n      var visit_date = moment().format('YYYY-MM-DD');\n      let loginUser = this.session.printUser();\n      var patient_dob = this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      if (patient_dob !== null && patient_dob !== '') {\n        var dob = patient_dob;\n      } else {\n        var dob = '';\n      }\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width='20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          var formanddilution = medicine_details[i].data.form_name + ' x' + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align: center;'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      //var today = moment().format('D MMM, YYYY');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      var url = '';\n      if (doctor_id == null) {\n        var importvisitid = medicine_details[0].data.importvisitid;\n        if (importvisitid === 0) {\n          var appointmentId = patient_details[0].id;\n        } else {\n          var appointmentId = medicine_details[0].data.importvisitid;\n        }\n        var patientId = patient_details[0].patient_id;\n        // Construct alternate URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrmprs/' + patientId + '/' + appointmentId;\n      } else {\n        // Default URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += \"<div style='margin-left:80px; width:40%;float:left;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:24px;'>\" + Caseid + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b>Prescription And Receipt</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;clear: both;'>\";\n          d += \"<span style='font-size:24px;text-transform: capitalize;'><b>\" + name + ' ' + '(' + gender + dob + ')' + '</b></span>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:20px;'>Rx.</span><br/>\";\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:24px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table> <br/>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only. </span>\";\n          d += '</div>';\n          d += \"<div style='margin-left:100px;text-align:left;width:85%;>\";\n          //The total medicinal service charges of Rs....... have been received for this consignment of medicines\n          d += \"<span style='font-size:20px;'><b>The total medicinal service charges of Rs. \" + total_transction + ' only have been received for this consignment of medicines. Rs. ' + remainingBalance + ' only is ' + advance_text + '.</b></span>';\n          //d +=\"<span style='font-size:20px;'><b> The gross value of the contents of this consignment is Rs.\"+medicine_total+\" only.</b></span>\";\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span>\";\n          d += '</div><br/>';\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    },\n    /* For Medical Certificate */\n    medical_certificate: function (patient_details, symptom_array) {\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n      var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n      var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n      let loginUser = this.session.printUser();\n      var prescribe_doctor = patient_details[0].prescribing_doc_name;\n      if (f_name != undefined && m_name != undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (f_name != undefined && m_name == undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + l_name;\n      }\n      var today = moment().format('DD-MM-YYYY HH:mm:ss A');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var first_value = symptom_array.firstObject;\n          var last_value = symptom_array.lastObject;\n          //console.log(symptom_array.length);\n          if (symptom_array.length == 1) {\n            var symptom_name = first_value;\n          } else if (symptom_array.length > 1) {\n            if (first_value != undefined && last_value != undefined) {\n              var symptom_name = first_value + ', ' + last_value + ', ...';\n            } else if (first_value != undefined) {\n              var symptom_name = first_value;\n            } else if (last_value != undefined) {\n              var symptom_name = last_value;\n            } else {\n              var symptom_name = '';\n            }\n          } else if (symptom_array.length == 0) {\n            var symptom_name = \"<span style='display: inline-block; border-bottom: 1px solid black; width:440px'></span>\";\n          }\n          d += res.content;\n          d += \"<div style='margin-left:12px; width:80%;float:left; margin-bottom:20px; margin-top:20px'>\";\n          d += \"<span style='font-size:22px;'><b>Date: </b>\" + today + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b><u>Medical Certificate</u></b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b><u>To Whom It May Concern</u></b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='min-height:250px;margin-left: 12px;margin-right: 12px;'>\";\n          d += \"<div style='text-align: justify;'>\";\n          d += \"<span style='font-size:24px;'>This is to certify that Ms./Mrs./Mr./Mst <b>\" + name + '</b> is / was suffering from <b>' + symptom_name + \"</b> and therefore is / was unable to attend school/college/work for <span style='display: inline-block; border-bottom: 1px solid black; width: 100px'></span> days (from <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span> to <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span>) or until recovery.</span><br/>\";\n          d += \"<p style='font-size:24px;'>The patient is / was under our treatment and has been advised bed rest.</p><br/>\";\n          d += \"<span style='font-size:24px;'> She/He is fit / unfit for school/college/work.</span>\";\n          d += '</div><br/><br/>';\n          d += \"<div style='margin-left:12px;'>\";\n          d += \"<span style='font-size:24px;'>(\" + prescribe_doctor + ')</span>';\n          d += '</div></div><br/><br/>';\n          d += \"<div style='text-align:center;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'>Please return this paper while reporting.</span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div>';\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        }\n      });\n    },\n    /* for international with Charge*/\n    prescription_receipt: function (medicine_details, patient_details, medicine_total, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code) {\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var patientDetails = patient_details[0];\n      if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n        var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n        var name = title + ' ' + f_name;\n      } else {\n        var f_name = patient_details[0].first_name;\n        var name = title + ' ' + f_name;\n      }\n      if (patientDetails.gender !== '' && patientDetails.gender !== null) {\n        var gender = patientDetails.gender;\n      } else {\n        var gender = '';\n      }\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      //var visit_date = patient_details[0].dateTime;\n      var visit_date = moment().format('YYYY-MM-DD');\n      var patient_dob = this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      if (patient_dob !== null && patient_dob !== '') {\n        var dob = patient_dob;\n      } else {\n        var dob = '';\n      }\n      let loginUser = this.session.printUser();\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        /* for(var i=0;i<medicine_details.length;i++){\n                   var index = parseInt(i)+1\n                   var instruction_name= medicine_details[i].data.instruction_name;\n                   var midicine_type= medicine_details[i].data.midicine_type;\n                     if(instruction_name!=''){\n                         var Dosages = medicine_details[i].data.instruction_name;\n                   }else{\n                         var Dosages = medicine_details[i].data.instruction_other_value;\n                   }\n                   if(midicine_type=='single'){\n                       var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                   }else{\n                       var formanddilution ='';\n                   }\n                   medicine_row +=\"<tr>\";\n                   medicine_row +=\"<td width='20px;'>\"+index+\"</td>\";\n                   medicine_row +=\"<td width='30%'>\"+medicine_details[i].data.medicine_name+\"</td>\";\n                   medicine_row +=\"<td width='100px'>\"+medicine_details[i].data.potency_name+\"</td>\";\n                   medicine_row +=\"<td width='25%'>\"+formanddilution+\"</td>\";\n                   medicine_row +=\"<td>\"+Dosages+\"</td>\";\n                   medicine_row +=\"</tr>\";\n               }*/\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width='20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          var formanddilution = medicine_details[i].data.form_name + ' x' + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          /* if(midicine_type=='single'){\n                       var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                   }else{\n                       var formanddilution ='';\n                   }*/\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align: center;'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      //var today = moment().format('D MMM, YYYY');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      var url = '';\n      if (doctor_id == null) {\n        var importvisitid = medicine_details[0].data.importvisitid;\n        if (importvisitid === 0) {\n          var appointmentId = patient_details[0].id;\n        } else {\n          var appointmentId = medicine_details[0].data.importvisitid;\n        }\n        var patientId = patient_details[0].patient_id;\n        // Construct alternate URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrmprs/' + patientId + '/' + appointmentId;\n      } else {\n        // Default URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += \"<div style='margin-left:80px; width:40%;float:left;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:24px;'>\" + Caseid + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b>Prescription And Invoice</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;clear: both;'>\";\n          d += \"<span style='font-size:24px;text-transform: capitalize;'><b>\" + name + ' ' + '(' + gender + dob + ')' + '</b></span>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:20px;'>Rx.</span><br/>\";\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:24px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table> <br/>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only. </span>\";\n          d += '</div>';\n          d += \"<div style='margin-left:100px;text-align:left;width:83%;'>\";\n          //The total medicinal service charges of Rs....... have been received for this consignment of medicines\n          // d +=\"<span style='font-size:20px;'>The total medicinal service chrages are Rs. <b>\"+medicine_total+\"</b> only, For this consignment of medicines have received. </span>\";\n          //d +=\"<span style='font-size:20px;'>The total medicinal service charges of Rs. <b>\"+medicine_total+\"</b> have been received for this consignment of medicines. </span>\";\n          d += \"<span style='font-size:20px;'><b>The gross value of the contents of this consignment is Rs.\" + medicine_total + ' only. Additional amounts for other services may have been received.</b></span>';\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span>\";\n          d += '</div><br/>';\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    },\n    //This below function is used for calling the print formare function from components\n    receipt: function (patientDetails, recevedAmount, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, refundStatus, PrescriptionTotal, visit_pending_amount, printfrom, pg_amount, total_transction, medicineDetails) {\n      //console.log(recevedAmount);\n      var _this = this;\n      var doctor_id = this.PrescribingDoctor;\n      var url = '';\n      if (doctor_id == null) {\n        var importvisitid = medicineDetails[0].data.importvisitid;\n        if (importvisitid === 0) {\n          var appointmentId = medicineDetails[0].id;\n        } else {\n          var appointmentId = medicineDetails[0].data.importvisitid;\n        }\n        //var appointmentId = patientDetails[0].id;\n        var patientId = patientDetails[0].patient_id;\n        // Construct alternate URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrmrcp/' + patientId + '/' + appointmentId;\n      } else {\n        // Default URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrcp/' + doctor_id;\n      }\n      var total_amt = parseFloat(total_transction).toFixed(2);\n      var salutationss = patientDetails[0].salutation;\n      if (salutationss = '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var patientDetails = patientDetails[0];\n      if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patientDetails.first_name.charAt(0).toUpperCase() + patientDetails.first_name.slice(1);\n        var m_name = patientDetails.middle_name.charAt(0).toUpperCase() + patientDetails.middle_name.slice(1);\n        var l_name = patientDetails.last_name.charAt(0).toUpperCase() + patientDetails.last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var f_name = patientDetails.first_name.charAt(0).toUpperCase() + patientDetails.first_name.slice(1);\n        var l_name = patientDetails.last_name.charAt(0).toUpperCase() + patientDetails.last_name.slice(1);\n        var name = title + ' ' + f_name + ' ' + l_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n        var f_name = patientDetails.first_name.charAt(0).toUpperCase() + patientDetails.first_name.slice(1);\n        var name = title + ' ' + f_name;\n      } else {\n        var f_name = patientDetails.first_name;\n        var name = title + ' ' + f_name;\n      }\n      //Here set the reciept amount for nagative recieved, Rahul khan, 06 Nov 2019\n      var totals = parseInt(total_amt);\n      if (totals < 0) {\n        swal('Empty!', \"The total received amount is negative. So receipt print couldn't processed.\", 'warning');\n        return false;\n      }\n      var res = '';\n      if (total_amt.indexOf('.') !== -1) {\n        var res = total_amt.split('.');\n      }\n      if (res.length > 1 && res[1] > 0) {\n        var recievedAmountWord = this.NumberInWords.getNumber(res[0]);\n        var recievedAmountWordPaisa = this.NumberInWords.getNumber(res[1]);\n        var pasieText = 'and ' + recievedAmountWordPaisa + ' paisa';\n      } else {\n        var recievedAmountWord = this.NumberInWords.getNumber(total_amt);\n        var pasieText = '';\n      }\n      if (total_amt != 0) {\n        var amountInWord = recievedAmountWord;\n      } else {\n        var amountInWord = 'Zero';\n      }\n      var prescribing_doc_code = patientDetails.prescribing_doc_code;\n      var appointment_type = patientDetails.appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patientDetails.prescribing_doc_code;\n      } else {\n        var doctor_code = patientDetails.employee_code;\n      }\n      var prescribe_doctor = patientDetails.label;\n      var branchName = patientDetails.branch_name;\n      var shift = patientDetails.shift_id;\n      var printcode = _this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      let loginUser = this.session.printUser();\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var receiptNo = $('#billing_id').val();\n          var visit_date = patientDetails.dateTime;\n          var today = moment(visit_date).format('D MMM, YYYY');\n          var d = '';\n          d += res.content;\n          d += \"<p style='margin:auto;max-width:700px;'>\";\n          d += \"<span style='font-size:12px;width:50%;text-align:left;'>Receipt No: <b>\" + receiptNo + '</b> </span>';\n          d += \"<span style='font-size:12px;width:50%; float:right;text-align:right;'>Date: \" + today + ' </span><br/><br/>';\n          d += \"<span style='font-size:12px;width:50%;text-align:left;'>\" + printcode + '</span><br/><br/>';\n          d += \"<span style='font-size:12px;'>Received with thanks the sum of Rupees <b> \" + amountInWord + ' ' + pasieText + \" only</b> from Sri/Smt <b style='text-transform: capitalize;'>\" + name + '</b> towards medical services rendered.(for consultation and/or medicinal service charges).</span><br/><br/>';\n          d += \"<span style='font-size:12px;width:35%;text-align:left;'>Rs: <b>\" + total_amt + '/-</b> </span>';\n          // d +=\" <span style='font-size:12px;width:65%; float:right;text-align:right;'>on behalf of <br/><b> DR. KUSHAL BANERJEE</b> <br> Regd. No. 3697</span><br/>\";\n          //d += res.footer_content;\n          d += '<br/>';\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          d += \"<p style='text-align:center;'><i style='font-size:10px'>Electronically generated and printed receipt. Signature is not required</i></p>\";\n          //d +=\"<p style='text-align:center;'><i>Electronically generated and printed prescription. No need of a signature.</i></p>\";\n          d += \"<p style='margin:auto;max-width:700px;'>\";\n          d += \" <span style='font-size:14px; font-weight:900; float: right;'><i>\" + loginUser + '</i></span>';\n          d += '</p>';\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        }\n      });\n    },\n    //This below function is used for printing the receipt with charges\n    receipt_with_charge: function (patientDetails, recevedAmount) {\n      $('#chargebox .row').each(function () {\n        var test = $(this).find('label').text();\n        var test = test.slice(0, -1);\n        var test2 = $(this).find('.charge-total').val();\n        //console.log(test);\n        //console.log(test2);\n      });\n      var patientDetails = patientDetails[0];\n      // var AmountInWords = this.NumberInWords.getNumber(recevedAmount);\n\n      var today = moment().format('D MMM, YYYY');\n      var d = '';\n      d += \"<p style='text-align:center;'>\";\n      d += \"<span style='font-size:24px;'>DR. KALYAN BANERJEE'S CLINIC</span><br/>\";\n      d += \"<span style='font-size:24px;'>New Delhi</span><br/>\";\n      d += \"<span style='font-size:18px;'><b>DR. KUSHAL BANERJEE</b></span><br/>\";\n      d += \"<span style='font-size:12px;'>I 1691 Chittaranjan Park, New Delhi 110019</span><br/>\";\n      d += \"<span style='font-size:12px;'>Phone: 26274726, 26276699 </span>\";\n      d += '</p><br/><br/>';\n      d += \"<p style='margin:auto;max-width:700px;'>\";\n      d += \"<span style='font-size:12px;width:50%;text-align:left;'>Receipt No: <b>23232</b> </span>\";\n      d += \"<span style='font-size:12px;width:50%; float:right;text-align:right;'>Date: \" + today + ' </span><br/>';\n      d += \"<span style='font-size:12px;'>Recevied with thanks the sum of Rupees <b> \" + this.NumberInWords.getNumber(recevedAmount) + \"</b> from Sri/Smt <b style='text-transform: capitalize;'>\" + patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name + '</b> Towards medical services rendred.(for consultation & medicinal service charges)</span><br/><br/>';\n      d += \"<span style='font-size:12px;width:50%;text-align:left;'>Rs: <b>\" + recevedAmount + '/-</b> </span>';\n      d += \" <span style='font-size:12px;width:50%; float:right;text-align:right;'>on behalf of <b> DR. KUSHAL BANERJEE</b> <br> Regd. No. 3697</span><br/>\";\n      d += '<br/>';\n      d += '<br/> ';\n      d += '<br/> ';\n      d += '<br/> ';\n      d += '<br/> ';\n      d += '<br/> ';\n      d += '<br/> ';\n      // d +=\"<p style='text-align:center;'><i>Electronically generated and printed prescription. No need of a signature.</i></p>\";\n      d += '<br/>';\n      var myWindow = window.open('', '', 'width=400,height=300');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    envelope: function (medicineDetails, patientDetails, totalAmount) {\n      var patientDetails = patientDetails[0];\n      var today = moment().format('D MMM, YYYY');\n      var d = \"<p style='text-align:center;'>\";\n      d += \"<span style='font-size:30px;'>DR. KALYAN BANERJEE'S CLINIC</span><br/>\";\n      d += \"<span style='font-size:30px;'>New Delhi</span><br/>\";\n      d += \"<span style='font-size:18px;'>Clinic: I 1691 Chittaranjan Park, New Delhi-110019 India</span><br/>\";\n      d += \"<span style='font-size:18px;'>Phone: +91-11-26274726, 26276699 Fax: +91-11-26274986 </span><br/>\";\n      d += \"<span style='font-size:18px;'>Annexe: 264 Block 1, First Floor, Ganga shopping Complex, Sectoe 29, Noida</span><br/>\";\n      d += \"<span style='font-size:18px;'>Gurugram Clinic: Q 5/13, 2<sup>nd</sup> Floor, DLF, Phase-II, Gurugram</span><br/>\";\n      d += \"<span style='font-size:18px;'>Econsultaion: econsultation@drbanerjee.com  Website: www.drkbanerjee.com</span></p>\";\n      d += \"<div style='width:55%;float:left;' >\";\n      d += \"<span style='font-size:24px;'><b>DR. KALYAN BANERJEE </b></span><br>\";\n      d += \"<span style='font-size:16px'>Padma Shri Awardee M.D.(Hom.), Dip. in H.Pharma, F.M.I.H., F.I.I.A.H.</span> <br/>\";\n      d += \" <span style='font-size:18px'>Former Governing Body Member</span> <br/>\";\n      d += \" <span style='font-size:18px'>Central council for Research in Homoeopathy</span> <br/>\";\n      d += \" <span style='font-size:18px'>Ministry of Health, Government of India</span><br/><br/><br/>\";\n      d += \" <span style='font-size:18px'><b>DR. PIJUSH DATTA -</b></span><span style='font-size:16px'> B.H.M.S.(C.U.), F.I.I.A.H.</span><br/>\";\n      d += \" <span style='font-size:18px'><b>DR.(MRS) MANISHA SETHI -</b></span><span style='font-size:16px'> B.H.M.S.(DLI), F.I.I.A.H.</span><br/>\";\n      d += \" <span style='font-size:18px'><b>DR. KAVITA JUNEJA  -</b></span><span style='font-size:16px'> B.H.M.S.</span><br/>\";\n      d += \" <span style='font-size:18px'><b>DR. KUSHAL BANERJEE  -</b></span><span style='font-size:16px'> M.D.(Hom.), MSc(Oxen.), M.B.R.C.P.(ENG.), M.F.Hom (MAL.), F.A.N.</span><br/>\";\n      d += '</div>';\n      d += \"<div style='width:45%;float:left;text-align:center;' >\";\n      d += \" <span style='font-size:20px'><b>Clinic Hours:</b></span><br/>\";\n      d += \"<span style='font-size:18px;'>4:30 P.M. to 8:00 P.M. Free Consultation<br/>\";\n      d += \"<span style='font-size:18px;'>9:00 A.M. to 1:00 P.M. by Appointment, only</span><br/>\";\n      d += \" <span style='font-size:20px'><b>Annexe & Gurugram Hours:</b></span><br/>\";\n      d += \"<span style='font-size:18px;'>10am - 7pm</span><br/>\";\n      d += \"<span style='font-size:18px;'>Lunch 1:30- 2pm</span><br/>\";\n      d += \" <span style='font-size:24px'><b>CLOSED ON THURSDAY</b></span><br/>\";\n      d += \"<span style='font-size:20px;'>Visiting Consultant: </span><br/>\";\n      d += \" <span style='font-size:26px'><b>PROF. DR. PARIMAL BANERJEE.</b></span><br/>\";\n      d += \"<span style='font-size:18px;'>Parimal Banerji Homoeopathic Research Foundation</span><br/>\";\n      d += \"<span style='font-size:18px;'>109D, S.P. Mukherji Road, Kolkata - 700026</span><br/>\";\n      d += \"<span style='font-size:18px;'>Phone: +91-33-24643052</span><br/>\";\n      d += '</div>';\n      d += '<div >';\n      d += \"<span style='font-size:20px;'>Case No.  </span> <span style='font-size:22px;'><b> D-\" + patientDetails.OldRegistrationNo + '</b></span><br/>';\n      d += \"<span style='font-size:20px;'>Shri/Smt  </span> <span style='font-size:22px;text-transform: capitalize;'><b>\" + patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name + '  (' + patientDetails.gender + '-' + patientDetails.age + ') </b></span><br/>';\n      d += \"<div style='width:15%;float:left;'><span style='font-size:20px;'>Prescription </span></div>\";\n      d += \"<div style='width:85%;float:right;'>\";\n      d += \"<table style='font-size:14px;'>\";\n      medicineDetails.forEach(function (item, index) {\n        var index = parseInt(index) + 1;\n        d += '<tr>';\n        d += \"<td width='20px;'>\" + item.data.medicine_serial_no + '.</td>';\n        d += \"<td width='30%'>\" + item.data.medicine_name + '</td>';\n        d += \"<td width='100px'>\" + item.data.potency_name + '</td>';\n        d += \"<td width='25%'>\" + item.data.form_name + ' X ' + item.data.factor + '</td>';\n        d += '<td>' + item.data.instruction_name + '</td>';\n        d += '</tr>';\n      });\n      d += '</table>';\n      d += '</div>';\n      d += '</div><br/><br/>';\n      d += \"<div style=';clear:both;'>\";\n      d += \"<span style='font-size:18px;'><i>(3 Pills make one dose OR 1 cup full of liquid makes one dose OR 4 drops in teaspoonfuls of water make 1 dose) OR 1/4<sup>th</sup> cap of powder makes 1 dose.</i></span><br/>\";\n      d += '</div><br/>';\n      d += '<div>';\n      d += \"<span style='font-size:22px;'>Received <b>\" + totalAmount + '/-</b></span><br/>';\n      d += '</div>';\n      var myWindow = window.open('', '', 'width=400,height=300');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    label: function (medicineDetails, patientDetails, vial_data) {\n      //console.log(vial_data);\n      //console.log(patientDetails);\n      var patient_details = patientDetails[0];\n      var caseId = 'D- ' + patient_details.OldRegistrationNo;\n      var name = '';\n      if (patient_details.first_name !== '' && patient_details.first_name !== null && patient_details.first_name !== undefined && patient_details.middle_name !== '' && patient_details.middle_name !== null && patient_details.middle_name !== undefined && patient_details.last_name !== '' && patient_details.last_name !== null && patient_details.last_name !== undefined) {\n        var f_name = patient_details.first_name.charAt(0).toUpperCase() + patient_details.first_name.slice(1);\n        var m_name = patient_details.middle_name.charAt(0).toUpperCase() + patient_details.middle_name.slice(1);\n        var l_name = patient_details.last_name.charAt(0).toUpperCase() + patient_details.last_name.slice(1);\n        var name = f_name + ' ' + m_name + ' ' + l_name;\n      } else if (patient_details.first_name !== '' && patient_details.first_name !== null && patient_details.first_name !== undefined && patient_details.last_name !== '' && patient_details.last_name !== null && patient_details.last_name !== undefined) {\n        var f_name = patient_details.first_name.charAt(0).toUpperCase() + patient_details.first_name.slice(1);\n        var l_name = patient_details.last_name.charAt(0).toUpperCase() + patient_details.last_name.slice(1);\n        var name = f_name + ' ' + l_name;\n      } else if (patient_details.first_name !== '' && patient_details.first_name !== null && patient_details.first_name !== undefined) {\n        var f_name = patient_details.first_name.charAt(0).toUpperCase() + patient_details.first_name.slice(1);\n        var name = f_name;\n      } else {\n        var f_name = patient_details.first_name;\n        var name = f_name;\n      }\n      var visit_date = patient_details.dateTime;\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var d = '';\n      // medicineDetails.forEach(function(item, index) {\n      var medicineNum = medicineDetails.length;\n      for (var i = 0; i < medicineNum; i++) {\n        if (vial_data == undefined) {\n          var repeat_vial = medicineDetails[i].data.vial;\n        } else {\n          var repeat_vial = vial_data[i].medicine_vial;\n        }\n        if (i % 2 == 0) {\n          var divClass = 'width:calc(50% - 15px); float:left; font-family:Sans-serif;';\n        } else {\n          var divClass = 'width:calc(50% - 15px);float:right; font-family:Sans-serif;';\n        }\n        if (medicineDetails[i].data.dilution_name != '') {\n          var dilution = \"<span style='font-size:16px; text-transform:capitalize;'>(\" + medicineDetails[i].data.dilution_name + ')</span>';\n        } else {\n          var dilution = '';\n        }\n        var instruction_name = medicineDetails[i].data.instruction_name;\n        if (instruction_name != '') {\n          var Dosages = medicineDetails[i].data.instruction_name;\n        } else {\n          var Dosages = medicineDetails[i].data.instruction_other_value;\n        }\n        for (var j = 1; j <= repeat_vial; j++) {\n          d += \"<div style='width:100%;'>\";\n          d += \"<div style='text-align:center;border-bottom:0.5px ridge black;'>\";\n          d += \"<span style='font-size:14px;'>DR. KALYAN BANERJEE'S CLINIC</span>\";\n          d += '</div>';\n          d += \"<span style='font-size:20px; text-transform:capitalize;'><b>\" + name + \"</b> </span> <span style='font-size:20px;float:right;'><b>\" + caseId + ' </b></span><br/>';\n          d += \"<div style='clear:both !important;'></div>\";\n          d += \"<div style='min-height:60px;'>\";\n          d += \"<span style='font-size:18px;'><b><span style='font-size:22px;'>\" + medicineDetails[i].data.medicine_serial_no + '</span>. ' + medicineDetails[i].data.medicine_name + ' ' + medicineDetails[i].data.potency_name + ' ' + dilution + '</b></span><br/>';\n          d += \"<span style='font-size:16px;text-transform: capitalize;'>Instructions - \" + Dosages + '</span>';\n          d += '</div>';\n          d += \"<div style='border-bottom:0.5px ridge black;'>\";\n          d += '<span>Date: ' + today + '  www.drkbanerjee.com</span>';\n          d += '</div>';\n          d += '</div>';\n        }\n      }\n      // });\n\n      var myWindow = window.open('', '', 'width=400,height=300');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    //This below function is used for printing the Address label which used for consignment shipping,\n    label_old: function (medicineDetails, patientDetails) {\n      var patientDetails = patientDetails[0];\n      var caseId = 'D-' + patientDetails.OldRegistrationNo;\n      var today = moment().format('D MMM, YYYY');\n      var d = '';\n      medicineDetails.forEach(function (item, index) {\n        /*d += \"<tr>\";\n              d += \"<td width='20px;'>\"+index+\".</td>\";\n              d += \"<td width='30%'>\"+item.data.medicine_name+\"</td>\";\n              d += \"<td width='100px'>\"+item.data.potency_name+\"</td>\";\n              d += \"<td width='25%'>\"+item.data.form_name+\" X \"+item.data.factor+\"</td>\";\n              d += \"<td>\"+item.data.instruction_name+\"</td>\";\n              d += \"</tr>\";*/\n        d += \"<div style='width:350px;margin:auto;'><br/>\";\n        d += \"<div style='text-align:center;'>\";\n        d += \"<div style='border-bottom:0.5px ridge black;'>\";\n        d += \"<span style='font-size:20px;'>DR. KALYAN BANERJEE'S CLINIC</span>\";\n        d += '</div>';\n        d += \"<span  style='font-size:24px;'><b>\" + caseId + '</b></span>';\n        d += '</div>';\n        d += '<div>';\n        d += \"<span style='font-size:18px;'>\" + item.data.medicine_serial_no + '. ' + item.data.medicine_name + '</span>';\n        d += \"<span style='font-size:16px;margin-left:25px;'>\" + item.data.potency_name + '</span> <br/>';\n        d += \"<span style='font-size:14px;'>\" + item.data.instruction_name + '</span>';\n        d += '</div>';\n        d += \"<div style='border-bottom:0.5px ridge black;'>\";\n        d += \"<span style='font-size:14px;'>Date: \" + today + '  www.drkbanerjee.com</span>';\n        d += '</div><br/>';\n        d += \"<div style='text-align:center;'> --------------------------------</div>\";\n        d += '</div>';\n      });\n      var myWindow = window.open('', '', 'width=400,height=300');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    //This below function is used for printing the Address label which used for consignment shipping,\n    address_label: function (patientDetails, appointment_id) {\n      var patient_id = patientDetails[0].patient_id;\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            //console.log('appointment_shipping table data');\n            var addressData = res.data[0];\n            _this.recalculateAmount.printShippingAddressHtml(patientDetails[0], addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  _this.recalculateAmount.printShippingAddressHtml(patientDetails[0], data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                } else {\n                  _this.recalculateAmount.printShippingAddressHtml(patientDetails[0], data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                }\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    envelope_label: function (medicineDetails, patientDetails, totalAmount, remainingBalance, remainingBalanceStatus, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, refundStatus, PrescriptionTotal, total_due_amount, recieved_paid_amount, visit_pending_amount, pg_amount, total_transction) {\n      var salutationss = patientDetails[0].salutation;\n      if (salutationss == '') {\n        var title = '';\n      } else {\n        var title = salutationss + '.';\n      }\n      //console.log(refundStatus);\n      //console.log(PrescriptionTotal);\n      if (refundStatus == 1) {\n        var refund_name = 'Total';\n        var status = remainingBalanceStatus;\n      } else {\n        var refund_name = 'Received';\n        var status = remainingBalanceStatus;\n      }\n      var prescribing_doc_code = patientDetails[0].prescribing_doc_code;\n      //console.log(prescribing_doc_code);\n      if (prescribing_doc_code != null) {\n        var doctor_code = patientDetails[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patientDetails[0].employee_code;\n      }\n      var prescribe_doctor = patientDetails[0].label;\n      var appointment_type = patientDetails[0].appointment_type;\n      var branchName = patientDetails[0].branch_name;\n      var shift = patientDetails[0].shift_id;\n      var patient_birthday = patientDetails[0].birthday;\n      var years = patientDetails[0].age;\n      var months = patientDetails[0].months;\n      var days = patientDetails[0].days;\n      //var visit_date = patientDetails[0].dateTime;\n      var visit_date = moment().format('YYYY-MM-DD');\n      var patient_dob = this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      let loginUser = this.session.printUser();\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var patientDetails = patientDetails[0];\n      if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.middle_name !== '' && patientDetails.middle_name !== null && patientDetails.middle_name !== undefined && patientDetails.last_name !== '' && patientDetails.last_name !== null && patientDetails.last_name !== undefined) {\n        var name = patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined && patientDetails.last_name != '' && patientDetails.last_name != null && patientDetails.last_name != undefined) {\n        var name = patientDetails.first_name + ' ' + patientDetails.last_name;\n      } else if (patientDetails.first_name !== '' && patientDetails.first_name !== null && patientDetails.first_name !== undefined) {\n        var name = patientDetails.first_name;\n      } else {\n        var name = patientDetails.first_name;\n      }\n      if (patientDetails.gender != '' || patientDetails.gender != '') {\n        var gender = patientDetails.gender;\n      } else {\n        var gender = '';\n      }\n      if (patient_dob !== null && patient_dob !== '') {\n        var dob = patient_dob;\n      } else {\n        var dob = '';\n      }\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var total_medicine = medicineDetails.length;\n      var page = parseInt(total_medicine / 3);\n      var mode = total_medicine % 3;\n      if (total_medicine > 5) {\n        if (mode > 1) {\n          var page = page + 1;\n        }\n      } else {\n        if (mode > 0) {\n          var page = page + 1;\n        }\n      }\n      var d = '';\n      d += \"<div style='width:100%;padding:0px 15px;'>\";\n      d += \"<div style='float:left;width:calc(100% - 100px;)'>\";\n      d += \"<div style='font-size:28px;'>\";\n      d += '<span><b>D-' + patientDetails.OldRegistrationNo + '</b></span>';\n      d += \"<span style='font-size:12px; margin-left: 12px;font-weight: 600;'>\" + printcode + '</span>';\n      d += \"<div style='float:right;margin-right:20px;'>\";\n      d += \"<span  style='font-size:24px;'>\" + today + '</span>';\n      d += '</div>';\n      d += '</div>';\n      d += \"<div style='width:500px;'>\";\n      d += \"<div style='float:left;width:500px;'>\";\n      d += \"<span style='font-size:28px;text-transform: capitalize;'>\" + title + ' ' + name + ' ' + '(' + gender + dob + ')' + '</span>';\n      d += '</div>';\n      d += '</div>';\n      if (medicineDetails.length > 0) {\n        d += \"<table id='envelop' style='width:100%; border:1px;'>\";\n        var i;\n        d += \"<tr><th width='5%'></th><th width='70%'></th><th width='25%' style='border-left: 1px solid;font-size:22px;'><b>Not for patient use</b></th></tr>\";\n        for (i = 0; i < total_medicine; i++) {\n          var j = i + 1;\n          var jmode = j % 4;\n          if (medicineDetails[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicineDetails[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          d += '<tr>';\n          d += \"<td style='width:5%;'>\";\n          d += \"<span style='font-size:20px;'>\" + medicineDetails[i].data.medicine_serial_no + '</span>';\n          d += '</td>';\n          d += \"<td style='width:70%;'>\";\n          d += \"<span style='font-size:20px;font-weight: 900;'>\" + medicineDetails[i].data.medicine_name + ' ' + medicineDetails[i].data.potency_name + ' ' + dilution + ' ' + medicineDetails[i].data.form_name + '</span>';\n          //d += \" x <span style='font-size:20px;text-transform: uppercase;'>\" + medicineDetails[i].data.factor + \"</span>\";\n          d += '</span>';\n          if (medicineDetails[i].data.instruction_name) {\n            d += \"<br/><span style='font-size:20px;text-transform: capitalize;'>\" + medicineDetails[i].data.instruction_name + '</span>';\n          } else if (medicineDetails[i].data.instruction_other_value) {\n            d += \"<br/><span style='font-size:20px;text-transform: capitalize;'>\" + medicineDetails[i].data.instruction_other_value + '</span>';\n          }\n          d += \"<td style='width:25%;border-left: 1px solid;text-align:center;'>\";\n          d += \"<span style='font-size:20px;'>\" + medicineDetails[i].data.factor + '</span>';\n          d += '</td>';\n          d += '</td>';\n          d += '</tr>';\n          if (j > 3 && jmode == 0) {\n            d += '<tr>';\n            d += \"<td style='text-align:right;padding:20px 0px 10px 0px;' colspan='3'>\";\n            d += \"<div style='float:left;width:100px;'>\";\n            d += \"<span style='font-size:20px;'><b>D-\" + patientDetails.OldRegistrationNo + '</b></span>';\n            d += '</div>';\n            d += \"<div style='float:right;margin-right:20px;'>\";\n            d += \"<span style='font-size:20px;'>\" + today + '</span>';\n            d += '</div>';\n            d += '</td>';\n            d += '</tr>';\n            d += \"<tr><th width='5%'></th><th width='70%'></th><th width='25%' style='border-left: 1px solid;font-size: 22px;'><b>Not for patient use</b></th></tr>\";\n          }\n        }\n        d += '</table>';\n      }\n      d += \"<div style='width:80%;float:right'>\";\n      d += \"<div style='float:left;width:80px;'>\";\n      d += \"<span style='font-size:22px'>Payment</span>\";\n      d += '</div>';\n      d += \"<div style='float:right; font-size:20px;margin-right: 20px;'>\";\n      d += '<div>';\n      d += \"<div style='float:left;width:120px;'>\" + refund_name + '</div>';\n      d += \"<div style='float:right;'>\" + total_transction + ' (<i>Rs.</i>)</div>';\n      d += '</div>';\n      d += '<div>';\n      d += \"<div style='float:left;width:200px;'>Balance (\" + status + ')</div>';\n      d += \"<div style='float:right;'>\" + remainingBalance + '  (<i>Rs.</i>)</div>';\n      d += '</div>';\n      d += '</div>';\n      d += '</div>';\n      d += \"<div style='width:80%;float:right'>\";\n      d += \"<div style='margin-top: 2px;float: right;font-weight: 900;font-size: 14px;margin-right:43px;'><i>\" + loginUser + '</i></div>';\n      d += '</div>';\n      d += '</div>';\n      var myWindow = window.open('', '', 'width=600,height=400');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    getPatientDob(patient_dob, visit_date, years, months, days) {\n      if (patient_dob != '0000-00-00' && patient_dob !== null) {\n        //console.log('a');\n        var patient_dob_format = '';\n        // var current_date = moment().format(\"YYYY-MM-DD\");\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age !== 0 && age !== null && monthss !== 0 && monthss !== null && dayss !== 0 && dayss !== null) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && age !== null && monthss != 0 && monthss !== null && (dayss == 0 || dayss == null)) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && age !== null && (monthss == 0 || monthss == null) && (dayss == 0 || dayss == null)) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if ((age == 0 || age == null) && monthss != 0 && monthss !== null && dayss != 0 && dayss !== null) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if ((age == 0 || age == null) && (monthss == 0 || monthss == null) && dayss != 0 && dayss !== null) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && age !== null && (monthss == 0 || monthss == null) && dayss != 0 && dayss !== null) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if ((age == 0 || age == null) && monthss != 0 && monthss !== null && (dayss == 0 || dayss == null)) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && months != 0 && months !== null && days != 0 && days !== null) {\n        //console.log('b');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && months != 0 && months !== null && (days == 0 || days == null)) {\n        //console.log('c');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && (months == 0 || months == null) && (days == 0 || days == null)) {\n        //console.log('d');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((years == 0 || years == null) && months != 0 && months !== null && days != 0 && days !== null) {\n        //console.log('e');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((years == 0 || years == null) && months == 0 && months == null && days != 0 && days !== null) {\n        //console.log('f');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((patient_dob == '0000-00-00' || patient_dob == null) && (years == 0 || years == null) && (months == 0 || months == null) && (days == 0 || days == null)) {\n        //console.log('g');\n        return patient_dob_format = '';\n      }\n    },\n    getPatientAge(patient_birthday, visit_date, years) {\n      if (patient_birthday !== '0000-00-00' && patient_birthday !== null) {\n        var dob = new Date(patient_birthday);\n        var today = new Date(visit_date);\n        var dob_age = Math.floor((today - dob) / (365.25 * 24 * 60 * 60 * 1000));\n        var age = '-' + dob_age + 'Y';\n      } else if (years !== 0 && years !== null) {\n        var age = '-' + years + 'Y';\n      } else {\n        var age = '';\n      }\n      return age;\n    },\n    //This function get Year Month and Days form data of birth of patient\n    dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    },\n    count(array) {\n      var c = 0;\n      for (var i in array)\n      // in returns key, not object\n      if (array[i] != undefined) c++;\n      return c;\n    },\n    sum(input) {\n      //console.log(input);\n      if (toString.call(input) !== '[object Array]') return false;\n      var total = 0;\n      for (var i = 0; i < input.length; i++) {\n        if (isNaN(input[i])) {\n          continue;\n        }\n        total += Number(input[i]);\n      }\n      return total;\n    },\n    getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type) {\n      if (shift == 1) {\n        var loginshift = 'M';\n      } else {\n        var loginshift = 'E';\n      }\n      if (prescribe_doctor != null) {\n        var d = doctor_code;\n        var visit_type = appointment_type.toUpperCase();\n      } else {\n        var visit_type = 'RM';\n        var d = 'NA';\n      }\n      if (visit_charges.firstObject != undefined) {\n        var charge = '/' + visit_charges.join('/');\n      } else {\n        var charge = '';\n      }\n      //console.log(consultancy_waived);\n      if (medDiscounts > 0 && consultancy_waived == 'Not Set' && visit_charges.firstObject != undefined) {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + '/' + medicine_dis_code + charge;\n        //console.log(1);\n      } else if (medDiscounts > 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') && visit_charges.firstObject != undefined) {\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + '/' + medicine_dis_code + charge;\n        //console.log(13);\n      } else if (medDiscounts > 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category')) {\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + '/' + medicine_dis_code + charge;\n        //console.log(3);\n      } else if (medDiscounts > 0 && consultancy_waived == 'Not Set') {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + '/' + medicine_dis_code + charge;\n        //console.log(4);\n      } else if (medDiscounts > 0 && consultancy_waived == '') {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + medicine_dis_code + charge;\n        //console.log(5);\n      } else if (medDiscounts == 0 && consultancy_waived == 'Discount Category' && visit_charges.firstObject != undefined) {\n        if (visit_charges.firstObject != undefined) {\n          var charge_code = '-' + visit_charges.join('/');\n        } else {\n          var charge_code = '';\n        }\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + charge_code;\n        //console.log(12);\n      } else if (medDiscounts == 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') && visit_charges.firstObject != undefined) {\n        //console.log(consultancy_waived);\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + charge;\n        //console.log(6);\n      } else if (medDiscounts == 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category')) {\n        //console.log(consultancy_waived);\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + '' + cons_waived_code + charge;\n        //console.log(10);\n      } else if (medDiscounts == 0 && consultancy_waived == 'Not Set') {\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + charge;\n        //console.log(7);\n      } else if (medDiscounts == 0 && consultancy_waived == '') {\n        if (visit_charges.firstObject != undefined) {\n          var charge_code = '-' + visit_charges.join('/');\n        } else {\n          var charge_code = '';\n        }\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + charge_code;\n        //console.log(8);\n      } else {\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + charge;\n        //console.log(9);\n      }\n      return print_code;\n    },\n    getPaymentTemplate(id_array, name_array) {\n      var html = '';\n      id_array.forEach(function (element, i) {\n        html += '<div class=\"row form-group\">';\n        html += '<div class=\"col-md-2\"><label for=\"total_due\">Total Due ' + name_array[i] + ' :</label></div>';\n        html += '<div class=\"col-md-8\"><input type=\"text\" class=\"form-control inputreadonly\" id=\"total_due\" name=\"total_due\" placeholder=\"Total Due...\" value=\"\" readonly></div>';\n        html += '</div>';\n      });\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n      // if the alphabetic part of a is less than that of b => -1\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n      // if the alphabetic part of a is greater than that of b => 1\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n      // if the alphabetic parts are equal, check the number parts\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n      // else, just sort using the numbers parts\n      return _n;\n    },\n    sortMedicineRow(tableId) {\n      //console.log(tableId);\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n        // if the alphabetic part of a is less than that of b => -1\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n        // if the alphabetic part of a is greater than that of b => 1\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n        // if the alphabetic parts are equal, check the number parts\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n        // else, just sort using the numbers parts\n        return _n;\n      }).appendTo($tbody);\n    },\n    getAdvisedPrint: function (id, patient_id, doctor_id) {\n      var _this = this;\n      // dkbcPrint is a serice\n      _this.get('dkbcPrint').getAdvisedPrintFormat(id, patient_id, doctor_id);\n    },\n    getPrintoption(appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/printoption/' + appointment_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res + 'shubh tiwari');\n            if (res != '') {\n              _this.set('print_option', JSON.parse(res[0].selected_reports));\n            } else {\n              _this.set('print_option', 0);\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getMedicinePrepared(appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/checkmedicineprepared/' + appointment_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res != '') {\n              _this.set('medicin_eprepared', res);\n            } else {\n              _this.set('medicin_eprepared', 0);\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    //Nishant 11/Nov/2022 - refactored Function to return balance status\n    getBalanceStatus: function (recieved_amount, total_due, transaction_mode) {\n      //console.log('TD:' + total_due);\n      //console.log('mode:' + transaction_mode);\n      //console.log('recvd:' + recieved_amount);\n      //console.log('balance:' + balance);\n      if (transaction_mode == '1') {\n        //Refund selected by user\n        var refund_amount = -1 * recieved_amount;\n        if (refund_amount > total_due) {\n          var balance = parseFloat(refund_amount) - parseFloat(total_due);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'ADVANCE';\n        } else if (refund_amount < total_due) {\n          var balance = parseFloat(total_due) - parseFloat(refund_amount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'DUE';\n        } else if (refund_amount == total_due) {\n          var balance = '0.00';\n          var remaining_balance = '0.00';\n          var remaining_Balance_Status = 'DUE';\n        }\n      } else {\n        if (recieved_amount < total_due) {\n          var balance = parseFloat(total_due) - parseFloat(recieved_amount);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'DUE';\n        } else if (recieved_amount > total_due) {\n          var balance = parseFloat(recieved_amount) - parseFloat(total_due);\n          var remaining_balance = Math.abs(balance).toFixed(2);\n          var remaining_Balance_Status = 'ADVANCE';\n        } else if (recieved_amount == total_due) {\n          var balance = '0.00';\n          var remaining_balance = '0.00';\n          var remaining_Balance_Status = 'DUE';\n        }\n      }\n      //console.log('remaining_balance:' + remaining_balance);\n      //console.log('remaining_Balance_Status:' + remaining_Balance_Status);\n      //The return variable names below have to be exactly same as the variables taking value in calling function\n      return {\n        balance,\n        remaining_balance,\n        remaining_Balance_Status\n      };\n    },\n    convertObjectToArray: function (obj) {\n      let result = [];\n      Object.keys(obj).forEach(key => {\n        if (typeof obj[key] !== 'object' || obj[key] === null) {\n          result.push({\n            key: key,\n            value: obj[key]\n          });\n        }\n      });\n      return result;\n    }\n  });\n});","define(\"clinic-dev/controllers/branch\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    actions: {\n      clicky(value) {\n        this.set('branch_status', value);\n        this.set('Active', $('checked[name=branch_status]').val());\n        this.set('Inactive', $('checked[name=branch_status]').val());\n      },\n      submit(page) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var utoken = _this.get('session').getToken();\n        //\n        if (this.validate()) {\n          var morning_charity_status = evening_charity_status = 0;\n          if ($('input[name=\"morning_charity_status\"]').is(':checked')) {\n            var morning_charity_status = 1;\n          }\n          if ($('input[name=\"evening_charity_status\"]').is(':checked')) {\n            var evening_charity_status = 1;\n          }\n          var data = {\n            title: _this.get('branch_name'),\n            branch_code: _this.get('branch_code'),\n            branch_full_name: _this.get('branch_full_name'),\n            morning_shift_start: _this.get('morning_shift_start'),\n            morning_shift_end: _this.get('morning_shift_end'),\n            morning_charity_status: morning_charity_status,\n            evening_shift_start: _this.get('evening_shift_start'),\n            evening_shift_end: _this.get('evening_shift_end'),\n            evening_charity_status: evening_charity_status,\n            latitude: _this.get('latitude'),\n            longitude: _this.get('longitude'),\n            branch_status: _this.get('branch_status')\n          };\n\n          //console.log(data);\n          //return false;\n\n          if (this.id > 0) {\n            data.id = this.id;\n          } else {\n            data.id = 0;\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'branch',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                /*In these below line we have customize the error reponse date format, Rahul Khan, 10 July 2019*/\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  if (key == 'title') {\n                    var errorText = [];\n                    $.each(value, function (key1, value1) {\n                      var errorMessage = value1.replace(key, 'branch name');\n                      errorText.push(errorMessage);\n                    });\n                    reponse['branch_name'] = errorText;\n                  }\n                  reponse[key] = value;\n                });\n                _this.set('vali_errors', reponse);\n                //  _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('branch.messages.savedBranch');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('branch.messages.updateBranch');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.branch.list');\n              }\n            }\n          });\n        }\n      },\n      branch_delete(branch_id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let message = i18n.t('branch.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'branch/delete',\n              data: {\n                branch_id: branch_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('branch.messages.branchDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('branch.messages.branchDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              error: function (res) {},\n              complete: function () {\n                _this.getBranch();\n              }\n            });\n          }\n        });\n      },\n      getBranch: function (page, status) {\n        this.getBranch(page, status);\n      },\n      search_branch: function (page, status) {\n        var searchtext = this.query_string;\n        this.getBranch(page, status, searchtext);\n      },\n      clearBranch: function (ele) {\n        //shift_1\n        $('.shift_' + ele).val('');\n        console.log(ele);\n        if (ele == 1) {\n          this.set('morning_shift_start', '');\n          this.set('morning_shift_end', '');\n        } else if (ele == 2) {\n          this.set('evening_shift_start', '');\n          this.set('evening_shift_end', '');\n        }\n      }\n    },\n    getBranch: function (page, status, searchtext) {\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'branch';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'branch?query_string=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      $.ajax({\n        url: api_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('branches', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var branch_name = i18n.t('branch.validationErrorMessage.branch_name');\n      var branch_code = i18n.t('branch.validationErrorMessage.branch_code');\n      var morning_shift_start_required = i18n.t('branch.validationErrorMessage.morning_shift_start_required');\n      var morning_shift_end_required = i18n.t('branch.validationErrorMessage.morning_shift_end_required');\n      var evening_shift_start_required = i18n.t('branch.validationErrorMessage.evening_shift_start_required');\n      var evening_shift_end_required = i18n.t('branch.validationErrorMessage.evening_shift_end_required');\n      var shift_value = i18n.t('branch.validationErrorMessage.shift_value');\n      var one_shift_required = i18n.t('branch.validationErrorMessage.one_shift_required');\n      var branch_code = i18n.t('branch.validationErrorMessage.branch_code');\n      var branch_status = i18n.t('branch.validationErrorMessage.branch_status');\n      if (this.branch_name == '' || this.branch_name == undefined) {\n        this.errors.add('branch_name', branch_name);\n      }\n      if ((this.morning_shift_start == '' || this.morning_shift_start == undefined) && this.morning_shift_end > 0) {\n        this.errors.add('morning_shift_start', morning_shift_start_required);\n      }\n      if ((this.morning_shift_end == '' || this.morning_shift_end == undefined) && this.morning_shift_start > 0) {\n        this.errors.add('morning_shift_end', morning_shift_end_required);\n      }\n      if ((this.evening_shift_start == '' || this.evening_shift_start == undefined) && this.evening_shift_end > 0) {\n        this.errors.add('evening_shift_start', evening_shift_start_required);\n      }\n      if ((this.evening_shift_end == '' || this.evening_shift_end == undefined) && this.evening_shift_start > 0) {\n        this.errors.add('evening_shift_end', evening_shift_end_required);\n      }\n      if (this.morning_shift_start > this.morning_shift_end) {\n        this.errors.add('morning_shift_end', shift_value);\n      }\n      if (this.evening_shift_start > this.evening_shift_end) {\n        this.errors.add('evening_shift_end', shift_value);\n      }\n      if ((this.morning_shift_start == '' || this.morning_shift_start == undefined) && (this.evening_shift_start == '' || this.evening_shift_start == undefined)) {\n        this.errors.add('morning_shift_start', one_shift_required);\n      }\n      if (this.branch_code == '' || this.branch_code == undefined) {\n        this.errors.add('branch_code', branch_code);\n      }\n      if (this.branch_status == '' || this.branch_status == undefined) {\n        this.errors.add('branch_status', branch_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/case-report/casereport\", [\"exports\", \"clinic-dev/config/environment\", \"@whoicd/icd11ect\"], function (_exports, _environment, _icd11ect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"@whoicd/icd11ect\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    init() {\n      this._super(...arguments);\n      this.selectedReports = [];\n      this.exportColumn = [];\n      this.selectedItems = [];\n      this.selectedVisitSearchCheckbox = [];\n      this.genderArray = [];\n      this.set('items', Ember.A([{\n        name: 'Visit Type Search',\n        isChecked: false,\n        disable: false,\n        id: 'visit_type_search',\n        data: 'Visit Type Search'\n      }, {\n        name: 'Patient Info Search',\n        isChecked: false,\n        disable: false,\n        id: 'patient_info_search',\n        data: 'Patient Info Search'\n      }, {\n        name: 'Vital Stats Search',\n        isChecked: false,\n        disable: false,\n        id: 'vital_stats_search',\n        data: 'Vital Stats Search'\n      }, {\n        name: 'Case Taking Search',\n        isChecked: false,\n        disable: false,\n        id: 'case_taking_search',\n        data: 'Case Taking Search'\n      }, {\n        name: 'Diagnostic Tests Search',\n        isChecked: false,\n        disable: true,\n        id: 'diagnostic_tests_search',\n        data: 'Diagnostic Tests Search'\n      }, {\n        name: 'Prescription Search',\n        isChecked: false,\n        disable: false,\n        id: 'prescription_search',\n        data: 'Prescription Search'\n      }, {\n        name: 'Clinic User Search',\n        isChecked: false,\n        disable: false,\n        id: 'clinic_user_serach',\n        data: 'Clinic User Search'\n      }]));\n      this.set('outputColumn', Ember.A([{\n        id: 1,\n        name: 'Geography',\n        isChecked: false,\n        disable: false,\n        data: 'geography'\n      }, {\n        id: 2,\n        name: 'Vital Stats',\n        isChecked: false,\n        disable: false,\n        data: 'vital_stats'\n      }, {\n        id: 3,\n        name: 'Case Taking',\n        isChecked: false,\n        disable: false,\n        data: 'case_taking'\n      }, {\n        id: 4,\n        name: 'Diagnostic Reports',\n        isChecked: false,\n        disable: true,\n        data: 'diagnostic_tests'\n      }, {\n        id: 5,\n        name: 'Advised Reports',\n        isChecked: false,\n        disable: true,\n        data: 'advised_report'\n      }, {\n        id: 6,\n        name: 'Prescription',\n        isChecked: false,\n        disable: false,\n        data: 'prescription'\n      }, {\n        id: 7,\n        name: 'Clinic User',\n        isChecked: false,\n        disable: false,\n        data: 'clinic_user'\n      }]));\n    },\n    actions: {\n      toggleReports(item, isChecked) {\n        if (isChecked) {\n          this.selectedReports.addObject(item);\n          //this.send('icdDiseaseSearch', this.selectedItems);\n        } else {\n          this.selectedReports.removeObject(item);\n          //this.send('removeICDDiseaseSearch');\n        }\n        this.set('checkedReports', this.selectedReports);\n        this.send('getClicnicUserList');\n      },\n      icdDiseaseSearch(selectedItems) {\n        var _this = this;\n        _this.initialiseIcdDiseaseSearch(selectedItems);\n      },\n      removeICDDiseaseSearch() {\n        var _this = this;\n        _this.removeIcdDiseaseSearch();\n      },\n      toggleexportColumn(item, isChecked) {\n        if (isChecked) {\n          this.exportColumn.addObject(item);\n        } else {\n          this.exportColumn.removeObject(item);\n        }\n      },\n      toggleDiseaseRadioButton(item) {\n        //console.log(item);\n        var _this = this;\n        if (item) {\n          _this.set('display_disease', item);\n        } else {\n          _this.set('display_disease', null);\n        }\n      },\n      getClicnicUserList() {\n        this.getClicnicUserList();\n      },\n      toggleCheckbox(item, isChecked) {\n        if (isChecked) {\n          this.selectedVisitSearchCheckbox.addObject(item);\n        } else {\n          this.selectedVisitSearchCheckbox.removeObject(item);\n        }\n      },\n      toggleGender(item, isChecked) {\n        if (isChecked) {\n          this.genderArray.addObject(item);\n        } else {\n          this.genderArray.removeObject(item);\n        }\n      },\n      updateCountry() {\n        var country_id = $('select[name=country]').val();\n        this.set('selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('states', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateReportCountry() {\n        var country_id = $('select[name=patient_search_report_country]').val();\n        this.set('report_selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('reportStates', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateReportState() {\n        var state_id = $('select[name=patient_search_report_state]').val();\n        this.set('report_selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Shubh Tiwari 13-02-2024\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('report_cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#shipping_other_state').val('').addClass('hidden');\n          /* AJAX call */\n          var _this = this;\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('shipping_cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#shipping_other_state').removeClass('hidden');\n        }\n      },\n      updateCity() {\n        /*Inthis below line of we have to pass the actula value of select option of city, Because we managing this at the backend side, and backend is same form previuos version, Rahul Khan. 04 July 2019  */\n        var city_id = $('select[name=city]').val();\n        this.set('selected_city', city_id);\n        if (city_id != 'other') {\n          $('#other_city').val('').addClass('hidden');\n        } else {\n          $('#other_city').removeClass('hidden');\n        }\n      },\n      updateReportCity() {\n        var city_id = $('select[name=patient_search_report_city]').val();\n        this.set('report_selected_city', city_id);\n        if (city_id != 'other') {\n          $('#shipping_other_city').val('').addClass('hidden');\n        } else {\n          $('#shipping_other_city').removeClass('hidden');\n        }\n      },\n      onChangesAddCharge: function (event) {\n        var icd_name_without_space = event.target.value;\n        var icd_name = icd_name_without_space.trim();\n        //var inputId = event.target.id;\n        if (icd_name == '') {\n          //ECT.Handler.bind(\"1\");\n          //console.log('icd bind a');\n          $('.icd_clear_class').hide();\n          $('#icd_code').val('');\n          $('.show-error').addClass('has-error');\n          $('.text-error-message').show();\n          $('#icd_suggession_div').css('border', 'initial');\n          //_this.controllerFor('icpattend').send('clearICDDisease');\n        } else {\n          $('.show-error').removeClass('has-error');\n          $('.icd_clear_class').show();\n          $('.text-error-message').hide();\n          if (icd_name.length > 2) {\n            //ECT.Handler.bind(\"1\");\n            //console.log('icd bind b');\n            $('#icd_suggession_div').css({\n              'border': '1px solid #eee',\n              'margin-bottom': '20px'\n            });\n          } else {\n            //ECT.Handler.bind(\"1\");\n            //console.log('icd bind c');\n            $('#icd_suggession_div').css('border', 'initial');\n          }\n        }\n      },\n      exportCaseReport() {\n        var _this = this;\n        var select_report = _this.selectedReports;\n        if (select_report.length == 0) {\n          Swal.fire({\n            text: 'Please select atleast one case report first',\n            width: 450,\n            icon: 'warning'\n          });\n        } else {\n          // Export output Column, Shubh Tiwari 06-03-2024\n          if (this.exportColumn.length > 0) {\n            var export_output = this.exportColumn;\n          } else {\n            var export_output = null;\n          }\n          if (export_output === null) {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'You have not selected any output columns, so only patient details will be exported.',\n              width: 450,\n              icon: 'warning',\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Continue'\n            }).then(result => {\n              if (result.isConfirmed) {\n                // User clicked \"Continue\", perform AJAX call\n                _this.send('performCaseReportAjax', export_output);\n              } else {\n                // User clicked cancel, do nothing\n                console.log(\"User cancelled the operation\");\n              }\n            });\n          } else {\n            _this.send('performCaseReportAjax', export_output);\n          }\n        }\n      },\n      performCaseReportAjax(export_output) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        //var form = $('#exportCaseReport');\n        //console.log(form.serialize());\n        // Visit Search Field Vriables, Shubh Tiwari 01-03-2024\n        var visit_chekbox_value = _this.selectedVisitSearchCheckbox.join(',');\n        var fromvisitdate = $('#startDate').val();\n        var tovisitdate = $('#endDate').val();\n        // Patient Search Field Vriables, Shubh Tiwari 01-03-2024\n        var registration_no = $('#patient_search_registrationno').val();\n        var patient_name = $('#patient_search_patient_name').val();\n        var patient_from_age = $('#patient_search_from_age').val();\n        var patient_to_age = $('#patient_search_to_age').val();\n        var country = $('#report_country').val();\n        var state = $('#report_state').val();\n        var city = $('#report_city').val();\n        var address = $('#patient_search_address').val();\n        var pincode = $('#patient_search_pincode').val();\n        var mobile_no = $('#patient_search_mobile').val();\n        var phone_no = $('#patient_search_phone').val();\n\n        // Clinic User Search Field Vriables, Shubh Tiwari 01-03-2024\n        var prescribing_doctor = $('#cus_prescribing_doctor').val();\n        var taking_doctor = $('#cus_case_taking_doctor').val();\n        var biller = $('#cus_biller').val();\n        var pharmacist = $('#cus_pharmacist').val();\n\n        // Disease Search Field Vriables, Shubh Tiwari 01-03-2024\n        var disease_search_list = [];\n        $(\".dsl\").each(function () {\n          var disease_id = $(this).attr(\"disease_id\");\n          var disease_type = $(this).attr(\"disease_type\");\n          //var icd_code = $(this).attr(\"icd_code\");\n          var disease_text = $(this).attr(\"disease_text\");\n          disease_search_list.push({\n            'diseaseId': disease_id,\n            'diseaseType': disease_type,\n            'diseaseAsText': disease_text\n          });\n        });\n\n        // Patient Vitals Search Field Vriables, Shubh Tiwari 01-03-2024\n        var gender = _this.genderArray.join(',');\n        var blood_type = $('#pvs_blood_type').val();\n        var height_unit = $('#pvs_height_unit').val();\n        var height_unit_from = $('#pvs_height_from').val();\n        var height_unit_to = $('#pvs_height_to').val();\n        var weight_unit = $('#pvs_weight_unit').val();\n        var weight_unit_from = $('#pvs_weight_unit_from').val();\n        var weight_unit_to = $('#pvs_weight_unit_to').val();\n        var body_temp_unit = $('#pvs_body_temp_unit').val();\n        var body_temp_from = $('#pvs_body_temp_from').val();\n        var body_temp_to = $('#pvs_body_temp_to').val();\n        var from_blood_pressure_systolic = $('#pvs_from_blood_pressure_systolic').val();\n        var from_blood_pressure_diastolic = $('#pvs_from_blood_pressure_diastolic').val();\n        var to_blood_pressure_systolic = $('#pvs_to_blood_pressure_systolic').val();\n        var to_blood_pressure_diastolic = $('#pvs_to_blood_pressure_diastolic').val();\n\n        // Medicine Search Field Vriables, Shubh Tiwari 01-03-2024\n        var medicine_search_list = [];\n        $(\".medicine\").each(function () {\n          var medicine_id = $(this).attr(\"data-medicine_id\");\n          var potency_id = $(this).attr(\"data-potency_id\");\n          var medicine_type = $(this).attr(\"data-medicine_type\");\n          var dilution = $(this).attr(\"data-dilution\");\n          medicine_search_list.push({\n            'medicineId': medicine_id,\n            'medicineType': medicine_type,\n            'potencyId': potency_id,\n            'dilution': dilution\n          });\n        });\n\n        // Diagnostic Tests Search Field Vriables, Shubh Tiwari 01-03-2024\n        var report_name = $('#dts_report_name').val();\n        var wbc_from = $('#dts_wbc_from').val();\n        var wbc_to = $('#dts_wbc_to').val();\n        var rbc_from = $('#dts_rbc_from').val();\n        var rbc_to = $('#dts_rbc_to').val();\n        var bvarg = $('#dts_bvarg').val();\n        var base_url = _environment.default.APP.lumen_api_url + 'casereport/download-report';\n        var data = {\n          visit_search: {\n            'checkbox_value': visit_chekbox_value,\n            'from_visit_date': fromvisitdate,\n            'to_visit_date': tovisitdate\n          },\n          patient_search: {\n            'registration_no': registration_no,\n            'patient_name': patient_name,\n            'patient_from_age': patient_from_age,\n            'patient_to_age': patient_to_age,\n            'country': country,\n            'state': state,\n            'city': city,\n            'address': address,\n            'pincode': pincode,\n            'mobile_no': mobile_no,\n            'phone_no': phone_no\n          },\n          clinic_user_search: {\n            'prescribing_doctor': prescribing_doctor,\n            'casetaking_doctor': taking_doctor,\n            'biller_name': biller,\n            'pharmacist': pharmacist\n          },\n          disease_search: disease_search_list,\n          vital_search: {\n            'gender': gender,\n            'blood_type': blood_type,\n            'height_unit': height_unit,\n            'height_unit_from': height_unit_from,\n            'height_unit_to': height_unit_to,\n            'weight_unit': weight_unit,\n            'weight_unit_from': weight_unit_from,\n            'weight_unit_to': weight_unit_to,\n            'body_temp_unit': body_temp_unit,\n            'body_temp_from': body_temp_from,\n            'body_temp_to': body_temp_to,\n            'from_blood_pressure_systolic': from_blood_pressure_systolic,\n            'from_blood_pressure_diastolic': from_blood_pressure_diastolic,\n            'to_blood_pressure_systolic': to_blood_pressure_systolic,\n            'to_blood_pressure_diastolic': to_blood_pressure_diastolic\n          },\n          medicine_search: medicine_search_list,\n          disease_tests_search: {\n            'report_name': report_name,\n            'wbc_from': wbc_from,\n            'wbc_to': wbc_to,\n            'rbc_from': rbc_from,\n            'rbc_to': rbc_to,\n            'bvarg': bvarg\n          },\n          export_output: export_output\n        };\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: data,\n          xhrFields: {\n            responseType: 'blob' // Set the response type to blob for file download\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            $('#loader').hide();\n            let url = window.URL.createObjectURL(response);\n            let a = document.createElement('a');\n            a.href = url;\n            a.download = 'caseReport.csv';\n            a.click();\n            _this.get('selectedVisitSearchCheckbox').clear(); // Clear the array\n            _this.get('exportColumn').clear(); // Clear the array\n            medicine_search_list.clear();\n            disease_search_list.clear();\n            // Reset the form\n            $('#exportCaseReport')[0].reset();\n          },\n          error: function (response) {\n            console.error('Error downloading file:', response);\n          }\n        });\n      }\n    },\n    icdDiseaseinitialise: function (item, isChecked) {\n      // Check if the checkbox is checked\n      if (item == 4 && isChecked == true) {\n        // Your script here\n        const mySettings = {\n          apiServerUrl: 'https://id.who.int',\n          apiSecured: true,\n          language: 'en',\n          autoBind: false,\n          // set autoBind to false\n          searchByCodeOrURI: true,\n          enableKeyboard: true\n        };\n        const myCallbacks = {\n          selectedEntityFunction: selectedEntity => {\n            // paste the code into the <input>\n            document.getElementById('ds_icd_name').value = selectedEntity.code + ' ' + selectedEntity.bestMatchText;\n            document.getElementById('ds_icd_name').setAttribute('readonly', true);\n            document.getElementById('icd_code').value = selectedEntity.code;\n            document.getElementById('certificate_name').value = selectedEntity.bestMatchText;\n            document.getElementsByClassName('ctw-window')[0].style.display = 'none';\n            //document.getElementsByClassName('ctw-window')[0].style.border = '1px solid #eee';\n            //ECT.Handler.clear(\"1\");\n          },\n          getNewTokenFunction: async () => {\n            // if the embedded coding tool is working with the cloud hosted ICD-API, you need to set apiSecured=true\n            // In this case embedded coding tool calls this function when it needs a new token.\n            // In this case you backend web application should provide updated tokens\n            const url = _environment.default.APP.lumen_api_url + 'icdtoken'; // we assume this backend script returns a JSON {'token': '...'}\n            try {\n              const response = await fetch(url);\n              const result = await response.json();\n              //console.log(result);\n              const token = result.token;\n              return token; // the function return is required\n            } catch (e) {\n              //console.log('Error during the request');\n            }\n          },\n          searchStartedFunction: () => {\n            //this callback is called when searching is started.\n            console.log('Search started!');\n          },\n          searchEndedFunction: () => {\n            //this callback is called when search ends.\n            console.log('Search ended!');\n          }\n        };\n        _icd11ect.default.Handler.configure(mySettings, myCallbacks);\n      } else {\n        // Remove any existing initialization if checkbox is not checked\n        _icd11ect.default.Handler.clear(\"1\");\n      }\n    },\n    getClicnicUserList: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'casereport/clinicuser',\n        method: 'GET',\n        data: '',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.set('clinicuserlist', res);\n        }\n      });\n    },\n    initialiseIcdDiseaseSearch: function (selectedItems) {\n      //ICD diseases Api Configuration & setting\n      const mySettings = {\n        apiServerUrl: 'https://id.who.int',\n        apiSecured: true,\n        language: 'en',\n        autoBind: false,\n        // set autoBind to false\n        popupMode: false,\n        searchByCodeOrURI: true,\n        enableKeyboard: true\n      };\n      const myCallbacks = {\n        selectedEntityFunction: selectedEntity => {\n          var item = selectedEntity.code + ' ' + selectedEntity.bestMatchText;\n          var cleanString = item.replace(/,/g, ''); // Replace all commas with an empty string\n          if (!selectedItems.includes(item)) {\n            // Check if item is not already in the list\n            selectedItems.push(item); // Add item to the list\n            console.log(selectedItems);\n            var newItem = document.createElement('div');\n            newItem.classList.add('selected-item', 'dsl');\n            newItem.setAttribute('disease_id', selectedEntity.code);\n            newItem.setAttribute('disease_type', 'icd');\n            newItem.setAttribute('disease_text', cleanString);\n            newItem.setAttribute('original_text', item);\n            newItem.textContent = item;\n            newItem.innerHTML += '<button class=\"cancel float-right\">X</button>';\n            document.getElementById('selected_disease_search_list').appendChild(newItem);\n            document.getElementsByClassName('ctw-window')[0].style.display = 'none';\n            _icd11ect.default.Handler.clear(\"1\");\n          } else {\n            Swal.fire({\n              text: '\"' + item + '\" is already selected. Please choose another disease',\n              icon: 'warning',\n              width: 450\n            });\n          }\n        },\n        getNewTokenFunction: async () => {\n          // if the embedded coding tool is working with the cloud hosted ICD-API, you need to set apiSecured=true\n          // In this case embedded coding tool calls this function when it needs a new token.\n          // In this case you backend web application should provide updated tokens\n          const url = _environment.default.APP.lumen_api_url + 'icdtoken'; // we assume this backend script returns a JSON {'token': '...'}\n          try {\n            const response = await fetch(url);\n            const result = await response.json();\n            //console.log(result);\n            const token = result.token;\n            return token; // the function return is required\n          } catch (e) {\n            //console.log('Error during the request');\n          }\n        },\n        searchStartedFunction: () => {\n          //this callback is called when searching is started.\n          console.log('Search started!');\n        },\n        searchEndedFunction: () => {\n          //this callback is called when search ends.\n          console.log('Search ended!');\n        }\n      };\n      //document.getElementById('icd_name').removeAttribute('disabled');\n      _icd11ect.default.Handler.configure(mySettings, myCallbacks);\n    },\n    removeIcdDiseaseSearch: function () {\n      _icd11ect.default.Handler.clear(\"1\");\n    }\n  });\n});","define(\"clinic-dev/controllers/checkout\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    icpattend: Ember.inject.controller('icpattend'),\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    doctordasboard: Ember.inject.controller('doctor-dashboard'),\n    print: Ember.inject.service('print-options'),\n    isDoctor: false,\n    print_domestic: true,\n    init: function () {\n      this._super(...arguments);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.chargeArray = [];\n      //console.log(this.flashes.success('shubh Tiwari'));\n      var advance_label_message = _this.get('i18n').t('appcommon.label.advanceLabel');\n      _this.set('advance_label', advance_label_message);\n      var totalduelabel = _this.get('i18n').t('appcommon.label.totalduelabel_with_previous_pg');\n      _this.set('totaldue_label', totalduelabel);\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var today = moment().format('YYYY-MM-DD');\n      var shift_id = this.session.getLoggedInUserShift();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: shift_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: function (res) {\n          //console.log(res);\n          _this.set('assigned', res);\n        },\n        error: function (error, x, y) {\n          //console.log(error);\n        },\n        complete: function () {\n          //var active_tab = $('#assign-tab-list li.active  a').data('tab');\n          // _this.send('showTab', active_tab);\n        }\n      });\n    },\n    actions: {\n      notesDetails: function (diagnostic_report_id) {\n        //console.log(diagnostic_report_id);\n        //return false;\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'notesdetail',\n          method: 'POST',\n          data: {\n            id: diagnostic_report_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.error == false) {\n              _this.set('report_notes', res.data);\n            } else {\n              _this.set('report_notes', res.message);\n            }\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('diagnosticNotesReports');\n          },\n          complete: function () {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      },\n      getPGCharge: function (appointment_id, billing_id) {\n        var _this = this;\n        _this.getPGCharge(appointment_id, billing_id);\n      },\n      closedWithoutPrescription: function () {\n        $('#prescription_reason').val('');\n        this.set('presId', '');\n        this.set('prescribedId', '');\n        this.set('pres_doctor_id', '');\n        this.set('pres_patient_id', '');\n        this.set('pres_billing_id', '');\n      },\n      markWithoutPrescriptionWithReason: function (id, booked_doctor, prescribed, case_taken_doctor_id, patient_id, billing_id) {\n        var login_user_id = this.session.getLoggedInUserId();\n        if (parseInt(login_user_id) == parseInt(booked_doctor)) {\n          var pres_doctor_id = booked_doctor;\n        } else {\n          var pres_doctor_id = case_taken_doctor_id;\n        }\n        jQuery.noConflict();\n        $('#reasonPrescription').modal('show');\n        this.set('presId', id);\n        this.set('prescribedId', prescribed);\n        this.set('pres_doctor_id', pres_doctor_id);\n        this.set('pres_billing_id', billing_id);\n        this.set('pres_patient_id', patient_id);\n      },\n      refreshPage: function () {\n        this.refreshPage();\n      },\n      refreshApiRequest: function () {\n        var _this = this;\n        _this.transitionToRoute('doctor-dashboard');\n      },\n      getPatientDiscount: function (discount_id, shift_charity) {\n        this.getPatientDiscount(discount_id, shift_charity);\n      },\n      getConsultancyFees: function (doctor_id, branch_id, charge_result) {\n        this.getConsultancyFees(doctor_id, branch_id, charge_result);\n      },\n      doctorId: function (user_id) {\n        var _this = this;\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var shift_id = this.session.getLoggedInUserShift();\n        _this.send('newDoctorId', user_id);\n        _this.send('doctorCounter', user_id, shift_id, branch_id);\n      },\n      newDoctorId: function (user_id) {\n        this.newDoctorId(user_id);\n      },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      getTabsList: function (user_id, branch_id, shift_id) {\n        this.getTabsList(user_id, branch_id, shift_id);\n      },\n      getDoctorDropdownList: function (user_id, branch_id) {\n        this.getDoctorDropdownList(user_id, branch_id);\n      },\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage, date);\n      },\n      showTabPage(appointment_id, patient_id, read_message_log) {\n        var _this = this;\n        _this.transitionToRoute('doctor-dashboard.icpattend', appointment_id, patient_id, read_message_log);\n        $('#tabs' + appointment_id).parent('li').addClass('active');\n      },\n      removePrescribeTab(id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        Swal.fire({\n          title: 'You will lose all unsaved data.',\n          text: 'Are you sure you want to leave this page?',\n          icon: 'warning',\n          width: 600,\n          allowOutsideClick: false,\n          showDenyButton: true,\n          denyButtonText: `Stay on this Page`,\n          confirmButtonText: 'Leave this Page'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n            var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'tab_remove') {\n                  if (id == tab_id) {\n                    _this.send('refreshApiRequest');\n                  } else {\n                    _this.send('getTabsList', user_id, branch_id, shift_id);\n                  }\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#tabserror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#tabserror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      getAddChargeList: function (array) {\n        var _this = this;\n        //_this.set('visit_charges', array);\n      },\n      addCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var value = $('#medicine_charge option:selected').val();\n        var label = $('#medicine_charge option:selected').text();\n        var charge_id = $('#medicine_charge option:selected').data('cid');\n        var shipping = $('#medicine_charge option:selected').data('shipping-related');\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        let user_id = _this.session.getLoggedInUserId();\n        if (value == '') {\n          var message = i18n.t('billing.messages.selectcharge');\n          _this.flashes.danger(message);\n        } else {\n          if (label == 'Other') {\n            event.preventDefault();\n            jQuery.noConflict();\n            $('#charge_name').val('');\n            $('#charge_amount').val('');\n            $('#charge_code').val('');\n            $('#OtherCharge').modal('show');\n            $('#charge_name').focus();\n          } else {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/addothercharge';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                bill_id: bill_id,\n                visit_id: visit_id,\n                patient_id: patient_id,\n                charge_amount: value,\n                charge_code: charge_id,\n                charge_name: label,\n                user_id: user_id,\n                shipping: shipping\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                //$('.perremove').remove();\n                if (res.error == false && res.message == 'add') {\n                  var message = i18n.t('billing.messages.addothercharge', {\n                    object: label\n                  });\n                  _this.flashes.success(message);\n                  _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  //var message = i18n.t('billing.messages.datainsufficient');\n                  // _this.flashes.danger(message);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n            //_this.send('getAddChargeList',_this.get('chargeArray').addObject(data));\n            //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n            //_this.recalculateAmount.checkOutupdateTotal(value, 'add');\n          }\n          $('#medicine_charge')[0].selectedIndex = 0;\n          if (value == 'Other') {\n            $('option[data-cid=' + charge_id + ']').attr('disabled', false);\n          } else {\n            $('option[data-cid=' + charge_id + ']').attr('disabled', true);\n          }\n        }\n        if (shipping == 1) {\n          $('#dispatch').prop('checked', true);\n        }\n      },\n      addOtherCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        $('#charge_name').empty();\n        $('#charge_amount').empty();\n        $('#charge_code').empty();\n        var error = '';\n        var charge_name = $('#charge_name').val();\n        var charge_amount = $('#charge_amount').val();\n        var charge_code = $('#charge_code').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var patient_id = $('#patient_id').val();\n        let user_id = _this.session.getLoggedInUserId();\n        var shipping = 0;\n        //var shipping = $('#medicine_charge option:selected').data('shipping-related');\n        //let charge_id = Math.random().toString(36).substring(7);\n        if (charge_name == '') {\n          error += \"<p align='center'>Please enter Charge Name</p>\";\n          $('#charge_name').focus();\n        } else if (charge_code == '') {\n          error += \"<p align='center'>Please enter Charge Code</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code != charge_code.match(/^[a-zA-Z\\s]+$/)) {\n          error += \"<p align='center'>Please input alphabet characters only</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code.length < 2) {\n          error += \"<p align='center'>Charge code : min 2 character allowed</p>\";\n          $('#charge_code').focus();\n        } else if (charge_code.length > 3) {\n          error += \"<p align='center'>Charge code : max 3 character allowed</p>\";\n          $('#charge_code').focus();\n        } else if (charge_amount == '') {\n          error += \"<p align='center'>Please enter Charge Amount</p>\";\n          $('#charge_amount').focus();\n        }\n        if (error == '') {\n          $('#OtherCharge').modal('hide');\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/addothercharge';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              bill_id: bill_id,\n              visit_id: visit_id,\n              patient_id: patient_id,\n              charge_amount: charge_amount,\n              charge_code: charge_code,\n              charge_name: charge_name,\n              user_id: user_id,\n              shipping: shipping\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              //$('.perremove').remove();\n              if (res.error == false && res.message == 'add') {\n                var message = i18n.t('billing.messages.addothercharge', {\n                  object: charge_name\n                });\n                _this.flashes.success(message);\n                _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          $('#chargeerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#chargeerror .alert').fadeToggle(5000);\n        }\n      },\n      removeAddedOtherCharge(id, charge_amount, charge_name, billing_id, appointment_id, shipping) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        swal({\n          title: 'Are you sure you want to delete this ' + charge_name,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/chargeremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: id,\n                bill_id: billing_id,\n                visit_id: appointment_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'charge_remove') {\n                  var message = i18n.t('billing.messages.removeothercharge', {\n                    object: charge_name\n                  });\n                  _this.flashes.success(message);\n                  _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  _this.flashes.danger(message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n            if (shipping == 1) {\n              $('#dispatch').prop('checked', false);\n            }\n            var script = $('option[value=' + charge_amount + ']').removeAttr('disabled');\n            _this.recalculateAmount.timeBasedScriptExecution(script);\n          }\n        });\n      },\n      removeMedicineDiscount(discount) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var percentage_value = $('.onthefly_per').text();\n        var discount_value = parseFloat($('.onthemed').text()).toFixed(2);\n        swal({\n          title: 'Are you sure you want to remove ' + percentage_value + ' discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/discoutremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                discount: discount\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'discount_remove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Discount ' + percentage_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  _this.set('onthefly_discount', 0);\n                  _this.set('remove_discount_button', '');\n                  _this.set('medicine_discount_reason', '');\n                  _this.set('medicine_print_code', 'MDN');\n                  //$('.discount_remove').remove();\n                  //$('.onthefly_per').text('0.00%');\n                  //$('.onthemed').removeClass('discount');\n                  $('.discount_percentage').attr('disabled', false);\n                  //$('.grdtot').removeAttr('data-reason');\n                  //$('#visit_due').removeAttr('data-reason');\n                  $('.disdisable').attr('disabled', false);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                $('.grdtot').val(discount_value);\n                _this.recalculateAmount.checkOutupdateTotal();\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      removeWaiveConsutancy() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var consultancy_value = parseInt($('.cons_dis').text());\n        swal({\n          title: 'Are you sure you want to remove consultancy discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/consultanyremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                bill_id: bill_id,\n                visit_id: visit_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'cwaiveremove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Consultancy fees ' + consultancy_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  _this.set('consultancy_fees', consultancy_value);\n                  _this.set('consultancy_discount', 0);\n                  _this.set('consultancy_waive_type', '');\n                  _this.set('consultancy_print_code', 'SDC');\n                  _this.set('consultancy_waived_reason', '');\n                  _this.set('consultancy_remove_button', '');\n                  _this.set('consultancy_waived_amount', consultancy_value);\n                  //$('.const_remove').remove();\n                  //$('.cons_waived').text('');\n                  $('.cons_dis').removeClass('discount');\n                  //$('.consultancy').removeAttr('data-consultancy_reason');\n                  //$('#visit_due').removeAttr('data-consultancy_reason');\n                  $('.consdisable').attr('disabled', false);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.checkOutupdateTotal(consultancy_value, 'add');\n                $('.consultancy').val(consultancy_value);\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      applyDiscountCharge() {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var disc_value = $('.discount_percentage').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var medprint = $('.grdtot').attr('data-medprint');\n        var garndt_value = parseInt($('.onthemed').text());\n        if (disc_value == '') {\n          var message = i18n.t('billing.messages.selectdiscount');\n          _this.flashes.danger(message);\n        } else if (disc_value < 1) {\n          var message = i18n.t('billing.messages.notless');\n          _this.flashes.danger(message);\n          $('.discount_percentage').val('');\n        } else if (disc_value > 100) {\n          var message = i18n.t('billing.messages.notgreater');\n          _this.flashes.danger(message);\n          $('.discount_percentage').val('');\n        } else {\n          swal({\n            title: 'Are you sure you want to apply ' + disc_value + '% discount on medicine total=' + garndt_value,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              event.preventDefault();\n              jQuery.noConflict();\n              $('#discount_reason').val('');\n              _this.set('reasonparameter', '');\n              $('#discountspopup').modal('show');\n              var data = {\n                medicine_total: garndt_value,\n                discount: disc_value,\n                bill_id: bill_id,\n                visit_id: visit_id,\n                medprint: medprint\n              };\n              _this.set('reasonparameter', data);\n              $('#discount_reason').focus();\n            }\n          });\n        }\n      },\n      addDiscountReason: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var resone_data = _this.get('reasonparameter');\n        let user_id = this.session.getLoggedInUserId();\n        var garndt_value = resone_data.medicine_total;\n        var disc_value = resone_data.discount;\n        var bill_id = resone_data.bill_id;\n        var visit_id = resone_data.visit_id;\n        var medprint = resone_data.medprint;\n        $('#discount_reason').empty();\n        var error = '';\n        var discount_reason = $.trim($('#discount_reason').val());\n        if (discount_reason == '') {\n          error += \"<p align='center'>Please enter reason</p>\";\n          $('#discount_reason').focus();\n        } else if (discount_reason.length < 5) {\n          error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n          $('#discount_reason').focus();\n        }\n        if (error == '') {\n          $('#discountspopup').modal('hide');\n          var _this = this;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/discountonthefly';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              medicine_total: garndt_value,\n              discount: disc_value,\n              bill_id: bill_id,\n              visit_id: visit_id,\n              reason: discount_reason,\n              user_id: user_id,\n              medprint: medprint\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              //$('.perremove').remove();\n              if (res.error == false && res.message == 'applydiscount') {\n                var message = i18n.t('billing.messages.applydiscount', {\n                  object: disc_value\n                });\n                _this.flashes.success(message);\n                //$('.grdtot').val(res.discount_value);\n                _this.set('onthefly_discount', res.discount_percentage);\n                //_this.set('remove_discount_button', res.discount);\n                _this.set('medicine_discount_reason', res.reason);\n                _this.set('medicine_print_code', res.medicine_print_code);\n                // Remove (&& res.discount_percentage != 100) from if condition Removed as on 13 April 2022 by Shubh tiwari\n                if (res.discount_percentage != 0) {\n                  _this.set('remove_discount_button', res.discount);\n                } else {\n                  _this.set('remove_discount_button', '');\n                }\n                //$('.onthemed').addClass('discount');\n                //$('.onthefly_per').addClass('percentage');\n                //$('.grdtot').attr('data-reason', discount_reason);\n                //$('#visit_due').attr('data-reason', discount_reason);\n                //$('.onthefly_per').text(res.discount_percentage + '' + '%');\n                $('.discount_percentage').attr('disabled', true);\n                $('.disdisable').attr('disabled', true);\n                //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n                _this.recalculateAmount.checkOutupdateTotal(0, 'add');\n              } else if (res.error == true && res.message == 'notgreater') {\n                var message = i18n.t('billing.messages.notgreater');\n                _this.flashes.danger(message);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function (res) {\n              $('.discount_percentage').val('');\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          $('#medicinediscounterror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#medicinediscounterror .alert').fadeToggle(5000);\n        }\n      },\n      // for consultancy weave function\n      consultancyWave: function () {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var consultancy = $('.consultancy').val();\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var consprint = $('.consultancy').attr('data-consprint');\n        if (consultancy == '0') {\n          var message = i18n.t('billing.messages.datainsufficient');\n          _this.flashes.danger(message);\n        } else {\n          //Rahul Khan\n          swal({\n            title: 'Are you sure you want to waive ' + consultancy + ' consultancy fees?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              event.preventDefault();\n              jQuery.noConflict();\n              $('#consultancy_discount_reason').val('');\n              _this.set('consultancyWaveparameter', '');\n              $('#consultancydiscountpopup').modal('show');\n              var data = {\n                consultancy: consultancy,\n                bill_id: bill_id,\n                visit_id: visit_id,\n                consprint: consprint\n              };\n              _this.set('consultancyWaveparameter', data);\n              $('#consultancy_discount_reason').focus();\n            }\n          });\n        }\n      },\n      consultancyWaivedReason: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var resone_data = _this.get('consultancyWaveparameter');\n        let user_id = this.session.getLoggedInUserId();\n        //console.log(resone_data);\n        var consultancy = resone_data.consultancy;\n        var bill_id = resone_data.bill_id;\n        var visit_id = resone_data.visit_id;\n        var consprint = resone_data.consprint;\n        $('#consultancy_discount_reason').empty();\n        var error = '';\n        var discount_reason = $.trim($('#consultancy_discount_reason').val());\n        if (discount_reason == '') {\n          error += \"<p align='center'>Please enter reason</p>\";\n          $('#consultancy_discount_reason').focus();\n        } else if (discount_reason.length < 5) {\n          error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n          $('#consultancy_discount_reason').focus();\n        }\n        if (error == '') {\n          $('#consultancydiscountpopup').modal('hide');\n          var _this = this;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/consultancywaive';\n          $.ajax({\n            url: base_url,\n            method: 'POST',\n            data: {\n              consultancy: consultancy,\n              bill_id: bill_id,\n              visit_id: visit_id,\n              reason: discount_reason,\n              user_id: user_id,\n              consprint: consprint\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == false && res.message == 'consultancywaved') {\n                var message = i18n.t('billing.messages.consultancywaived', {\n                  object: consultancy\n                });\n                _this.flashes.success(message);\n                _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n                _this.set('consultancy_discount', res.percentage);\n                _this.set('consultancy_waive_type', res.waive_type);\n                _this.set('consultancy_print_code', res.print_code);\n                _this.set('consultancy_waived_reason', res.reason);\n                _this.set('consultancy_remove_button', res.billing_id);\n                _this.set('consultancy_waived_amount', 0);\n                //$('.cons_waived').text(res.waive_type);\n                //$('.consultancy').val('0.00');\n                //$('.consultancy').attr('data-consultancy_reason', res.reason);\n                //$('#visit_due').attr('data-consultancy_reason', res.reason);\n                $('.consdisable').attr('disabled', true);\n              } else if (res.error == true && res.message == 'datainsufficient') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.danger(message);\n              }\n            },\n            complete: function (res) {\n              //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n              _this.recalculateAmount.checkOutupdateTotal(0, 'add');\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('.cons_dis').addClass('discount');\n                $('.consdisable').attr('disabled', true);\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          $('#conwaveerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#conwaveerror .alert').fadeToggle(5000);\n        }\n      },\n      clearDisccountinput: function () {\n        $('.discount_percentage').val('');\n        $('#medicinediscounterror').html('');\n      },\n      // calculate total after add other charge\n      onChangesAddCharge: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var charge_id = event.target.getAttribute('data-chargeid');\n        var billing_id = $('input:hidden[name=billing_id]').val();\n        var visiting_id = $('input:hidden[name=visiting_id]').val();\n        var charge_amount = event.target.value;\n        if (charge_amount != '' && (charge_id != undefined || charge_id == '')) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'billing/updateothercharge',\n            data: {\n              charge_id: charge_id,\n              charge_amount: charge_amount,\n              billing_id: billing_id,\n              visiting_id: visiting_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              if (res.error == true && res.actions == 'message') {\n                var message = i18n.t('billing.messages.datainsufficient');\n                _this.flashes.success(message);\n              } else if (res.error == false && res.message == 'update') {\n                _this.send('getPreviousVisitCharges', res.visit_id, res.bill_id);\n              }\n            },\n            error: function (res) {\n              // console.error(res);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        } else {\n          var message = i18n.t('billing.messages.emptyAddedchargeinput', {\n            object: charge_name\n          });\n          _this.flashes.danger(message);\n        }\n      },\n      // onChangesAddCharge: function (event) {\n      //   var _this = this;\n      //   let i18n = _this.get('i18n');\n      //   var charge_name = event.target.getAttribute('data-label');\n      //   console.log(event.target.value);\n      //   if (event.target.value != '') {\n      //     //updateTotal is a service function used to update Total on checkout page as 21-10-2021, Shubh Tiwari\n      //     _this.recalculateAmount.checkOutupdateTotal();\n      //   } else {\n      //     var message = i18n.t('billing.messages.emptyAddedchargeinput', {\n      //       object: charge_name,\n      //     });\n      //     _this.flashes.danger(message);\n      //   }\n      // },\n      updateVitalFilterUnit: function (appointment_id, height, weight, body_temp) {\n        this.updateVitalFilterUnit(appointment_id, height, weight, body_temp);\n      },\n      updateShippingAddress: function (updateInMaster, data) {\n        this.updateShippingAddress(updateInMaster, data);\n      },\n      getPatientAddress: function (patient_id, appointment_id) {\n        this.set('patient_id', patient_id);\n        this.set('appointment_id', appointment_id);\n        this.getPatientAddress(patient_id, appointment_id);\n      },\n      getFreeNote: function (appointment_id) {\n        this.getFreeNote(appointment_id);\n      },\n      printIcpPage(appointment_id, patient_id, doctor_id, DivIdToPrint) {\n        var patientDetails = this.PrescribePatient;\n        var printFormats = [];\n        $('input.cw_print_check:checked').each(function () {\n          var value = this.value;\n          printFormats.push(value);\n        });\n        var ischecked_report_advice = $('input[name=report_advice]').is(':checked');\n        var ischecked_print_case = $('input[name=print_case]').is(':checked');\n        var ischecked_clinic_used = $('input[name=clinic_used]').is(':checked');\n        var print_case_copy = $('input[name=print_case_val]').val();\n        //console.log(print_case_copy);\n        if (printFormats.includes('medical_certificate') == false && ischecked_report_advice == false && ischecked_print_case == false && ischecked_clinic_used == false && printFormats.includes('evlp_label') == false && printFormats.includes('inc_presc') == false && printFormats.includes('add_label') == false && printFormats.includes('domst_cons_presc') == false && printFormats.includes('cons_presc') == false && printFormats.includes('receipt') == false && printFormats.includes('med_label') == false) {\n          var message = 'Please mark print case checkbox!';\n          var focusId = 'print_case';\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n        } else if ((printFormats.includes('medical_certificate') == true || ischecked_report_advice == true || ischecked_print_case == true || ischecked_clinic_used == true) && print_case_copy != '' && (printFormats.includes('evlp_label') == true || printFormats.includes('inc_presc') == true || printFormats.includes('add_label') == true || printFormats.includes('domst_cons_presc') == true || printFormats.includes('cons_presc') == true || printFormats.includes('receipt') == true || printFormats.includes('med_label') == true)) {\n          var message = 'This button can only print report advice, print case and medical certificate. Please unselect any other checkboxes.';\n          var focusId = 'evlp_label';\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n        } else if (printFormats.includes('evlp_label') == true || printFormats.includes('inc_presc') == true || printFormats.includes('add_label') == true || printFormats.includes('domst_cons_presc') == true || printFormats.includes('cons_presc') == true || printFormats.includes('receipt') == true || printFormats.includes('med_label') == true) {\n          var message = 'This button can only print report advice, print case and medical certificate. Please unselect any other checkboxes.';\n          var focusId = 'evlp_label';\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n        } else if (ischecked_report_advice == true && ischecked_print_case == true && ischecked_clinic_used == true) {\n          if (print_case_copy == '') {\n            var message = 'Please enter print case copy value';\n            var focusId = 'print_case_val';\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n          } else {\n            if (ischecked_report_advice == true && ischecked_print_case == true && ischecked_clinic_used == true) {\n              this.icpattend.send('getAdvisedPrint', appointment_id, patient_id, doctor_id);\n              this.printCaseWithOfficeUsed(DivIdToPrint, 'Exampleone');\n              //This below print function is works for Medical Print\n              if (printFormats.indexOf('medical_certificate') !== -1) {\n                this.medicalCertificate(patientDetails, appointment_id);\n              }\n            }\n          }\n        } else if (ischecked_report_advice == true && ischecked_print_case == true) {\n          if (print_case_copy == '') {\n            var message = 'Please enter print case copy value';\n            var focusId = 'print_case_val';\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n          } else {\n            if (ischecked_report_advice == true && ischecked_print_case == true) {\n              this.icpattend.send('getAdvisedPrint', appointment_id, patient_id, doctor_id);\n              this.printPageArea(DivIdToPrint);\n              //This below print function is works for Medical Print\n              if (printFormats.indexOf('medical_certificate') !== -1) {\n                this.medicalCertificate(patientDetails, appointment_id);\n              }\n            }\n          }\n        } else if (ischecked_report_advice == true && ischecked_clinic_used == true) {\n          if (ischecked_print_case == true) {\n            if (print_case_copy == '') {\n              var message = 'Please enter print case copy value';\n              var focusId = 'print_case_val';\n              this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n            } else {\n              this.icpattend.send('getAdvisedPrint', appointment_id, patient_id, doctor_id);\n              this.printCaseWithOfficeUsed(DivIdToPrint, 'Exampleone');\n              //This below print function is works for Medical Print\n              if (printFormats.indexOf('medical_certificate') !== -1) {\n                this.medicalCertificate(patientDetails, appointment_id);\n              }\n            }\n          } else {\n            var message = 'Please mark print case checkbox!';\n            var focusId = 'print_case';\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n          }\n        } else if (ischecked_print_case == true && ischecked_clinic_used == true) {\n          if (print_case_copy == '') {\n            var message = 'Please enter print case copy value';\n            var focusId = 'print_case_val';\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n          } else {\n            this.printCaseWithOfficeUsed(DivIdToPrint, 'Exampleone');\n            //This below print function is works for Medical Print\n            if (printFormats.indexOf('medical_certificate') !== -1) {\n              this.medicalCertificate(patientDetails, appointment_id);\n            }\n          }\n        } else if (ischecked_report_advice == true) {\n          this.icpattend.send('getAdvisedPrint', appointment_id, patient_id, doctor_id);\n          //This below print function is works for Medical Print\n          if (printFormats.indexOf('medical_certificate') !== -1) {\n            this.medicalCertificate(patientDetails, appointment_id);\n          }\n        } else if (ischecked_print_case == true) {\n          if (print_case_copy == '') {\n            var message = 'Please enter print case copy value';\n            var focusId = 'print_case_val';\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n          } else {\n            this.printPageArea(DivIdToPrint);\n            //This below print function is works for Medical Print\n            if (printFormats.indexOf('medical_certificate') !== -1) {\n              this.medicalCertificate(patientDetails, appointment_id);\n            }\n          }\n        } else if (ischecked_report_advice == false && ischecked_print_case == false && ischecked_clinic_used == false && print_case_copy != '') {\n          //This below print function is works for Medical Print\n          if (printFormats.indexOf('medical_certificate') !== -1) {\n            this.medicalCertificate(patientDetails, appointment_id);\n          }\n        } else {\n          var message = 'Please mark print case checkbox!';\n          var focusId = 'print_case';\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, focusId);\n        }\n      },\n      patientMarkComplete(branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status) {\n        this.patientMarkComplete(branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status);\n      },\n      reSchedulePatient(id, page_name) {\n        $('#urgent_note').val('');\n        this.set('reschedule_id', id);\n        this.set('page_name', page_name);\n        $('#reSchedule').show();\n      },\n      reSchedule() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n        var doc_id = $('#reSchedule select[name=reschedule_doc]').val();\n        var id = _this.reschedule_id;\n        if (id !== undefined && id !== '' && doc_id !== undefined && doc_id != '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/reSchedule',\n            data: {\n              id: id,\n              doctor_id: doc_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                if (login_user_id == doc_id) {\n                  alert('Re-Assign successfull!');\n                  _this.send('refreshApiRequest');\n                } else {\n                  if (tab_id !== undefined) {\n                    _this.get('doctordasboard').send('removePrescribeTabWithoutMessage', tab_id);\n                  }\n                  _this.send('refreshApiRequest');\n                }\n              }\n            },\n            error: function (error, x, y) {\n              //console.log(error);\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#reSchedule').removeClass('in');\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n              //$('body').click();\n            }\n          });\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n        }\n      },\n      /* This function getting Payment mode */\n      getPaymentMode: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/paymentmode';\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('pmode', res[0].name);\n            _this.set('Payment_mode', res);\n            //console.log(res);\n          },\n          complete: function (res) {\n            // console.log(\"Execution complete\");\n          }\n        });\n      },\n      //This below function is used for getting charge master list\n      getChargeList: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/charges?datalist=doc';\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('charge_list', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      //This below function is used for set the print type all\n      setprintType: function () {\n        $(event.target).prop('checked', true);\n        var radioValue = event.target.value;\n        //console.log(radioValue);\n        if (radioValue == 'international') {\n          $('input.print_international').prop('checked', true);\n          this.set('print_domestic', false);\n          this.set('print_international', true);\n        } else if (radioValue == 'domestic') {\n          $('input.print_domestic').prop('checked', true);\n          this.set('print_domestic', true);\n          this.set('print_international', false);\n        }\n      },\n      getRecords: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (appointment_id != undefined && billing_id != undefined) {\n          $('#loader').show();\n          $.ajax({\n            type: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'billing/prescribedetail/' + appointment_id + '/' + billing_id,\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (response) {\n              $('#loader').hide();\n              //console.log(response[0][0].edit_reason);\n              $('#prescriptionmedicine tbody').empty();\n              _this.set('pharmacy_instruction', '');\n              //_this.set('reason', '');\n              if (response[0].length > 0) {\n                _this.set('billing_instruction', response[0][0].pharmacy_instruction);\n                _this.set('billpatient', response[0]);\n                _this.set('medicine_amount', response.total_amount);\n                _this.set('prescribe_user', response.modify_user);\n                _this.set('bill_id', response[0][0].bill_id);\n                _this.set('import_visit_id', response[0][0].data.importvisitid);\n                _this.set('patient', response[0][0].data.patient_id);\n                //_this.set('pharmacy_instruction', response[0][0].pharmacy_instruction);\n                //_this.set('reason', response[0][0].reason);\n                //console.log(response[0][0].pharmacy_instruction);\n                _this.set('visit_id', response[0][0].visit_id);\n                if (response[0][0].pharmacy_instruction != null && response[0][0].pharmacy_instruction != '' && response[0][0].reason != null && response[0][0].reason != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response[0][0].pharmacy_instruction + '\\n' + 'Edit Reason: ' + response[0][0].reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha12');\n                } else if (response[0][0].pharmacy_instruction != null && response[0][0].pharmacy_instruction != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response[0][0].pharmacy_instruction;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha123');\n                } else if (response[0][0].reason != null && response[0][0].reason != '') {\n                  var pharmacy_message = 'Edit Reason: ' + response[0][0].reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('pha1234');\n                }\n              } else {\n                _this.set('billing_instruction', response.instruction);\n                _this.set('billpatient', response[0]);\n                _this.set('medicine_amount', response.total_amount);\n                _this.set('prescribe_user', response.modify_user);\n                _this.set('patient', response.patient_id);\n                _this.set('bill_id', response.bill_id);\n                _this.set('import_visit_id', response.importvisitid);\n                _this.set('visit_id', response.visit_id);\n                if (response.instruction != '' && response.instruction != null && response.edit_reason != '' && response.edit_reason != null) {\n                  var pharmacy_message = 'Instructions/notes: ' + response.instruction + '\\n' + 'Edit Reason: ' + response.edit_reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha1');\n                } else if (response.instruction != null && response.instruction != '') {\n                  var pharmacy_message = 'Instructions/notes: ' + response.instruction + ' : ' + response.cwp_reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha2');\n                } else if (response.edit_reason != null && response.edit_reason != '') {\n                  var pharmacy_message = 'Edit Reason: ' + response.edit_reason;\n                  _this.set('pharmacy_instruction', pharmacy_message);\n                  //console.log('norecord-pha3');\n                }\n              }\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      //This below function is used for getting patient pending amount\n      getPreviousPendingAmount: function (patient_id, appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        // if (patient_id == undefined) {\n        //   patient_id = _this.get('patient_id');\n        // }\n        // if (appointment_id == undefined) {\n        //   appointment_id = _this.get('appointment_id');\n        // }\n        // if (billing_id == undefined) {\n        //   billing_id = _this.get('bill_id');\n        // }\n        //var base_url =ENV.APP.lumen_api_url +'billing/pending/' +patient_id +'/' +appointment_id +'/' +billing_id;\n\n        if (patient_id != undefined && appointment_id != undefined && billing_id != undefined) {\n          $('#loader').show();\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              $('#loader').hide();\n              if (res.data != null) {\n                _this.set('pending_amount', res.data.due_amount);\n                _this.set('pending_list', res);\n              } else {\n                _this.set('pending_amount', '0.00');\n                _this.set('pending_list', 'norecord');\n              }\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06 Feb 2020\n      getPreviousBillAmount: function (appointment_id) {\n        this.getPreviousBillAmount(appointment_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Shubh Tiwari 06_Aug_2019\n      getAfterVisitPendingAmount: function (appointment_id, billing_id) {\n        this.getAfterVisitPendingAmount(appointment_id, billing_id);\n      },\n      // medicineEditPopup: function (\n      //   appointment_id,\n      //   billing_id,\n      //   patient_id,\n      //   history_visit_id\n      // ) {\n      //   swal({\n      //     title: 'Are you sure you want to edit prescription?',\n      //     icon: 'warning',\n      //     buttons: true,\n      //     dangerMode: true,\n      //   }).then((willDelete) => {\n      //     if (willDelete) {\n      //       this.transitionToRoute(\n      //         'billing.prescribeedit',\n      //         appointment_id,\n      //         billing_id,\n      //         patient_id,\n      //         history_visit_id\n      //       );\n      //     }\n      //   });\n      // },\n      //This below function is used for set the print type all\n      setprintType: function () {\n        $(event.target).prop('checked', true);\n        var radioValue = event.target.value;\n        if (radioValue == 'international') {\n          $('input.print_international').prop('checked', true);\n          this.set('print_domestic', false);\n          this.set('print_international', true);\n        } else if (radioValue == 'domestic') {\n          $('input.print_domestic').prop('checked', true);\n          this.set('print_domestic', true);\n          this.set('print_international', false);\n        }\n      },\n      reAssign(reassigned, id, doc_id, case_taken, reassigned_doctor_id, patient_id, bill_id) {\n        // if (reassigned == 'true') {\n        //   alert('Can not Re Assign.');\n        //   $('.modal-backdrop').click();\n        //   return false;\n        // }\n        //var addressDetails = this.shipp;\n        //var shippingResult = this.shippingValidation.shippingValidation(addressDetails);\n        // var bill_id = this.billing_id;\n        // if (bill_id == undefined) {\n        //   var bill_id = this.bill_id;\n        // }\n        var appointment_id = this.appointment_id;\n        var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n        if (appointment_id !== undefined && appointment_id !== '') {\n          var _this = this;\n          let utoken = _this.session.getToken();\n          var shift_id = _this.get('session').getLoggedInUserShift();\n          var casetaking_branch = _this.get('session').getLocation().split('-')[0];\n          //shippingResult['patient_id'] = patient_id;\n          //shippingResult['appointment_id'] = appointment_id;\n          //shippingResult['created_by'] = doc_id;\n\n          // Save changes of medicine factor, vial, discount, others charge and waived consultancy into database when click on prescribe & Complete button\n          var charge_data_list = $('.box-charge').map(function () {\n            var $this = $(this);\n            var jsObjectfrrm = {};\n            jsObjectfrrm['price'] = $this.val();\n            jsObjectfrrm['name'] = $this.data('label');\n            jsObjectfrrm['charge_code'] = $this.data('charge_code');\n            jsObjectfrrm['shipping'] = $this.data('shipping-related');\n            return jsObjectfrrm;\n          }).get();\n          var charge_data = charge_data_list;\n          var factor_list = $('.qty').map(function () {\n            var $this = $(this);\n            var jsObjectfator = {};\n            jsObjectfator['factor'] = $this.val();\n            jsObjectfator['medid'] = $this.data('medid');\n            jsObjectfator['formrate'] = $this.data('formrate');\n            return jsObjectfator;\n          }).get();\n          var factor_data = factor_list;\n          var vial_list = $('.medicineVial').map(function () {\n            var $this = $(this);\n            var jsObjectvial = {};\n            jsObjectvial['medicine_vial'] = $this.val();\n            return jsObjectvial;\n          }).get();\n          var vial_data = vial_list;\n          var ontheflymedicine_reason = $('.grdtot').data('reason');\n          if (ontheflymedicine_reason != undefined) {\n            var ontheflymedicine_reason = $('.grdtot').data('reason');\n          } else {\n            var ontheflymedicine_reason = null;\n          }\n          var ontheflyconsultancy_reason = $('.consultancy').data('consultancy_reason');\n          if (ontheflyconsultancy_reason != undefined) {\n            var consultancy_reason = $('.consultancy').data('consultancy_reason');\n          } else {\n            var consultancy_reason = null;\n          }\n          if (charge_data_list.length > 0) {\n            var charge_data = charge_data_list;\n          } else {\n            var charge_data = 0;\n          }\n          var consutancy_fee = $('#consutancy_fee').val();\n          var factor_med_total = parseFloat($('.onthemed').text()).toFixed(2);\n          var factor_perce_value = parseInt($('.onthefly_per').text());\n          var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n          var med_after_discount = parseFloat($('.grdtot').val()).toFixed(2);\n          var medicine_print_code = $('.grdtot').data('medprint');\n          var consultancy_print_code = $('.consultancy').data('consprint');\n          var consultancy = parseInt($('.consultancy').val());\n          var waive_type = $('.cons_waived').text();\n          var percentage_amout = parseInt($('.cons_amount').text());\n          var consultancy_percentage = isNaN(percentage_amout) ? 0 : percentage_amout;\n          if (consultancy > 0 && waive_type != 'Waived' && consultancy_percentage == 0) {\n            var consultancy_status = 'Not Set';\n            var consultancy_discount = parseInt($('.cons_dis').text());\n          } else if (consultancy == '0.00' && waive_type == 'Waived' && consultancy_percentage == 0) {\n            var consultancy_status = 'Waived';\n            var consultancy_discount = parseInt($('.cons_dis').text());\n          } else if (consultancy_percentage > 0 && shift_id == 2) {\n            //Rahul khan 06_02_2021\n            var consultancy_status = 'Evening Shift';\n            var consultancy_discount = parseInt($('.cons_dis').text());\n          } else if (consultancy_percentage > 0) {\n            var consultancy_status = 'Discount Category';\n            var consultancy_discount = parseInt($('.cons_dis').text());\n          } else {\n            var consultancy_status = '';\n            var consultancy_discount = 0;\n          }\n          var changesdata = {\n            billing_id: bill_id,\n            visiting_id: appointment_id,\n            patient_id: patient_id,\n            charge_data: charge_data,\n            factor_med_total: factor_med_total,\n            factor_perce_value: factor_perce_value2,\n            med_after_discount: med_after_discount,\n            factor_data: factor_data,\n            consultancy: consultancy_discount,\n            consultancy_status: consultancy_status,\n            consultancy_percentage: consultancy_percentage,\n            vial_data: vial_data,\n            user_id: reassigned_doctor_id,\n            medicine_descount_reason: ontheflymedicine_reason,\n            consultancy_reason: consultancy_reason,\n            prescribing_doc_id: reassigned_doctor_id,\n            consutancy_fee: consutancy_fee,\n            medicine_print_code: medicine_print_code,\n            consultancy_print_code: consultancy_print_code\n          };\n          //console.log(changesdata);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/reAssign',\n            data: {\n              id: id,\n              doctor_id: doc_id,\n              case_taken: case_taken,\n              reassigned_doctor_id: reassigned_doctor_id,\n              shift_id: shift_id,\n              appointment_id: appointment_id,\n              reassigned: reassigned,\n              casetaking_branch: casetaking_branch\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'billing/changecheckoutdata',\n                  data: changesdata,\n                  dataType: 'json',\n                  //async: false,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resdata) {\n                    if (resdata.actions == 'add' && resdata.error == false) {\n                      //alert('Case Taken Successfull!');\n                      _this.flashes.success('Case Taken Successfull!');\n                      if (doc_id !== reassigned_doctor_id) {\n                        if (tab_id !== undefined) {\n                          _this.get('doctordasboard').send('removePrescribeTabWithoutMessage', tab_id);\n                        }\n                      }\n                      _this.transitionToRoute('doctor-dashboard.list');\n                    } else if (resdata.error == true && resdata.message == 'datainsufficient') {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n                    }\n                  },\n                  error: function (error, x, y) {\n                    //console.log(error);\n                  }\n                });\n              } else {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n              }\n            },\n            error: function (error, x, y) {\n              //console.log(error);\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n        }\n      },\n      markComplete(id, prescribed, patient_booked_doctor, patient_id, assigned_doctor, bill_id) {\n        //console.log(bill_id);\n        var login_user_id = this.session.getLoggedInUserId();\n        if (login_user_id == assigned_doctor) {\n          var doctor_id = assigned_doctor;\n          //console.log('a-doctor_id=' + doctor_id);\n        } else if (login_user_id == patient_booked_doctor) {\n          var doctor_id = patient_booked_doctor;\n          //console.log('b-doctor_id=' + doctor_id);\n        } else {\n          var doctor_id = patient_booked_doctor;\n          //console.log('c-doctor_id=' + doctor_id);\n        }\n        //console.log('Prescribe doctor id=' + doctor_id);\n        //return false;\n        var addressDetails = this.shipp;\n        var shippingResult = this.shippingValidation.shippingValidation(addressDetails);\n        // var bill_id = this.billing_id;\n        var appointment_id = this.appointment_id;\n        // if (bill_id == undefined) {\n        //   var bill_id = this.bill_id;\n        // }\n        var prescriptionemail = $('input[name=prescriptionemail]:checked').val();\n        /* Print Options */\n        var report_advice = $('input[name=\"report_advice\"]:checked').val();\n        var print_case = $('input[name=\"print_case\"]:checked').val();\n        var print_case_val = $('input[name=\"print_case_val\"]').val();\n        var clinic_used = $('input[name=\"clinic_used\"]:checked').val();\n        var print_option = $('input[name=\"print_option\"]:checked').val();\n        var evlp_label = $('input[name=\"evlp_label\"]:checked').val();\n        var inc_presc = $('input[name=\"inc_presc\"]:checked').val();\n        var add_label = $('input[name=\"add_label\"]:checked').val();\n        var med_label = $('input[name=\"med_label\"]:checked').val();\n        var domst_cons_presc = $('input[name=\"domst_cons_presc\"]:checked').val();\n        var cons_presc = $('input[name=\"cons_presc\"]:checked').val();\n        var receipt = $('input[name=\"receipt\"]:checked').val();\n        var medical_certificate = $('input[name=\"medical_certificate\"]:checked').val();\n        var myObject = new Object();\n        myObject.report_advice = report_advice;\n        myObject.print_case = print_case;\n        myObject.print_case_val = print_case_val;\n        myObject.clinic_used = clinic_used;\n        myObject.print_option = print_option;\n        myObject.evlp_label = evlp_label;\n        myObject.inc_presc = inc_presc;\n        myObject.add_label = add_label;\n        myObject.med_label = med_label;\n        myObject.domst_cons_presc = domst_cons_presc;\n        myObject.cons_presc = cons_presc;\n        myObject.receipt = receipt;\n        myObject.medical_certificate = medical_certificate;\n        var print_optionString = JSON.stringify(myObject);\n        //console.log(print_optionString);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var prescribed_branch = _this.get('session').getLocation().split('-')[0];\n        // Save changes of medicine factor, vial, discount, others charge and waived consultancy into database when click on prescribe & Complete button\n        var charge_data_list = $('.box-charge').map(function () {\n          var $this = $(this);\n          var jsObjectfrrm = {};\n          jsObjectfrrm['price'] = $this.val();\n          jsObjectfrrm['name'] = $this.data('label');\n          jsObjectfrrm['charge_code'] = $this.data('charge_code');\n          jsObjectfrrm['shipping'] = $this.data('shipping-related');\n          return jsObjectfrrm;\n        }).get();\n        var charge_data = charge_data_list;\n        var factor_list = $('.qty').map(function () {\n          var $this = $(this);\n          var jsObjectfator = {};\n          jsObjectfator['factor'] = $this.val();\n          jsObjectfator['medid'] = $this.data('medid');\n          jsObjectfator['formrate'] = $this.data('formrate');\n          return jsObjectfator;\n        }).get();\n        var factor_data = factor_list;\n        var vial_list = $('.medicineVial').map(function () {\n          var $this = $(this);\n          var jsObjectvial = {};\n          jsObjectvial['medicine_vial'] = $this.val();\n          return jsObjectvial;\n        }).get();\n        var vial_data = vial_list;\n        var ontheflymedicine_reason = $('.grdtot').data('reason');\n        if (ontheflymedicine_reason != undefined) {\n          var ontheflymedicine_reason = $('.grdtot').data('reason');\n        } else {\n          var ontheflymedicine_reason = null;\n        }\n        var ontheflyconsultancy_reason = $('.consultancy').data('consultancy_reason');\n        if (ontheflyconsultancy_reason != undefined) {\n          var consultancy_reason = $('.consultancy').data('consultancy_reason');\n        } else {\n          var consultancy_reason = null;\n        }\n        if (charge_data_list.length > 0) {\n          var charge_data = charge_data_list;\n        } else {\n          var charge_data = 0;\n        }\n        var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n        //console.log(tab_id);\n        var consutancy_fee = $('#consutancy_fee').val();\n        var factor_med_total = parseFloat($('.onthemed').text()).toFixed(2);\n        var factor_perce_value = parseInt($('.onthefly_per').text());\n        var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n        var med_after_discount = parseFloat($('.grdtot').val()).toFixed(2);\n        var medicine_print_code = $('.grdtot').data('medprint');\n        var consultancy_print_code = $('.consultancy').data('consprint');\n        var consultancy = parseInt($('.consultancy').val());\n        var waive_type = $('.cons_waived').text();\n        var percentage_amout = parseInt($('.cons_amount').text());\n        var consultancy_percentage = isNaN(percentage_amout) ? 0 : percentage_amout;\n        if (consultancy > 0 && waive_type != 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Not Set';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy == '0.00' && waive_type == 'Waived' && consultancy_percentage == 0) {\n          var consultancy_status = 'Waived';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0 && shift_id == 2) {\n          //Rahul khan 06_02_2021\n          var consultancy_status = 'Evening Shift';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else if (consultancy_percentage > 0) {\n          var consultancy_status = 'Discount Category';\n          var consultancy_discount = parseInt($('.cons_dis').text());\n        } else {\n          var consultancy_status = '';\n          var consultancy_discount = 0;\n        }\n        var changesdata = {\n          billing_id: bill_id,\n          visiting_id: appointment_id,\n          patient_id: patient_id,\n          charge_data: charge_data,\n          factor_med_total: factor_med_total,\n          factor_perce_value: factor_perce_value2,\n          med_after_discount: med_after_discount,\n          factor_data: factor_data,\n          consultancy: consultancy_discount,\n          consultancy_status: consultancy_status,\n          consultancy_percentage: consultancy_percentage,\n          vial_data: vial_data,\n          user_id: doctor_id,\n          medicine_descount_reason: ontheflymedicine_reason,\n          consultancy_reason: consultancy_reason,\n          prescribing_doc_id: doctor_id,\n          consutancy_fee: consutancy_fee,\n          medicine_print_code: medicine_print_code,\n          consultancy_print_code: consultancy_print_code\n        };\n        shippingResult['patient_id'] = patient_id;\n        shippingResult['appointment_id'] = appointment_id;\n        shippingResult['created_by'] = doctor_id;\n        shippingResult['prescription_email'] = prescriptionemail;\n        if (shippingResult.dispatchOrPickup == \"D\" && shippingResult !== false && appointment_id !== undefined && appointment_id !== '') {\n          //(\"billingLocation=\"+shippingResult.billingLocation+\"pharmacyLocation=\"+shippingResult.billingLocation);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n            data: {\n              data: shippingResult\n            },\n            dataType: 'json',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resship_validation) {\n              if (resship_validation.error == true) {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'dicoundisplayerror');\n              } else if (resship_validation.error == false) {\n                Swal.fire({\n                  text: 'Are you sure you want to complete this appointment?',\n                  icon: 'warning',\n                  width: 600,\n                  showCancelButton: true,\n                  confirmButtonColor: '#3085d6',\n                  cancelButtonColor: '#d33',\n                  allowOutsideClick: false,\n                  confirmButtonText: 'Ok'\n                }).then(result => {\n                  if (result.isConfirmed) {\n                    $.ajax({\n                      method: 'POST',\n                      url: _environment.default.APP.api_url + 'appointments/markComplete',\n                      data: {\n                        id: id,\n                        prescribed: prescribed,\n                        doctor_id: doctor_id,\n                        shift_id: shift_id,\n                        bill_id: bill_id,\n                        billing_location: shippingResult.billingLocation,\n                        pharmacy_location: shippingResult.pharmacyLocation,\n                        appointment_id: appointment_id,\n                        print_optionString: print_optionString,\n                        prescribed_branch: prescribed_branch\n                      },\n                      dataType: 'json',\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      beforeSend: function () {\n                        $('#loading').addClass('in');\n                        $('#loading').css('display', 'block');\n                        $('body').addClass('modal-open');\n                      },\n                      //async: false,\n                      success: function (res) {\n                        if (res.validate == 'true') {\n                          $.ajax({\n                            method: 'POST',\n                            url: _environment.default.APP.lumen_api_url + 'billing/changecheckoutdata',\n                            data: changesdata,\n                            dataType: 'json',\n                            //async: false,\n                            headers: {\n                              \"Authorization\": `Bearer ${utoken}`\n                            },\n                            success: function (resdata) {\n                              if (resdata.actions == 'add' && resdata.error == false) {\n                                $.ajax({\n                                  method: 'POST',\n                                  url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                                  data: {\n                                    data: shippingResult\n                                  },\n                                  dataType: 'json',\n                                  //async: false,\n                                  headers: {\n                                    \"Authorization\": `Bearer ${utoken}`\n                                  },\n                                  success: function (resship) {\n                                    if (resship.error == false) {\n                                      if (tab_id != undefined) {\n                                        var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n                                        $.ajax({\n                                          url: base_url,\n                                          method: 'POST',\n                                          data: {\n                                            id: tab_id\n                                          },\n                                          headers: {\n                                            \"Authorization\": `Bearer ${utoken}`\n                                          },\n                                          success: function (restab) {\n                                            if (restab.error == false && restab.message == 'tab_remove') {\n                                              var message = 'Appointment complete';\n                                              //_this.recalculateAmount.allSuccessMessage(message);\n                                              _this.flashes.success(message);\n                                              _this.transitionToRoute('doctor-dashboard.list');\n                                            }\n                                          },\n                                          complete: function () {\n                                            setTimeout(function () {\n                                              $('#loading').removeClass('in');\n                                              $('#loading').css('display', 'none');\n                                              $('.modal-backdrop').remove();\n                                              $('body').removeClass('modal-open');\n                                            }, 500);\n                                          }\n                                        });\n                                      } else {\n                                        var message = 'Appointment complete';\n                                        //_this.recalculateAmount.allSuccessMessage(message);\n                                        _this.flashes.success(message);\n                                        _this.transitionToRoute('doctor-dashboard.list');\n                                      }\n                                    } else {\n                                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n                                    }\n                                  }\n                                });\n                              } else if (resdata.error == true && resdata.message == 'datainsufficient') {\n                                alert('Something went wrong. Please try later');\n                              }\n                            }\n                          });\n                        } else {\n                          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n                        }\n                      }\n                    });\n                  }\n                });\n              }\n            }\n          });\n        } else if ((shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && (shippingResult !== false || shippingResult == false) && appointment_id !== undefined && appointment_id !== '') {\n          //console.log(\"billingLocation=\"+shippingResult.billingLocation+\"pharmacyLocation=\"+shippingResult.billingLocation);\n          Swal.fire({\n            text: 'Are you sure you want to complete this appointment?',\n            icon: 'warning',\n            width: 600,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            allowOutsideClick: false,\n            confirmButtonText: 'Ok'\n          }).then(result => {\n            if (result.isConfirmed) {\n              $.ajax({\n                method: 'POST',\n                url: _environment.default.APP.api_url + 'appointments/markComplete',\n                data: {\n                  id: id,\n                  prescribed: prescribed,\n                  doctor_id: doctor_id,\n                  shift_id: shift_id,\n                  bill_id: bill_id,\n                  billing_location: shippingResult.billingLocation,\n                  pharmacy_location: shippingResult.pharmacyLocation,\n                  appointment_id: appointment_id,\n                  print_optionString: print_optionString,\n                  prescribed_branch: prescribed_branch\n                },\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#loading').addClass('in');\n                  $('#loading').css('display', 'block');\n                  $('body').addClass('modal-open');\n                },\n                //async: false,\n                success: function (res) {\n                  if (res.validate == 'true') {\n                    $.ajax({\n                      method: 'POST',\n                      url: _environment.default.APP.lumen_api_url + 'billing/changecheckoutdata',\n                      data: changesdata,\n                      dataType: 'json',\n                      //async: false,\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (resdata) {\n                        if (resdata.actions == 'add' && resdata.error == false) {\n                          $.ajax({\n                            method: 'POST',\n                            url: _environment.default.APP.lumen_api_url + 'icpattend/pickupshippingaddress',\n                            data: {\n                              data: shippingResult\n                            },\n                            dataType: 'json',\n                            //async: false,\n                            headers: {\n                              \"Authorization\": `Bearer ${utoken}`\n                            },\n                            success: function (resship) {\n                              if (resship.error == false && resship.actions == \"add\") {\n                                if (tab_id != undefined) {\n                                  var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n                                  $.ajax({\n                                    url: base_url,\n                                    method: 'POST',\n                                    data: {\n                                      id: tab_id\n                                    },\n                                    headers: {\n                                      \"Authorization\": `Bearer ${utoken}`\n                                    },\n                                    success: function (restab) {\n                                      if (restab.error == false && restab.message == 'tab_remove') {\n                                        var message = 'Appointment complete';\n                                        //_this.recalculateAmount.allSuccessMessage(message);\n                                        _this.flashes.success(message);\n                                        _this.transitionToRoute('doctor-dashboard.list');\n                                      }\n                                    },\n                                    complete: function () {\n                                      setTimeout(function () {\n                                        $('#loading').removeClass('in');\n                                        $('#loading').css('display', 'none');\n                                        $('.modal-backdrop').remove();\n                                        $('body').removeClass('modal-open');\n                                      }, 500);\n                                    }\n                                  });\n                                } else {\n                                  var message = 'Appointment complete';\n                                  //_this.recalculateAmount.allSuccessMessage(message);\n                                  _this.flashes.success(message);\n                                  _this.transitionToRoute('doctor-dashboard.list');\n                                  //Nishant 21-Jan-2023: sometimes the loader remains open in dashboard. Probably the below will fix it\n                                  setTimeout(function () {\n                                    $('#loading').removeClass('in');\n                                    $('#loading').css('display', 'none');\n                                    $('.modal-backdrop').remove();\n                                    $('body').removeClass('modal-open');\n                                  }, 500);\n                                }\n                              }\n                            }\n                          });\n                        } else if (resdata.error == true && resdata.message == 'datainsufficient') {\n                          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n                        }\n                      }\n                    });\n                  } else {\n                    _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n                  }\n                }\n              });\n            }\n          });\n        } else {\n          //_this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.','dicoundisplayerror');\n        }\n      },\n      getCaseHistory: function (appointment_id, patient_id) {\n        this.getCaseHistory(appointment_id, patient_id);\n      },\n      assignToDoctorFrontDesk: function () {\n        this.assignToDoctorFrontDesk();\n      },\n      geMessageLogs: function (appointment_id) {\n        this.geMessageLogs(appointment_id);\n      },\n      clearVariableData: function () {\n        this.clearVariableData();\n      },\n      editCaseTakingData: function (id) {\n        this.editCaseTakingData(id);\n      },\n      getTodayVitalList: function (appointment_id, patient_id) {\n        this.getTodayVitalList(appointment_id, patient_id);\n      },\n      getCaseTakenList: function (appointment_id, patient_id) {\n        this.getCaseTakenList(appointment_id, patient_id);\n      },\n      getReportsList: function (appointment_id, patient_id) {\n        this.getReportsList(appointment_id, patient_id);\n      },\n      setAppointmentId(appointment_id) {\n        var _this = this;\n        _this.set('appointment_id', appointment_id);\n      },\n      setPatientId(patient_id) {\n        var _this = this;\n        _this.set('patient_id', patient_id);\n      },\n      setBillingId(billing_id) {\n        var _this = this;\n        _this.set('billing_id', billing_id);\n      },\n      setReadMessage(read_message) {\n        var _this = this;\n        _this.set('read_message', read_message);\n      },\n      getVitalListFilter: function (appointment_id, value) {\n        alert(appointment_id);\n        alert(value);\n      },\n      getPrescribeDetail: function (appointment_id) {\n        this.getPrescribeDetail(appointment_id);\n      },\n      getAdvisedReport: function (appointment_id) {\n        this.getAdvisedReport(appointment_id);\n      },\n      getPreviousAdvisedReport: function (appointment_id, patient_id) {\n        this.getPreviousAdvisedReport(appointment_id, patient_id);\n      },\n      removeAdvicedReport: function (id) {\n        this.removeAdvicedReport(id);\n      },\n      getApplyMedicineDiscount: function (appointment_id, billing_id) {\n        this.getApplyMedicineDiscount(appointment_id, billing_id);\n      },\n      getApplyConsultancyWaived: function (appointment_id, billing_id) {\n        this.getApplyConsultancyWaived(appointment_id, billing_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getPreviousVisitCharges: function (appointment_id, billing_id) {\n        this.getPreviousVisitCharges(appointment_id, billing_id);\n      },\n      //This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getVisitCharges: function (appointment_id, billing_id) {\n        this.getVisitCharges(appointment_id, billing_id);\n      },\n      caseHistoryDetails: function (id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        jQuery.noConflict();\n        $('#caseHistoryDetailsPopup').modal('show');\n        $('#caseHistoryDetailsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'icpattend/caseHistoryDetail/' + id,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#case-history-loader').show();\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('caseHistoryDetail', res);\n          },\n          complete: function () {\n            $('#case-history-loader').hide();\n          }\n        });\n      },\n      caseTakenDetails(id, dkbc_db, icd_db, app_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (dkbc_db == undefined) {\n          var disease_name = icd_db;\n        } else {\n          var disease_name = dkbc_db;\n        }\n        Swal.fire({\n          text: 'Are you sure you want to delete ' + disease_name + '?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, delete it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'icpattend/deleteCaseTaken',\n              method: 'POST',\n              data: {\n                case_id: id,\n                app_id: app_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'delete') {\n                  $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  $('#casetakenmessage .alert').fadeToggle(10000);\n                  _this.getCaseTakenList(res.appointment_id);\n                  //_this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                } else if (res.error == true && res.actions == 'not_delete') {\n                  $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  //_this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                  _this.getCaseTakenList(res.appointment_id);\n                }\n              },\n              complete: function () {}\n            });\n          }\n        });\n      },\n      getPatientHistory: function (patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (patient_id == undefined) {\n          patient_id = _this.get('patient_id');\n        }\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/history/' + patient_id;\n        if (patient_id != undefined) {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //console.log(res);\n              _this.set('PatientHistory', res);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      getPrescribeDetail: function (appointment_id) {\n        //console.log(appointment_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (appointment_id == undefined) {\n          appointment_id = _this.get('appointment_id');\n        }\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/prescribe/' + appointment_id;\n        if (appointment_id != undefined) {\n          $('#loader').show();\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var branch_id = _this.get('session').getLocation().split('-')[0];\n\n              //This below ajax added for shift timings\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + branch_id,\n                data: {},\n                dataType: 'json',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (resTimeData) {\n                  $('#loader').hide();\n                  //console.log(resTimeData.data[0]);\n                  var resobj = resTimeData.data[0];\n                  var ParseData = JSON.parse(res);\n                  let shift_id = _this.get('session').getLoggedInUserShift();\n                  var appointment_type_code = ParseData.data[0].appointment_type;\n                  var appointment_from = ParseData.data[0].appointment_booked_from;\n                  var dynamic_charge_code = ParseData.data[0].charge_code;\n                  var shift_charity = 0;\n                  if (shift_id == 1 && resobj.morning_charity_status == 1 || shift_id == 2 && resobj.evening_charity_status == 1) {\n                    var shift_charity = 1;\n                  }\n                  //This below id added for passing the appointment_id to pharmacy-details-component\n                  _this.set('PrescribePatient', ParseData.data);\n                  _this.set('PrescribePatientHead', ParseData.data[0]);\n                  _this.set('PrescribingDoctor', ParseData.data[0].prescribing_doc_id);\n                  _this.send('getPatientDiscount', ParseData.data[0].discount_id, shift_charity);\n                  var location_id = _this.session.getLocation().split('-')[0];\n                  var isValidChargeCode = dynamic_charge_code !== null && dynamic_charge_code !== undefined && String(dynamic_charge_code).trim() !== \"\";\n                  // console.log(ParseData.data[0].prescribing_doc_id);\n                  // This ajax reqiest get the charge code using appointment type code, Shubh Tiwari 12-09-2023\n                  // $.ajax({\n                  //   method: 'GET',\n                  //   url:ENV.APP.lumen_api_url + 'billing/getchargecode/' + appointment_type_code,\n                  //   headers: {\"Authorization\": `Bearer ${utoken}`},\n                  //   success: function (charge_result) {\n                  //     var location_id = _this.session.getLocation().split('-')[0];\n\n                  //     _this.send('getConsultancyFees', ParseData.data[0].prescribing_doc_id, location_id, charge_result);\n                  //   },\n                  // });\n                  // ✅ Online appointment + valid charge code\n                  if (appointment_from === \"online\" && isValidChargeCode) {\n                    _this.send('getConsultancyFees', ParseData.data[0].prescribing_doc_id, location_id, dynamic_charge_code);\n                  } else {\n                    // 🔁 Existing behaviour\n                    $.ajax({\n                      method: 'GET',\n                      url: _environment.default.APP.lumen_api_url + 'billing/getchargecode/' + appointment_type_code,\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (charge_result) {\n                        _this.send('getConsultancyFees', ParseData.data[0].prescribing_doc_id, location_id, charge_result);\n                      }\n                    });\n                  }\n                }\n              });\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        } else {}\n      },\n      //This below function used for gettiing the patient pharmacy instruction history, Rahul Khan, 30 Sept 2019\n      getPharmacyHistory: function (patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $('#loader').show();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/getPharmacyHistory/' + patient_id + '/' + appointment_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            $('#loader').hide();\n            _this.set('pharmacyHistory', response);\n          }\n        });\n      },\n      markWithoutPrescription() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var login_user_id = _this.session.getLoggedInUserId();\n        var id = $('#presId').val();\n        var prescribed = $('#prescribedId').val();\n        var doctor_id = $('#pres_doctor_id').val();\n        var patient_id = $('#pres_patient_id').val();\n        var bill_id = $('#pres_billing_id').val();\n        //var bill_id = _this.billing_id;\n        var appointment_id = _this.appointment_id;\n        // if (bill_id == undefined) {\n        //   var bill_id = _this.bill_id;\n        // }\n        var billing_location = $('#billing_location').val();\n        var pharmacy_location = $('#pharmacy_location').val();\n        var billing_instruction = $('#billing_instruction').val();\n        var data = {\n          id: id,\n          prescribed: prescribed,\n          doctor_id: doctor_id,\n          shift_id: shift_id,\n          bill_id: bill_id,\n          user_id: login_user_id,\n          billing_location: billing_location,\n          pharmacy_location: pharmacy_location,\n          appointment_id: appointment_id,\n          billing_instruction: billing_instruction\n        };\n        //var addressDetails = _this.shipp;\n        //var shippingResult =_this.shippingValidation.shippingValidation(addressDetails);\n        var prescription_reason = $('#prescription_reason').val();\n        if (prescription_reason == undefined || prescription_reason == '') {\n          Swal.fire({\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            text: 'Please enter complete without prescription reason'\n          });\n        } else if (prescription_reason.length < 10) {\n          Swal.fire({\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            text: 'Please enter reason minimum 10 character'\n          });\n        } else {\n          data = $.extend(true, data, {\n            prescription_reason: prescription_reason\n          });\n          //console.log(data);\n          var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n          if (appointment_id !== undefined && appointment_id !== '') {\n            $('#reasonPrescription').modal('hide');\n            //shippingResult['patient_id'] = patient_id;\n            //shippingResult['appointment_id'] = appointment_id;\n            //shippingResult['created_by'] = login_user_id;\n            swal({\n              title: 'You have chosen to complete the visit without prescription. Any changes to medicines & charges will not be saved for this visit. Press Ok to confirm.',\n              icon: 'warning',\n              buttons: true,\n              dangerMode: true\n            }).then(willDelete => {\n              if (willDelete) {\n                $.ajax({\n                  url: _environment.default.APP.api_url + 'appointments/markWithoutPrescription',\n                  method: 'POST',\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    if (res.validate == 'true') {\n                      if (tab_id !== undefined) {\n                        _this.get('doctordasboard').send('removePrescribeTabWithoutMessage', tab_id);\n                      }\n                      _this.flashes.success('Complete without prescription has been completed successfully');\n                      _this.transitionToRoute('doctor-dashboard.list');\n                    } else {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n                    }\n                  }\n                });\n              }\n            });\n          } else {\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Sorry, something went wrong, please refresh the page and try again.', 'dicoundisplayerror');\n          }\n        }\n      }\n    },\n    getPGCharge(appointment_id, billing_id) {\n      //Nishant 1/Jan/2023 - Commented code below as we may not need it\n      // var _this = this;\n      // $.ajax({\n      //   method: 'GET',\n      //   url:\n      //     ENV.APP.lumen_api_url +\n      //     'getpgcharge/' +\n      //     appointment_id +\n      //     '/' +\n      //     billing_id,\n      //   success: function (res) {\n      //     console.log(res);\n      //     _this.set('PGamount', res.data);\n      //   },\n      // });\n      //Nishant 18-jan-2023: Fix issue with blank Previous PG amount on checkout page by setting previous pg amount to 0\n      this.set('PGamount', 0);\n    },\n    refreshPage() {\n      window.location.href = window.location.href;\n    },\n    getDoctorDropdownList: function (user_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        data: {\n          branch_id: branch_id\n        },\n        success: function (res) {\n          _this.set('doctor', res.data);\n          _this.set('doctor_id', user_id);\n        }\n      });\n    },\n    updateShippingAddress: function (updateInMaster, data) {\n      data['updateInMaster'] = updateInMaster;\n      if (data.shipping_address_2 == '') {\n        var second_address = '';\n      } else {\n        var second_address = data.shipping_address_2 + '\\n';\n      }\n      var city = $('#shipping_city').val();\n      var state = $('#shipping_state').val();\n      var countryName = $('#shipping_country option:selected').text().trim();\n      if (city == 'other') {\n        var cityName = $('#shipping_other_city').val().trim();\n      } else {\n        var cityName = $('#shipping_city option:selected').text().trim();\n      }\n      if (state == 'other') {\n        var stateName = $('#shipping_other_state').val().trim();\n      } else {\n        var stateName = $('#shipping_state option:selected').text().trim();\n      }\n      var address = data.shipping_address_1 + '\\n' + second_address + cityName + ', ' + stateName + ', ' + countryName + ', ' + data.shipping_zip + '\\n' + 'PH: ' + data.shipping_mob;\n      $('#shipping_address_column').empty().html(address);\n      this.set('shipp', data);\n      jQuery.noConflict();\n      $('#shippingAddressModal').modal('hide');\n      return true;\n    },\n    patientMarkComplete: function (branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/patientAssignedTodoctor',\n        data: {\n          branch_id: branch_id,\n          //dateTime: today,\n          doctor_id: doctor_id,\n          shift_id: shift_id,\n          appointment_id: appointment_id,\n          edit: p_edit_status\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            _this.set('doc_id', '');\n            _this.set('current_doc_appointments', res.data[0]);\n            if (res.data[0].assigned_dr_1 != null) {\n              _this.set('doc_id', res.data[0].assigned_dr_1);\n            } else {\n              _this.set('doc_id', res.data[0].assigned_dr_2);\n            }\n          } else {\n            _this.set('doc_id', '');\n          }\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    updateVitalFilterUnit: function (appointment_id, height, weight, body_temp) {\n      if (appointment_id != undefined && height != undefined && weight != undefined && body_temp != undefined) {\n        let utoken = this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'icpattend/filterunit',\n          data: {\n            id: appointment_id,\n            height: height,\n            weight: weight,\n            body_temp: body_temp\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log('message log');\n          },\n          error: function (error, x, y) {}\n        });\n      }\n    },\n    getPatientAddress: function (patient_id, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            console.log('appointment_shipping table data');\n            var addressData = res.data[0];\n            var address = _this.recalculateAmount.getShippingAddress(addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n            var shipping_address_1 = addressData.shipping_address_one;\n            var shipping_address_2 = addressData.shipping_address_two;\n            var shipping_selected_country = addressData.shipping_country;\n            var shipping_selected_state = addressData.shipping_state;\n            var shipping_selected_city = addressData.shipping_city;\n            var shipping_zip = addressData.shipping_pin_code;\n            var shipping_mob = addressData.shipping_mobile_no;\n            var shipp = {\n              shipping_address_1: shipping_address_1,\n              shipping_address_2: shipping_address_2,\n              shipping_selected_country: shipping_selected_country,\n              shipping_selected_state: shipping_selected_state,\n              shipping_selected_city: shipping_selected_city,\n              shipping_zip: shipping_zip,\n              shipping_mob: shipping_mob,\n              updateInMaster: 0\n            };\n            var top_dispatch_or_pickup = _this.get('icpattend').getPickupDispatchPrescription(addressData.dispatch_or_pickup);\n            var top_prescription_email = _this.get('icpattend').getPickupDispatchPrescription(addressData.prescription_email);\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('top_shiping_pickup', top_dispatch_or_pickup);\n            _this.set('top_prescription_email', top_prescription_email);\n            _this.set('shiping_pickup', addressData.dispatch_or_pickup);\n            _this.set('shipping_pharmacy_location', addressData.pickup_location);\n            _this.set('shipping_billing_location', addressData.billing_location);\n            _this.set('prescription_email', addressData.prescription_email);\n            _this.set('shipp', shipp);\n            _this.set('address', address);\n            _this.set('ajaxState', shipp.shipping_selected_state);\n            _this.set('ajaxCountry', shipp.shipping_selected_country);\n            $('#shipping_address_column').empty().html(address);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  console.log('patient table data');\n                  var address = _this.recalculateAmount.getShippingAddress(data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                  var shipping_address_1 = data.full_address_per;\n                  var shipping_address_2 = data.full_address_res;\n                  var shipping_selected_country = data.country_id_per;\n                  var shipping_selected_state = data.state_id_per;\n                  var shipping_selected_city = data.city_id_per;\n                  var shipping_zip = data.pincode_per;\n                  var shipping_mob = data.phone_res;\n                } else {\n                  console.log('shipping_address table data');\n                  var address = _this.recalculateAmount.getShippingAddress(data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                  var shipping_address_1 = data.shipping_full_address_per;\n                  var shipping_address_2 = data.shipping_full_address_res;\n                  var shipping_selected_country = data.shipping_country_id;\n                  var shipping_selected_state = data.shipping_state_id;\n                  var shipping_selected_city = data.shipping_city_id;\n                  var shipping_zip = data.shipping_pin_code;\n                  var shipping_mob = data.shipping_mobile;\n                }\n                var shipp = {\n                  shipping_address_1: shipping_address_1,\n                  shipping_address_2: shipping_address_2,\n                  shipping_selected_country: shipping_selected_country,\n                  shipping_selected_state: shipping_selected_state,\n                  shipping_selected_city: shipping_selected_city,\n                  shipping_zip: shipping_zip,\n                  shipping_mob: shipping_mob,\n                  updateInMaster: 0\n                };\n                _this.set('address_mismatch', 0);\n                _this.set('top_shiping_pickup', 'Pickup');\n                _this.set('top_prescription_email', '');\n                _this.set('shiping_pickup', '');\n                _this.set('shipping_pharmacy_location', '');\n                _this.set('shipping_billing_location', '');\n                _this.set('prescription_email', '');\n                _this.set('shipp', shipp);\n                _this.set('address', address);\n                _this.set('ajaxState', shipp.shipping_selected_state);\n                _this.set('ajaxCountry', shipp.shipping_selected_country);\n                $('#shipping_address_column').empty().html(address);\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {}\n      });\n      // uncomment async: false, to resolve bug number\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: _this.get('ajaxCountry')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: _this.get('ajaxState')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    //This below function is used for getting all the patient visit changes which applied, Rahul Khan, 12 July 2019\n    getVisitCharges: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/visitcharges/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (prescribe_editresponse) {\n            // $(\".tbody\").empty();\n            var visit_charge_array = [];\n            _this.set('visit_charges', prescribe_editresponse);\n            /*This below code is used for making disabled already selected charges, Rahul Khan 23 july 2019 */\n            $.each(prescribe_editresponse, function (key, value) {\n              visit_charge_array.push(value.charge_code.toUpperCase());\n              $(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n            });\n            _this.set('charge_code', visit_charge_array);\n          },\n          complete: function (res) {\n            // console.log(\"Execution complete\");\n          }\n        });\n        //Clean up commented code - Nishant 11/Nov/2022\n      }\n    },\n    //This below function is used for getting doctor consutancy fees\n    getConsultancyFees: function (doctor_id, branch_id, charge_code) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (doctor_id > 0) {\n        //This is condition is added to set consultancy charge Zero for Repeat medicine Case, Rahul khan 02 nov 2019\n        var base_url = _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id + '/' + branch_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            res.forEach(function (charge_medicine, index) {\n              $(\"#medicine_charge option[data-cid*='\" + charge_medicine.charge_code + \"']\").val(charge_medicine.price);\n              if (charge_medicine.charge_code === charge_code) {\n                if (charge_medicine.price !== '') {\n                  _this.set('consultancy_fees', '');\n                  _this.set('consultancy_fees', parseFloat(charge_medicine.price));\n                  _this.set('consultancy_print_code', charge_medicine.print_code);\n                } else {\n                  _this.set('consultancy_fees', '0.00');\n                  _this.set('consultancy_print_code', 'SDC');\n                }\n              }\n              if (charge_medicine.charge_code == 'mdn') {\n                if (charge_medicine.print_code != '') {\n                  _this.set('medicine_print_code', charge_medicine.print_code);\n                } else {\n                  _this.set('medicine_print_code', 'MDN');\n                }\n              }\n            });\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      } else {\n        _this.set('consultancy_fees', '0.00');\n        _this.set('consultancy_print_code', 'SDC');\n        _this.set('medicine_print_code', 'MDN');\n      }\n    },\n    //This below function is used for getting doctor consutancy fees\n    getPatientDiscount: function (discount_id, shift_charity) {\n      //console.log(appointment_type);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var discount_cat_id = discount_id;\n      //This if condtion for patient normal category comment by shubh as 29 june\n      if (discount_id == 0 || discount_id == undefined) {\n        var discount_cat_id = 1;\n      }\n      var page_name = _this.get('page');\n      //console.log(page_name);\n      //This below is used for appling the consultancy waive for all evening shift patient, Rahul Khan, 29 Aug 2019\n      //var shift_detail = this.get('session').getLoggedInUserShift();\n      var visit_id = $('#visiting_id').val();\n      if (page_name == 'checkout') {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/discounts/' + discount_cat_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var consutancy_percentage = res[0].charge_code;\n            var medicine_percentage = res[1].charge_code;\n            if (consutancy_percentage == 'cns' && medicine_percentage == 'mdn') {\n              _this.set('consultancy_discount', res[0].percentage);\n              _this.set('medicine_discount', res[1].percentage);\n            } else {\n              _this.set('consultancy_normal_discount', '0.00');\n              _this.set('medicine_normal_discount', '0.00');\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n            if (shift_charity == 1) {\n              _this.set('consultancy_discount', 100);\n            }\n            setTimeout(function () {\n              $('.cashpopup').removeAttr('disabled');\n            }, 1000);\n          }\n        });\n      } else {\n        _this.set('consultancy_normal_discount', '0.00');\n        _this.set('medicine_normal_discount', '0.00');\n      }\n    },\n    //This below function is used for getting patient previous visit pending amount\n    getAfterVisitPendingAmount: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined && billing_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/visitafterpending/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('#loader').hide();\n            if (res.length > 0) {\n              if (res[0].previous_due_amount != 0) {\n                setTimeout(function () {\n                  $('.pending').val(res[0].previous_due_amount.toFixed(2));\n                  var grandTotal = 0;\n                  $('.box-charge').each(function () {\n                    var stval = parseFloat($(this).val());\n                    grandTotal += isNaN(stval) ? 0 : stval;\n                  });\n                  var grand_total = $('.grdtot').val();\n                  var consultancy = $('.consultancy').val();\n                  var pending_value = parseFloat(res[0].previous_due_amount);\n                  var med_totals = parseFloat(grand_total) + parseFloat(grandTotal) + parseFloat(pending_value) + parseFloat(consultancy);\n                  var eVal = isNaN(med_totals) ? 0.0 : med_totals;\n                  //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n                  var previous_bill_amount = $('.paid_amount').val();\n                  var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n                  var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n                  if (bill_paid_amount == 0) {\n                    //('Not Include Previous Bill Amount');\n                    var total_med_amount = parseFloat(eVal).toFixed(2);\n                    $('.total').val(total_med_amount);\n                    var recevedAmount = $('.received_amount').val();\n                    var total_due1 = parseFloat(total_med_amount - recevedAmount);\n                    var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n                    var total_due = Math.abs(total_due_amount).toFixed(2);\n                    $('.total_dues').val(total_due);\n                    var remaining_balance_status = Math.sign(total_due_amount);\n                    if (remaining_balance_status == 1) {\n                      var payment_status = 'DUE';\n                    } else if (remaining_balance_status == -1) {\n                      var payment_status = 'ADVANCE';\n                    } else if (remaining_balance_status == 0) {\n                      var payment_status = 'NO DUE';\n                    }\n                    $('.payment_status').text('(' + payment_status + ')');\n                    $('.due_payment_status').text('(' + payment_status + ')');\n                    if (total_due == 0.0) {\n                      $('.cashpopup').attr('disabled', true);\n                    } else {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                  } else {\n                    //console.log('Include Previous Bill Amount');\n                    var total_med_amount = parseFloat(eVal).toFixed(2);\n                    var total_due_minus_previous_bill_amnt = parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n                    var total_amount = Math.abs(total_due_minus_previous_bill_amnt).toFixed(2);\n                    var remaining_balance_status = Math.sign(total_due_minus_previous_bill_amnt);\n                    if (remaining_balance_status == 1) {\n                      var payment_status = 'DUE';\n                    } else if (remaining_balance_status == -1) {\n                      var payment_status = 'ADVANCE';\n                    } else if (remaining_balance_status == 0) {\n                      var payment_status = 'NO DUE';\n                    }\n                    $('.total').val(total_med_amount);\n                    $('.total_dues').val(total_amount);\n                    $('.payment_status').text('(' + payment_status + ')');\n                    // for refund cases added by shubh Tiwari 9 April 2020\n                    if (payment_status == 'ADVANCE') {\n                      $('.total_due_refund').html('Refund Amount ₹ :');\n                      $('#recieved').attr('placeholder', 'Refund');\n                      $('.total_recieved_refund').text('Refund ₹ :');\n                      $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n                    }\n                    if (total_amount == 0.0) {\n                      $('.cashpopup').attr('disabled', true);\n                    } else {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                    /* Payment button enable when paid amount and total amount are equal*/\n                    if (total_med_amount == paid_amount) {\n                      $('.cashpopup').removeAttr('disabled');\n                    }\n                  }\n                }, 1000);\n              }\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getApplyMedicineDiscount: function (appointment_id, billing_id) {\n      //This below function is used for getting apply medicine discount for perticular visit, Shubh Tiwari 28 October 2021\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/medicinediscount/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          //async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.discount_on_med > 0) {\n              _this.set('onthefly_discount', res.discount_on_med);\n              _this.set('medicine_discount_reason', res.med_resson);\n              _this.set('medicine_print_code', res.medicine_print_code);\n              if (res.discount_on_med != 0) {\n                _this.set('remove_discount_button', res.discount_id);\n              } else {\n                _this.set('remove_discount_button', '');\n              }\n              setTimeout(function () {\n                $('.discount_percentage').attr('disabled', true);\n                $('.disdisable').attr('disabled', true);\n                _this.recalculateAmount.checkOutupdateTotal();\n              }, 1000);\n            } else {\n              _this.set('onthefly_discount', '');\n              _this.set('remove_discount_button', '');\n              _this.set('medicine_discount_reason', '');\n              _this.set('medicine_print_code', '');\n            }\n          },\n          complete: function (res) {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      }\n    },\n    getApplyConsultancyWaived: function (appointment_id, billing_id) {\n      //This below function is used for getting apply waived for perticular visit,Shubh Tiwari 28 October 2021\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      if (appointment_id != undefined && billing_id != undefined) {\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/consultancywaive/' + appointment_id + '/' + billing_id,\n          method: 'GET',\n          //async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            //This is previous statement for if condition, We replaced this with new because now need the remove button for all cases,\n            if (res.waive_type == 'Waived') {\n              _this.set('consultancy_fees', parseFloat(res.consultancy_fees));\n              _this.set('consultancy_discount', 0);\n              _this.set('consultancy_waive_type', res.waive_type);\n              _this.set('consultancy_print_code', res.consultancy_print_code);\n              _this.set('consultancy_waived_reason', res.consultacy_reason);\n              _this.set('consultancy_remove_button', res.billing_id);\n              _this.set('consultancy_waived_amount', 0);\n              setTimeout(function () {\n                $('.cons_dis').addClass('discount');\n                $('.consdisable').attr('disabled', true);\n                _this.recalculateAmount.checkOutupdateTotal();\n              }, 1000);\n            } else {\n              _this.set('consultancy_fees', '');\n              _this.set('consultancy_discount', '');\n              _this.set('consultancy_waive_type', '');\n              _this.set('consultancy_print_code', '');\n              _this.set('consultancy_waived_reason', '');\n              _this.set('consultancy_remove_button', '');\n              _this.set('consultancy_waived_amount', '');\n            }\n          },\n          complete: function (res) {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      }\n    },\n    //This below function is used for getting all the patient visit changes which applied, Rahul Khan, 12 July 2019\n    getPreviousVisitCharges: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id == undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/previousbillothercharge/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (prescribe_editresponse) {\n            $('#loader').hide();\n            // $(\".tbody\").empty();\n            //console.log(prescribe_editresponse);\n            var visit_charge_array = [];\n            var visit_charge_amount_array = [];\n            //var charge_data_array = [];\n            _this.set('visit_charges', prescribe_editresponse.other_charges);\n            if (prescribe_editresponse.other_charges.length > 0) {\n              //console.log(prescribe_editresponse.other_charges);\n              $.each(prescribe_editresponse.other_charges, function (key, value) {\n                visit_charge_array.push(value.charge_code.toUpperCase());\n                visit_charge_amount_array.push(value.charge_amount);\n                //charge_data_array.push(data);\n                //$(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n                $('option[data-cid=' + value.charge_code + ']').attr('disabled', true);\n              });\n            }\n            var total_charge = _this.sum(visit_charge_amount_array);\n            _this.set('total_charge', total_charge);\n            //console.log(_this.get('chargeArray'));\n          },\n          complete: function (res) {\n            // console.log(\"Execution complete\");\n          }\n        });\n\n        //This below function is used for getting the total amount received for perticular visit, Rahul Khan 16 july 2019\n\n        //     //This is previous statement for if condition, We replaced this with new because now need the remove button for all cases,\n        //     if (res.waive_type == 'Waived') {\n        //       setTimeout(function () {\n        //         var consultancy_value = parseFloat(0).toFixed(2);\n\n        //         /// console.log(consultancy_value);\n        //         var total_consultancy = $('.cons_dis').text();\n        //         //console.log(total_consultancy)\n        //         if (total_consultancy > 0) {\n        //           // $('.cons_dis').addClass('discount');\n        //         }\n        //         $('.cons_waived').text('Waived');\n        //         $('.consultancy').val('0.00');\n        //         $('.const_remove_button').html(\n        //           '<span class=\"btn btn-danger btn-sm const_remove\"><i class=\"fa fa-times\" aria-hidden=\"true\" title=\"Remove Consultancy1\"></i></span>'\n        //         );\n        //         /*This code is used for getting the discount value, 30 july 2019, Rahul Khan */\n        //         var grandTotal = 0;\n        //         $('.box-charge').each(function () {\n        //           var stval = parseFloat($(this).val());\n        //           grandTotal += isNaN(stval) ? 0 : stval;\n        //         });\n\n        //         //$('.consdisable').attr('disabled', true);\n        //         var grand_total = $('.grdtot').val();\n        //         $('.consultancy').val(consultancy_value);\n        //         var pending = $('.pending').val();\n        //         var charge =\n        //           parseInt(consultancy_value, 10) + parseFloat(pending);\n        //         //  var total = parseFloat(charge)+parseFloat(grand_total)+grandTotal;\n        //         var total =\n        //           parseFloat(charge) +\n        //           parseFloat(grand_total) +\n        //           parseFloat(grandTotal);\n        //         var eVal = isNaN(total) ? 0.0 : total;\n        //         //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n        //         var previous_bill_amount = $('.paid_amount').val();\n        //         var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n        //         var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n        //         if (bill_paid_amount == 0) {\n        //           console.log('Not Include Previous Bill Amount');\n        //           var total_med_amount = parseFloat(eVal).toFixed(2);\n        //           $('.total').val(total_med_amount);\n        //           var total_due1 = parseFloat(\n        //             total_med_amount - bill_paid_amount\n        //           );\n        //           var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n        //           var total_due = Math.abs(total_due_amount).toFixed(2);\n        //           $('.total_dues').val(total_due);\n        //           var remaining_balance_status = Math.sign(total_due_amount);\n        //           if (remaining_balance_status == 1) {\n        //             var payment_status = 'DUE';\n        //           } else if (remaining_balance_status == -1) {\n        //             var payment_status = 'ADVANCE';\n        //           } else if (remaining_balance_status == 0) {\n        //             var payment_status = 'NO DUE';\n        //           }\n        //           $('.payment_status').text('(' + payment_status + ')');\n        //           $('.due_payment_status').text('(' + payment_status + ')');\n        //           if (total_due == 0.0) {\n        //             $('.cashpopup').attr('disabled', true);\n        //           } else {\n        //             $('.cashpopup').removeAttr('disabled');\n        //           }\n        //           //console.log(total_med_amount);\n        //         } else {\n        //           console.log('Include Previous Bill Amount');\n        //           var total_med_amount = parseFloat(eVal).toFixed(2);\n        //           var total_due_minus_previous_bill_amnt =\n        //             parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n        //           var total_amount = Math.abs(\n        //             total_due_minus_previous_bill_amnt\n        //           ).toFixed(2);\n        //           var remaining_balance_status = Math.sign(\n        //             total_due_minus_previous_bill_amnt\n        //           );\n        //           if (remaining_balance_status == 1) {\n        //             var payment_status = 'DUE';\n        //           } else if (remaining_balance_status == -1) {\n        //             var payment_status = 'ADVANCE';\n        //           } else if (remaining_balance_status == 0) {\n        //             var payment_status = 'NO DUE';\n        //           }\n        //           $('.total').val(total_med_amount);\n        //           $('.total_dues').val(total_amount);\n        //           $('.payment_status').text('(' + payment_status + ')');\n        //           // for refund cases added by shubh Tiwari 9 April 2020\n        //           if (payment_status == 'ADVANCE') {\n        //             $('.total_due_refund').html('Refund Amount ₹ :');\n        //             $('#recieved').attr('placeholder', 'Refund');\n        //             $('.total_recieved_refund').text('Refund ₹ :');\n        //             $('.refund_class').html(\n        //               '<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">'\n        //             );\n        //           }\n\n        //           if (total_amount == 0.0) {\n        //             $('.cashpopup').attr('disabled', true);\n        //           } else {\n        //             $('.cashpopup').removeAttr('disabled');\n        //           }\n        //         }\n        //       }, 1000);\n        //     }\n        //   },\n        //   complete: function (res) {\n        //     // console.log(\"Execution complete\");\n        //   },\n        // });\n      }\n    },\n    //This below function is used for getting patient previous bill amount\n    getPreviousBillAmount: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/previousbillamt/' + appointment_id;\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('#loader').hide();\n            //console.log('advanced paid' + res);\n            _this.set('previous_bill_amount', parseFloat(res).toFixed(2));\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getFreeNote: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/getfreenote/' + appointment_id;\n      if (appointment_id != undefined) {\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res.data + 'shubh');\n            _this.set('free_note', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getCaseHistory: function (appointment_id, patient_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var page_size = _environment.default.pagingDefaults.pageSize;\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/casetakenhistory/' + appointment_id + '/' + patient_id + '/0/' + page_size; //Pass Offset as zero as we dont need paging on checkout screen\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            _this.set('case_taken_history_list', history_response);\n          },\n          complete: function (history_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getAdvisedReport: function (id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $('#loader').show();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'icpattend/advisedReport/' + id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          $('#loader').hide();\n          _this.set('advised_report', res.data);\n          _this.set('advised_report_user', res.modify_user);\n        },\n        complete: function () {}\n      });\n    },\n    getPreviousAdvisedReport: function (appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'icpattend/previousAdvisedReport',\n        data: {\n          appointment_id: appointment_id,\n          patient_id: patient_id\n        },\n        method: 'POST',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.error == false && res.data.length > 0) {\n            _this.set('previous_advised_report', res.data);\n          }\n        },\n        complete: function () {}\n      });\n    },\n    /*-- Start get patient information */\n    // getPrescribeDetail: function (appointment_id) {\n    //     var _this = this;\n    //     if (appointment_id == undefined) {\n    //         appointment_id = _this.get('appointment_id');\n    //     }\n    //     var base_url = ENV.APP.lumen_api_url + \"billing/prescribe/\" + appointment_id;\n    //     if (appointment_id != undefined) {\n    //         $.ajax({\n    //             url: base_url,\n    //             method: \"GET\",\n    //             async: false,\n    //             beforeSend:function(){\n    //                 $(\"#loader\").show();\n    //               },\n    //             success: function (res) {\n    //                 var ParseData = JSON.parse(res);\n    //                 _this.set('PatientInfo', ParseData.data);\n    //                 //console.log(ParseData.data[0].urgent_status);\n    //                 if(ParseData.data[0].urgent_status==1){\n    //                     _this.set('display_block','block');\n    //                 }else{\n    //                     _this.set('display_block','none');\n    //                 }\n\n    //             },\n    //             complete: function (res) {\n    //                 $(\"#loader\").hide();\n    //                 //console.log(\"Execution complete\");\n    //             }\n    //         });\n    //     } else {\n    //     }\n    // },\n    /*-- End get patient information */\n    /*-- Start get today vital data  using appointment id and patient id*/\n    getTodayVitalList: function (appointment_id, patient_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/todayvitallist/' + appointment_id + '/' + patient_id;\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (vital_response) {\n            //console.log(vital_response.data.length);\n            if (vital_response.data.length > 0 && vital_response.visit_data != null) {\n              _this.set('patient_vital_list', vital_response.data[0]);\n              _this.set('last_updated_by', vital_response.visit_data);\n            } else {\n              _this.set('patient_vital_list', vital_response.second_last);\n              _this.set('last_updated_by', vital_response.second_last_modify_user);\n            }\n            _this.set('patient', patient_id);\n          },\n          complete: function (vital_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getReportsList: function (appointment_id, patient_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var page_size = _environment.default.pagingDefaults.pageSize;\n      var base_url = _environment.default.APP.lumen_api_url + 'reportlist/' + appointment_id + '/' + patient_id + '/' + page_size;\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (reports_response) {\n            //console.log(reports_response.data);\n            if (reports_response.data != null && reports_response.modify_user != null) {\n              _this.set('d_reports_list', reports_response.data);\n              _this.set('d_report_user', reports_response.modify_user);\n            } else {\n              _this.set('d_reports_list', reports_response.second_last_data);\n              _this.set('d_report_user', reports_response.second_last_modify_user);\n            }\n          },\n          complete: function (reports_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getCaseTakenList: function (appointment_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/checkoutcasetakenlist/' + appointment_id;\n      //console.log(base_url);\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (case_taken_response) {\n            _this.set('patient_case_taking_list', case_taken_response);\n          },\n          complete: function (vital_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    /* For Medical Certificate */\n    medicalCertificate: function (patient_details, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //console.log(patient_details);\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n      var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n      var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n      var gender = patient_details[0].gender;\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      var visit_date = moment().format('YYYY-MM-DD');\n      var patient_dob = _this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      let loginUser = this.session.printUser();\n      var prescribe_doctor = patient_details[0].prescribing_doc_name;\n      if (f_name != undefined && m_name != undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (f_name != undefined && m_name == undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + l_name;\n      } else if (f_name != undefined) {\n        var name = title + ' ' + f_name;\n      }\n      var today = moment().format('DD-MM-YYYY HH:mm:ss A');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'symptom/' + appointment_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          var symptom = [];\n          res.data.forEach(function (val, index) {\n            var table_diesase_name = '';\n            var DKBC_disease_id = val.DKBC_disease_id;\n            var DKBC_organ_id = val.DKBC_organ_id;\n            var DKBC_system_id = val.DKBC_system_id;\n            var DKBC_disease_others = val.DKBC_disease_others;\n            var DKBC_organ_others = val.DKBC_organ_others;\n            var DKBC_system_others = val.DKBC_system_others;\n            var ICD_disease_name = val.certificate_name;\n            var disease = val.disease;\n            var organ = val.organ;\n            var system = val.system;\n            if (disease != undefined) {\n              var disease_name = disease.name;\n            }\n            if (organ != undefined) {\n              var organ_name = organ.name;\n            }\n            if (system != undefined) {\n              var system_name = system.name;\n            }\n            if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n              //console.log('case-taken-a');\n              var table_diesase_name = '<u>' + disease_name + ' (' + organ_name + ' , ' + system_name + ')' + '</u>';\n            } else if (DKBC_disease_id != 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n              //console.log('case-taken-b');\n              var table_diesase_name = '<u>' + disease_name + ' (' + DKBC_organ_others + ' , ' + DKBC_system_others + ')' + '</u>';\n            } else if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id == 0) {\n              //console.log('case-taken-c');\n              var table_diesase_name = '<u>' + disease_name + ' (' + organ_name + ' , ' + DKBC_system_others + ')' + '</u>';\n            } else if (DKBC_disease_id == 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n              // console.log('case-taken-d');\n              var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + organ_name + ' , ' + system_name + ')' + '</u>';\n            } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id != 0) {\n              //console.log('case-taken-e');\n              var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + DKBC_organ_others + ' , ' + system_name + ')' + '</u>';\n            } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0 && DKBC_disease_others == null && DKBC_organ_others == null && DKBC_system_others == null) {\n              //console.log('case-taken-f');\n              var table_diesase_name = '<u>' + ICD_disease_name + '</u>';\n            } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n              //console.log('case-taken-g');\n              var table_diesase_name = '<u>' + DKBC_disease_others + ' (' + DKBC_organ_others + ' , ' + DKBC_system_others + ')' + '</u>';\n            }\n            symptom.push(table_diesase_name);\n          });\n          _this.get('dkbcPrint').medicalCertificateHtml(today, name, symptom, doctor_id, prescribe_doctor, loginUser, d, gender, patient_dob, patient_details);\n          symptom = [];\n        }\n      });\n    },\n    sum(input) {\n      //console.log(input);\n      if (toString.call(input) !== '[object Array]') return false;\n      var total = 0;\n      for (var i = 0; i < input.length; i++) {\n        if (isNaN(input[i])) {\n          continue;\n        }\n        total += Number(input[i]);\n      }\n      return total;\n    },\n    geMessageLogs: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/messageloglist/' + appointment_id;\n      //console.log(base_url);\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (logs_response) {\n            _this.set('message_logs_list', logs_response.data);\n            _this.set('message_logs_user', logs_response.modify_user);\n          },\n          complete: function (logs_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    remove_linebreaks(str) {\n      return str.replace(/[\\r\\n]+/gm, '');\n    },\n    truncate(source, size) {\n      return source.length > size ? source.slice(0, size - 1) + '' : source;\n    },\n    textuptoThreeLine(source, size) {\n      return source.length > size ? source.slice(0, size - 1) + '...' : source;\n    },\n    printPageArea(elem) {\n      var mywindow = window.open('', '', 'height=400,width=600');\n      var css = '';\n      var icp = '';\n      var print = '';\n      var bootstrapCSSLocation = _environment.default.crossOriginWhitelist + '/css/bootstrap.min.css';\n      $.ajax({\n        url: bootstrapCSSLocation,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        css += data;\n      });\n      var maincss = _environment.default.crossOriginWhitelist + '/assets/clinic-dev.css';\n      $.ajax({\n        url: maincss,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        icp += data;\n      });\n      var icpprint = _environment.default.crossOriginWhitelist + '/css/icpprint.css';\n      $.ajax({\n        url: icpprint,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        print += data;\n      });\n      $(this).parents('.control-group').removeAttr('readonly');\n      mywindow.document.write('<html><head><title>Print Case</title>');\n      mywindow.document.write('<style  type=\"text/css\">' + css + ' </style>');\n      mywindow.document.write('<style type=\"text/css\">' + icp + ' </style>');\n      mywindow.document.write('<style type=\"text/css\" media=\"print\">' + print + ' </style>');\n      mywindow.document.write('</head><body >');\n      //mywindow.document.write('<h1>' + document.title  + '</h1>');\n      mywindow.document.write(document.getElementById(elem).innerHTML);\n      mywindow.document.write('</body></html>');\n      mywindow.document.close(); // necessary for IE >= 10\n      mywindow.focus(); // necessary for IE >= 10*/\n      mywindow.print();\n      mywindow.close();\n      return true;\n      // var d='';\n      // d += '<div class=\"section-list\">';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-12\">';\n      // d += '<span class=\"table-heading\">ffffff</span><i  title=\"Urgent\" class=\"fas fa-exclamation-circle fa-urgent fa-2x urgent_note\"></i>';\n      // d += '</div>';\n      // d += '</div>';\n      // d += '<div class=\"sub-section-list\">';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '</div>';\n      // d += '</div>';\n      // d += '</div>';\n\n      // var myWindow = window.open('', '', 'width=400,height=300');\n      // myWindow.document.write(d);\n      // myWindow.focus();\n      // setTimeout(() => {\n      //     myWindow.print();\n      //     myWindow.document.close();\n      // }, 1000);\n    },\n    printCaseWithOfficeUsed(elem1, elem2) {\n      var mywindow = window.open('', '', 'height=400,width=600');\n      var css = '';\n      var icp = '';\n      var print = '';\n      var officeprint = '';\n      var bootstrapCSSLocation = _environment.default.crossOriginWhitelist + '/css/bootstrap.min.css';\n      $.ajax({\n        url: bootstrapCSSLocation,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        css += data;\n      });\n      var maincss = _environment.default.crossOriginWhitelist + '/assets/clinic-dev.css';\n      $.ajax({\n        url: maincss,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        icp += data;\n      });\n      // var icpprint = ENV.crossOriginWhitelist + '/css/icpprint.css';\n      // $.ajax({\n      //   url: icpprint,\n      //   type: 'POST',\n      //   async: false,\n      // }).done(function (data) {\n      //   print += data;\n      // });\n      var officeuseprint = _environment.default.crossOriginWhitelist + '/css/officeuseprint.css';\n      $.ajax({\n        url: officeuseprint,\n        type: 'POST',\n        async: false\n      }).done(function (data) {\n        officeprint += data;\n      });\n      $(this).parents('.control-group').removeAttr('readonly');\n      mywindow.document.write('<html><head><title>Print Case</title>');\n      mywindow.document.write('<style  type=\"text/css\">' + css + ' </style>');\n      mywindow.document.write('<style  type=\"text/css\">' + icp + ' </style>');\n      //mywindow.document.write('<style type=\"text/css\" media=\"print\">' + print + ' </style>');\n      mywindow.document.write('<style type=\"text/css\" media=\"print\">' + officeprint + ' </style>');\n      mywindow.document.write('</head><body >');\n      //mywindow.document.write('<h1>' + document.title  + '</h1>');\n      mywindow.document.write(document.getElementById(elem1).innerHTML);\n      mywindow.document.write(document.getElementById(elem2).innerHTML);\n      mywindow.document.write('</body></html>');\n      mywindow.document.close(); // necessary for IE >= 10\n      mywindow.focus(); // necessary for IE >= 10*/\n      mywindow.print();\n      //mywindow.close();\n      return true;\n      // var d='';\n      // d += '<div class=\"section-list\">';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-12\">';\n      // d += '<span class=\"table-heading\">ffffff</span><i  title=\"Urgent\" class=\"fas fa-exclamation-circle fa-urgent fa-2x urgent_note\"></i>';\n      // d += '</div>';\n      // d += '</div>';\n      // d += '<div class=\"sub-section-list\">';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '<div class=\"row\">';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d +=  '</div>';\n      // d += '<div class=\"col-md-4\">';\n      // d += '<label class=\"control-label\"><strong>Appt. Type :</strong></label>';\n      // d += '<span class=\"app_type\">{{PatientInfo.[0].appointment_type}}</span>';\n      // d += '</div>';\n      // d +=  '</div>';\n      // d += '</div>';\n      // d += '</div>';\n      // d += '</div>';\n\n      // var myWindow = window.open('', '', 'width=400,height=300');\n      // myWindow.document.write(d);\n      // myWindow.focus();\n      // setTimeout(() => {\n      //     myWindow.print();\n      //     myWindow.document.close();\n      // }, 1000);\n    },\n    // //This below function is used for getting all precribed patient data for Billing Dashboard, Rahul Khan 10_may_2019\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctorbillclinic',\n        data: {\n          shift_id: shift_id,\n          branch_id: branch_id,\n          stage: stage,\n          date: date,\n          user_id: user_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res.data);\n          //_this.set('clinicPatients', res.data);\n          var notVisit = res.data.filter(function (el) {\n            return el.visit_complete == '0';\n          });\n\n          // var icpVcPatients = res.data.filter(function (el) {\n          //     var date = el.appointment_datetime.split(' ');;\n          //     var compairDate = moment(today).isSame(moment(date[0]).format('YYYY-DD-MM'));\n          //     return ((el.type == 'icp' && el.absent == '0') && (compairDate == true)) || (el.type == 'vc');\n          // });\n\n          var icpVcPatients = res.data.filter(function (el) {\n            return el.type == 'icp' && el.absent == '0' || el.type == 'vc';\n          });\n          var phonePatients = res.data.filter(function (el) {\n            return el.type == 'phone';\n          });\n          var emailPatients = res.data.filter(function (el) {\n            return el.type == 'email';\n          });\n          var ocpPatients = res.data.filter(function (el) {\n            return el.type == 'ocp';\n          });\n          var phoneUrgent = notVisit.filter(function (el) {\n            return el.type == 'phone' && el.urgent_status == '1';\n          });\n          var emailUrgent = notVisit.filter(function (el) {\n            return el.type == 'email' && el.urgent_status == '1';\n          });\n          var ocpUrgent = notVisit.filter(function (el) {\n            return el.type == 'ocp' && el.urgent_status == '1';\n          });\n          var icpVcUrgent = notVisit.filter(function (el) {\n            return (el.type == 'icp' || el.type == 'vc') && el.urgent_status == '1';\n          });\n          if (icpVcUrgent.length > '0') {\n            var icpVcStatus = 'fa-urgent';\n          } else {\n            var icpVcStatus = '';\n          }\n          if (phoneUrgent.length > '0') {\n            var phoneStatus = 'fa-urgent';\n          } else {\n            var phoneStatus = '';\n          }\n          if (emailUrgent.length > '0') {\n            var emailStatus = 'fa-urgent';\n          } else {\n            var emailStatus = '';\n          }\n          if (ocpUrgent.length > '0') {\n            var ocpStatus = 'fa-urgent';\n          } else {\n            var ocpStatus = '';\n          }\n          var headerCounter = [{\n            remaining: {\n              icpVc: icpVcPatients.length,\n              phone: phonePatients.length,\n              email: emailPatients.length,\n              ocp: ocpPatients.length\n            },\n            urgent: {\n              icpVc: icpVcStatus,\n              phone: phoneStatus,\n              email: emailStatus,\n              ocp: ocpStatus\n            }\n          }];\n          var loginUser = _this.get('session').getLoggedInUserId();\n          var dropdownUser = $('#doctor').val();\n          if (loginUser == dropdownUser) {\n            var currentUser = true;\n          } else {\n            var currentUser = false;\n          }\n          // _this.set('icpVcPatients', icpVcPatients);\n          // _this.set('phonePatients', phonePatients);\n          // _this.set('emailPatients', emailPatients);\n          // _this.set('ocpPatients', ocpPatients);\n          // _this.set('currentUser', currentUser);\n          _this.set('remainingIcpVcPatients', icpVcPatients.length);\n          _this.set('remainingPhonePatients', phonePatients.length);\n          _this.set('remainingEmailPatients', emailPatients.length);\n          _this.set('remainingOcpPatients', ocpPatients.length);\n          _this.set('phoneEmailOcpRemaining', headerCounter[0]);\n          //console.log(ocpPatients);\n        },\n        complete: function (res) {}\n      });\n      var _this = this;\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + user_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var counter = res.data[0];\n          if (counter != undefined) {\n            var totalIcpVcPrescribe = +counter.total_icp_prescribe + +counter.total_vc_prescribe;\n            var totalIcpVcCasetaken = +counter.total_icp_casetaken + +counter.total_vc_casetaken;\n            counter['totalIcpVcPrescribe'] = totalIcpVcPrescribe;\n            counter['totalIcpVcCasetaken'] = totalIcpVcCasetaken;\n            _this.set('patientCount', counter);\n          } else {\n            _this.set('patientCount', 0);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    getTabsList: function (user_id, branch_id, shift_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'tabs',\n        data: {\n          user_id: user_id,\n          branch_id: branch_id,\n          shift_id: shift_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res.data);\n          _this.set('tablist', res);\n        },\n        complete: function (res) {}\n      });\n    },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + doctor_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var counter = res.data[0];\n          if (counter != undefined) {\n            _this.set('totalPrescribe', counter.total_prescribed);\n            _this.set('totalCasetaken', counter.total_case_taken);\n          } else {\n            _this.set('totalPrescribe', 0);\n            _this.set('totalCasetaken', 0);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    newDoctorId(id) {\n      var _this = this;\n      var stage = 0;\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = id;\n      var currentUserId = _this.get('session').getLoggedInUserId();\n      var user = $('#doctor').val();\n      _this.send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n      // if(currentUserId != user_id){\n      //   $(\".table\").css(\"pointer-events\", \"none\");\n      // } else {\n      //   $(\".table\").css(\"pointer-events\", \"auto\");\n      // }\n    }\n  });\n});","define(\"clinic-dev/controllers/dashboard\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/object\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    //queryParams: ['p', 'sort', 'order', 'q'],\n    queryParams: {\n      order: {\n        refreshModel: true,\n        replace: true\n      },\n      p: {\n        refreshModel: true,\n        replace: true\n      },\n      q: {\n        refreshModel: true,\n        replace: true\n      },\n      sort: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    loginCheck: true,\n    branchAppointments: null,\n    assigned: null,\n    reassign_id: null,\n    dkb_appointments: null,\n    current_doc_appointments: null,\n    isDoctor: false,\n    completed: null,\n    notcompleted: null,\n    doctors: null,\n    p: 1,\n    date_time_doctor: '',\n    state: '',\n    other_state: '',\n    other_city: '',\n    country: '',\n    phone_1: '',\n    phone_2: '',\n    date_of_birth: '',\n    age_years: '',\n    age_months: '',\n    age_days: '',\n    first_name: '',\n    middle_name: '',\n    last_name: '',\n    email_id: '',\n    address_1: '',\n    address_2: '',\n    pin: '',\n    mode: '',\n    note: '',\n    selected_city: null,\n    loginCheck: true,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    stats: null,\n    priority: 'normal',\n    q: '',\n    page: 'Register',\n    title_prefix: '',\n    active_tab: 'home',\n    doctor_counter: null,\n    OnSpotDoc: null,\n    flashes: Ember.inject.service('flash-messages'),\n    billing: Ember.inject.controller('billing'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    onlineCancelModalOpen: false,\n    onlineCancelRows: null,\n    onlineCancelTitle: '',\n    onlineCancelDisable: false,\n    onlineCancelSelectedReason: '',\n    onlineCancelTransaction: null,\n    onlineCancelAppointment: null,\n    refundBatches: [],\n    refundBatchesModalOpen: false,\n    init() {\n      this._super(...arguments);\n      this.selectedPaymentOptions = [];\n      this.selectedPaymentName = [];\n      //Addred by Rahul khan 09_03_2020\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //This Below code line is used for getting shift id for login user\n      let shift_id = _this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = _this.session.getLocation().split('-')[0];\n      _this.send('getTabsList', branch_id, shift_id);\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/paymentmode';\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('pmode', res[0].name);\n          _this.set('Payment_mode', res);\n          //console.log(res);\n        },\n        complete: function (res) {\n          // console.log(\"Execution complete\");\n        }\n      });\n      var _this = this;\n      var patient_id = $.trim($('#patient_id').val());\n      /* if (patient_id == undefined) {\n           patient_id = _this.get('patient_id');\n       }*/\n      //   $( document ).ready(function() {\n      //     $('#front_urgent_status').change(function() {\n      //     if ($('#front_urgent_status').is(\":checked\")) {\n      //       $.ajax({\n      //         method: \"GET\",\n      //         url: ENV.APP.api_url+\"appointments/checkurgentnote\",\n      //         data :{appointment_id:_this.get(\"urgent_mark_id\")},\n      //         dataType:'json',\n      //         success: function(res){\n      //           if(res.data.length > 0){\n      //             var note = res.data[0].note;\n      //             $('#urgent_note').val(note);\n      //         }\n      //         },\n      //         error: function(error, x, y){\n      //           console.error(error);\n      //         },\n      //         complete: function(res){\n      //             //console.log(res);\n      //         }\n      //       });\n      //       }\n      //     });\n      // });\n\n      //***********End addded by rahul khan */\n      /* var _this = this;\n      var fullDate = new Date();\n      var twoDigitMonth = ((fullDate.getMonth().toString().length+1) > 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);\n      var twoDigitDate = ((fullDate.getDate().toString().length+1) > 1)? (fullDate.getDate()) : '0' + (fullDate.getDate());\n        var\tappointment_date =  fullDate.getFullYear()+ \"-\" + twoDigitMonth + \"-\" + twoDigitDate;\n      // alert(appointment_date);\n      var branch_detail = this.get('session').getLocation().split('-');\n      var branch_name = branch_detail[1];\n      this.set('appointment_heading', branch_name + ' ' + moment(appointment_date).format('DD-MMM-YYYY')); */\n\n      /* this.set('time_slot_start', 'jkj'); */\n      /* this.set('time_slot_stop', ENV.APP.time_slot_stop); */\n      _this.set('refresh', false);\n    },\n    /* This below function is used for fetching gateway transactions of an online\n       appointment so that refund eligibility can be decided on cancellation. */\n    fetchOnlineAppointmentTransactions(appointment_id) {\n      let _this = this;\n      let utoken = this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/gateway-transactions?appointment_ids=' + appointment_id,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error === false && res.data) {\n              _this.set('onlineCancelTransaction', res.data);\n              resolve(res.data);\n            } else {\n              _this.set('onlineCancelTransaction', []);\n              resolve([]);\n            }\n          },\n          error: function (xhr) {\n            _this.set('onlineCancelTransaction', []);\n            reject(xhr);\n          }\n        });\n      });\n    },\n    /* For online appointments ONLY gateway transactions decide the refund amount. */\n    getOnlineRefundAmount(appointment, transactions) {\n      let txns = transactions || this.get('onlineCancelTransaction') || [];\n      let txn = txns.find(t => Number(t.appointment_id) === Number(appointment.id));\n      if (txn && ['success', 'completed'].includes(txn.status) && txn.gateway !== 'manual') {\n        return parseFloat(txn.amount) || 0;\n      }\n      return 0;\n    },\n    refreshDashboardLists() {\n      this.send('updateList');\n      this.send('updateDkbList');\n      this.send('getNotCompleted');\n      if (this.get('isDoctor') == true) {\n        this.send('updateDoctorList');\n      }\n    },\n    pollOnlineCancelBatch(batchId) {\n      let _this = this;\n      let token = this.session.getToken();\n      let poll = function () {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + batchId + '/status',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              let batch = (_this.get('refundBatches') || []).find(b => b.id === batchId);\n              if (batch) {\n                let updatedRefunds = res.refunds.map(r => ({\n                  id: r.appointment_id,\n                  patient: r.patient_name,\n                  patient_id: r.patient_id,\n                  status: r.status,\n                  ref: r.gateway_refund_id || r.arn_rrn_utr,\n                  gateway: r.gateway,\n                  amount: (parseFloat(r.amount) || 0).toFixed(2),\n                  created_at: r.created_at,\n                  order_id: r.order_id,\n                  reason: r.reason\n                }));\n                let updatedBatch = Object.assign({}, batch, {\n                  refunds: updatedRefunds,\n                  status: res.batch ? res.batch.status : batch.status,\n                  counts: {\n                    total: updatedRefunds.length,\n                    processed: updatedRefunds.filter(r => r.status === 'processed').length,\n                    pending: updatedRefunds.filter(r => ['queued', 'initiated', 'pending'].includes(r.status)).length,\n                    failed: updatedRefunds.filter(r => r.status === 'failed').length,\n                    queued: updatedRefunds.filter(r => r.status === 'queued').length\n                  },\n                  allDone: updatedRefunds.every(r => r.status === 'processed' || r.status === 'failed')\n                });\n                let batches = (_this.get('refundBatches') || []).map(b => b.id === batchId ? updatedBatch : b);\n                _this.set('refundBatches', batches);\n                if (!updatedBatch.allDone && updatedBatch.status !== 'pending_manual') {\n                  setTimeout(poll, 5000);\n                }\n              }\n            }\n          }\n        });\n      };\n      poll();\n    },\n    actions: {\n      saveShippingPreference(patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = _this.session.getLoggedInUserId();\n        var shift_id = _this.session.getLoggedInUserShift();\n        var addressDetails = _this.shipp;\n        var prescriptionemail = $('#ShippingPreference input[name=prescriptionemail]:checked').val();\n        var shippingResult = _this.shippingValidation.shippingValidation(addressDetails);\n        shippingResult['patient_id'] = patient_id;\n        shippingResult['appointment_id'] = appointment_id;\n        shippingResult['created_by'] = login_user_id;\n        shippingResult['prescription_email'] = prescriptionemail;\n        shippingResult['shift_id'] = shift_id;\n        if (shippingResult.dispatchOrPickup == \"D\" && shippingResult !== false && appointment_id !== undefined && appointment_id !== '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n            data: {\n              data: shippingResult\n            },\n            dataType: 'json',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resship_validation) {\n              if (resship_validation.error == true) {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'dicoundisplayerror');\n              } else if (resship_validation.error == false && resship_validation.actions == \"add\") {\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                  data: {\n                    data: shippingResult\n                  },\n                  dataType: 'json',\n                  //async: false,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resship) {\n                    if (resship.error == false) {\n                      swal(\"Shipping preferences has been updated successfully\").then(value => {\n                        _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('ShippingPreference');\n                        _this.send('updateList');\n                        _this.send('updateDoctorList');\n                      });\n                    } else {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n                    }\n                  }\n                });\n              }\n            }\n          });\n        } else if ((shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && (shippingResult !== false || shippingResult == false) && appointment_id !== undefined && appointment_id !== '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/pickupshippingaddress',\n            data: {\n              data: shippingResult\n            },\n            dataType: 'json',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resship) {\n              if (resship.error == false && resship.actions == \"add\") {\n                swal(\"Shipping preferences has been updated successfully\").then(value => {\n                  _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('ShippingPreference');\n                  _this.send('updateList');\n                  _this.send('updateDoctorList');\n                });\n              } else {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n              }\n            }\n          });\n        }\n      },\n      getPatientAddress: function (appointment_id, patient_id, visit_mode) {\n        this.getPatientAddress(appointment_id, patient_id, visit_mode);\n      },\n      // This below function is making for open shipping preference html popup. Shubh Tiwari 28 July 2023\n      setShippingPreference(appointment_id, patient_id, visit_mode) {\n        this.send('getPatientAddress', appointment_id, patient_id, visit_mode);\n      },\n      //This function is called when \"Pay\" link on dashboard is clicked to accept pending advance payment of a patient (ref assign-doctor.js)\n      openPayTransactionPopup: function (appointment_id, patient_id, OldRegistrationNo, first_name, middle_name, last_name, received_amount, page_name, prescribe_doctor, chargeCode, total_visit, eventAction) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var billing_id = 0;\n        var consultancy_fee = 0;\n        var consultancy_print_code = 'SDC';\n        var medicine_print_code = 'MDN';\n        var previous_due_amount = 0; //Nishant 14-Oct-2022 - Set default value\n        var previous_balance_status = 'due'; //Nishant 14-Oct-2022 - Set default value\n        var total_balance_status = ''; //Nishant 14-Oct-2022 - Set default value\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id + '/' + appointment_id + '/' + billing_id;\n        if (patient_id != undefined && appointment_id != undefined) {\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              _this.recalculateAmount.popupLoaderOpen();\n            },\n            success: function (res) {\n              if (res.data != null) {\n                var previous_balance_mode = Math.sign(res.data.due_amount);\n                if (previous_balance_mode == 1) {\n                  previous_balance_status = 'due';\n                  total_balance_status = 'Due';\n                } else if (previous_balance_mode == -1) {\n                  previous_balance_status = 'adv';\n                  total_balance_status = 'Advance';\n                } else if (previous_balance_mode == 0) {\n                  previous_balance_status = 'due';\n                  total_balance_status = 'Due';\n                }\n                previous_due_amount = Math.abs(res.data.due_amount); //Send only positive value\n              }\n              //Nishant 14-Oct-2022 - removed redundant code in if/else passed conditional variables instead.\n              _this.openTransactionPopup(OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, previous_due_amount, received_amount, page_name, prescribe_doctor, chargeCode, previous_balance_status, total_balance_status, total_visit, eventAction);\n            },\n            complete: function (res) {\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      getTotalTransactionDetails: function (value_array) {\n        var _this = this;\n        _this.set('total_transction_details', ' ');\n        _this.set('total_transction_details', value_array);\n        var sum = 0;\n        var credit = 0;\n        var debit = 0;\n        $.each(value_array, function (index, value) {\n          //console.log(value_array)\n          if (value.refund_flag == 1) {\n            debit = parseFloat(debit) + parseFloat(value.mode_price); // + parseFloat(value.pg_amount); //Nishant 08-Feb-2022: PG amount is added already in mode_price so adding again gives wrong total\n          } else {\n            credit = parseFloat(credit) + parseFloat(value.mode_price); //+ parseFloat(value.pg_amount);\n          }\n          sum = parseFloat(credit - debit).toFixed(2);\n        });\n        _this.set('total_transction', sum);\n      },\n      setMedicineTotalandPendingValue: function (value_array) {\n        var _this = this;\n        console.log(value_array);\n        _this.set('payment_value', value_array);\n      },\n      getTabsList(branch_id, shift_id) {\n        var _this = this;\n        _this.getTabsList(branch_id, shift_id);\n      },\n      checkPatientInTab() {\n        //This Below code line is used for getting shift id for login user\n        var shift_id = this.session.getLoggedInUserShift();\n        //This Below code line is used for getting Branch id for login user\n        var branch_id = this.session.getLocation().split('-')[0];\n        //this.getTabsList(branch_id, shift_id);\n        this.send('getTabsList', branch_id, shift_id);\n      },\n      paymentsaved(res) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var message = i18n.t('billing.messages.savedPayment');\n        //console.log(message);\n        Ember.get(_this, 'flashes').success(message);\n      },\n      ResetPopupPaymentMode: function () {\n        var _this = this;\n        _this.selectedPaymentOptions.clear();\n        _this.selectedPaymentName.clear();\n        _this.recalculateAmount.resetPaymentDetailsComponentVariableAfterSubmit();\n      },\n      getDoctorCharges(doctor_id, branch_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        //var doctor_id =  $('.appointment_doctor_id').val();\n        var base_url = _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id + '/' + branch_id;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doctorcharges', res);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      setDateOfBirth() {\n        if (moment($('#date_of_birth').val(), 'YYYY-MM-DD', true).isValid()) {\n          var patient_dob_value = $('#date_of_birth').val();\n          if (patient_dob_value != 'Invalid date' && patient_dob_value != undefined) {\n            var patient_dob = moment(patient_dob_value).format('YYYY-MM-DD');\n          }\n          var current_date = moment().format('YYYY-MM-DD');\n          console.log(patient_dob);\n          console.log(current_date);\n          var today = new Date(current_date);\n          var past = new Date(patient_dob);\n          var age = this.dateDiff(today, past);\n          this.set('age_days', age.days);\n          this.set('age_months', age.months);\n          this.set('age_years', age.years);\n        }\n      },\n      getTotalTransaction: function (appointment_id, billing_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var transation_array = [];\n        if (appointment_id != undefined && billing_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/totalamount/' + appointment_id + '/' + billing_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (trans_res) {\n              transation_array = [];\n              $.each(trans_res, function (index, value_array) {\n                $.each(value_array, function (index, value_array2) {\n                  transation_array.push(value_array2);\n                });\n              });\n              _this.send('getTotalTransactionDetails', transation_array);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      getPatientTransactions: async function (patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var transation_array = [];\n        if (patient_id != undefined) {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/patienttransactions/' + patient_id;\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              // $('#loader').show();\n            },\n            success: function (trans_res) {\n              transation_array = [];\n              $.each(trans_res, function (index, value_array) {\n                $.each(value_array, function (index, value_array2) {\n                  transation_array.push(value_array2);\n                });\n              });\n              _this.send('getTotalTransactionDetails', transation_array);\n              return true;\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              // $('#loader').hide();\n              return true;\n            }\n          });\n        }\n      },\n      //This function added for appointment Type options, rahul khan, 17_02_2021\n      appointmentType(type_code, type_name) {\n        $('#appointment_type').val(type_code);\n        $('.appointmentType_buttons').removeClass('btn-success');\n        $('.appointmentType_buttons').addClass('btn-info');\n        $('.appointmenttype_' + type_code).removeClass('btn-info');\n        $('.appointmenttype_' + type_code).addClass('btn-success');\n        $('.advance_payment_status').prop('checked', false); // Unchecks it\n        if (type_code == 'ocp') {\n          $('.location_row').css('display', 'block');\n        } else {\n          $('.location_row').css('display', 'none');\n          //$(\".ocp_appointments\").css('display','none');\n          //$(\".regular_appointments\").css('display','block');\n        }\n        if (type_code == 'vc') {\n          if ($('.advance_payment_status').prop('checked') == false) {\n            $('.advance_payment_status').trigger('click');\n          }\n        }\n        this.set('appointment_type', type_code);\n        //console.log(\"Code =>\"+type_code+\"Name =>\"+type_name);\n      },\n      //This below function us used for getting the raughly date of birth of patient from age, Rahul khan 05 nov 2019\n      getDateofBirth(date) {\n        var cntOfYears = date.year;\n        var cntOfMonths = date.month;\n        var cntOfDays = date.day;\n        var birthDate = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('MM/DD/YYYY');\n        this.set('date_of_birth', birthDate);\n      },\n      //This resfreshCompleteList function is used for get refreshed the complete list at dashboard page, Rahul Khan, 18 July 2019\n      refreshcompleteList() {\n        // console.log(\"refreshcompleteList function callled\");\n        // let session = this.session; // injected service\n        // session.handleSessionHeaders({\n        //   get: (h) => h === 'X-Session-Expiring' ? 'true' : h === 'X-Seconds-Remaining' ? '5' : null\n        // });\n        this.send('getCompleted');\n        this.send('getMedicineCompleted');\n        this.send('getEmailRMedicineQueuePatientsComplete');\n      },\n      moveToBigScreenDashboard() {\n        jQuery.noConflict();\n        $('#moveToBigScreen').modal('show');\n        $('#moveToBigScreen').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n      },\n      refreshAssignPatientModule() {\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        $('body').addClass('modal-open');\n        this.send('updateList');\n        this.send('updateDkbList');\n        this.send('getCompleted');\n        this.send('getMedicineCompleted');\n        this.send('getEmailRMedicineQueuePatientsComplete');\n        this.send('getNotCompleted');\n        this.send('updateDoctorList');\n        // $(\"#loading\").removeClass('in');\n        // $(\"#loading\").css('display','none');\n        // $('.modal-backdrop').remove();\n        // $('body').removeClass('modal-open');\n      },\n      showForm() {\n        this.set('patients', null);\n        this.set('q', '');\n        this.set('middle_name', '');\n        this.set('last_name', '');\n        // $(\"#modal-functions\").addClass('hidden');\n        $('#on-spot-registration').removeClass('hidden');\n        $('.onspot_listing_div').addClass('hidden');\n        this.send('enableForm');\n      },\n      updateList() {\n        // get branch appointments\n        var branch_detail = this.session.getLocation().split('-');\n        var user_shift_id = this.session.getLoggedInUserShift();\n        var branch_id = branch_detail[0];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        // doctors?branch=1&doctor_id=0b4ce8f5-e51e-11e5-9307-06de367cbccd&limit=500&dateTime=2016-03-11\n\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/branch',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('branchAppointments', res);\n            var bookedAppCount = res.booked['0'].icp.length;\n            var onspotAppCount = res.ocpappt['0'].phone.length + res.ocpappt['0'].email.length + res.ocpappt['0'].ocp.length + res.ocpappt['0'].vc.length;\n            _this.set('bookedAppCount', bookedAppCount);\n            _this.set('onspotAppCount', onspotAppCount);\n          },\n          error: function (error, x, y) {\n            // console.log(error)\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('assigned', res);\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function () {\n            var active_tab = $('#assign-tab-list li.active  a').data('tab');\n            _this.send('showTab', active_tab);\n          }\n        });\n      },\n      assignPatient(doctor_id, patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var branch_detail = this.session.getLocation().split('-');\n        var login_user_id = this.session.getLoggedInUserId();\n        var branch_id = branch_detail[0];\n        var appointment_ids = $('input[name=selected_patient]:checked').map(function () {\n          return $(this).data('ap');\n        }).get();\n        var appointment_id = appointment_ids.join(',');\n        var priority_ids = $('input[name=selected_patient]:checked').map(function () {\n          return $(this).data('priority');\n        }).get();\n        var priority_id = priority_ids.join(',');\n        //alert(priority_id); return false;\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/assignDoctor',\n          data: {\n            branch_id: branch_id,\n            user_id: patient_id,\n            doctor_id_1: doctor_id,\n            appointment_id: appointment_id,\n            priority_id: priority_id,\n            login_id: login_user_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            // _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            // _this.send('getMedicineCompleted');\n            _this.send('getNotCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {} else if (res.validate == 'already_assign') {\n              alert('This patient is already assigned in doctors queue!');\n            }\n          },\n          complete: function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n            //Hide rows immediately from left panel, after assigning patient\n            var patient_ids = $('input[name=selected_patient]:checked').map(function () {\n              return $(this).closest('tr').hide();\n            }).get();\n            // alert(patient_ids);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      cancelAssignment(id) {\n        if (confirm('Are you sure you want to cancel this assignment?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancelAssignment',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            // console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            // _this.send('getCompleted'); These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            _this.send('getNotCompleted');\n            // _this.send('getMedicineCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Assignment cancelled successfully.');\n            }\n          },\n          error: function (error, x, y) {\n            // console.error(error)\n          }\n        });\n      },\n      /* Cancel on-spot reason Popup as on 15 Feb 2020  By Shubh tiwari*/\n      cancelOnSpot(id, advance_payment, booked_from, appointment) {\n        /* Online booked appointments (advance or normal) follow the same\n           cancellation + refund flow used on cancel-appointment/patient,\n           cancel-appointment/doctor and manage-transaction/list routes. */\n        if (booked_from === 'online' || appointment && appointment.appointment_booked_from === 'online') {\n          this.send('cancelOnlineAppointment', id, advance_payment, appointment);\n          return;\n        }\n        // if(confirm(\"Are you sure you want to cancel this appointment?\") == false) {\n        //   return false;\n        // }\n\n        if (advance_payment == 1) {\n          $('#advance-payment-refund-note').show();\n          let utoken = this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/getadvancepayment/',\n            data: {\n              id: id\n            },\n            async: false,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              console.log(res);\n              var amount = res.data[0].credit_amount;\n              $(' #advance-payment-refund-amount').empty().text(amount);\n            },\n            error: function (error, x, y) {\n              // console.error(error)\n            }\n          });\n        } else {\n          $(' #advance-payment-refund-note').hide();\n        }\n        $('#CancelOnspotnotebox').addClass('in');\n        $('#CancelOnspotnotebox').css('display', 'block');\n        $('body').addClass('modal-open');\n        this.set('cancel_appointment_id', id);\n        this.set('cancel_appointment_online', false);\n        $('textarea[name=cancel_onspot_note]').focus();\n        $('textarea[name=cancel_onspot_note]').val('');\n        $('textarea[name=cancel_onspot_note]').removeAttr('readonly');\n      },\n      /* This below function handles cancellation of an online booked appointment\n         from the dashboard. It fetches the gateway transaction, opens the\n         cancellation + refund popup when an amount is refundable, otherwise it\n         falls back to the reason notebox. */\n      cancelOnlineAppointment(id, advance_payment, appointment) {\n        let _this = this;\n        this.set('cancel_appointment_id', id);\n        this.set('cancel_appointment_online', true);\n        this.set('onlineCancelAppointment', appointment || {\n          id: id\n        });\n        this.set('onlineCancelSelectedReason', '');\n        this.set('onlineCancelTransaction', null);\n        this.set('refundBatchesModalOpen', false);\n        this.fetchOnlineAppointmentTransactions(id).then(transactions => {\n          let appt = _this.get('onlineCancelAppointment') || {\n            id: id\n          };\n          let refundAmount = _this.getOnlineRefundAmount(appt, transactions);\n          if (refundAmount > 0) {\n            let rawName = [appt.first_name, appt.middle_name, appt.last_name].filter(Boolean).join(' ');\n            let patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n            let loggedIn = '';\n            try {\n              loggedIn = _this.get('session').getLoggedInUserName();\n            } catch (e) {\n              loggedIn = '';\n            }\n            let title = 'Please note that you, ' + loggedIn + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n            if (patientName) {\n              title = 'Cancelling appointment for: ' + patientName + '. ' + title;\n            }\n            let txn = (transactions || []).find(t => Number(t.appointment_id) === Number(appt.id));\n            _this.set('onlineCancelRows', [{\n              patientName: patientName || 'Unknown Patient',\n              doctorName: appt.doctor_name || '',\n              appointmentId: appt.id || '',\n              dateTime: appt.dateTime || '',\n              amount: refundAmount.toFixed(2),\n              gateway: txn ? txn.gateway || '' : '',\n              visitStatus: appt.visit_status || 0\n            }]);\n            _this.set('onlineCancelTitle', title);\n            _this.set('onlineCancelDisable', appt.visit_status == 2);\n            _this.set('onlineCancelModalOpen', true);\n          } else {\n            _this.send('showOnlineCancelNoteDialog', appt);\n          }\n        }).catch(() => {\n          let appt = _this.get('onlineCancelAppointment') || {\n            id: id\n          };\n          _this.send('showOnlineCancelNoteDialog', appt);\n        });\n      },\n      /* Online appointment with no refundable amount, ask the cancellation reason. */\n      showOnlineCancelNoteDialog(appointment) {\n        let _this = this;\n        let logged_in = this.get('session').getLoggedInUserName();\n        let rawName = [appointment.first_name, appointment.middle_name, appointment.last_name].filter(Boolean).join(' ');\n        let patientName = rawName.replace(/\\b\\w/g, match => match.toUpperCase());\n        let warningText = 'Please note that you, ' + logged_in + ' are attempting to delete or change an appointment of the same day. You may proceed but this will be reported. Please ensure that you are logged in with your credentials in case you are asked to clarify your actions later.';\n        if (patientName) {\n          warningText = 'Cancelling appointment for: ' + patientName + '. ' + warningText;\n        }\n        Swal.fire({\n          html: '<div>' + warningText + '</div><div style=\"color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:8px 10px;font-size:13px;margin-top:10px;\">Note: This is an online appointment with no amount due. The payment gateway and refund popup will not be shown because there is no payment to refund.</div>',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Ok'\n        }).then(result => {\n          if (result.isConfirmed) {\n            $('#advance-payment-refund-note').hide();\n            $('#CancelOnspotnotebox').addClass('in');\n            $('#CancelOnspotnotebox').css('display', 'block');\n            $('body').addClass('modal-open');\n            $('textarea[name=cancel_onspot_note]').val('');\n            $('textarea[name=cancel_onspot_note]').focus();\n            _this.set('cancel_appointment_id', appointment.id);\n            _this.set('cancel_appointment_online', true);\n          } else {\n            _this.set('cancel_appointment_online', false);\n          }\n        });\n      },\n      closeOnlineCancelModal() {\n        this.set('onlineCancelModalOpen', false);\n        this.set('onlineCancelSelectedReason', '');\n        this.set('onlineCancelRows', null);\n        this.set('onlineCancelTitle', '');\n        this.set('onlineCancelTransaction', null);\n        this.set('onlineCancelAppointment', null);\n      },\n      /* Confirm cancellation from the cancellation + refund popup. */\n      confirmOnlineCancel(reason) {\n        let _this = this;\n        let token = this.session.getToken();\n        let appointment = this.get('onlineCancelAppointment');\n        if (!appointment || !appointment.id) {\n          return;\n        }\n        let id = appointment.id;\n        this.set('onlineCancelModalOpen', false);\n        this.set('onlineCancelSelectedReason', '');\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + id + '/cancel',\n          data: {\n            note: reason || 'Cancelled from dashboard'\n          },\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              let amount = parseFloat(String(res.amount || 0).replace(/,/g, ''));\n              if (amount > 0 && res.batch_id) {\n                let refund = {\n                  id: id,\n                  patient: [appointment.first_name, appointment.middle_name, appointment.last_name].filter(Boolean).join(' '),\n                  gateway: res.gateway,\n                  amount: res.amount,\n                  status: 'queued',\n                  ref: null\n                };\n                let batch = {\n                  id: res.batch_id,\n                  status: 'processing',\n                  startedAt: 'just now',\n                  refunds: [refund],\n                  counts: {\n                    total: 1,\n                    processed: 0,\n                    pending: 1,\n                    failed: 0,\n                    queued: 1\n                  },\n                  allDone: false\n                };\n                let batches = (_this.get('refundBatches') || []).slice();\n                batches.unshift(batch);\n                _this.set('refundBatches', batches);\n                _this.pollOnlineCancelBatch(res.batch_id);\n                alert('Appointment cancelled successfully. Refund queued.');\n              } else {\n                alert('Appointment cancelled successfully. No refund applicable.');\n              }\n              _this.send('closeOnlineCancelModal');\n              _this.set('cancel_appointment_online', false);\n              _this.refreshDashboardLists();\n              if (amount > 0 && res.batch_id) {\n                _this.set('refundBatchesModalOpen', true);\n              }\n            } else if (res.validation == 'notcancelcurrentdate_appointment') {\n              alert(res.message || 'Cannot cancel current date appointment');\n            } else if (res.validation == 'visitcomplete') {\n              alert(res.message || 'Visit already completed');\n            } else {\n              alert(res.message || 'Failed to cancel appointment');\n            }\n          },\n          error: function () {\n            alert('Failed to cancel appointment. Please try again.');\n          }\n        });\n      },\n      closeRefundBatch(batchId) {\n        let batches = (this.get('refundBatches') || []).slice();\n        this.set('refundBatches', batches.filter(b => b.id !== batchId));\n        if ((this.get('refundBatches') || []).length === 0) {\n          this.set('refundBatchesModalOpen', false);\n        }\n      },\n      closeRefundBatchesModal() {\n        this.set('refundBatchesModalOpen', false);\n      },\n      /* for booked appointment print */\n      bookedPrint(shift_id, branch_id) {\n        let utoken = this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/printBooked/' + branch_id + '/' + shift_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data.length > 0) {\n              var now = moment();\n              var datetime = moment(now).format('DD-MMM-YYYY');\n              var html = '';\n              html += '<h3 style=\"text-align:center;\">Booked Appointment List of ' + datetime + '</h3>';\n              html += '<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" width=\"100%\">';\n              html += '<tr><th>Serial Number</th><th>Patient ID</th><th>Name</th><th>Doctor</th><th>Appointment Time</th></tr>';\n              res.data.forEach(function (element, i) {\n                var i = i + 1;\n                if (element.OldRegistrationNo) {\n                  var patient_id = element.OldRegistrationNo;\n                } else {\n                  var patient_id = 'NP';\n                }\n                html += '<tr>';\n                html += '<td>' + i + '</td>';\n                html += '<td>' + patient_id + '</td>';\n                html += '<td style=\"text-transform: capitalize;\">' + element.first_name + ' ' + element.last_name + '</td>';\n                html += '<td>' + element.label + '</td>';\n                html += '<td>' + element.appointment_time + '</td>';\n                html += '<tr>';\n              });\n              html += '</table>';\n              var myWindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');\n              myWindow.document.write(html);\n              myWindow.document.close();\n              myWindow.focus();\n              setTimeout(() => {\n                myWindow.print();\n              }, 1000);\n            } else {\n              var html = '';\n              var now = moment();\n              var datetime = moment(now).format('DD-MMM-YYYY');\n              html += '<h3 style=\"text-align:center;\">Booked Appointment List of ' + datetime + '</h3>';\n              html += '<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" width=\"100%\">';\n              html += '<tr><th>Serial Number</th><th>Patient ID</th><th>Name</th><th>Doctor</th><th>Appointment Time</th></tr>';\n              html += '<tr><td colspan=\"5\" width=\"100%\" style=\"text-align:center;\"> Sorry, No record found.</td></tr>';\n              html += '</table>';\n              var myWindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');\n              myWindow.document.write(html);\n              myWindow.document.close();\n              myWindow.focus();\n              setTimeout(() => {\n                myWindow.print();\n              }, 1000);\n            }\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      },\n      /* for on-spot print */\n      onspotPrint(shift_id, branch_id) {\n        let utoken = this.session.getToken();\n        var start_queue_number = 1;\n        if ($('#print_page_id').val() > 0) {\n          start_queue_number = $('#print_page_id').val();\n        }\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/onspot/today/' + shift_id + '/' + start_queue_number + '/' + branch_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data.length > 0) {\n              var now = moment();\n              var datetime = moment(now).format('DD-MMM-YYYY');\n              var html = '';\n              html += '<h3 style=\"text-align:center;\">On-spot List of ' + datetime + '</h3>';\n              html += '<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" width=\"100%\">';\n              html += '<tr><th>Token Number</th><th>Patient ID</th><th>Name</th><th>Doctor</th><th>Time</th></tr>';\n              res.data.forEach(function (element, i) {\n                if (element.OldRegistrationNo) {\n                  var patient_id = element.OldRegistrationNo;\n                } else {\n                  var patient_id = 'NP';\n                }\n                html += '<tr>';\n                html += '<td>' + element.queue_number + '</td>';\n                html += '<td>' + patient_id + '</td>';\n                html += '<td style=\"text-transform: capitalize;\">' + element.first_name + ' ' + element.last_name + '</td>';\n                html += '<td>' + element.label + '</td>';\n                html += '<td>' + element.appointment_time + '</td>';\n                html += '<tr>';\n              });\n              html += '</table>';\n              var myWindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');\n              myWindow.document.write(html);\n              myWindow.document.close();\n              myWindow.focus();\n              setTimeout(() => {\n                myWindow.print();\n              }, 1000);\n            } else {\n              var html = '';\n              var now = moment();\n              var datetime = moment(now).format('DD-MMM-YYYY');\n              html += '<h3 style=\"text-align:center;\">On-spot List of ' + datetime + '</h3>';\n              html += '<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\" width=\"100%\">';\n              html += '<tr><th>Token Number</th><th>Patient ID</th><th>Name</th><th>Doctor</th><th>Time</th></tr>';\n              html += '<tr><td colspan=\"5\" width=\"100%\" style=\"text-align:center;\"> Sorry, No record found.</td></tr>';\n              html += '</table>';\n              var myWindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');\n              myWindow.document.write(html);\n              myWindow.document.close();\n              myWindow.focus();\n              setTimeout(() => {\n                myWindow.print();\n              }, 1000);\n            }\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      },\n      /* for urgent mark */\n      frontUrgentPatient(appointment_id, urgent_status, urgent_note) {\n        let utoken = this.session.getToken();\n        if (urgent_status == '1') {\n          var note = urgent_note.split('&lt;').join('<').split('&gt;').join('>');\n          $('#front_urgent_status').prop('checked', true);\n          $('#urgent_note').val('');\n          $('#urgent_note').val(note);\n          $('#urgent_status_check').val(urgent_status);\n          this.set('urgent_mark_id', appointment_id);\n        } else {\n          $('#front_urgent_status').prop('checked', false);\n          $('#urgent_note').val('');\n          $('#urgent_status_check').val('');\n          this.set('urgent_mark_id', appointment_id);\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/checkurgentnote',\n            data: {\n              appointment_id: appointment_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //console.log(res);\n              if (res && res.data && res.data.length > 0) {\n                var note = res.data[0].note;\n                $('#urgent_note').val(note);\n              } else {\n                $('#urgent_note').val('');\n              }\n            },\n            error: function (error, x, y) {\n              console.error(error);\n            },\n            complete: function (res) {\n              //console.log(res);\n            }\n          });\n        }\n      },\n      frontSaveUrgentNote() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var stage = 0;\n        var ajaxCall = 0;\n        var noteInfo = '';\n        var isDoctor = _this.get('isDoctor');\n        //This Below code line is used for getting shift id for login user\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        //This Below code line is used for getting Branch id for login user\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        var appointment_id = this.urgent_mark_id;\n        var mark_urgent = $('#front_urgent_status:checked').val();\n        var urgent_note = $.trim($('#urgent_note').val());\n        var urgent_status_check = $('#urgent_status_check').val();\n        if ((mark_urgent == '' || mark_urgent == undefined || urgent_note == '' || urgent_note == undefined) && urgent_status_check == '') {\n          alert('Please mark checkbox and provide notes!');\n        } else if ((urgent_note == '' || urgent_note == undefined) && urgent_status_check == '1') {\n          alert('Please enter urgent reason!');\n        } else if (urgent_status_check == '1' && (mark_urgent == '' || mark_urgent == undefined)) {\n          if (confirm('Are you sure you want to change status urgent to non-urgent?')) {\n            ajaxCall = 1;\n            noteInfo = 'false';\n          } else {\n            ajaxCall = 2;\n          }\n        } else {\n          ajaxCall = 1;\n          noteInfo = 'true';\n        }\n        if (ajaxCall == 1) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/changeurgentstatus',\n            data: {\n              appointment_id: appointment_id,\n              mark_urgent: mark_urgent,\n              urgent_note: urgent_note\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.validate == 'true' && urgent_status_check == '') {\n                alert('Urgent note successfully added');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'true') {\n                alert('Urgent notes successfully updated');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'false') {\n                alert('Urgent status successfully updated');\n              }\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              _this.send('getNotCompleted');\n              if (isDoctor == true) {\n                _this.send('updateDoctorList');\n              }\n              jQuery.noConflict();\n              $('#frontMarkUrgent').modal('hide');\n              return true;\n            },\n            error: function (error, x, y) {}\n          });\n        }\n      },\n      /* This function is used for cancel onspot appointment with reason as on 15 Feb 2020  By Shubh tiwari*/\n      cancelOnspottWithReason() {\n        var _this = this;\n        let token = _this.session.getToken();\n        var id = _this.get('cancel_appointment_id');\n        console.log(id);\n        if ($.trim($('textarea[name=cancel_onspot_note]').val()) == '') {\n          alert('Please enter a reason for cancellation.');\n          $('textarea[name=cancel_onspot_note]').focus();\n          return false;\n        }\n        if ($.trim($('textarea[name=cancel_onspot_note]').val().length) < 5) {\n          alert('Please enter minimum five characters reason for cancellation.');\n          $('textarea[name=cancel_onspot_note]').focus();\n          return false;\n        }\n        _this.set('cancel_onspot_note', $('textarea[name=cancel_onspot_note]').val());\n        $('#CancelOnspotnotebox').removeClass('in');\n        $('#CancelOnspotnotebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        var note = _this.get('cancel_onspot_note');\n        var isDoctor = _this.get('isDoctor');\n        var utoken = _this.get('session').getLoggedInUserId();\n        if (_this.get('cancel_appointment_online') === true) {\n          _this.set('cancel_appointment_online', false);\n          _this.set('refundBatchesModalOpen', false);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'v1/appointments/' + id + '/cancel',\n            data: {\n              note: note\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                let refundAmount = parseFloat(String(res.amount || 0).replace(/,/g, ''));\n                if (refundAmount > 0 && res.batch_id) {\n                  let refund = {\n                    id: id,\n                    patient: '',\n                    gateway: res.gateway,\n                    amount: res.amount,\n                    status: 'queued',\n                    ref: null\n                  };\n                  let batch = {\n                    id: res.batch_id,\n                    status: 'processing',\n                    startedAt: 'just now',\n                    refunds: [refund],\n                    counts: {\n                      total: 1,\n                      processed: 0,\n                      pending: 1,\n                      failed: 0,\n                      queued: 1\n                    },\n                    allDone: false\n                  };\n                  let batches = (_this.get('refundBatches') || []).slice();\n                  batches.unshift(batch);\n                  _this.set('refundBatches', batches);\n                  _this.pollOnlineCancelBatch(res.batch_id);\n                  _this.set('refundBatchesModalOpen', true);\n                  alert('Appointment cancelled successfully. Refund queued.');\n                } else {\n                  alert('Appointment cancelled successfully. No refund applicable.');\n                }\n                _this.set('cancel_onspot_note', ' ');\n                _this.refreshDashboardLists();\n              } else if (res.validation == 'notcancelcurrentdate_appointment') {\n                alert(res.message || 'Cannot cancel current date appointment');\n              } else if (res.validation == 'visitcomplete') {\n                alert(res.message || 'Visit already completed');\n              } else {\n                alert(res.message || 'Failed to cancel appointment');\n              }\n            },\n            error: function () {\n              alert('Failed to cancel appointment. Please try again.');\n            }\n          });\n          return;\n        }\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancel',\n          data: {\n            id: id,\n            user_id: utoken,\n            note: note\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              alert('Appointment cancelled successfully.');\n              _this.set('cancel_onspot_note', ' ');\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              _this.send('getNotCompleted');\n              if (isDoctor == true) {\n                _this.send('updateDoctorList');\n              }\n            } else if (res.validation == 'visitcomplete') {\n              alert(res.message);\n            }\n          },\n          error: function (error, x, y) {\n            // console.error(error)\n          }\n        });\n      },\n      closeNoteBox() {\n        $('#CancelOnspotnotebox').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        this.set('cancel_onspot_note', ' ');\n        this.set('cancel_appointment_online', false);\n      },\n      markComplete(id, prescribed, doctor_id, patient_id) {\n        console.log(id);\n        console.log(prescribed);\n        console.log(doctor_id);\n        console.log(patient_id);\n        if (confirm('Are you sure you want to complete this appointment?') == false) {\n          return false;\n        }\n        var _this = this;\n        var isDoctor = this.isDoctor;\n\n        // $.ajax({\n        //   method: 'POST',\n        //   url: ENV.APP.api_url + 'appointments/markComplete',\n        //   data: {\n        //     id: id,\n        //     prescribed: prescribed,\n        //     doctor_id: doctor_id,\n        //     shift_id: _this.get('user_shift_id'),\n        //   },\n        //   dataType: 'json',\n        //   success: function (res) {\n        //     //console.log(res);\n        //     _this.send('updateList');\n        //     _this.send('updateDkbList');\n        //     // _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n        //     //  _this.send('getMedicineCompleted');\n        //     _this.send('getNotCompleted');\n        //     if (isDoctor == true) {\n        //       _this.send('updateDoctorList');\n        //     }\n        //     if (res.validate == 'true') {\n        //       alert('Appointment complete.');\n        //       //This script is used for disable prescribed i-check icon after click first\n        //       setTimeout(function () {\n        //         //$(\"#prescribed\"+patient_id).addClass(\"prescribedisabled\");\n        //         $('.prescribed' + patient_id).addClass('prescribedisabled');\n        //       }, 500);\n        //     } else {\n        //       alert('Sorry, some error occured');\n        //     }\n        //   },\n        //   error: function (error, x, y) {\n        //     console.log(error);\n        //   },\n        //   complete: function (res) {\n        //     //$(\"#prescribed\"+patient_id).removeAttr(\"disabled\");\n        //   },\n        // });\n      },\n      markCompleteMedicineC(id) {\n        if (confirm('Are you sure you want to complete this appointment?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/markCompleteMedicine',\n          data: {\n            id: id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            // _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            //  _this.send('getMedicineCompleted');\n            _this.send('getNotCompleted');\n            if (res.validate == 'true') {\n              alert('Appointment complete.');\n            } else {\n              alert('Sorry, some error occured');\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function (res) {\n            // console.log(res);\n          }\n        });\n      },\n      closeReAssignModal() {\n        this.set('reassign_id', null);\n        $('#reAssignDoctor').addClass('fade');\n        $('.modal-backdrop').click();\n      },\n      reAssignModal(id) {\n        this.set('reassign_id', id);\n        $('#reAssignDoctor').removeClass('fade');\n      },\n      reAssign(id, doc_id, case_taken, reassigned_doctor_id, patient_id) {\n        // var doc_id = $(\"select[name=reassign_doc]\").val();\n        // var id = this.get(\"reassign_id\",id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/reAssign',\n          data: {\n            id: id,\n            doctor_id: doc_id,\n            case_taken: case_taken,\n            reassigned_doctor_id: reassigned_doctor_id,\n            shift_id: _this.get('user_shift_id')\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            //_this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            // _this.send('getMedicineCompleted');\n            _this.send('getNotCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              // alert('Reassign successfull.')\n              alert('Case Taken Successfull!');\n              setTimeout(function () {\n                //$(\"#casetaken\"+patient_id).addClass(\"casetakendisabled\");\n                $('.casetaken' + patient_id).addClass('casetakendisabled');\n              }, 500);\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      closeBigScreenModal() {\n        jQuery.noConflict();\n        $('#moveToBigScreen').modal('hide');\n      },\n      closeReScheduleModal() {\n        this.set('reschedule_id', null);\n        //$('#reSchedule').hide();\n        //$('.modal-backdrop').click();\n        jQuery.noConflict();\n        $('#reSchedule').modal('hide');\n      },\n      reScheduleModal(id) {\n        this.set('reschedule_id', id);\n        //$('#reSchedule').show();\n        jQuery.noConflict();\n        $('#reSchedule').modal('show');\n        $('#reSchedule').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n      },\n      reSchedule() {\n        var doc_id = $('#reSchedule select[name=reschedule_doc]').val();\n        var id = this.get('reschedule_id', id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/reSchedule',\n          data: {\n            id: id,\n            doctor_id: doc_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            //  _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            // _this.send('getMedicineCompleted');\n            _this.send('getNotCompleted');\n            if (isDoctor == true) {\n              _this.send('updateDoctorList');\n            }\n            if (res.validate == 'true') {\n              alert('Re-Assign successfull!');\n            }\n            _this.send('closeReScheduleModal');\n          },\n          error: function (error, x, y) {\n            //console.log(error);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n            //$('body').click();\n          }\n        });\n\n        //this.send(\"closeReScheduleModal\");\n      },\n      updateDkbList() {\n        var dkb_id = _environment.default.APP.dkb_id;\n        var branch_detail = this.session.getLocation().split('-');\n        var user_shift_id = this.session.getLoggedInUserShift();\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            doctor_id: dkb_id,\n            shift_id: user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('dkb_appointments', res);\n            //console.log('shubh-cotroller-2');\n            //  _this.send('refreshModel');\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      },\n      updateDoctorList() {\n        var branch_detail = this.session.getLocation().split('-');\n        var user_shift_id = this.session.getLoggedInUserShift();\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            doctor_id: doctor_id,\n            shift_id: user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('current_doc_appointments', res);\n            //console.log('shubh-cotroller-3');\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      showTab(tab) {\n        $('.tab-pane.active').removeClass('active');\n        $('#assign-tab-list > li.active').removeClass('active');\n        $('#' + tab + '.tab-pane').addClass('active');\n        $('[data-tab=' + tab + ']').parent('li').addClass('active');\n        this.set('active_tab', tab);\n        // this.send('updateDkbList')\n      },\n      getCompleted() {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var shift_id = this.session.getLoggedInUserShift();\n        var stage = 2;\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/clinicpatients?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //  console.log(res);\n            var ParseData = JSON.parse(res);\n            var icpVcComplete = ParseData.data.filter(function (el) {\n              return el.appointment_type == 'icp' || el.appointment_type == 'vc';\n            });\n            var phoneComplete = ParseData.data.filter(function (el) {\n              return el.appointment_type == 'phone';\n            });\n            var emailComplete = ParseData.data.filter(function (el) {\n              return el.appointment_type == 'email';\n            });\n            var ocpComplete = ParseData.data.filter(function (el) {\n              return el.appointment_type == 'ocp';\n            });\n\n            //console.log(icpVcComplete);\n            _this.set('completed', ParseData.data);\n            _this.set('icpVcComplete', icpVcComplete);\n            _this.set('phoneComplete', phoneComplete);\n            _this.set('emailComplete', emailComplete);\n            _this.set('ocpComplete', ocpComplete);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n\n        //This below ajax request code in commented with the above one for reset visit complete condition,Rahul Khan, 18 July 2019\n        /*  $.ajax({\n              method: \"GET\",\n              url: ENV.APP.api_url+\"appointments/completed\",\n              data :{branch_id:branch_id,dateTime:today,shift_id:this.get('user_shift_id')},\n              dataType:'json',\n              success: function(res){\n          _this.set('completed', res.data);\n              },\n              error: function(error, x, y){\n                console.error(error);\n        },\n          complete: function(res){\n            console.log(res);\n        }\n            });*/\n      },\n      getMedicineCompleted() {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var shift_id = this.session.getLoggedInUserShift();\n        var stage = 2;\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/medicinepatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var ParseData = JSON.parse(res);\n            //  console.log(arr);\n            _this.set('medicinecompleted', ParseData.data);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n        //This below ajax request code in commented with the above one for reset visit complete condition,Rahul Khan, 18 July 2019\n        /* $.ajax({\n             method: \"GET\",\n             url: ENV.APP.api_url+\"appointments/medicinecompleted\",\n             data :{branch_id:branch_id,dateTime:today,shift_id:this.get('user_shift_id')},\n             dataType:'json',\n             success: function(res){\n         _this.set('medicinecompleted', res.data);\n             },\n             error: function(error, x, y){\n               console.error(error);\n        },\n         complete: function(res){\n           console.log(res);\n        }\n           });*/\n      },\n      getEmailRMedicineQueuePatientsComplete: function () {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var today = moment().format('YYYY-MM-DD');\n        var shift_id = this.session.getLoggedInUserShift();\n        var stage = 2;\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/emailrmpatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var ParseData = JSON.parse(res);\n            _this.set('EmailRepeatMedicinePatientsBillComplete', ParseData.data);\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      },\n      getNotCompleted() {\n        var branch_detail = this.session.getLocation().split('-');\n        var user_shift_id = this.session.getLoggedInUserShift();\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/notcompleted',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('notcompleted', res.data);\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          },\n          complete: function (res) {\n            //console.log(res);\n          }\n        });\n      },\n      enableForm() {\n        $('#on-spot-modal select:disabled').prop('disabled', false);\n        this.set('mode', 'clinic');\n        $('#on-spot-modal select[name=mode]').val('clinic');\n        $('#on-spot-modal input, #on-spot-modal textarea').prop('readonly', false);\n      },\n      disableForm() {\n        $('#on-spot-modal select:disabled').prop('disabled', true);\n        $('#on-spot-modal input, #on-spot-modal textarea').prop('readonly', true);\n      },\n      onSpotModal() {\n        // alert(\"a\");\n        //console.log(\"Controller Dasbaord\");\n        this.send('enableForm');\n        jQuery.noConflict();\n        $('#on-spot-modal').modal('show');\n        $('#on-spot-modal').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        //$('#on-spot-modal').removeClass('hidden');\n        $('.modal-backdrop').click();\n        $('.appointmenttype_icp').click();\n      },\n      closeOnSpotModal() {\n        $('#modal-functions').removeClass('hidden');\n        $('#on-spot-registration').addClass('hidden');\n        //form reset\n        $('#on-spot-registration input,#on-spot-registration select,#on-spot-registration textarea').val('');\n        $('#on-spot-registration select[name=priority]').val('normal');\n        this.set('q', '');\n        this.set('patients', null);\n        this.set('onSpotDoc', null);\n        this.send('resetPatientData'); //Need to reset the local properties otherwise blank onspot registeration form can be submitted\n        $('select[name=discount_category]').val('');\n        $('select[name=onSpotDoc]').val('');\n        this.send('disableForm');\n        //$('#on-spot-modal').removeClass('in');\n        //$('#on-spot-modal').css('display', 'none');\n        jQuery.noConflict();\n        $('#on-spot-modal').modal('hide');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n      },\n      //Nishant 3-Feb-2023: Function to reset patient data\n      resetPatientData() {\n        this.set('date_time_doctor', '');\n        this.set('state', '');\n        this.set('other_state', '');\n        this.set('other_city', '');\n        this.set('country', '');\n        this.set('phone_1', '');\n        this.set('phone_2', '');\n        this.set('date_of_birth', '');\n        this.set('age_years', '');\n        this.set('age_months', '');\n        this.set('age_days', '');\n        this.set('first_name', '');\n        this.set('middle_name', '');\n        this.set('last_name', '');\n        this.set('email_id', '');\n        this.set('address_1', '');\n        this.set('address_2', '');\n        this.set('pin', '');\n        this.set('mode', '');\n        this.set('note', '');\n        this.set('priority', 'normal');\n        this.set('title_prefix', '');\n        this.set('selected_discount_category', '');\n        this.set('category', '');\n        this.set('blood_type', '');\n      },\n      setCategory() {\n        var category = $('select[name=category]').val();\n        this.set('category', category);\n      },\n      setOnspotDoc() {\n        var type = $('#onSpotDoc').val();\n        if (type == 'medicine' || type == \"emailrm\") {\n          $('.appointment_type_div').hide();\n          //Nishant 17-Nov-2022: fixing issue 618 - remove advance payment in case of medicine queue\n          $('.advance_payment_status').prop('disabled', true);\n          $('.advance_payment_status').prop('checked', false);\n        } else {\n          $('.appointment_type_div').show();\n          $('.advance_payment_status').prop('disabled', false);\n          var type_code = this.appointment_type;\n          if (type_code == 'vc') {\n            if ($('.advance_payment_status').prop('checked') == false) {\n              $('.advance_payment_status').trigger('click');\n            }\n          }\n        }\n        var onSpotDoc = $('select[name=onSpotDoc]').val();\n        this.set('onSpotDoc', onSpotDoc);\n      },\n      setTitlePrefix() {\n        var title_prefix = $('select[name=title_prefix]').val();\n        this.set('title_prefix', title_prefix);\n      },\n      setPriority() {\n        var priority = $('select[name=priority]').val();\n        this.set('priority', priority);\n      },\n      setBloodType() {\n        var blood_type = $('select[name=blood_type]').val();\n        this.set('blood_type', blood_type);\n      },\n      setAppointmentDoctor() {\n        var appointment_doctor = $('select[name=appointment_doctor]').val();\n        this.set('appointment_doctor', appointment_doctor);\n      },\n      search_patient() {\n        $('#on-spot-registration').addClass('hidden');\n        $('.onspot_listing_div').removeClass('hidden');\n        var _this = this;\n        var utoken = this.session.getToken();\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            q: q\n          },\n          success: function (res) {\n            _this.set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              //\t$('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.set('p', page);\n      },\n      updateLocationParams() {\n        var city_id = $('select[name=city]').val();\n        var selected_city = $.grep(this.cities, function (v, i) {\n          return v.id == city_id;\n        });\n        this.set('selected_city', selected_city.id);\n        this.set('state', selected_city[0].state);\n        this.set('country', selected_city[0].country);\n      },\n      //This below function is used for select value of Discount category for patient, Rahul Khan\n      updateDiscountCategoty() {\n        var discount_category_id_id = $('select[name=discount_category]').val();\n        this.set('selected_discount_category', discount_category_id_id);\n      },\n      updateCountry() {\n        let utoken = this.session.getToken();\n        var country_id = $('select[name=country]').val();\n        this.set('selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('pstates', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateState() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var state_id = $('select[name=state]').val();\n        _this.set('selected_state', state_id);\n\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n        /* AJAX call */\n\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //This below line code is added for resolving the issue in on spot appointment, Rahul Khan\n            _this.set('cities', res.data);\n\n            //_this.set('patient').set('cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#other_state').val('').addClass('hidden');\n          /* AJAX call */\n\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              //This below line code is added for resolving the issue in on spot appointment, Rahul Khan\n              _this.set('cities', res.data);\n\n              //_this.set('patient').set('cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#other_state').removeClass('hidden');\n        }\n      },\n      updateCity() {\n        var city_id = $('select[name=city]').val();\n        this.set('selected_city', city_id);\n        if (city_id != 'other') {\n          $('#other_city').val('').addClass('hidden');\n        } else {\n          $('#other_city').removeClass('hidden');\n          this.set('selected_city', 'other');\n        }\n      },\n      moveToBigScreen() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var patient_ids = $('input[name=selected_patient_big]:checked').map(function () {\n          return $(this).val();\n        }).get();\n        var patient_id = patient_ids.join(',');\n        var appointment_ids = $('input[name=selected_patient_big]:checked').map(function () {\n          return $(this).data('ap');\n        }).get();\n        /* Below code get all ids of absent patient\n        1. change add condition for \"|| (absent_id=='')\"\n        2. initlaze patient_id and absent_id\n        Date 14_nov_2017, Rahul khan\n        */\n        //patient_id ='';\n        //absent_id ='';\n        var absent_ids = $('input[name=big_screen_absent]:checked').map(function () {\n          return $(this).val();\n        }).get();\n        var absent_id = absent_ids.join(',');\n        //alert(absent_id);\n        var appointment_id = appointment_ids.join(',');\n        var doctor_id = $('#bigscreen_doc').val();\n        var isDoctor = this.isDoctor;\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/movetobigscreen',\n          data: {\n            id: appointment_id,\n            doctor_id: doctor_id,\n            patient_id: patient_id,\n            absent_id: absent_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          beforeSend: function () {\n            if (patient_id == '' && absent_id == '') {\n              alert('Please Select Patients.');\n              return false;\n            }\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            //console.log(res.validate);\n            if (res.validate == 'true') {\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              // _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n              _this.send('getNotCompleted');\n              _this.send('updateDoctorList');\n              _this.send('closeOnSpotModal');\n              _this.send('closeBigScreenModal');\n              alert('Patients moved to Big Screen successfully!');\n            } else if (res.validate == 'false') {\n              alert('There was some issue in moving patients, Please try again.');\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function (res) {\n            //console.log(res);\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      moveToBigScreenMedicine() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var patient_ids = $('input[name=selected_patient_big_medicine]:checked').map(function () {\n          return $(this).data('ap');\n        }).get();\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var uid = this.session.getLoggedInUserId();\n        var data = {\n          branch_id: branch_id,\n          patient_ids: patient_ids,\n          uid: uid,\n          shift_id: this.user_shift_id\n        };\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/movetobigscreenmedicine',\n          data: data,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            if (patient_ids == '') {\n              alert('Please Select Patients.');\n              return false;\n            }\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            //console.log(res.validate);\n            if (res.validate == 'true') {\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              //  _this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n              _this.send('updateDoctorList');\n              _this.send('closeOnSpotModal');\n              alert('Patients moved to Big Screen successfully!');\n            } else if (res.validate == 'false') {\n              alert('There was some issue in moving patients, Please try again.');\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function (res) {\n            //console.log(res);\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      /***********************************End Onsubmit*********************************** */\n      async submitOnSpot(patient_id, onspot, OldRegistrationNo, first_name, middle_name, last_name) {\n        // console.log(patient_id);\n\n        //console.log(\"dashboard controller\");\n        //return false;\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var onSpotDoc = this.onSpotDoc;\n        var urgentStatus = $('input[id=\"urgent_status\"]:checked').val();\n        var urgentNote = $('#urgenttagnote').val();\n        if (urgentStatus != 1) {\n          urgentStatus = 0;\n        }\n        //console.log($('input[id=\"urgent_status\"]:checked').val());\n        if (onSpotDoc == null || onSpotDoc == '') {\n          alert('Please Select a doctor.');\n          $('select[name=onSpotDoc]').focus();\n          return false;\n        } else if ($.trim($('#appointment_type').val()) == '' && onSpotDoc != 'medicine') {\n          //console.log(data);\n          alert('Please select appointment type');\n          $('#appointment_type').focus();\n          return false;\n        } else if (urgentStatus == 1 && (urgentNote == '' || urgentNote == undefined)) {\n          alert('Please enter urgent reason');\n          $('#urgenttagnote').focus();\n          return false;\n        }\n        // console.log(undefined);\n        //var patient_id_value = patient_id;\n        /*This below code is used for blocking the patient for New Registration, Shubh Tiwari 03 July 2023 */\n        if (onSpotDoc == 'medicine' && OldRegistrationNo == '' || onSpotDoc == 'emailrm' && OldRegistrationNo == '') {\n          alert(\"New patient can't be registerd for medicine queue.\");\n          // patient_id = undefined;\n          //delete patient_id;\n          return false;\n        }\n        if (patient_id == '') {\n          patient_id = undefined;\n        }\n        if (patient_id == undefined && $('.appointment_patient_id').val() != '') {\n          patient_id = $('.appointment_patient_id').val();\n        }\n        var uid = this.session.getLoggedInUserId();\n        var patient_id = patient_id || '';\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        if (patient_id == undefined || patient_id == '') {\n          //Nishant 1 Feb2023: This is a new patient registration so we setup the data to post\n          var patient_data = {\n            branch_id: branch_id,\n            first_name: this.first_name,\n            middle_name: this.middle_name,\n            last_name: this.last_name,\n            gender: this.gender,\n            date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n            age_years: this.age_years,\n            age_months: this.age_months,\n            age_days: this.age_days,\n            phone_1: this.phone_1,\n            phone_2: this.phone_2,\n            email_id: this.email_id,\n            address_1: this.address_1,\n            address_2: this.address_2,\n            title_prefix: this.title_prefix,\n            other_state: this.other_state,\n            other_city: this.other_city,\n            zip: this.zip,\n            mode: this.mode,\n            note: this.note,\n            category: this.category,\n            discount_category: this.selected_discount_category,\n            priority: this.priority,\n            blood_type: this.blood_type,\n            city: this.selected_city,\n            // city:$(\"select[name=city]\").val(),\n            state: this.selected_state,\n            country: this.selected_country,\n            uid: uid,\n            shift_id: this.user_shift_id\n          };\n        }\n        if ($('input[name=\"advance_payment_status\"]:checked').length > 0) {\n          this.set('advance_payment_status', 1);\n          if ($('.advance_payment_obj').val() == '') {\n            var location_id = _this.session.getLocation().split('-')[0];\n            _this.send('getDoctorCharges', onSpotDoc, location_id);\n            if (patient_id != undefined && patient_id != '') {\n              var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + patient_id;\n              $.ajax({\n                url: base_url,\n                method: 'GET',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  _this.recalculateAmount.popupLoaderOpen();\n                },\n                success: function (res) {\n                  if (res.data != null) {\n                    var previous_balance_mode = Math.sign(res.data.due_amount);\n                    if (previous_balance_mode == 1) {\n                      var previous_balance_status = 'due';\n                      var mode_value = '0';\n                      var total_balance_status = 'Due';\n                    } else if (previous_balance_mode == -1) {\n                      var previous_balance_status = 'adv';\n                      var mode_value = '1';\n                      var total_balance_status = 'Advance';\n                    } else if (previous_balance_mode == 0) {\n                      var previous_balance_status = 'due';\n                      var mode_value = '0';\n                      var total_balance_status = 'Due';\n                    }\n                    _this.send('setMedicineTotalandPendingValue', {\n                      OldRegistrationNo: OldRegistrationNo,\n                      FirstName: first_name,\n                      MiddleName: middle_name,\n                      LastName: last_name,\n                      VisitDue: Math.abs(parseFloat(res.data.due_amount).toFixed(2)),\n                      PreviousBalance: Math.abs(parseFloat(res.data.due_amount).toFixed(2)),\n                      ReceivedAmount: 0,\n                      TotalDue: 0,\n                      ModeValue: mode_value,\n                      patientId: patient_id,\n                      PrintValue: 0,\n                      ShippingResult: 0,\n                      PageName: 'appointment',\n                      MedicinePrintCode: 'MDN',\n                      ConsultancyPrintCode: 'SDC',\n                      ConsultancyFee: 0,\n                      TotalBalanceStatus: total_balance_status,\n                      VisitingId: 0,\n                      BillingId: 0,\n                      PrescribeDoctor: onSpotDoc,\n                      PreviousBalanceStatus: previous_balance_status,\n                      paylaterAmount: res.data.due_amount,\n                      currentPGAmount: 0,\n                      PreviousPGAmount: 0\n                    });\n                  } else {\n                    _this.send('setMedicineTotalandPendingValue', {\n                      OldRegistrationNo: OldRegistrationNo,\n                      FirstName: first_name,\n                      MiddleName: middle_name,\n                      LastName: last_name,\n                      VisitDue: 0,\n                      PreviousBalance: 0,\n                      ReceivedAmount: 0,\n                      TotalDue: 0,\n                      ModeValue: 0,\n                      patientId: patient_id,\n                      PrintValue: 0,\n                      ShippingResult: 0,\n                      PageName: 'appointment',\n                      MedicinePrintCode: 'MDN',\n                      ConsultancyPrintCode: 'SDC',\n                      ConsultancyFee: 0,\n                      TotalBalanceStatus: 'Due',\n                      VisitingId: 0,\n                      BillingId: 0,\n                      PrescribeDoctor: onSpotDoc,\n                      PreviousBalanceStatus: 'due',\n                      paylaterAmount: 0,\n                      currentPGAmount: 0,\n                      PreviousPGAmount: 0\n                    });\n                  }\n                },\n                complete: function () {\n                  _this.recalculateAmount.popupLoaderClose();\n                }\n              });\n            } else {\n              //Nishant 1-Feb-2023: This is a new patient registration\n\n              //validate patient info before opening the popup, else return\n              if (!this.validatePatient(patient_data)) {\n                return false;\n              }\n              _this.send('setMedicineTotalandPendingValue', {\n                OldRegistrationNo: OldRegistrationNo,\n                FirstName: first_name,\n                MiddleName: middle_name,\n                LastName: last_name,\n                VisitDue: 0,\n                PreviousBalance: 0,\n                ReceivedAmount: 0,\n                TotalDue: 0,\n                ModeValue: 0,\n                patientId: patient_id,\n                PrintValue: 0,\n                ShippingResult: 0,\n                PageName: 'appointment',\n                MedicinePrintCode: 'MDN',\n                ConsultancyPrintCode: 'SDC',\n                ConsultancyFee: 0,\n                TotalBalanceStatus: 'Due',\n                VisitingId: 0,\n                BillingId: 0,\n                PrescribeDoctor: onSpotDoc,\n                PreviousBalanceStatus: 'due',\n                paylaterAmount: 0,\n                currentPGAmount: 0,\n                PreviousPGAmount: 0\n              });\n            }\n            jQuery.noConflict();\n            this.set('appointment_pay_later', 'bookingpay');\n            $('.appointment_patient_id').val(patient_id);\n            $('#previous_due, #total_due, #recieved, #note, #visit_due').val('');\n            $('.payment_mode').prop('checked', false).change();\n            $('.paynowadvance').css('display', 'block');\n            $('.paylateradvance').css('display', 'none');\n            $('#cashpopup').modal('show');\n            return false;\n          } else {\n            //Advobject is set this means we clicked save on payment popup\n            if (patient_id == undefined || patient_id == '') {\n              /*Nishant 1-Feb-2023: This is a new patient registration with advance payment\n              //so we first need to register patient and get patient_id to which advance will be tagged*/\n\n              //NEED TO AWAIT RETURING OF AJAX CALL TO GET PATIENT ID.\n              await this.registerPatient(patient_data, function retval(retdata) {\n                if (retdata != 'error') {\n                  //We have regsitered the patient, now we get the patient ID and use it for advance payment\n                  patient_id = retdata;\n                  console.log('Patient ID register: ' + patient_id);\n                } else {\n                  console.log('register error');\n                  return false;\n                }\n              });\n              //if we still cannot get patient ID then exit the function\n              if (patient_id == undefined || patient_id == '') return false;\n            }\n          }\n        } else {\n          this.set('appointment_pay_later', 'nobookingpay');\n          this.set('advance_payment_status', 0);\n        }\n        this.set('advance_payment_urgency', $('.advance_payment_urgency').val());\n        this.set('advance_payment_obj', $('.advance_payment_obj').val());\n        this.set('appointment_type', $('#appointment_type').val());\n        var previous_due = $('#previous_due').val();\n        var previous_due_edit_reason = $('#previous_due_edit_reason').val();\n        this.set('previous_due', previous_due);\n        this.set('previous_due_edit_reason', previous_due_edit_reason);\n        console.log('Patient ID: ' + patient_id);\n        if (patient_id != '' && onspot != 'new' || this.advance_payment_obj) {\n          console.log('Patient Block-A');\n          var data = {\n            doctor_id: onSpotDoc,\n            branch_id: branch_id,\n            uid: uid,\n            shift_id: this.user_shift_id,\n            onspot: true,\n            patient_id: patient_id,\n            appointment_type: this.appointment_type,\n            ocp_visit_address: $('#ocp_visit_address').val(),\n            user_id: this.session.getLoggedInUserId(),\n            advance_required: this.advance_payment_status,\n            advance_urgency: this.advance_payment_urgency,\n            advance_payment_obj: this.advance_payment_obj,\n            previous_due: this.previous_due,\n            previous_due_edit_reason: this.previous_due_edit_reason\n          };\n          console.log('Patient Block-A data post=' + JSON.stringify(data));\n        } else {\n          console.log('Patient Block-B');\n          var data = {\n            doctor_id: onSpotDoc,\n            branch_id: branch_id,\n            first_name: this.first_name,\n            middle_name: this.middle_name,\n            last_name: this.last_name,\n            gender: this.gender,\n            date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n            age_years: this.age_years,\n            age_months: this.age_months,\n            age_days: this.age_days,\n            phone_1: this.phone_1,\n            phone_2: this.phone_2,\n            email_id: this.email_id,\n            address_1: this.address_1,\n            address_2: this.address_2,\n            title_prefix: this.title_prefix,\n            other_state: this.other_state,\n            other_city: this.other_city,\n            zip: this.zip,\n            mode: this.mode,\n            note: this.note,\n            category: this.category,\n            discount_category: this.selected_discount_category,\n            priority: this.priority,\n            blood_type: this.blood_type,\n            city: this.selected_city,\n            // city:$(\"select[name=city]\").val(),\n            state: this.selected_state,\n            country: this.selected_country,\n            uid: uid,\n            shift_id: this.user_shift_id,\n            onspot: true,\n            appointment_type: this.appointment_type,\n            ocp_visit_address: $('#ocp_visit_address').val(),\n            user_id: this.session.getLoggedInUserId(),\n            advance_required: this.advance_payment_status,\n            advance_urgency: this.advance_payment_urgency,\n            advance_payment_obj: this.advance_payment_obj,\n            previous_due: this.previous_due,\n            previous_due_edit_reason: this.previous_due_edit_reason\n          };\n          console.log('Patient Block-B data post=' + data);\n        }\n        //return false;\n        var urgent_status = '';\n        if ($.trim($('#urgent_status:checked').val()) == '1') {\n          // = '/reschedule';\n          data = $.extend(true, data, {\n            urgent_status: $('#urgent_status').val()\n          });\n          data = $.extend(true, data, {\n            urgenttagnote: $('#urgenttagnote').val()\n          });\n        } else {\n          data = $.extend(true, data, {\n            urgent_status: 0\n          });\n          data = $.extend(true, data, {\n            urgenttagnote: null\n          });\n        }\n\n        //console.log(data);\n        //return false;\n\n        if (onSpotDoc == 'medicine') {\n          var callUrl = _environment.default.APP.api_url + 'appointments/kioskCheckin';\n          var callMethod = 'GET';\n          /*This below code is used for reset values of data variable for medicine on the spot patient, Rahul Khan, 08 July */\n          var data = {\n            id: '',\n            branch_id: branch_id,\n            uid: uid,\n            shift_id: this.user_shift_id,\n            medicinesOnly: true,\n            prebook: false,\n            patient_id: patient_id,\n            urgent_status: urgentStatus,\n            urgenttagnote: $('#urgenttagnote').val()\n          };\n          //console.log(data);\n        } else if (onSpotDoc == 'emailrm') {\n          var callUrl = _environment.default.APP.api_url + 'appointments/emailrepeatmedicine';\n          var callMethod = 'GET';\n          /*This below code is used for reset values of data variable for email repeat medicine on the spot patient, Shubh Tiwari, 03\n          july 2023 */\n          var data = {\n            id: '',\n            branch_id: branch_id,\n            uid: uid,\n            shift_id: this.user_shift_id,\n            emailrmOnly: true,\n            prebook: false,\n            patient_id: patient_id,\n            urgent_status: urgentStatus,\n            urgenttagnote: $('#urgenttagnote').val()\n          };\n          //console.log(data);\n        } else {\n          var callUrl = _environment.default.APP.api_url + 'patients/register';\n          var callMethod = 'POST';\n          if (data.urgent_status == 1) {\n            if (data.urgenttagnote == null || data.urgenttagnote == '') {\n              alert('Please enter urgent reason');\n              $('#urgenttagnote').focus();\n              return false;\n            }\n          } else if (data.appointment_type == '') {\n            //console.log(data);\n            alert('Please select appointment type');\n            $('#appointment_type').focus();\n            return false;\n          } else if (data.appointment_type == 'ocp' && data.ocp_visit_address == '') {\n            alert('Please enter OCP visit address');\n            $('#ocp_visit_address').focus();\n            return false;\n          }\n        }\n        let token = this.session.getToken();\n        $.ajax({\n          method: callMethod,\n          url: callUrl,\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          data: data,\n          beforeSend: function () {\n            var regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\n            $(\".onspotradio\").click(function () {\n              $(this).attr('disabled', 'disabled');\n            });\n            if (patient_id == '') {\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if ($.trim(data.discount_category) == '' || data.discount_category == undefined) {\n                /*This below line code, we validate the Discount category Required only, Rahul Khan 13 june 2019 */\n                alert('Please select the discount category.');\n                $('select[name=discount_category]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                //console.log(data);\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false;\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false;\n              } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              }\n              // else if ($.trim(data.email_id) == \"\") {\n              //   alert('Please enter email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              // else if(!regex.test(data.email_id)) {\n              //   alert('Please enter valid email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false;\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n            }\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.validate == true) {\n              _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('cashpopup');\n              _this.send('updateList');\n              _this.send('updateDkbList');\n              _this.send('updateDoctorList');\n              _this.send('closeOnSpotModal');\n              _this.send('ResetPopupPaymentMode');\n              alert('Patient registered and appointment booked successfully!');\n            } else if (res.validate == 'false') {\n              alert('Patient already exist. This name and phone number are already registered');\n            }\n          },\n          error: function (error, x, y) {\n            // console.log(error);\n          },\n          complete: function (res) {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      /***********************************End Onsubmit*********************************** */\n      setGender() {\n        this.set('gender', $('select[name=gender]').val());\n      },\n      setMode() {\n        this.set('mode', $('select[name=mode]').val());\n      },\n      setNote() {\n        this.set('note', $('textarea#note').val());\n      },\n      prev(stats, p) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          this.set('p', page);\n        }\n      },\n      next(stats, p) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          this.set('p', page);\n          var _this = this;\n          var utoken = this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        }\n      },\n      goto() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          this.set('p', page);\n        }\n      },\n      checkinbookedAssignment(id, patient_id, branch_id) {\n        //console.log(\"controller Dashboard\")\n        // alert(branch_id);\n        if (confirm('Are you sure you want to mark patient as checked-in?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/kioskCheckin',\n          data: {\n            id: id,\n            shift_id: 1,\n            medicinesOnly: false,\n            patient_id: patient_id,\n            branch_id: branch_id,\n            prebook: true\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.send('updateList');\n            _this.send('updateDkbList');\n            //\t_this.send('getCompleted');These function getComplete and getMedicineComplete are commented because complete visit list not depemdent on these actions, Rahul Khan, 18 July 2019\n            _this.send('updateDoctorList');\n            _this.send('closeOnSpotModal');\n            alert('Patient Checked-In successfully!');\n          },\n          error: function (res) {},\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        /* $http({\n                method: 'GET',\n                timeout:20000,\n                url: api_url+\"appointments/kioskCheckin?id=\"+id+\"&shift_id=\"+shift_id+\"&medicinesOnly=\"+medicinesOnly+\"&patient_id=\"+patient_id+\"&branch_id=\"+branch_id+\"&prebook=\"+prebook,\n                headers: {'Content-Type': 'application/x-www-form-urlencoded'}\n              }); */\n      }\n    },\n    getPatientAddress: function (appointment_id, patient_id, visit_mode) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        async: false,\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n          _this.set('patient_id', '');\n          _this.set('appointment_id', '');\n          jQuery.noConflict();\n          _this.set('refresh', false);\n          $('#ShippingPreference').modal('hide');\n        },\n        success: function (res) {\n          jQuery.noConflict();\n          $('#ShippingPreference').modal('show');\n          _this.set('refresh', true);\n          if (res.data.length > 0) {\n            var addressData = res.data[0];\n            var address = _this.recalculateAmount.getShippingAddress(addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n            var shipping_address_1 = addressData.shipping_address_one;\n            var shipping_address_2 = addressData.shipping_address_two;\n            var shipping_selected_country = addressData.shipping_country;\n            var shipping_selected_state = addressData.shipping_state;\n            var shipping_selected_city = addressData.shipping_city;\n            var shipping_zip = addressData.shipping_pin_code;\n            var shipping_mob = addressData.shipping_mobile_no;\n            var shipp = {\n              shipping_address_1: shipping_address_1,\n              shipping_address_2: shipping_address_2,\n              shipping_selected_country: shipping_selected_country,\n              shipping_selected_state: shipping_selected_state,\n              shipping_selected_city: shipping_selected_city,\n              shipping_zip: shipping_zip,\n              shipping_mob: shipping_mob,\n              updateInMaster: 0\n            };\n            var shiping_pickup = addressData.dispatch_or_pickup;\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('shiping_pickup', shiping_pickup);\n            _this.set('shipping_pharmacy_location', addressData.pickup_location);\n            _this.set('shipping_billing_location', addressData.billing_location);\n            _this.set('prescription_email', addressData.prescription_email);\n            _this.set('visit_mode_type', visit_mode);\n            _this.set('shipp', shipp);\n            _this.set('address', address);\n            _this.set('ajaxState', shipp.shipping_selected_state);\n            _this.set('ajaxCountry', shipp.shipping_selected_country);\n            _this.set('patient_id', patient_id);\n            _this.set('appointment_id', appointment_id);\n            $('#shipping_address_column').empty().html(address);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              async: false,\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n                _this.set('patient_id', '');\n                _this.set('appointment_id', '');\n                jQuery.noConflict();\n                _this.set('refresh', false);\n                $('#ShippingPreference').modal('hide');\n              },\n              success: function (res) {\n                jQuery.noConflict();\n                $('#ShippingPreference').modal('show');\n                _this.set('refresh', true);\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  var address = _this.recalculateAmount.getShippingAddress(data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                  var shipping_address_1 = data.full_address_per;\n                  var shipping_address_2 = data.full_address_res;\n                  var shipping_selected_country = data.country_id_per;\n                  var shipping_selected_state = data.state_id_per;\n                  var shipping_selected_city = data.city_id_per;\n                  var shipping_zip = data.pincode_per;\n                  var shipping_mob = data.phone_res;\n                } else {\n                  var address = _this.recalculateAmount.getShippingAddress(data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                  var shipping_address_1 = data.shipping_full_address_per;\n                  var shipping_address_2 = data.shipping_full_address_res;\n                  var shipping_selected_country = data.shipping_country_id;\n                  var shipping_selected_state = data.shipping_state_id;\n                  var shipping_selected_city = data.shipping_city_id;\n                  var shipping_zip = data.shipping_pin_code;\n                  var shipping_mob = data.shipping_mobile;\n                }\n                var shipp = {\n                  shipping_address_1: shipping_address_1,\n                  shipping_address_2: shipping_address_2,\n                  shipping_selected_country: shipping_selected_country,\n                  shipping_selected_state: shipping_selected_state,\n                  shipping_selected_city: shipping_selected_city,\n                  shipping_zip: shipping_zip,\n                  shipping_mob: shipping_mob,\n                  updateInMaster: 0\n                };\n                _this.set('address_mismatch', 0);\n                _this.set('shiping_pickup', '');\n                _this.set('shipping_pharmacy_location', '');\n                _this.set('shipping_billing_location', '');\n                _this.set('prescription_email', '');\n                _this.set('visit_mode_type', visit_mode);\n                _this.set('shipp', shipp);\n                _this.set('address', address);\n                _this.set('ajaxState', shipp.shipping_selected_state);\n                _this.set('ajaxCountry', shipp.shipping_selected_country);\n                _this.set('patient_id', patient_id);\n                _this.set('appointment_id', appointment_id);\n                $('#shipping_address_column').empty().html(address);\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {},\n        complete: function () {\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: _this.get('ajaxCountry')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: _this.get('ajaxState')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    //Nishant 1-Feb-2023: validate patient code refactored to function\n    validatePatient: function (data) {\n      if (data.mode == '') {\n        alert('Invalid Mode of Registration.');\n        $('select[name=mode]').focus();\n        return false;\n      } else if ($.trim(data.discount_category) == '' || data.discount_category == undefined) {\n        /*This below line code, we validate the Discount category Required only, Rahul Khan 13 june 2019 */\n        alert('Please select the discount category.');\n        $('select[name=discount_category]').focus();\n        return false;\n      } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n        //console.log(data);\n        alert('Invalid First Name.');\n        $('input[name=first_name]').focus();\n        return false;\n      } else if ($.trim(data.gender) == '') {\n        alert('Invalid Gender');\n        $('select[name=gender]').focus();\n        return false;\n      } else if ($.trim(data.age_years) == '') {\n        alert('Please enter valid age in years.');\n        $('input[name=age_years]').focus();\n        return false;\n      } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n        alert('Invalid Phone 1');\n        $('input[name=phone_1]').focus();\n        return false;\n      } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n        alert('Invalid Phone 2');\n        $('input[name=phone_2]').focus();\n        return false;\n      }\n      // else if ($.trim(data.email_id) == \"\") {\n      //   alert('Please enter email id');\n      //   $(\"input[name=email_id]\").focus();\n      //   return false;\n      // }\n      // else if(!regex.test(data.email_id)) {\n      //   alert('Please enter valid email id');\n      //   $(\"input[name=email_id]\").focus();\n      //   return false;\n      // }\n      else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n        alert('Invalid Address 1');\n        $('input[name=address_1]').focus();\n        return false;\n      } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n        alert('Invalid Address 2');\n        $('input[name=address_2]').focus();\n        return false;\n      } else if ($.trim(data.country) == '') {\n        //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n        alert('Invalid Country');\n        $('select[name=country]').focus();\n        return false;\n      } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n        alert('Invalid State');\n        $('select[name=state]').focus();\n        return false;\n      } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n        alert('Invalid City');\n        $('select[name=city]').focus();\n        return false;\n      } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n        alert('Invalid Zip6');\n        $('input[name=zip]').focus();\n        return false;\n      } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n        alert('Invalid Note');\n        $('textarea[name=note]').focus();\n        return false;\n      }\n      return true;\n    },\n    registerPatient: async function (patient_data, retval) {\n      var callUrl = _environment.default.APP.api_url + 'patients/register';\n      var callMethod = 'POST';\n      var _this = this;\n      let utoken = _this.session.getToken();\n      await $.ajax({\n        method: callMethod,\n        url: callUrl,\n        data: patient_data,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          if (!_this.validatePatient(patient_data)) {\n            return false;\n          }\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          // $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          if ((res.validate == 'true' || res.validate == true) && res.patient_id != '') {\n            //We have regsitered the patient, now we get the patient ID and use it for advance payment\n            retval(res.patient_id);\n          } else if (res.validate == false || res.validate == 'false') {\n            alert('Something went wrong with patient registration. Please try again.\\n' + res.message);\n            retval('error');\n          }\n        },\n        error: function (error, x, y) {\n          // console.log(error);\n          retval('error');\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            //$('.modal-backdrop').remove();\n            //$('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    },\n    openTransactionPopup: function (OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, pending_value, total_visit, page_name, prescribe_doctor, chargeCode, previous_balance_status, total_balance_status, total_visit_amount, eventAction) {\n      var _this = this;\n      _this.recalculateAmount.showPopupWithPassingDynamicPopupId('cashpopup');\n      if (eventAction == '2') {\n        setTimeout(function () {\n          $('.paynowadvance').css('display', 'none');\n          $('.paylateradvance').css('display', 'block');\n          $('.doctor_id').val(prescribe_doctor);\n          $('.appointment_id').val(appointment_id);\n          $('.patient_id').val(patient_id);\n        }, 1000);\n      }\n      var total = parseFloat(total_visit);\n      var TotalDue = parseFloat(total_visit);\n      var print_value = 'domestic';\n      var shippingResult = '';\n      var ReceivedAmount = 0;\n      var transaction_status = parseFloat(total_visit) - parseFloat(ReceivedAmount);\n      var transaction_mode = Math.sign(transaction_status);\n      if (transaction_mode == 1) {\n        var mode_value = '0';\n        var total_balance_status = 'Due';\n      } else if (transaction_mode == -1) {\n        var mode_value = '1';\n        var total_balance_status = 'Advance';\n      }\n      _this.send('setMedicineTotalandPendingValue', {\n        OldRegistrationNo: OldRegistrationNo,\n        FirstName: first_name,\n        MiddleName: middle_name,\n        LastName: last_name,\n        VisitDue: total,\n        PreviousBalance: pending_value,\n        ReceivedAmount: ReceivedAmount,\n        TotalDue: TotalDue,\n        ModeValue: mode_value,\n        patientId: patient_id,\n        PrintValue: print_value,\n        ShippingResult: shippingResult,\n        PageName: page_name,\n        MedicinePrintCode: medicine_print_code,\n        ConsultancyPrintCode: consultancy_print_code,\n        ConsultancyFee: consultancy_fee,\n        TotalBalanceStatus: total_balance_status,\n        VisitingId: appointment_id,\n        BillingId: billing_id,\n        PrescribeDoctor: prescribe_doctor,\n        chargeCode: chargeCode,\n        PreviousBalanceStatus: previous_balance_status,\n        paylaterAmount: total_visit_amount,\n        currentPGAmount: 0,\n        PreviousPGAmount: 0\n      });\n    },\n    getTabsList(branch_id, shift_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $('#loader').hide();\n      $.ajax({\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('.loader').css('visibility', 'hidden');\n        },\n        url: _environment.default.APP.lumen_api_url + 'tabsdata',\n        data: {\n          branch_id: branch_id,\n          shift_id: shift_id\n        },\n        success: function (res) {\n          //console.log(res.data);\n          _this.set('frontdesk_tablist', res);\n        },\n        complete: function (res) {\n          $('.loader').css('visibility', 'hidden');\n        }\n      });\n    },\n    //This function get Year Month and Days form data of birth of patient\n    dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    }\n    // getDoctorCharges(doctor_id) {\n    //   var _this = this;\n    //   //var doctor_id =  $('.appointment_doctor_id').val();\n    //   var base_url = ENV.APP.lumen_api_url + 'user/doctorcharges/' + doctor_id;\n    //   $.ajax({\n    //     url: base_url,\n    //     method: 'GET',\n    //     success: function (res) {\n    //       //var visit_due = $('#visit_due').val();\n    //       //console.log(visit_due);\n    //       //console.log(\"select.appliedcharge option[value='\"+visit_due+\"']\");\n    //       _this.set('doctorcharges', res);\n    //       // setTimeout(function () {\n    //       //   $(\"select.appliedcharge option[value='\" + visit_due + \"']\").attr(\n    //       //     'selected',\n    //       //     'selected'\n    //       //   );\n    //       // }, 1000);\n    //     },\n    //     complete: function (res) {\n    //       //console.log(\"Execution complete\");\n    //     },\n    //   });\n    // },\n  });\n});","define(\"clinic-dev/controllers/dispatch/dispatch\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    deliveryValidation: Ember.inject.service('shipping-validation'),\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      editArchive(status) {\n        var _this = this;\n        _this.set('already_archived', status);\n      },\n      saveDispatchOrder: function () {\n        this.saveDispatchOrder();\n      },\n      getPatientAddress: function (appointment_id, patient_id) {\n        this.getPatientAddress(appointment_id, patient_id);\n      },\n      getDispatchPatientOrderList: function (branch_id, shift_id) {\n        this.getDispatchPatientOrderList(branch_id, shift_id);\n      },\n      getReadyForPickupDispatchedList: function (branch_id, shift_id) {\n        this.getReadyForPickupDispatchedList(branch_id, shift_id);\n      },\n      getCurrentDateDispatchedList: function (branch_id, shift_id) {\n        this.getCurrentDateDispatchedList(branch_id, shift_id);\n      },\n      getDispatchOrder: function (appointment_id, status) {\n        this.getDispatchOrder(appointment_id, status);\n      },\n      markSelectedDispatched: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let shift_id = _this.session.getLoggedInUserShift();\n        let branch_id = _this.session.getLocation().split('-')[0];\n        var data = {};\n        var shipid_array = [];\n        $(\"input:checkbox[name=markdispatchid]:checked\").each(function () {\n          shipid_array.push($(this).val());\n        });\n        //console.log(shipid_array);\n        if (shipid_array.length == 0) {\n          var message = i18n.t('dispatch.messages.markAtleastOne');\n          Swal.fire({\n            text: message,\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            buttons: true\n          });\n          //data.ship_id = 0;\n        } else {\n          let message = i18n.t('dispatch.messages.markDispatchedYouSureDelete');\n          data.ship_id = shipid_array;\n          swal({\n            title: message,\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $.ajax({\n                method: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'icpattend/markDispatch',\n                data: data,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  if (res.error == false && res.actions == 'markdispached') {\n                    swal(\"Dispatched Orders completed successfully for selected patient\").then(value => {\n                      _this.send('getReadyForPickupDispatchedList', branch_id, shift_id);\n                      _this.send('getCurrentDateDispatchedList', branch_id, shift_id);\n                    });\n                  } else if (res.error == true && res.actions == 'datainsufficient') {\n                    swal(\"Error: unable to Dispatched Orders for selected patient!\").then(value => {\n                      _this.send('getReadyForPickupDispatchedList', branch_id, shift_id);\n                      _this.send('getCurrentDateDispatchedList', branch_id, shift_id);\n                    });\n                  }\n                }\n              });\n            }\n          });\n        }\n      },\n      // This function is used for getting 20 dispatched order detail when click on dispatch archive button as on 11-04-2022 shubh tiwari\n      searchDispatchedArchivePatient: function (archive) {\n        this.searchDispatchedArchivePatient(archive);\n      }\n    },\n    //This below function is used for getting all patient order list and ready for pickup patient data for dispatch Screen, Shubh Tiwari 27 Feb 2023\n    getDispatchPatientOrderList: function (branch_id, shift_id) {\n      var BaseUrl = _environment.default.APP.lumen_api_url + 'dispatch/dispatchlist?shift_id=' + shift_id + '&branch_id=' + branch_id;\n      let utoken = this.session.getToken();\n      // Initialize DataTables API object and configure table\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $('#OCPPatientOrders').DataTable().destroy();\n        var OCPPatientOrders = $('#OCPPatientOrders').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          serverside: false,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: BaseUrl,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'name',\n            mRender: function (data, type, row) {\n              let status = '';\n              let balance_amount_html = '';\n              var total_received = Math.abs(row.balance_amount);\n              var total = parseFloat(total_received).toFixed(2);\n              var transaction_mode = Math.sign(row.balance_amount);\n              if (transaction_mode == 1) {\n                status = '(A)';\n              } else if (transaction_mode == -1) {\n                status = '(D)';\n              } else if (transaction_mode == 0) {\n                status = '(D)';\n              }\n              if (total > 0) {\n                balance_amount_html = '<span class=\"balance_flag-alignment ml-2\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Amount : ' + total + '  ' + status + '\"><i class=\"fas fa-rupee-sign\"></i></span>';\n              }\n              return '<span class=\"capitalize\">' + row.name + '</span>' + ' ' + balance_amount_html;\n            }\n          }, {\n            data: 'OldRegistrationNo'\n          }, {\n            data: 'visit_type',\n            className: 'visit_type'\n          }, {\n            data: 'doc_label'\n          }, {\n            data: 'pharmacy_complete_time'\n          }, {\n            data: 'complete_time'\n          }, {\n            data: 'appointment_id',\n            width: '200px',\n            mRender: function (data, type, row) {\n              return '<a href=\"' + _environment.default.crossOriginWhitelist + '/dispatch/order/' + row.appointment_id + '/' + row.patient_id + '/' + row.dispatch_status + '\" class=\"btn btn-success btn-xs\" title=\"Dispatch\"><i class=\"icon-edit\"></i> Dispatch</a><a href=\"#\" class=\"btn btn-info btn-xs PrintAddressLabel ml-2\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Print Address Label\"><i class=\"fa fa-print\"></i> Print Label</a>';\n            }\n          }]\n        });\n        // Redraw the table\n        OCPPatientOrders.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          OCPPatientOrders.draw();\n        });\n      });\n    },\n    //This below function is used for ready for pickup patient data for dispatch Screen, Shubh Tiwari 27 Feb March 2023\n    getReadyForPickupDispatchedList: function (branch_id, shift_id) {\n      var BaseUrl = _environment.default.APP.lumen_api_url + 'dispatch/dispatchreadylist?shift_id=' + shift_id + '&branch_id=' + branch_id;\n      let utoken = this.session.getToken();\n      // Initialize DataTables API object and configure table\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $('#ReadyforPickup').DataTable().destroy();\n        var ReadyforPickup = $('#ReadyforPickup').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[5, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: BaseUrl,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'ship_id',\n            mRender: function (data, type, row) {\n              return '<input type=\"checkbox\" name=\"markdispatchid\" id=\"markdispatchid\" value=\"' + row.ship_id + '\">';\n            }\n          }, {\n            data: 'name',\n            className: 'capitalize'\n          }, {\n            data: 'OldRegistrationNo'\n          }, {\n            data: 'visit_type',\n            className: 'visit_type'\n          }, {\n            data: 'doc_label'\n          }, {\n            data: 'pharmacy_complete_time'\n          }, {\n            data: 'dispatch_time'\n          }, {\n            data: 'pickup_loc'\n          }, {\n            data: 'ship_address',\n            className: 'capitalize'\n          }, {\n            data: 'courier_name'\n          }, {\n            data: 'dispatch_status',\n            width: '150px',\n            mRender: function (data, type, row) {\n              return '<button class=\"btn btn-danger btn-xs\" id=\"cancelReadyforPickup\" data-shipid=\"' + row.ship_id + '\" data-dispatchstatus=\"' + row.dispatch_status + '\" title=\"Cancel\" type=\"button\">Cancel</button><a href=\"#\" class=\"btn btn-info btn-xs PrintAddressLabel ml-2\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Print Address Label\"><i class=\"fa fa-print\"></i> Print Label</a>';\n            }\n          }]\n        });\n        // Redraw the table\n        ReadyforPickup.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          ReadyforPickup.draw();\n        });\n      });\n    },\n    //This below function is used for getting all dispatched patient data for dispatch Screen, Shubh Tiwari 07 April 2022\n    getCurrentDateDispatchedList: function (branch_id, shift_id) {\n      var BaseUrl = _environment.default.APP.lumen_api_url + 'dispatched?shift_id=' + shift_id + '&branch_id=' + branch_id;\n      let utoken = this.session.getToken();\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $('#DispatchedOrders').DataTable().destroy();\n        var DispatchedOrders = $('#DispatchedOrders').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: BaseUrl,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            // ✅ Yahan bhi token bhejna\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'name',\n            className: 'capitalize'\n          }, {\n            data: 'OldRegistrationNo'\n          }, {\n            data: 'visit_type',\n            className: 'visit_type'\n          }, {\n            data: 'doc_label'\n          }, {\n            data: 'pharmacy_complete_time'\n          }, {\n            data: 'dispatch_time'\n          }, {\n            data: 'courier_name'\n          }, {\n            data: 'tracking_id'\n          }, {\n            data: 'appointment_id',\n            width: '250px',\n            mRender: function (data, type, row) {\n              return '<a href=\"' + _environment.default.crossOriginWhitelist + '/dispatch/edit/' + row.appointment_id + '/' + row.patient_id + '/' + row.dispatch_status + '\" class=\"btn btn-success btn-xs\" title=\"Edit\"><i class=\"icon-edit\"></i> Edit</a> <button class=\"btn btn-danger btn-xs\" id=\"cancelReadyforPickup\" data-shipid=\"' + row.ship_id + '\" data-dispatchstatus=\"' + row.dispatch_status + '\" title=\"Cancel\" type=\"button\">Cancel</button><a href=\"#\" class=\"btn btn-info btn-xs PrintAddressLabel ml-2\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Print Address Label\"><i class=\"fa fa-print\"></i> Print Label</a>';\n            }\n          }]\n        });\n        // Redraw the table\n        DispatchedOrders.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          DispatchedOrders.draw();\n        });\n      });\n    },\n    searchDispatchedArchivePatient: function (archive) {\n      var _this = this;\n      let i18n = this.i18n;\n      let utoken = _this.session.getToken();\n      var fromvisitdate = $('#fromvisitdate').val();\n      //console.log(fromvisitdate);\n      var tovisitdate = $('#tovisitdate').val();\n      //console.log(tovisitdate);\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      if (fromvisitdate != '') {\n        var from = fromvisitdate;\n      } else {\n        alert('Please select From dispatch date');\n        $('#fromvisitdate').focus();\n        return false;\n        var from = '';\n      }\n      if (tovisitdate != '') {\n        var to = tovisitdate;\n      } else {\n        alert('Please select To dispatch date');\n        $('#tovisitdate').focus();\n        return false;\n        var to = '';\n      }\n      if (archive != undefined) {\n        var BaseUrl = _environment.default.APP.lumen_api_url + 'dispatch/search?shift_id=' + shift_id + '&branch_id=' + branch_id + '&archive=' + archive;\n      } else {\n        var BaseUrl = _environment.default.APP.lumen_api_url + 'dispatch/search?shift_id=' + shift_id + '&branch_id=' + branch_id + '&fromdate=' + from + '&todate=' + to;\n      }\n      // Initialize DataTables API object and configure table\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $('#ArchiveList').DataTable().destroy();\n        var table = $('#ArchiveList').DataTable({\n          language: {\n            searchPlaceholder: 'Search patient',\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          order: [[4, 'dsc'], [0, 'asc']],\n          ajax: {\n            url: BaseUrl,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'name'\n          }, {\n            data: 'OldRegistrationNo'\n          }, {\n            data: 'visit_type',\n            className: 'visit_type'\n          }, {\n            data: 'doc_label'\n          }, {\n            data: 'pharmacy_complete_time'\n          }, {\n            data: 'dispatch_time'\n          }, {\n            data: 'courier_name'\n          }, {\n            data: 'tracking_id'\n          }, {\n            width: '130px',\n            mRender: function (data, type, row) {\n              return '<a href=\"' + _environment.default.crossOriginWhitelist + '/dispatch/editarchive/' + row.appointment_id + '/' + row.patient_id + '/' + row.dispatch_status + '/' + 1 + '\" class=\"btn btn-success btn-xs\"><i class=\"icon-edit\"></i> Edit</a><a href=\"#\" class=\"btn btn-info btn-xs PrintAddressLabel ml-2\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Print Address Label\"><i class=\"fa fa-print\"></i> Print Label</a>';\n            }\n          }]\n        });\n        // Redraw the table\n        table.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          table.draw();\n        });\n      });\n    },\n    //This below function is used for getting dispatch order of individual patient data for dispatch Order, Shubh Tiwari 30 March 20222\n    getDispatchOrder: function (appointment_id, status) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.set('DispatchOrders', '');\n      _this.set('courier_id', '');\n      _this.set('tracking_id', '');\n      var base_url = _environment.default.APP.lumen_api_url + 'dispatch/dispatchorder?appointment_id=' + appointment_id + '&status=' + status;\n      $('.loader').show();\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          $('.loader').hide();\n          var ParseData = JSON.parse(res);\n          _this.set('DispatchOrders', ParseData.data);\n          _this.set('courier_id', ParseData.data[0].pickup_location);\n          _this.set('tracking_id', ParseData.data[0].tracking_id);\n          if (ParseData.data[0].dispatch_status == 3) {\n            _this.set('dis_select_disable', 'location_disable');\n          } else {\n            _this.set('dis_select_disable', '');\n          }\n        },\n        complete: function (res) {}\n      });\n    },\n    getPatientAddress: function (appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            var addressData = res.data[0];\n            var address = _this.recalculateAmount.getShippingAddress(addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n            var shipping_address_1 = addressData.shipping_address_one;\n            var shipping_address_2 = addressData.shipping_address_two;\n            var shipping_selected_country = addressData.shipping_country;\n            var shipping_selected_state = addressData.shipping_state;\n            var shipping_selected_city = addressData.shipping_city;\n            var shipping_zip = addressData.shipping_pin_code;\n            var shipping_mob = addressData.shipping_mobile_no;\n            var shipp = {\n              shipping_address_1: shipping_address_1,\n              shipping_address_2: shipping_address_2,\n              shipping_selected_country: shipping_selected_country,\n              shipping_selected_state: shipping_selected_state,\n              shipping_selected_city: shipping_selected_city,\n              shipping_zip: shipping_zip,\n              shipping_mob: shipping_mob,\n              updateInMaster: 0\n            };\n            var shiping_pickup = addressData.dispatch_or_pickup;\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('shiping_pickup', shiping_pickup);\n            _this.set('shipp', shipp);\n            _this.set('address', address);\n            _this.set('ajaxState', shipp.shipping_selected_state);\n            _this.set('ajaxCountry', shipp.shipping_selected_country);\n            $('#shipping_address_column').empty().html(address);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  var address = _this.recalculateAmount.getShippingAddress(data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                  var shipping_address_1 = data.full_address_per;\n                  var shipping_address_2 = data.full_address_res;\n                  var shipping_selected_country = data.country_id_per;\n                  var shipping_selected_state = data.state_id_per;\n                  var shipping_selected_city = data.city_id_per;\n                  var shipping_zip = data.pincode_per;\n                  var shipping_mob = data.phone_res;\n                } else {\n                  var address = _this.recalculateAmount.getShippingAddress(data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                  var shipping_address_1 = data.shipping_full_address_per;\n                  var shipping_address_2 = data.shipping_full_address_res;\n                  var shipping_selected_country = data.shipping_country_id;\n                  var shipping_selected_state = data.shipping_state_id;\n                  var shipping_selected_city = data.shipping_city_id;\n                  var shipping_zip = data.shipping_pin_code;\n                  var shipping_mob = data.shipping_mobile;\n                }\n                var shipp = {\n                  shipping_address_1: shipping_address_1,\n                  shipping_address_2: shipping_address_2,\n                  shipping_selected_country: shipping_selected_country,\n                  shipping_selected_state: shipping_selected_state,\n                  shipping_selected_city: shipping_selected_city,\n                  shipping_zip: shipping_zip,\n                  shipping_mob: shipping_mob,\n                  updateInMaster: 0\n                };\n                _this.set('shipp', shipp);\n                _this.set('address', address);\n                _this.set('ajaxState', shipp.shipping_selected_state);\n                _this.set('ajaxCountry', shipp.shipping_selected_country);\n                $('#shipping_address_column').empty().html(address);\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: _this.get('ajaxCountry')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: _this.get('ajaxState')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    saveDispatchOrder: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.get('i18n');\n      var addressDetails = _this.shipp;\n      var doctor_id = _this.get('session').getLoggedInUserId();\n      var shippingResult = _this.deliveryValidation.deliveryValidation(addressDetails, doctor_id);\n      $.ajax({\n        method: 'POST',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/deliveryaddress',\n        data: {\n          data: shippingResult\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (resship) {\n          if (resship.error == false && resship.actions == 'add') {\n            var message = i18n.t('dispatch.messages.dispatchComplete');\n            _this.flashes.success(message);\n            _this.transitionToRoute('dispatch');\n          } else if (resship.error == false && resship.actions == 'update') {\n            var message = i18n.t('dispatch.messages.dispatchEditComplete');\n            _this.flashes.success(message);\n            _this.transitionToRoute('dispatch');\n          } else if (resship.error == false && resship.actions == 'edit_archive') {\n            var message = i18n.t('dispatch.messages.dispatchEditArchiveComplete');\n            _this.flashes.success(message);\n            _this.transitionToRoute('dispatch.archive');\n          } else {\n            alert('Sorry, some error occured');\n          }\n        },\n        error: function (error, x, y) {\n          //console.log(error);\n        },\n        complete: function (res) {\n          //$(\"#prescribed\"+patient_id).removeAttr(\"disabled\");\n        }\n      });\n      //console.log(shippingResult);\n    }\n  });\n});","define(\"clinic-dev/controllers/doctor-dashboard\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    shippingValidation: Ember.inject.service('shipping-validation'),\n    icpattendController: Ember.inject.controller('icpattend'),\n    isDisabled: false,\n    init: function () {\n      this._super(...arguments);\n      //This Below code line is used for getting shift id for login user\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      var user_id = this.session.getLoggedInUserId();\n      this.send('getTabsList', user_id, branch_id, shift_id);\n      this.set('refresh', false);\n    },\n    actions: {\n      ScrollToSection(sectionId) {\n        const offset = 174;\n        const el = document.getElementById(sectionId);\n        if (el) {\n          const y = el.getBoundingClientRect().top + window.pageYOffset - offset;\n          window.scrollTo({\n            top: y,\n            behavior: 'smooth'\n          });\n        }\n      },\n      saveShippingPreference(patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = _this.session.getLoggedInUserId();\n        var stage = 0;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var addressDetails = _this.shipp;\n        var prescriptionemail = $('#ShippingPreference input[name=prescriptionemail]:checked').val();\n        var shippingResult = _this.shippingValidation.shippingValidation(addressDetails);\n        shippingResult['patient_id'] = patient_id;\n        shippingResult['appointment_id'] = appointment_id;\n        shippingResult['created_by'] = login_user_id;\n        shippingResult['prescription_email'] = prescriptionemail;\n        if (shippingResult.dispatchOrPickup == \"D\" && shippingResult !== false && appointment_id !== undefined && appointment_id !== '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/shippingvalidation',\n            data: {\n              data: shippingResult\n            },\n            dataType: 'json',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resship_validation) {\n              if (resship_validation.error == true) {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(resship_validation.message, 'dicoundisplayerror');\n              } else if (resship_validation.error == false && resship_validation.actions == \"add\") {\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'icpattend/shippingaddress',\n                  data: {\n                    data: shippingResult\n                  },\n                  dataType: 'json',\n                  //async: false,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (resship) {\n                    if (resship.error == false) {\n                      swal(\"Shipping preferences has been updated successfully\").then(value => {\n                        _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('ShippingPreference');\n                        _this.send('getClinicPatientsIncomplete', login_user_id, shift_id, branch_id, stage);\n                        _this.send('getTabsList', login_user_id, branch_id, shift_id);\n                        _this.send('getPresctibeCaseTakenTabList', branch_id, shift_id);\n                        _this.send('getDoctorDropdownList', login_user_id, branch_id);\n                        _this.send('doctorCounter', login_user_id, shift_id, branch_id);\n                        _this.send('getTabsList', login_user_id, branch_id, shift_id);\n                      });\n                    } else {\n                      _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n                    }\n                  }\n                });\n              }\n            }\n          });\n        } else if ((shippingResult.dispatchOrPickup == \"P\" || shippingResult.dispatchOrPickup == \"O\") && (shippingResult !== false || shippingResult == false) && appointment_id !== undefined && appointment_id !== '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/pickupshippingaddress',\n            data: {\n              data: shippingResult\n            },\n            dataType: 'json',\n            //async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (resship) {\n              if (resship.error == false && resship.actions == \"add\") {\n                swal(\"Shipping preferences has been updated successfully\").then(value => {\n                  _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('ShippingPreference');\n                  _this.send('getClinicPatientsIncomplete', login_user_id, shift_id, branch_id, stage);\n                  _this.send('getTabsList', login_user_id, branch_id, shift_id);\n                  _this.send('getPresctibeCaseTakenTabList', branch_id, shift_id);\n                  _this.send('getDoctorDropdownList', login_user_id, branch_id);\n                  _this.send('doctorCounter', login_user_id, shift_id, branch_id);\n                  _this.send('getTabsList', login_user_id, branch_id, shift_id);\n                });\n              } else {\n                _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Something went wrong. please refresh the page and try again', 'dicoundisplayerror');\n              }\n            }\n          });\n        }\n      },\n      getPatientAddress: function (appointment_id, patient_id) {\n        this.getPatientAddress(appointment_id, patient_id);\n      },\n      // This below function is making for open shipping preference html popup. Shubh Tiwari 28 July 2023\n      setShippingPreference(appointment_id, patient_id) {\n        this.send('getPatientAddress', appointment_id, patient_id);\n      },\n      reAssignC(reassigned, id, doc_id, case_taken, reassigned_doctor_id, patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var shift_id = _this.session.getLoggedInUserShift();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/doctorreAssign',\n          data: {\n            id: id,\n            doctor_id: doc_id,\n            case_taken: case_taken,\n            reassigned_doctor_id: reassigned_doctor_id,\n            shift_id: shift_id,\n            appointment_id: appointment_id,\n            reassigned: reassigned\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              alert('Case Taken Successfull!');\n              window.location.reload(true);\n              setTimeout(function () {\n                $('.casetaken' + patient_id).addClass('casetakendisabled');\n              }, 500);\n            }\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      markCompleteC(id, prescribed, doctor_id, patient_id, appointment_id) {\n        var shift_id = this.session.getLoggedInUserShift();\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        if (confirm('Are you sure you want to complete this appointment?') == false) {\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/doctormarkComplete',\n          data: {\n            id: id,\n            prescribed: prescribed,\n            doctor_id: doctor_id,\n            shift_id: shift_id,\n            appointment_id: appointment_id,\n            location_id: branch_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            alert('Appointment complete.');\n            window.location.reload(true);\n          },\n          error: function (error, x, y) {\n            console.log(error);\n          },\n          complete: function (res) {\n            $('#prescribed' + patient_id).attr('disabled', true);\n          }\n        });\n      },\n      showCancelNote(cancel_note, appointment_id) {\n        let utoken = this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/cancelby',\n          data: {\n            id: appointment_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.data.length > 0) {\n              var name = res.data[0].employee_code;\n              $('#cancelNote #cancelBy').text(name);\n            } else {\n              $('#cancelNote #cancelBy').text('');\n            }\n          },\n          error: function (error, x, y) {},\n          complete: function (res) {}\n        });\n        $('#cancelNote #cancel_note').val(cancel_note);\n      },\n      doctorId: function (user_id) {\n        var _this = this;\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var shift_id = this.session.getLoggedInUserShift();\n        _this.send('newDoctorId', user_id);\n        _this.send('doctorCounter', user_id, shift_id, branch_id);\n      },\n      getTabsList: function (user_id, branch_id, shift_id) {\n        this.getTabsList(user_id, branch_id, shift_id);\n      },\n      getPresctibeCaseTakenTabList: function (branch_id, shift_id) {\n        this.getPresctibeCaseTakenTabList(branch_id, shift_id);\n      },\n      newDoctorId: function (user_id) {\n        this.newDoctorId(user_id);\n      },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      showTabPage(appointment_id, patient_id, read_message_log) {\n        var _this = this;\n        _this.transitionToRoute('doctor-dashboard.icpattend', appointment_id, patient_id, read_message_log);\n      },\n      removePrescribeTab(id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        Swal.fire({\n          title: 'You will lose all unsaved data.',\n          text: 'Are you sure you want to leave this page?',\n          icon: 'warning',\n          width: 600,\n          allowOutsideClick: false,\n          showDenyButton: true,\n          denyButtonText: `Stay on this Page`,\n          confirmButtonText: 'Leave this Page'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'tab_remove') {\n                  var shift_id = _this.get('session').getLoggedInUserShift();\n                  var branch_id = _this.get('session').getLocation().split('-')[0];\n                  var user_id = _this.get('session').getLoggedInUserId();\n                  _this.send('getTabsList', user_id, branch_id, shift_id);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#tabserror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#tabserror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      removePrescribeTabWithoutMessage(id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            id: id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.error == false && res.message == 'tab_remove') {\n              let shift_id = _this.get('session').getLoggedInUserShift();\n              let branch_id = _this.get('session').getLocation().split('-')[0];\n              var user_id = _this.get('session').getLoggedInUserId();\n              _this.send('getTabsList', user_id, branch_id, shift_id);\n            }\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      addPrescribeTab(appt_type, first_name, middile_name, last_name, appointment_id, patient_id, read_message_log, visit_id, prescription_edit) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        let utoken = _this.session.getToken();\n        if (prescription_edit == undefined) {\n          var pe_status = 'No';\n        } else {\n          var pe_status = 'Yes';\n        }\n        if (_this.get('isDisabled')) {\n          return _this.set('isDisabled', true);\n        }\n        // Perform action\n\n        // This below ajax use for checking case taken user open in tabs?, Shubh Tiwari 24-07-2013\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'casetakenopenintab',\n          data: {\n            p_id: patient_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            // setting a timeout\n            _this.set('isDisabled', true);\n          },\n          success: function (res) {\n            //console.log(res);\n            // This below ajax use for checking billing in progress yes or no, Shubh Tiwari 24-07-2013\n            if (res.b_status == 'Yes' && res.action == \"exists_data\" && res.error == false) {\n              var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n                object: res.user_name.Name,\n                page: 'case taken',\n                branch_name: res.branch_name.title,\n                shift_name: res.shift_name\n              });\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'patient-information');\n            } else if (res.b_status == 'No' && res.action == \"exists_data\" && res.error == false) {\n              var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n                object: res.user_name.Name,\n                page: 'Prescribing',\n                branch_name: res.branch_name.title,\n                shift_name: res.shift_name\n              });\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'patient-information');\n            } else {\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'progressexist',\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                data: {\n                  p_id: patient_id\n                },\n                dataType: 'json',\n                beforeSend: function () {\n                  // setting a timeout\n                  _this.set('isDisabled', true);\n                },\n                success: function (res) {\n                  if (res.b_status == 'Yes' && res.action == \"exists_data\" && res.error == false) {\n                    var message = i18n.t('billing.messages.checkPatientInDoctorQueue', {\n                      object: res.user_name.Name,\n                      page: 'billing',\n                      branch_name: res.branch_name.title,\n                      shift_name: res.shift_name\n                    });\n                    _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'patient-information');\n                  } else if (res.action == \"no_exists_data\" && res.error == true) {\n                    //var _this = this;\n                    var max = _this.rowMaxSerialNo();\n                    var tabID = parseInt(max) + 1;\n                    if ((first_name != '' || first_name != null) && middile_name != '' && middile_name != null && last_name != '' && last_name != null) {\n                      var patient_name = _this.ucFirstAllWords(first_name + ' ' + middile_name + ' ' + last_name);\n                    } else if ((first_name != '' || first_name != null) && (last_name != '' || last_name != null)) {\n                      var patient_name = _this.ucFirstAllWords(first_name + ' ' + last_name);\n                    } else {\n                      var patient_name = _this.ucFirstAllWords(first_name);\n                    }\n                    if (appt_type == 'phone') {\n                      var tab_name = 'Phone';\n                      var tab_icon = 'fa fa-phone-square';\n                    } else if (appt_type == 'email') {\n                      var tab_name = 'Email';\n                      var tab_icon = 'fas fa-envelope';\n                    } else if (appt_type == 'ocp') {\n                      var tab_name = 'OCP Visit';\n                      var tab_icon = 'fas fa-hospital';\n                    } else if (appt_type == 'vc') {\n                      var tab_name = 'VC';\n                      var tab_icon = 'fas fa-video';\n                    } else {\n                      var tab_name = 'ICP';\n                      var tab_icon = 'icon-user';\n                    }\n                    //This Below code line is used for getting shift id for login user\n                    let shift_id = _this.session.getLoggedInUserShift();\n                    //This Below code line is used for getting Branch id for login user\n                    let branch_id = _this.session.getLocation().split('-')[0];\n                    let user_id = _this.session.getLoggedInUserId();\n                    if (tabID <= 3) {\n                      $.ajax({\n                        url: _environment.default.APP.lumen_api_url + 'tabs/create',\n                        method: 'POST',\n                        data: {\n                          tab_name: tab_name,\n                          appointment_id: appointment_id,\n                          patient_id: patient_id,\n                          patient_name: patient_name,\n                          read_message_log: read_message_log,\n                          tab_icon: tab_icon,\n                          visit_id: visit_id,\n                          user_id: user_id,\n                          shift_id: shift_id,\n                          branch_id: branch_id,\n                          prescription_edit: pe_status\n                        },\n                        headers: {\n                          \"Authorization\": `Bearer ${utoken}`\n                        },\n                        beforeSend: function () {\n                          $('#loading').addClass('in');\n                          $('#loading').css('display', 'block');\n                          $('body').addClass('modal-open');\n                          _this.set('isDisabled', true);\n                        },\n                        success: function (res) {\n                          //console.log(res);\n                          if (res.error == false && res.actions == 'add') {\n                            _this.send('showTabPage', appointment_id, patient_id, read_message_log);\n                          } else if (res.error == false && res.actions == 'tab_exist') {\n                            var error = 'This patient already added in tab queue';\n                            Swal.fire({\n                              icon: 'error',\n                              title: 'Oops...',\n                              html: error,\n                              width: 600,\n                              showCloseButton: true,\n                              allowOutsideClick: false,\n                              confirmButtonText: `Ok`\n                            });\n                          }\n                        },\n                        error: function (error, x, y) {},\n                        complete: function () {\n                          setTimeout(function () {\n                            $('#loading').removeClass('in');\n                            $('#loading').css('display', 'none');\n                            $('.modal-backdrop').remove();\n                            $('body').removeClass('modal-open');\n                          }, 500);\n                          if (_this.get('isDisabled')) {\n                            return _this.set('isDisabled', false);\n                          }\n                        }\n                      });\n                      // $('#tab-list').append($('<li><a href=\"' + base_url + '\" role=\"tab\" class=\"tabnumber\" data-tabnumber=\"'+tabID+'\" data-toggle=\"tab\"><span class=\"text-uppercase\">' + appt_type +'-'+patient_name+ '</span> <button class=\"close\" type=\"button\" title=\"Remove this page\">×</button></a></li>'));\n                      // $('#tab-content').append($('<div class=\"tab-pane fade\" id=\"' + tabID + '\">Tab ' + tabID + ' content</div>'));\n                    } else {\n                      var error = \"You can't add more than 3 tab\";\n                      Swal.fire({\n                        icon: 'error',\n                        title: 'Oops...',\n                        html: error,\n                        width: 600,\n                        showCloseButton: true,\n                        allowOutsideClick: false,\n                        confirmButtonText: `Ok`\n                      });\n                    }\n                  }\n                }\n              });\n            }\n          }\n        });\n      },\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage, date);\n      },\n      getDoctorDropdownList: function (user_id, branch_id) {\n        this.getDoctorDropdownList(user_id, branch_id);\n      }\n    },\n    getPatientAddress: function (appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n          _this.set('patient_id', '');\n          _this.set('appointment_id', '');\n          jQuery.noConflict();\n          _this.set('refresh', false);\n          $('#ShippingPreference').modal('hide');\n        },\n        success: function (res) {\n          jQuery.noConflict();\n          $('#ShippingPreference').modal('show');\n          _this.set('refresh', true);\n          if (res.data.length > 0) {\n            var addressData = res.data[0];\n            var address = _this.recalculateAmount.getShippingAddress(addressData.shipping_address_one, addressData.shipping_address_two, addressData.city_name, addressData.state_name, addressData.country_name, addressData.shipping_pin_code, addressData.shipping_mobile_no);\n            var shipping_address_1 = addressData.shipping_address_one;\n            var shipping_address_2 = addressData.shipping_address_two;\n            var shipping_selected_country = addressData.shipping_country;\n            var shipping_selected_state = addressData.shipping_state;\n            var shipping_selected_city = addressData.shipping_city;\n            var shipping_zip = addressData.shipping_pin_code;\n            var shipping_mob = addressData.shipping_mobile_no;\n            var shipp = {\n              shipping_address_1: shipping_address_1,\n              shipping_address_2: shipping_address_2,\n              shipping_selected_country: shipping_selected_country,\n              shipping_selected_state: shipping_selected_state,\n              shipping_selected_city: shipping_selected_city,\n              shipping_zip: shipping_zip,\n              shipping_mob: shipping_mob,\n              updateInMaster: 0\n            };\n            var shiping_pickup = addressData.dispatch_or_pickup;\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('shiping_pickup', shiping_pickup);\n            _this.set('shipping_pharmacy_location', addressData.pickup_location);\n            _this.set('shipping_billing_location', addressData.billing_location);\n            _this.set('prescription_email', addressData.prescription_email);\n            _this.set('shipp', shipp);\n            _this.set('address', address);\n            _this.set('ajaxState', shipp.shipping_selected_state);\n            _this.set('ajaxCountry', shipp.shipping_selected_country);\n            _this.set('patient_id', patient_id);\n            _this.set('appointment_id', appointment_id);\n            $('#shipping_address_column').empty().html(address);\n          } else {\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'patients/' + patient_id,\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n                _this.set('patient_id', '');\n                _this.set('appointment_id', '');\n                jQuery.noConflict();\n                _this.set('refresh', false);\n                $('#ShippingPreference').modal('hide');\n              },\n              success: function (res) {\n                jQuery.noConflict();\n                $('#ShippingPreference').modal('show');\n                _this.set('refresh', true);\n                var data = res.data[0];\n                if (data.same_as_shipping == 1) {\n                  var address = _this.recalculateAmount.getShippingAddress(data.full_address_per, data.full_address_res, data.city_name, data.state_name, data.country_name, data.pincode_per, data.phone_res);\n                  var shipping_address_1 = data.full_address_per;\n                  var shipping_address_2 = data.full_address_res;\n                  var shipping_selected_country = data.country_id_per;\n                  var shipping_selected_state = data.state_id_per;\n                  var shipping_selected_city = data.city_id_per;\n                  var shipping_zip = data.pincode_per;\n                  var shipping_mob = data.phone_res;\n                } else {\n                  var address = _this.recalculateAmount.getShippingAddress(data.shipping_full_address_per, data.shipping_full_address_res, data.shipping_city_name, data.shipping_state_name, data.shipping_country_name, data.shipping_pin_code, data.shipping_mobile);\n                  var shipping_address_1 = data.shipping_full_address_per;\n                  var shipping_address_2 = data.shipping_full_address_res;\n                  var shipping_selected_country = data.shipping_country_id;\n                  var shipping_selected_state = data.shipping_state_id;\n                  var shipping_selected_city = data.shipping_city_id;\n                  var shipping_zip = data.shipping_pin_code;\n                  var shipping_mob = data.shipping_mobile;\n                }\n                var shipp = {\n                  shipping_address_1: shipping_address_1,\n                  shipping_address_2: shipping_address_2,\n                  shipping_selected_country: shipping_selected_country,\n                  shipping_selected_state: shipping_selected_state,\n                  shipping_selected_city: shipping_selected_city,\n                  shipping_zip: shipping_zip,\n                  shipping_mob: shipping_mob,\n                  updateInMaster: 0\n                };\n                _this.set('address_mismatch', 0);\n                _this.set('shiping_pickup', '');\n                _this.set('shipping_pharmacy_location', '');\n                _this.set('shipping_billing_location', '');\n                _this.set('prescription_email', '');\n                _this.set('shipp', shipp);\n                _this.set('address', address);\n                _this.set('ajaxState', shipp.shipping_selected_state);\n                _this.set('ajaxCountry', shipp.shipping_selected_country);\n                _this.set('patient_id', patient_id);\n                _this.set('appointment_id', appointment_id);\n                $('#shipping_address_column').empty().html(address);\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        },\n        error: function (error, x, y) {},\n        complete: function () {\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: _this.get('ajaxCountry')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: _this.get('ajaxState')\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    getDoctorDropdownList: function (user_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {\n          branch_id: branch_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctor', res.data);\n          _this.set('doctor_id', user_id);\n        }\n      });\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.tabnumber').map(function (i, elem) {\n        var element_value = $(elem).attr('id');\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      if (max != '-Infinity') {\n        max = max;\n      } else {\n        max = 0;\n      }\n      return max;\n    },\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctorbillclinic',\n        data: {\n          shift_id: shift_id,\n          branch_id: branch_id,\n          stage: stage,\n          date: date,\n          user_id: user_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res.data);\n          _this.set('currentUser', '');\n          _this.set('clinicPatients', res.data);\n          var notVisit = res.data.filter(function (el) {\n            return el.visit_complete == '0';\n          });\n\n          // var icpVcPatients = res.data.filter(function (el) {\n          //     var date = el.appointment_datetime.split(' ');;\n          //     var compairDate = moment(today).isSame(moment(date[0]).format('YYYY-DD-MM'));\n          //     return ((el.type == 'icp' && el.absent == '0') && (compairDate == true)) || (el.type == 'vc');\n          // });\n\n          var icpVcPatients = res.data.filter(function (el) {\n            return el.type == 'icp' && el.absent == '0' || el.type == 'vc';\n          });\n          var phonePatients = res.data.filter(function (el) {\n            return el.type == 'phone';\n          });\n          var emailPatients = res.data.filter(function (el) {\n            return el.type == 'email';\n          });\n          var ocpPatients = res.data.filter(function (el) {\n            return el.type == 'ocp';\n          });\n          var phoneUrgent = notVisit.filter(function (el) {\n            return el.type == 'phone' && el.urgent_status == '1';\n          });\n          var emailUrgent = notVisit.filter(function (el) {\n            return el.type == 'email' && el.urgent_status == '1';\n          });\n          var ocpUrgent = notVisit.filter(function (el) {\n            return el.type == 'ocp' && el.urgent_status == '1';\n          });\n          var icpVcUrgent = notVisit.filter(function (el) {\n            return (el.type == 'icp' || el.type == 'vc') && el.urgent_status == '1';\n          });\n          if (icpVcUrgent.length > '0') {\n            var icpVcStatus = 'fa-urgent';\n          } else {\n            var icpVcStatus = '';\n          }\n          if (phoneUrgent.length > '0') {\n            var phoneStatus = 'fa-urgent';\n          } else {\n            var phoneStatus = '';\n          }\n          if (emailUrgent.length > '0') {\n            var emailStatus = 'fa-urgent';\n          } else {\n            var emailStatus = '';\n          }\n          if (ocpUrgent.length > '0') {\n            var ocpStatus = 'fa-urgent';\n          } else {\n            var ocpStatus = '';\n          }\n          var headerCounter = [{\n            remaining: {\n              icpVc: icpVcPatients.length,\n              phone: phonePatients.length,\n              email: emailPatients.length,\n              ocp: ocpPatients.length\n            },\n            urgent: {\n              icpVc: icpVcStatus,\n              phone: phoneStatus,\n              email: emailStatus,\n              ocp: ocpStatus\n            }\n          }];\n          //console.log('dropdown user login=' + user_id);\n          var loginUser = _this.get('session').getLoggedInUserId();\n          //var dropdownUser = $('#doctor').val();\n          //console.log('loop session user login='+loginUser);\n          //console.log('current user login=' + loginUser);\n          /*cooment this code by shubh tiwari as on 9 december 2021*/\n          if (parseInt(loginUser) === parseInt(user_id)) {\n            var currentUser = true;\n          } else {\n            var currentUser = false;\n          }\n          // if(loginUser!=null){\n          //   var currentUser = true;\n          // }else{\n          //   var currentUser = false;\n          // }\n          _this.set('icpVcPatients', icpVcPatients);\n          _this.set('phonePatients', phonePatients);\n          _this.set('emailPatients', emailPatients);\n          _this.set('ocpPatients', ocpPatients);\n          _this.set('currentUser', currentUser);\n          _this.set('remainingIcpVcPatients', icpVcPatients.length);\n          _this.set('remainingPhonePatients', phonePatients.length);\n          _this.set('remainingEmailPatients', emailPatients.length);\n          _this.set('remainingOcpPatients', ocpPatients.length);\n          _this.set('phoneEmailOcpRemaining', headerCounter[0]);\n          //console.log(ocpPatients);\n        },\n        complete: function (res) {}\n      });\n      var _this = this;\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + user_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var counter = res.data[0];\n          if (counter != undefined) {\n            var totalIcpVcPrescribe = +counter.total_icp_prescribe + +counter.total_vc_prescribe;\n            var totalIcpVcCasetaken = +counter.total_icp_casetaken + +counter.total_vc_casetaken;\n            counter['totalIcpVcPrescribe'] = totalIcpVcPrescribe;\n            counter['totalIcpVcCasetaken'] = totalIcpVcCasetaken;\n            _this.set('patientCount', counter);\n          } else {\n            _this.set('patientCount', 0);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n      var today = moment().format('YYYY-MM-DD');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorabsent',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: shift_id,\n          user_id: user_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('absenteesPatients', res.data);\n          //  console.log(res.data);\n        },\n        error: function (error, x, y) {\n          console.error(error);\n        },\n        complete: function (res) {\n          //console.log(res);\n        }\n      });\n\n      // Complete patient\n      var stage = 1;\n      var _this = this;\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/clinicpatients?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today + '&user_id=' + user_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //  console.log(res);\n          var ParseData = JSON.parse(res);\n          var icpVcComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp' || el.appointment_type == 'vc';\n          });\n          var phoneComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'phone';\n          });\n          var emailComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'email';\n          });\n          var ocpComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'ocp';\n          });\n\n          //console.log(icpVcComplete);\n          _this.set('completed', ParseData.data);\n          _this.set('completeIcpVcPatients', icpVcComplete);\n          _this.set('completePhonePatients', phoneComplete);\n          _this.set('completeEmailPatients', emailComplete);\n          _this.set('completeOcpPatients', ocpComplete);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n\n      //for hiding empty dropdown action\n      // $( document ).ready(function() {\n      //     setTimeout(function(){\n      //         let actionLength = $('#icp-vc-patients .doctor-group-action ul li').length;\n      //         if(actionLength == 0){\n      //             $('.doctor-group-action').hide();\n      //         } else {\n      //             $('.doctor-group-action').show();\n      //         }\n      //     }, 1000);\n\n      // });\n    },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + doctor_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        async: false,\n        success: function (res) {\n          var counter = res.data[0];\n          if (counter != undefined) {\n            _this.set('totalPrescribe', counter.total_prescribed);\n            _this.set('totalCasetaken', counter.total_case_taken);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    newDoctorId(id) {\n      var _this = this;\n      var stage = 0;\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = id;\n      var currentUserId = _this.get('session').getLoggedInUserId();\n      _this.set('selected_doctor_id', id);\n      var user = $('#doctor').val();\n      _this.send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n      // if(currentUserId != user_id){\n      //   $(\".table\").css(\"pointer-events\", \"none\");\n      // } else {\n      //   $(\".table\").css(\"pointer-events\", \"auto\");\n      // }\n    },\n    getTabsList: function (user_id, branch_id, shift_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'tabs',\n        data: {\n          user_id: user_id,\n          branch_id: branch_id,\n          shift_id: shift_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('tablist', res);\n        },\n        complete: function (res) {}\n      });\n    },\n    getPresctibeCaseTakenTabList: function (branch_id, shift_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'casetakenprescribingtabs',\n        data: {\n          branch_id: branch_id,\n          shift_id: shift_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('casetaken_prescribing_status', res);\n        },\n        complete: function (res) {}\n      });\n    },\n    ucFirstAllWords: function (str) {\n      var pieces = str.split(\" \");\n      for (var i = 0; i < pieces.length; i++) {\n        var j = pieces[i].charAt(0).toUpperCase();\n        pieces[i] = j + pieces[i].substr(1);\n      }\n      return pieces.join(\" \");\n    }\n  });\n});","define(\"clinic-dev/controllers/home\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({});\n});","define(\"clinic-dev/controllers/icpattend\", [\"exports\", \"@whoicd/icd11ect\", \"clinic-dev/config/environment\", \"numeral\", \"ember-uuid\", \"clinic-dev/utils/ajax-error-handler\"], function (_exports, _icd11ect, _environment, _numeral, _emberUuid, _ajaxErrorHandler) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@whoicd/icd11ect\",0,\"@ember/object\",0,\"clinic-dev/config/environment\",0,\"numeral\",0,\"ember-uuid\",0,\"@ember/utils\",0,\"clinic-dev/utils/ajax-error-handler\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    print: Ember.inject.service('print-options'),\n    checkout: Ember.inject.controller('checkout'),\n    doctordasboard: Ember.inject.controller('doctor-dashboard'),\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    diagnostic_test_name: '',\n    isLoadingHistory: false,\n    _uploader: null,\n    errors: [],\n    acceptedTypes: 'image/png,image/jpeg,image/jpg,application/dicom,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/csv,text/csv,application/zip,application/octet-stream,application/x-zip-compressed, multipart/x-zip',\n    maxFileSize: '50MB',\n    maxFiles: 12,\n    thumbWidth: 300,\n    thumbHeight: 186,\n    msgWrongFileType: 'Only file types allowed above can be uploaded',\n    msgMaxFileSize: 'File is too big ({fileSize}). Max file size is {maxFileSize}.',\n    msgFileCounter: 'Selected {count} / {maxFiles} files',\n    previewUrl: '',\n    previewFileName: '',\n    // filecounter: 0,\n    init: function () {\n      //this._super(...arguments);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this._super(...arguments);\n      //_this.get('serviceIcpattend').changeName(\"hai\");\n      //_this.set('name1', (_this.get('serviceIcpattend').name)); // hello\n      _this.freeNotelocalstorageArray = [];\n      _this.messageLoglocalstorageArray = [];\n      _this.prescriptionlocalstorageArray = [];\n      _this.prescriptionMedicinelocalstorageArray = [];\n      // This selectedFileItems array is used to store add and remove file list array\n      _this.selectedFileItems = [];\n      // This removeFileId array is used to store remove file id array\n      _this.removeFileId = [];\n      // This removeFileId array is used to store remove file id array\n      _this.s3UploadedFile = [];\n      // This selecredFilterReport array\n      _this.selecredFilterReport = [];\n      //ICD diseases Api Configuration & setting\n      const mySettings = {\n        apiServerUrl: 'https://id.who.int',\n        apiSecured: true,\n        language: 'en',\n        autoBind: false,\n        // set autoBind to false\n        popupMode: true,\n        searchByCodeOrURI: true,\n        enableKeyboard: true\n      };\n      const myCallbacks = {\n        selectedEntityFunction: selectedEntity => {\n          // paste the code into the <input>\n          document.getElementById('icd_name').value = selectedEntity.code + ' ' + selectedEntity.bestMatchText;\n          document.getElementById('icd_name').setAttribute('readonly', true);\n          document.getElementById('icd_code').value = selectedEntity.code;\n          document.getElementById('certificate_name').value = selectedEntity.bestMatchText;\n          document.getElementsByClassName('ctw-window')[0].style.display = 'none';\n          //document.getElementsByClassName('ctw-window')[0].style.border = '1px solid #eee';\n          //ECT.Handler.clear(\"1\");\n        },\n        getNewTokenFunction: async () => {\n          // if the embedded coding tool is working with the cloud hosted ICD-API, you need to set apiSecured=true\n          // In this case embedded coding tool calls this function when it needs a new token.\n          // In this case you backend web application should provide updated tokens\n          const url = _environment.default.APP.lumen_api_url + 'icdtoken'; // we assume this backend script returns a JSON {'token': '...'}\n          try {\n            const response = await fetch(url, {\n              method: 'GET',\n              // or POST, PUT, DELETE\n              headers: {\n                'Content-Type': 'application/json',\n                'Authorization': `Bearer ${utoken}` // your token here\n              }\n            });\n            const result = await response.json();\n            //console.log(result);\n            const token = result.token;\n            return token; // the function return is required\n          } catch (e) {\n            //console.log('Error during the request');\n          }\n        },\n        searchStartedFunction: () => {\n          //this callback is called when searching is started.\n          console.log('Search started!');\n        },\n        searchEndedFunction: () => {\n          //this callback is called when search ends.\n          console.log('Search ended!');\n        }\n      };\n      // configure the ECT Handler with mySettings and myCallbacks\n      _icd11ect.default.Handler.configure(mySettings, myCallbacks);\n      //ECT.Handler.bind('1');\n      // this below code comment due to no need of appointment type on icp page, Written by Shubh Tiwari as on 5 May 2022\n      _this.set('appointment_types', null);\n      _this.set('assigntolist', null);\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'getsetting/appointment_type',\n        method: 'GET',\n        data: '',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('appointment_types', JSON.parse(res));\n        }\n      });\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'users/assigntolist',\n        method: 'GET',\n        data: '',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('assigntolist', res);\n        }\n      });\n      _this.set('refresh', false);\n    },\n    keyup: function (e) {\n      if (e.keyCode === 13) {\n        e.preventDefault();\n      }\n    },\n    actions: {\n      viewPDFFileInPopup(url, fileName, fileId) {\n        this.viewPDFFileInPopup(url, fileName, fileId);\n      },\n      getPatientAddress: function (patient_id, appointment_id) {\n        this.getPatientAddress(patient_id, appointment_id);\n      },\n      clearCaseTakenDisease: function (appointment_id, patient_id) {\n        Swal.fire({\n          text: 'This will remove all case taken data for this visit. Are you sure you want to do this?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, clear it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            let utoken = _this.session.getToken();\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'clearcasetaken',\n              method: 'POST',\n              data: {\n                aid: appointment_id,\n                pid: patient_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loader').show();\n              },\n              success: function (res) {\n                if (res.error == false && res.action == \"delete\") {\n                  //_this.flashes.success(res.message);\n                  $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  $('#casetakenmessage .alert').fadeToggle(10000);\n                  _this.getCaseTakenList(appointment_id);\n                } else if (res.error == true && res.action == \"not_delete\") {\n                  //_this.flashes.danger(res.message);\n                  $('#casetakenmessage').html('<div class=\"alert alert-danger\">' + res.message + '</div>');\n                  $('#casetakenmessage .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                $('#loader').hide();\n              }\n            });\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      historyClearCheckbox: function () {\n        var appointment = [];\n        $.each($('input.clearcheckbox:checkbox:checked'), function () {\n          appointment.push($(this).data('appointment'));\n        });\n        //$('#visithistoryPopup').modal('hide');\n        if (appointment.length > 0) {\n          Swal.fire({\n            text: 'Are you sure you want to clear visit history?',\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            showDenyButton: true,\n            denyButtonText: `Cancel`,\n            confirmButtonText: 'Yes, clear it'\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('li :checkbox').prop('checked', false);\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n              $('#importvisitid').val('');\n            }\n          });\n        } else {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please check checkbox first!', 'visitmessage');\n        }\n      },\n      filterVisitHistory: function (patient_id, filter) {\n        //var pages = page+1;\n        var _this = this;\n        var data_limit = 5;\n        _this.send('getPatientHistory', patient_id, filter);\n      },\n      loadMoreHistory: function (limit, patient_id, filter) {\n        //var pages = page+1;\n        var _this = this;\n        var data_limit = parseInt(limit) + 5;\n        _this.send('getPatientHistory', patient_id, filter, data_limit);\n      },\n      closePDFReport() {\n        $('#filePreviewModal').modal('hide');\n        //this.set('previewUrl', '');\n        //this.set('previewFileName', '');\n      },\n      downloadDiagnosticReport: function (url, file_name) {\n        var _this = this;\n        window.URL = window.URL || window.webkitURL;\n        var xhr = new XMLHttpRequest(),\n          a = document.createElement('a'),\n          file;\n        xhr.open('GET', url, true);\n        xhr.responseType = 'blob';\n        xhr.onload = function () {\n          //console.log(xhr.response.type);\n          file = new Blob([xhr.response], {\n            type: xhr.response.type\n          });\n          a.href = window.URL.createObjectURL(file);\n          a.download = file_name; // Set to whatever file name you want\n          a.click();\n        };\n        $('#diagnostic_test_name').removeAttr('readonly');\n        xhr.send();\n      },\n      showTestNote: function (test_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var Id = 'showTestNote';\n        //console.log(test_id);\n        $('#loader').show();\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'testnotes',\n          method: 'POST',\n          data: {\n            id: test_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            // setting a timeout\n            _this.set('test_notes', '');\n          },\n          success: function (note_res) {\n            if (note_res.data != \"\") {\n              _this.set('test_notes', note_res.data);\n            } else {\n              _this.set('test_notes', 'Note not available');\n            }\n          },\n          complete: function () {\n            $('#loader').hide();\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId(Id);\n          }\n        });\n      },\n      //Nishant 9-Jan-2023: This below function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      getPreviousVisitCharges: function (appointment_id, billing_id) {\n        this.getPreviousVisitCharges(appointment_id, billing_id);\n      },\n      selectFilterReport(val, isCheck) {\n        if (isCheck == true) {\n          this.selecredFilterReport.addObject(val);\n        } else {\n          this.selecredFilterReport.removeObject(val);\n        }\n        //console.log(this.selecredFilterReport);\n      },\n      getPopupFilterReport(id, patient_id) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var frfromdate = $('#frfromdate').val();\n        var frtodate = $('#drtodate').val();\n        //console.log(frfromdate);\n        //console.log(frtodate);\n        if (frfromdate == undefined || frfromdate == '') {\n          var message = i18n.t('icpattend.validationErrorMessage.diagnostiFilterFromdate');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'frfromdate');\n        } else if (frtodate == undefined || frtodate == '') {\n          var message = i18n.t('icpattend.validationErrorMessage.diagnostiFilterTodate');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'frtodate');\n        } else {\n          var check_true = _this.recalculateAmount.compareTwoDates(frfromdate, frtodate);\n          if (check_true == true) {\n            var message = i18n.t('icpattend.validationErrorMessage.compareTwoDate');\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'frtodate');\n          } else {\n            _this.send('getPatientAllReports', id, patient_id, frfromdate, frtodate);\n            //_this.recalculateAmount.showPopupWithPassingDynamicPopupId('diagnostic_filter_report');\n          }\n        }\n      },\n      getPageFilterReport(id, patient_id) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var drfromdate = $('#drfromdate').val();\n        var drtodate = $('#drtodate').val();\n        if (drfromdate == undefined || drfromdate == '') {\n          var message = i18n.t('icpattend.validationErrorMessage.diagnostiFilterFromdate');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'drfromdate');\n        } else if (drtodate == undefined || drtodate == '') {\n          var message = i18n.t('icpattend.validationErrorMessage.diagnostiFilterTodate');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'drtodate');\n        } else {\n          var check_true = _this.recalculateAmount.compareTwoDates(drfromdate, drtodate);\n          if (check_true == true) {\n            var message = i18n.t('icpattend.validationErrorMessage.compareTwoDate');\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'drtodate');\n          } else {\n            _this.send('getPatientAllReports', id, patient_id, drfromdate, drtodate);\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('diagnostic_filter_report');\n          }\n        }\n      },\n      getPatientAllReports: function (id, patient_id, drfromdate, drtodate) {\n        this.getPatientAllReports(id, patient_id, drfromdate, drtodate);\n      },\n      getMajorCondition: function (appointment_id, patient_id) {\n        this.getMajorCondition(appointment_id, patient_id);\n      },\n      goToNext: function (appointment_id, patient_id, page_no) {\n        //console.log('in icpattend controller');\n        this.getCaseHistory(appointment_id, patient_id, page_no - 1); //recent records are first so reduce page no.\n      },\n      goToPrev: function (appointment_id, patient_id, page_no) {\n        //console.log('in icpattend controller');\n        this.getCaseHistory(appointment_id, patient_id, page_no + 1);\n      },\n      hideDiagnosticPopup() {\n        jQuery.noConflict();\n        $('#saveDiagnosticReport').trigger('reset');\n        $('#saveDiagnosticReport')[0].reset();\n        $('body').removeAttr('style');\n        $('#diagnosticReports').modal('hide');\n      },\n      deleteDignosticReport(id, appointment_id, patient_id, diagnostic_report_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        Swal.fire({\n          //title: 'You will lose all unsaved data.',\n          text: 'Are you sure you want to delete?',\n          icon: 'warning',\n          width: 600,\n          allowOutsideClick: false,\n          showDenyButton: true,\n          denyButtonText: `Cancel`,\n          confirmButtonText: 'Yes, delete it'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var base_url = _environment.default.APP.lumen_api_url + 'testdelete';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: id,\n                appointment_id: appointment_id,\n                patient_id: patient_id,\n                diagnostic_report_id: diagnostic_report_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == false && res.action == 'test_delete') {\n                  _this.recalculateAmount.allSuccessMessage(res.message, 'diagnosticmessage');\n                  _this.send('getDiagnosticList', res.appointment_id, res.patient_id);\n                  _this.send('hideDiagnosticPopup');\n                  _this.send('ResetDignosticReport');\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(res.message, 'diagnosticmessage');\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        });\n      },\n      // This function is used to reset add diagnostic popup value after click on cancel button or cross icon of popup. Written by Shubh Tiwari as on 25-05-2022\n      ResetDignosticReport() {\n        var _this = this;\n        $('body').removeAttr('style');\n        var todayDate = moment().format('DD/MM/YYYY');\n        $('#diagnostic_test_name').val('');\n        $('#group_tests_list').html('');\n        $('#tests_list').html('');\n        _this.set('editreportDetails', '');\n        $('#diagnostic_report_notes').val('');\n        $('#group_id').val('');\n        $('#parent_group_id').val('');\n        $('#imaging').val('');\n        $('#report_id').val(0);\n        _this.removeFileId.clear();\n        _this.selectedFileItems.clear();\n        _this.set('filequeue', null);\n        _this._uploader.getValidFiles();\n        _this._uploader.emptyFiles(); //Clear the _files object in main component\n        _this.set('refresh', false);\n        _this.filecounter = 0;\n        $('#imaging_report').prop('checked', false);\n        $('#imaging_report').removeAttr('checked');\n        $('#dignostic_test_id').val('');\n        $('#diagnostic_report_id').val('');\n        $('#grouppath').html('');\n        $('#dignostic_group_name').val('');\n        $('#diagnostic_results').hide();\n        $('.print-error-msg').css('display', 'none');\n        _this.recalculateAmount.divInsideElementEnableUsingId('saveDiagnosticReport');\n        $('#diagnostic_test_date').val(todayDate);\n      },\n      saveDiagnosticReport: async function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        _this.set('errors', []);\n        // Hidden field\n        //var formData = new FormData();\n        var formData = $('#saveDiagnosticReport').serialize();\n        // console.log('formData:'+formData);\n\n        //Nishant 03-Feb-2023: Needed validations before submitting form\n        if ($('#diagnostic_test_name').val() == '' || $('#diagnostic_test_name').val() == undefined) {\n          alert('Test / Group name can\\'t be empty.');\n          return false;\n        }\n        var testDataNotEmpty = false;\n        var inputCount = 0; //this is needed because imaging tests do not have any inputs(select or textbox)\n        $('#saveDiagnosticReport *').filter(':input[name^=\"range_value\"]').each(function () {\n          // alert($(this).attr('name'));\n          inputCount++;\n          if ($(this).val() != '') {\n            //value found\n            testDataNotEmpty = true;\n            return true; //exit the loop\n          }\n        });\n        if (inputCount > 0 && testDataNotEmpty == false) {\n          //If there were test inputs and no value provided for any\n          alert('Please provide value for atleast one test');\n          return false;\n        }\n        var user_id = _this.session.getLoggedInUserId();\n        var remove_FileId = _this.get('removeFileId');\n        //var s3UploadedFile = [];\n        var dynamiccount = $('.counter').attr('id');\n        var count = isNaN(dynamiccount) ? 0 : dynamiccount;\n        var maxFiles = _this.get('maxFiles');\n        var valid_file_names = _this._uploader.getValidFiles();\n        var all_file_names = _this._uploader.getAllFiles();\n        // console.log('starting with:' + count);\n        // console.log('valid files count:' + valid_file_names.length);\n        // console.log('All files count:' + all_file_names.length);\n        if (count <= maxFiles && all_file_names.length == valid_file_names.length) {\n          //if all file are valid in size, type, and within total max limit count.\n          //Count and length will be zero if no uploads are done so the condition work in that case also\n\n          if (valid_file_names.length > 0) {\n            //if any files were selected for upload then lenght will be > 0\n            // Nishant 4-Feb-2023: For now we have to do with waiting for upload to completed\n            //alert('Please do not close this page or navigate away from this page while the documents are uploaded. You can continue case taking but do not close the patient record until you see a success message');\n            //$('#diagnosticReports').modal('hide'); //Let user continue work while we upload files.\n            alert('Please wait and do not close this page or navigate away from this page while the documents are uploaded, otherwise your changes won\\'t be saved');\n            let {\n              uploaded_count,\n              error_count,\n              uploadedFiles\n            } = await _this.uploadfiles(valid_file_names); //this function uploads all file to s3. Nishant 21-Jan-2023\n            //console.log('uploaded count:' + uploaded_count);\n            //console.log('error count:' + error_count);\n\n            var post_data = {\n              formData: formData,\n              user_id: user_id,\n              removeFileId: remove_FileId,\n              report_file: _this.get('s3UploadedFile')\n            };\n            if (uploaded_count < valid_file_names.length || error_count > 0) {\n              //If all files were not uploaded.\n              Swal.fire({\n                text: 'Some of your diagnostic report files could not be uploaded. Please check your internet speed & try again. Do you want to continue saving the test data?',\n                icon: 'warning',\n                width: 600,\n                showCancelButton: true,\n                confirmButtonColor: '#3085d6',\n                cancelButtonColor: '#d33',\n                allowOutsideClick: false,\n                confirmButtonText: 'Yes, Save the test data!'\n              }).then(result => {\n                if (result.isConfirmed) {\n                  //If user confirmed, then save test data even if some file upload failed.\n                  postDiagnosticData(utoken);\n                }\n              });\n            } else {\n              //All files were uploaded successfully so we save the data\n              postDiagnosticData(utoken);\n            }\n          } else {\n            //No files were selected for upload\n            var post_data = {\n              formData: formData,\n              user_id: user_id,\n              fileName: null,\n              removeFileId: remove_FileId\n            };\n            postDiagnosticData(utoken);\n          }\n        } else {\n          var message = 'You can upload only 12 files including JPG, PNG, JPEG, PDF, DOC, DOCX, CSV, DCM, DICOM only.';\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'diagnosticmessage');\n        }\n\n        //Nishant 05-Feb-2023: Inner Function in saveDiagnosticReport to post data to database\n        function postDiagnosticData(utoken) {\n          //let utoken = this.session.getToken();\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'icpdiagnostic',\n            method: 'POST',\n            data: post_data,\n            //cache: false,\n            //contentType: false,\n            //processData: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              // _this.recalculateAmount.popupLoaderOpen();\n              $('#loader').show();\n              $('#loader').css('z-index', 600000);\n            },\n            success: function (data) {\n              if ($.isEmptyObject(data.error)) {\n                if (data.actions == 'add' && data.error == false) {\n                  _this.recalculateAmount.allSuccessMessage(data.message);\n                  _this.send('getDiagnosticList', data.appointment_id, data.patient_id);\n                  _this.send('ResetDignosticReport');\n                  _this.send('hideDiagnosticPopup');\n                } else if (data.actions == 'datainsufficient' && data.error == true) {\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(data.message, 'diagnosticmessage');\n                }\n              } else {\n                _this.send('printErrorMsg', data.error);\n              }\n            },\n            complete: function () {\n              // _this.recalculateAmount.popupLoaderClose();\n              $('#loader').hide();\n            }\n          });\n        }\n      },\n      uploaderInit: function (uploader) {\n        this._uploader = uploader;\n      },\n      // This function is used for add file\n      onChangeFile(files) {\n        var _this = this;\n        var errorMessage;\n        var qf;\n        var filesAdded = 0;\n        for (var i = 0; i < files.length; i++) {\n          if ((errorMessage = _this.FileValidate(files[i])) === true) {\n            qf = _this.QueuedFile(files[i], true);\n          } else if (errorMessage === false) {\n            continue;\n          } else {\n            qf = _this.QueuedFile(files[i], false, errorMessage);\n          }\n          _this.selectedFileItems.push(qf);\n          filesAdded++;\n          _this.FileQueueList(qf);\n        }\n      },\n      // This function is used for add file\n      removeFile(qf, remove_id) {\n        var _this = this;\n        var pos;\n        // var remove_object_file = {};\n        // remove_object_file['table'] = table_name;\n        // remove_object_file['id'] = remove_id;\n        //_this.removeFileId.addObject(remove_id);\n        if (remove_id != undefined) {\n          if (_this.removeFileId.indexOf(remove_id) === -1) {\n            _this.removeFileId.push(remove_id);\n          }\n        }\n\n        //console.log(_this.removeFileId);\n        // Creates an array of objects with unique \"id\" property values.\n        // let uniqueObjArray = [...new Map(_this.removeFileId.map((item) => [item, item])).values(),];\n        // _this.removeFileId = uniqueObjArray;\n        // console.log(_this.removeFileId);\n\n        var [...newArray] = _this.selectedFileItems; // copy the array\n        if ((pos = newArray.findIndex(x => x.file.name === qf.file.name)) > -1) {\n          //console.log(pos);\n          newArray.splice(pos, 1);\n        }\n        _this.selectedFileItems = newArray;\n        // Will trigger rerender since newArray is a copy. Rerender was not working if we put original selectedFileItems array in filequeue\n        _this.set('filequeue', newArray);\n      },\n      removeTest: function (test_name, appointment_id, patient_id, test_id) {\n        this.removeTest(test_name, appointment_id, patient_id, test_id);\n      },\n      getTestName: function (test_array, range_value) {\n        this.getTestName(test_array, range_value);\n      },\n      advisedReport() {\n        setTimeout(function () {\n          document.getElementById(\"advised_report_name\").focus();\n        }, 500);\n      },\n      addNewDiagnosticReport(report_name) {\n        var _this = this;\n        if (report_name == undefined) {\n          var name = 'Diagnostic Report';\n        } else {\n          var name = report_name;\n        }\n        jQuery.noConflict();\n        $('#saveDiagnosticReport').trigger('reset');\n        $('.dtitle').text('Add ' + name);\n        $('#saveReport').html('<i class=\"fas fa-save icon-space\"></i> Save Report');\n        var todayDate = moment().format('DD/MM/YYYY');\n        $('#diagnostic_test_date').val(todayDate);\n        _this.set('filequeue', null);\n        _this.set('editreportDetails', '');\n        _this.selectedFileItems.clear();\n        $('#diagnostic_test_name').addClass('diagnostic_test_name');\n        $('.dsclear').attr('disabled', false);\n        $('.drdelete').hide();\n        _this.recalculateAmount.divInsideElementEnableUsingId('saveDiagnosticReport');\n        _this.set('refresh', true);\n        $('body').css('overflow', 'hidden');\n        $('#diagnosticReports').modal('show');\n        $('#diagnostic_test_name').removeAttr('readonly');\n        setTimeout(function () {\n          document.getElementById(\"diagnostic_test_name\").focus();\n        }, 500);\n      },\n      notesDetails: function (diagnostic_report_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'notesdetail',\n          method: 'POST',\n          data: {\n            id: diagnostic_report_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            if (res.error == false) {\n              _this.set('report_notes', res.data);\n            } else {\n              _this.set('report_notes', res.message);\n            }\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('diagnosticNotesReports');\n          },\n          complete: function () {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      },\n      editDiagnosticReport: function (id, appointment_id, test_name, lower_range, upper_range, unit_name, range_value, range_type, diagnostic_report_id, created_at) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var _Files = _this.get('selectedFileItems');\n        var check_edit_or_not = _this.recalculateAmount.checkingEqualDate(created_at);\n        if (check_edit_or_not == true) {\n          _this.recalculateAmount.divInsideElementEnableUsingId('saveDiagnosticReport');\n        } else {\n          _this.recalculateAmount.divInsideElementDisableUsingId('saveDiagnosticReport');\n        }\n        $('#report_id').val(0);\n        $('#appointment_id').val('');\n        $('#diagnostic_report_id').val('');\n        $('.dtitle').text('');\n        jQuery.noConflict();\n        var popup_title;\n        if (range_type == 'th') {\n          popup_title = test_name + ' ' + '(' + lower_range + ' - ' + upper_range + ' ' + unit_name + ')' + ' - ' + range_value;\n        } else if (range_type == 'bnr') {\n          popup_title = test_name + ' - ' + range_value;\n        } else if (range_type == 'img') {\n          popup_title = test_name;\n        }\n        $('.dtitle').text(popup_title);\n        $('#report_id').val(id);\n        $('#appointment_id').val(appointment_id);\n        $('#diagnostic_report_id').val(diagnostic_report_id);\n        $('#diagnostic_test_name').removeClass('diagnostic_test_name');\n        $('#diagnostic_test_name').attr('readonly', true);\n        $('.dsclear').attr('disabled', true);\n        $('.drdelete').show();\n        $('#saveReport').html('<i class=\"fas fa-save icon-space\"></i> Update Report');\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'reportdetail',\n          method: 'POST',\n          data: {\n            id: id,\n            appointment_id: appointment_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n            _this.set('editreportDetails', '');\n            _this.set('filequeue', null);\n            _this.send('hideDiagnosticPopup');\n          },\n          success: async function (res) {\n            if (res.error == false) {\n              _this.set('editreportDetails', res.data[0]);\n              const diagnostic_upload_reports_files = res.data[0].filereport;\n              _this.set('selectedFileItems', []);\n              $('body').css('overflow', 'hidden');\n              $('#diagnosticReports').modal('show');\n              for (const element2 of diagnostic_upload_reports_files) {\n                const thumbnailUrl = await _this.fetchPresignedUrl(element2.upload_folder_path, utoken);\n                if (element2.original_file_name) {\n                  const fileObj = {\n                    file: new File([''], element2.original_file_name, {\n                      type: element2.file_type,\n                      lastModified: new Date().getTime()\n                    }),\n                    valid: true,\n                    error: null,\n                    id: element2.id\n                  };\n                  if (['png', 'jpg', 'jpeg'].includes(element2.file_type)) {\n                    fileObj.thumbnail = thumbnailUrl;\n                  } else {\n                    fileObj.file_path = thumbnailUrl;\n                    fileObj.other_file = element2.file_type;\n                  }\n                  _this.selectedFileItems.push(Ember.Object.create(fileObj));\n                }\n              }\n              const unique_ember_object = _this.selectedFileItems.filter((event, index, self) => index === self.findIndex(e => e.id === event.id));\n              _this.set('filequeue', unique_ember_object);\n              _this.send('getTestName', res.data[0], res.data[0].range_value);\n            } else if (res.error == true) {\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(res.message, 'diagnosticmessage');\n            }\n            _this.set('refresh', true);\n          },\n          // success: function (res) {\n          //   if (res.error == false) {\n          //     _this.set('editreportDetails', res.data[0]);\n          //     var diagnostic_upload_reports_files = res.data[0].filereport;\n          //     diagnostic_upload_reports_files.forEach((element2) => {\n          //       _this.fetchPresignedUrl(element2.upload_folder_path).then((thumbnailUrl) => {\n\n          //         if (element2.original_file_name != '') {\n          //           if (\n          //             element2.file_type == 'png' ||\n          //             element2.file_type == 'jpg' ||\n          //             element2.file_type == 'jpeg'\n          //           ) {\n          //             var rf2 = EmberObject.create({\n          //               file: new File([''], element2.original_file_name, {\n          //                 type: element2.file_type,\n          //                 lastModified: new Date().getTime(),\n          //               }),\n          //               thumbnail: thumbnailUrl,\n          //               valid: true,\n          //               error: null,\n          //               id: element2.id,\n          //             });\n          //           } else {\n          //             var rf2 = EmberObject.create({\n          //               file: new File([''], element2.original_file_name, {\n          //                 type: element2.file_type,\n          //                 lastModified: new Date().getTime(),\n          //               }),\n          //               file_path:thumbnailUrl,\n          //               other_file: element2.file_type,\n          //               valid: true,\n          //               error: null,\n          //               id: element2.id,\n          //             });\n          //           }\n          //           _this.selectedFileItems.push(rf2);\n          //         }\n\n          //       });\n          //     });\n\n          //     var unique_ember_object = [];\n          //     $.each(_Files, function (index, event) {\n          //       var events = $.grep(unique_ember_object, function (e) {\n          //         return event.id === e.id;\n          //       });\n          //       if (events.length === 0) {\n          //         unique_ember_object.push(event);\n          //       }\n          //     });\n\n          //     _this.set('filequeue', unique_ember_object);\n          //     _this.send('getTestName', res.data[0], res.data[0].range_value);\n          //   } else if (res.error == true) {\n          //     _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(\n          //       res.message,\n          //       'diagnosticmessage'\n          //     );\n          //   }\n          //   _this.set('refresh', true);\n          //   $('#diagnosticReports').modal('show');\n          // },\n          complete: function () {\n            _this.recalculateAmount.popupLoaderClose();\n            _this.recalculateAmount.popupElementDisableByClassName(check_edit_or_not);\n            var remove_attr = $('#saveDiagnosticReport').find('button').hasClass('dcancel');\n            if (remove_attr == true) {\n              $('.dcancel').removeAttr('disabled');\n            }\n          }\n        });\n      },\n      loadFilterReport(id, patient_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var data = {\n          appointment_id: id,\n          patient_id: patient_id\n        };\n        if (_this.get('selecredFilterReport').length == 0) {\n          var message = i18n.t('icpattend.validationErrorMessage.atleastonereportSelect');\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'diagnostic_reasonerror');\n        } else {\n          data.selectec_id = _this.get('selecredFilterReport');\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'loadfilterreacord',\n            data: data,\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#filter-loader').show();\n            },\n            success: function (res) {\n              $('#filter-loader').show();\n              _this.recalculateAmount.hidePopupWithPassingDynamicPopupId('diagnostic_filter_report');\n              _this.send('getDiagnosticList', res.appointment_id, res.patient_id);\n            },\n            complete: function () {\n              _this.get('selecredFilterReport').clear();\n              _this.recalculateAmount.popupLoaderClose();\n            }\n          });\n        }\n      },\n      refreshPage: function () {\n        this.refreshPage();\n      },\n      getreportedProxy: function (appointment_id) {\n        this.getreportedProxy(appointment_id);\n      },\n      getVisitLogs: function (patient_id) {\n        this.getVisitLogs(patient_id);\n      },\n      reportedbyproxy: function (appointment_id, patient_id, checkedValue) {\n        //console.log(checkedValue);\n        //console.log(appointment_id);\n        //console.log(patient_id);\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        if (checkedValue == true) {\n          var proxy_value = 1;\n        } else if (checkedValue == false) {\n          var proxy_value = 0;\n        }\n        //console.log(proxy_value);\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'icpattend/proxyreport',\n          method: 'POST',\n          data: {\n            user_id: login_user_id,\n            proxy_value: proxy_value,\n            appointment_id: appointment_id,\n            patient_id: patient_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.error == false && res.actions == 'added') {\n              _this.send('getreportedProxy', res.appointment_id);\n            } else if (res.error == false && res.actions == 'updated') {\n              _this.send('getreportedProxy', res.appointment_id);\n            }\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      refreshApiRequest: function () {\n        var _this = this;\n        _this.transitionToRoute('doctor-dashboard');\n      },\n      doctorId: function (user_id) {\n        var _this = this;\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var shift_id = this.session.getLoggedInUserShift();\n        _this.send('newDoctorId', user_id);\n        _this.send('doctorCounter', user_id, shift_id, branch_id);\n      },\n      newDoctorId: function (user_id) {\n        this.newDoctorId(user_id);\n      },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      getDoctorDropdownList: function (user_id, branch_id) {\n        this.getDoctorDropdownList(user_id, branch_id);\n      },\n      // get localstorage of freenote\n      getLocalstorageFreeNote(id) {\n        var _this = this;\n        var retrievedObject = localStorage.getItem('freenote');\n        //console.log($.parseJSON(retrievedObject));\n        var free_note_object = $.parseJSON(retrievedObject);\n        if (free_note_object != null) {\n          if (free_note_object.length > 0) {\n            _this.set('free_note_changes', _this.canFindAppointmentId(free_note_object, id));\n          } else {\n            _this.set('free_note_changes', '');\n          }\n        } else {\n          _this.set('free_note_changes', '');\n        }\n      },\n      // get localstorage of message log\n      getLocalstorageMessageLog(id) {\n        var _this = this;\n        var retrievedObject = localStorage.getItem('message_log');\n        //console.log($.parseJSON(retrievedObject));\n        var message_log_object = $.parseJSON(retrievedObject);\n        if (message_log_object != null) {\n          if (message_log_object.length > 0) {\n            _this.set('message_log_changes', _this.canFindAppointmentId(message_log_object, id));\n          } else {\n            _this.set('message_log_changes', ' ');\n          }\n        } else {\n          _this.set('message_log_changes', ' ');\n        }\n      },\n      // get localstorage of prescription instruction\n      getLocalstoragePrescriptionInstruction(id) {\n        var _this = this;\n        var retrievedObject = localStorage.getItem('prescription_instruction');\n        var instruction_note_object = $.parseJSON(retrievedObject);\n        if (instruction_note_object != null) {\n          if (instruction_note_object.length > 0) {\n            _this.set('instruction_note', _this.canFindAppointmentId(instruction_note_object, id));\n          } else {\n            _this.set('instruction_note', '');\n          }\n        } else {\n          _this.set('instruction_note', '');\n        }\n      },\n      // get localstorage of prescription medicine\n      // getLocalstoragePrescription(id) {\n      //   var _this = this;\n      //   var retrievedObject = localStorage.getItem('formdata' + id);\n      //   //var instruction_note_object = $.parseJSON(retrievedObject);\n      //   //var storedform = _this.parseValue(instruction_note_object, id);\n      //   _this.stringToForm(retrievedObject, jQuery('#cwPrescribeForm' + id));\n      //   console.log(retrievedObject);\n      // },\n      onRealTimeFreeNoteChanges: function (event) {\n        event.preventDefault();\n        var _this = this;\n        //console.log(event.target.getAttribute(\"data-appointment\"));\n        var appointment_id = event.target.getAttribute('data-appointment');\n        var myArray = _this.get('freeNotelocalstorageArray');\n        var obj = myArray.findBy('id', appointment_id); // assuming the object has a property 'id'\n        myArray.removeObject(obj);\n        var free_note = {\n          id: appointment_id,\n          value: event.target.value\n        };\n        myArray.addObject(free_note);\n        //console.log('freenote'+myArray);\n        localStorage.setItem('freenote', JSON.stringify(myArray));\n      },\n      onRealTimeMessageLogsChanges: function (event) {\n        event.preventDefault();\n        var _this = this;\n        //console.log(event.target.getAttribute(\"data-appointment\"));\n        var appointment_id = event.target.getAttribute('data-appointment');\n        var myArray = _this.get('messageLoglocalstorageArray');\n        var obj = myArray.findBy('id', appointment_id); // assuming the object has a property 'id'\n        myArray.removeObject(obj);\n        var message_log = {\n          id: appointment_id,\n          value: event.target.value\n        };\n        myArray.addObject(message_log);\n        //console.log('message-log'+myArray);\n        localStorage.setItem('message_log', JSON.stringify(myArray));\n      },\n      onRealTimePrescriptionNoteChanges: function (event) {\n        event.preventDefault();\n        var _this = this;\n        //console.log(event.target.getAttribute(\"data-appointment\"));\n        var appointment_id = event.target.getAttribute('data-appointment');\n        var myArray = _this.get('prescriptionlocalstorageArray');\n        var obj = myArray.findBy('id', appointment_id); // assuming the object has a property 'id'\n        myArray.removeObject(obj);\n        var prescription_instruction = {\n          id: appointment_id,\n          value: event.target.value\n        };\n        myArray.addObject(prescription_instruction);\n        //console.log('message-log'+myArray);\n        localStorage.setItem('prescription_instruction', JSON.stringify(myArray));\n      },\n      // onRealTimePrescriptionMedicineChanges: function (event) {\n      //   event.preventDefault();\n      //   var _this = this;\n      //   var appointment_id = event.target.getAttribute('data-appointment');\n      //   var myArray = _this.get('prescriptionMedicinelocalstorageArray');\n      //   var obj = myArray.findBy('id', appointment_id); // assuming the object has a property 'id'\n      //   myArray.removeObject(obj);\n      //   var prescription = {\n      //     id: appointment_id,\n      //     value: _this.formToString(jQuery('#cwPrescribeForm')),\n      //   };\n      //   myArray.addObject(prescription);\n      //   localStorage.setItem('formdata', JSON.stringify(myArray));\n      // },\n      getTabsList: function (user_id, branch_id, shift_id) {\n        this.getTabsList(user_id, branch_id, shift_id);\n      },\n      getEditPrescriptionTabs: function (patient_id) {\n        this.getEditPrescriptionTabs(patient_id);\n      },\n      showTabPage(appointment_id, patient_id, read_message_log) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var stage = 0;\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        _this.transitionToRoute('doctor-dashboard.icpattend', appointment_id, patient_id, read_message_log);\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        //var formString = _this.formToString($(\"#cwPrescribeForm\"));\n        $('.tab-background').addClass('switch-tabs');\n        $('#tabs' + appointment_id).parent('li').addClass('active');\n        var tab_id = $('ul#tab-list').find('li.active').attr('data-appointment');\n        var form = $('#cwPrescribeForm' + tab_id);\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/tempdoctorprescribe',\n          method: 'POST',\n          data: {\n            user_id: login_user_id,\n            formdata: form.serialize()\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            //$('#prescriptionmedicine tbody').empty();\n            //window.location.reload(true);\n            _this.send('refreshPage');\n            //console.log(appointment_id);\n            //_this.send('getTabsList', login_user_id, branch_id, shift_id);\n            //_this.send('getCaseHistory', appointment_id, patient_id);\n            //_this.send('getVisitLogs', patient_id);\n            //_this.send('getClinicPatientsIncomplete',login_user_id,shift_id,branch_id,stage);\n            //_this.send('getMajorCondition', appointment_id, patient_id);\n            //_this.send('getPreviousAdvisedReport', appointment_id, patient_id);\n            //_this.send('getDiagnosticList', appointment_id, patient_id);\n            _this.send('getTempPrescribeMedicine', appointment_id);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      removePrescribeTab(id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        Swal.fire({\n          title: 'You will lose all unsaved data.',\n          text: 'Are you sure you want to leave this page?',\n          icon: 'warning',\n          width: 600,\n          allowOutsideClick: false,\n          showDenyButton: true,\n          denyButtonText: `Stay on this Page`,\n          confirmButtonText: 'Leave this Page'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n            var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'tab_remove') {\n                  //console.log(tab_id);\n                  //console.log(id);\n                  if (id == tab_id) {\n                    _this.send('refreshApiRequest');\n                  } else {\n                    _this.send('getTabsList', user_id, branch_id, shift_id);\n                  }\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#tabserror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#tabserror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      removePrescribeTabWithoutMessage(id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'tabs/removetab';\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            id: id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.error == false && res.message == 'tab_remove') {\n              let shift_id = _this.get('session').getLoggedInUserShift();\n              let branch_id = _this.get('session').getLocation().split('-')[0];\n              var user_id = _this.get('session').getLoggedInUserId();\n              _this.send('getTabsList', user_id, branch_id, shift_id);\n            }\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      urgentPatient(appointment_id, urgent_status, urgent_note) {\n        //console.log(appointment_id);\n        //console.log(urgent_status);\n        //console.log(urgent_note);\n        let utoken = this.session.getToken();\n        if (urgent_status == '1') {\n          var note = urgent_note.split('&lt;').join('<').split('&gt;').join('>');\n          $('#urgent_status').prop('checked', true);\n          $('#urgent_note').val('');\n          $('#urgent_note').val(note);\n          $('#urgent_status_check').val(urgent_status);\n          this.set('urgent_mark_id', appointment_id);\n        } else {\n          $('#urgent_status').prop('checked', false);\n          $('#urgent_note').val('');\n          $('#urgent_status_check').val('');\n          this.set('urgent_mark_id', appointment_id);\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/checkurgentnote',\n            data: {\n              appointment_id: appointment_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res && res.data && res.data.length > 0) {\n                var note = res.data[0].note;\n                $('#urgent_note').val(note);\n              } else {\n                $('#urgent_note').val('');\n              }\n            },\n            error: function (error, x, y) {\n              console.error(error);\n            },\n            complete: function (res) {\n              //console.log(res);\n            }\n          });\n        }\n      },\n      saveUrgentNote() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var ajaxCall = 0;\n        var stage = 0;\n        var noteInfo = '';\n        //This Below code line is used for getting shift id for login user\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        //This Below code line is used for getting Branch id for login user\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        var appointment_id = this.urgent_mark_id;\n        var mark_urgent = $('#urgent_status:checked').val();\n        var urgent_note = $.trim($('#urgent_note').val());\n        var urgent_status_check = $('#urgent_status_check').val();\n        if ((mark_urgent == '' || mark_urgent == undefined || urgent_note == '' || urgent_note == undefined) && urgent_status_check == '') {\n          alert('Please mark checkbox and provide notes!');\n        } else if ((urgent_note == '' || urgent_note == undefined) && urgent_status_check == '1') {\n          alert('Please enter urgent reason!');\n        } else if (urgent_status_check == '1' && (mark_urgent == '' || mark_urgent == undefined)) {\n          if (confirm('Are you sure you want to change status urgent to non-urgent?')) {\n            ajaxCall = 1;\n            noteInfo = 'false';\n          } else {\n            ajaxCall = 2;\n          }\n        } else {\n          ajaxCall = 1;\n          noteInfo = 'true';\n        }\n        if (ajaxCall == 1) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/changeurgentstatus',\n            data: {\n              appointment_id: appointment_id,\n              mark_urgent: mark_urgent,\n              urgent_note: urgent_note\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.validate == 'true' && urgent_status_check == '') {\n                alert('Urgent note successfully added');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'true') {\n                alert('Urgent notes successfully updated');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'false') {\n                alert('Urgent status successfully updated');\n              }\n              _this.send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n              _this.send('getPrescribeDetail', appointment_id);\n              jQuery.noConflict();\n              $('#markUrgent').modal('hide');\n              return false;\n            },\n            error: function (error, x, y) {}\n          });\n        }\n      },\n      //This below function used for gettiing the patient pharmacy instruction history, Rahul Khan, 30 Sept 2019\n      getPharmacyHistory: function (patient_id, appointment_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        _this.set('pharmacyHistory', null);\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/getPharmacyHistory/' + patient_id + '/' + appointment_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            _this.set('pharmacyHistory', response);\n          }\n        });\n      },\n      // Write below this function to factor zero for Specific medicine or all, Shubh Tiwari 16 June 2023\n      factorZero: function () {\n        var checked_checkbox = $('.geometry:checked').length;\n        if (checked_checkbox == 0) {\n          var error = 'Please select atleast one checkbox first';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 450,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          if ($('.geometry').length == $('.geometry:checked').length) {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for all medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                $('.factorItem').each(function () {\n                  var table_row_id = $(this).parent().parent().attr('id');\n                  var factor_input_id = $(this).attr('id');\n                  var factor_id_code = factor_input_id.split('-')[1];\n                  $('#' + factor_input_id).val(0);\n                  $('#medicinevial-' + factor_id_code).val(0);\n                  $('#' + table_row_id).addClass('zerofactor');\n                  $('#' + table_row_id).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                });\n              } else {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          } else {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for selected medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                var serial_id_array = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                for (var j = 0; j < serial_id_array.length; j++) {\n                  $('#factor-' + serial_id_array[j]).val(0);\n                  $('#medicinevial-' + serial_id_array[j]).val(0);\n                  $('#id-' + serial_id_array[j]).addClass('zerofactor');\n                  $('#id-' + serial_id_array[j]).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                }\n              } else {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        }\n      },\n      reasonEdit: function () {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('#MedicineEditReasonPopup').modal('show');\n        var reason = $('#medicine_edit_reason').val();\n        $('#edit_reason').val(reason);\n      },\n      getAdvisedPrint: function (id, patient_id, doctor_id) {\n        var _this = this;\n        // dkbcPrint is a serice\n        _this.get('dkbcPrint').getAdvisedPrintFormat(id, patient_id, doctor_id);\n      },\n      updateMessageLogStatus(appointment_id, read_message) {\n        this.updateMessageLogStatus(appointment_id, read_message);\n      },\n      patientMarkComplete(branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status) {\n        this.patientMarkComplete(branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage, date);\n      },\n      getPreviousCaseTaken: function (appointment_id, patient_id) {\n        this.getPreviousCaseTaken(appointment_id, patient_id);\n      },\n      getCaseHistory: function (appointment_id, patient_id) {\n        this.getCaseHistory(appointment_id, patient_id);\n      },\n      assignToDoctorFrontDesk: function () {\n        this.assignToDoctorFrontDesk();\n      },\n      geMessageLogs: function (appointment_id) {\n        this.geMessageLogs(appointment_id);\n      },\n      clearVariableData: function () {\n        this.clearVariableData();\n      },\n      // editCaseTakingData: function (id) {\n      //   this.editCaseTakingData(id);\n      // },\n      getVitalList: function (appointment_id, patient_id) {\n        this.getVitalList(appointment_id, patient_id);\n      },\n      getDiagnosticList: function (appointment_id, patient_id) {\n        this.getDiagnosticList(appointment_id, patient_id);\n      },\n      getCaseTakenList: function (appointment_id, patient_id) {\n        this.getCaseTakenList(appointment_id, patient_id);\n      },\n      setAppointmentId(appointment_id) {\n        var _this = this;\n        _this.set('appointment_id', appointment_id);\n      },\n      setReadMessage(read_message) {\n        var _this = this;\n        _this.set('read_message', read_message);\n      },\n      setPatientId(patient_id) {\n        var _this = this;\n        _this.set('patient_id', patient_id);\n      },\n      getVitalListFilter: function (appointment_id, value) {\n        alert(appointment_id);\n        alert(value);\n      },\n      getPrescribeDetail: function (appointment_id) {\n        this.getPrescribeDetail(appointment_id);\n      },\n      getAdvisedReport: function (appointment_id) {\n        this.getAdvisedReport(appointment_id);\n      },\n      getPreviousAdvisedReport: function (appointment_id, patient_id) {\n        this.getPreviousAdvisedReport(appointment_id, patient_id);\n      },\n      removeAdvicedReport: function (id, appointment_id) {\n        this.removeAdvicedReport(id, appointment_id);\n      },\n      editVitalData: function (id) {\n        var _this = this;\n        jQuery.noConflict();\n        $('#vitalStatisticsPopup').modal('show');\n        $('#vitalStatisticsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        //$('.modal-body').find('lable,input,textarea').val('');\n        $('#vital_id').val(id);\n        $('#modal-title').text('Edit Vital Statistics');\n        if (id) {\n          $('#vitalUpdate').text('Update');\n        }\n        var height_unit = $('.height' + id).text().trim();\n        var weight = $('.weight' + id).text().trim();\n        var bmi = $('.bmi' + id).text().trim();\n        var body_temp = $('.bodytemp' + id).text().trim();\n        var pulse = $('.pulse' + id).text().trim();\n        var body_pressure = $('.bodypressure' + id).text().trim();\n        //console.log(height_unit);\n        //console.log(weight);\n        //console.log(bmi);\n        //console.log(body_temp);\n        //console.log(pulse);\n        //console.log(body_pressure);\n        $('#height_inches').val(height_unit);\n        if (height_unit == 'feet') {\n          $('#height_inches').val(height_unit);\n        }\n      },\n      clearSelectedCheckbox: function () {\n        $('.geometry').prop('checked', false);\n        $('.checkAll').prop('checked', false);\n        $('li :checkbox').prop('checked', false);\n      },\n      saveFreeNote: function () {\n        this.saveFreeNote();\n      },\n      caseHistoryDetails: function (id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        jQuery.noConflict();\n        $('#caseHistoryDetailsPopup').modal('show');\n        $('#caseHistoryDetailsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'icpattend/caseHistoryDetail/' + id,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#case-history-loader').show();\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('caseHistoryDetail', res);\n          },\n          complete: function () {\n            $('#case-history-loader').hide();\n          }\n        });\n      },\n      // caseTakenDetails(id, dkbc_db, icd_db, app_id) {\n      //   var _this = this;\n      //   if (dkbc_db == undefined) {\n      //     var disease_name = icd_db;\n      //   } else {\n      //     var disease_name = dkbc_db;\n      //   }\n      //   Swal.fire({\n      //     text: 'Are you sure you want to delete ' + disease_name + '?',\n      //     icon: 'warning',\n      //     width: 600,\n      //     showCancelButton: true,\n      //     confirmButtonColor: '#3085d6',\n      //     cancelButtonColor: '#d33',\n      //     allowOutsideClick: false,\n      //     confirmButtonText: 'Yes, delete it!',\n      //   }).then((result) => {\n      //     if (result.isConfirmed) {\n      //       $.ajax({\n      //         url: ENV.APP.lumen_api_url + 'icpattend/deleteCaseTaken',\n      //         method: 'POST',\n      //         data: { case_id: id, app_id: app_id },\n      //         success: function (res) {\n      //           if (res.error == false && res.actions == 'delete') {\n      //             $('#casetakenmessage').html(\n      //               '<div class=\"alert alert-success\">' + res.message + '</div>'\n      //             );\n      //             $('#casetakenmessage .alert').fadeToggle(10000);\n      //             _this.getCaseTakenList(res.appointment_id);\n      //             //_this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n      //           } else if (res.error == true && res.actions == 'not_delete') {\n      //             $('#casetakenmessage').html(\n      //               '<div class=\"alert alert-success\">' + res.message + '</div>'\n      //             );\n      //             //_this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n      //             _this.getCaseTakenList(res.appointment_id);\n      //           }\n      //         },\n      //         complete: function () {},\n      //       });\n      //     }\n      //   });\n      // },\n\n      addPrescriptionMedicine: function () {\n        var _this = this;\n        var max_no = '';\n        //var max_count = Date.now().toString().substr(6);\n        var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var cnt = max_count;\n        /* This condition is used for auto arrange serial no of prescribe medicine, Shubh Tiwari , 04 Jun 2021 */\n        var max = _this.rowMaxSerialNo();\n        // Checking NA serial number, 18 Nov 2022 Shubh Tiwari\n        if (max == Number.POSITIVE_INFINITY || max == Number.NEGATIVE_INFINITY) {\n          max_no = 0;\n        } else {\n          max_no = max;\n        }\n        //Copy previous row factor and vial value ,Shubh Tiwari 05 July 2023\n        // var single_factor_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(6).find('.factorItem').val();\n        // var single_vial_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(7).find('.medicinevialItem').val();\n        // var mix_factor_value = $('#prescriptionmedicine > tbody.tbody > tr:first').find('td').eq(4).find('.factorItem').val();\n        // var mix_vial_value = $('#prescriptionmedicine > tbody.tbody > tr:first').find('td').eq(5).find('.medicinevialItem').val();\n        // console.log(mix_factor_value);\n        // if (single_factor_value == undefined && single_vial_value == undefined) {\n        //   var factor_value = mix_factor_value;\n        //   var vial_value = mix_vial_value;\n        // } else {\n        //   var factor_value = single_factor_value;\n        //   var vial_value = single_vial_value;\n        // }\n        // console.log(factor_value);\n        // console.log(vial_value);\n        // if (factor_value < 1) {\n        //   var factor_class = 'zerofactor';\n        //   $('#factor-' + cnt).removeAttr('value');\n        //   $('#factor-' + cnt).val(factor_value);\n        //   $('#factor-' + cnt).attr('value', factor_value);\n        //   $('#medicinevial-' + cnt).removeAttr('value');\n        //   $('#medicinevial-' + cnt).val(vial_value);\n        //   $('#medicinevial-' + cnt).attr('value', vial_value);\n        // } else {\n        //   var factor_class = '';\n        // }\n        var serial_no = parseInt(max_no) + 1;\n        var instructionselect = '';\n        var instruction_array = _this.get('instruction');\n        instructionselect += '<select name=\"instructionItem[' + cnt + ']\" class=\"form-control instructionItem cwareinstruction-' + cnt + ' iother-' + cnt + '\" id=\"instruction-' + cnt + '\">';\n        instructionselect += '<option value=\"\">Select Instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          //var instruc_id = instruction_array[i].id;\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          instructionselect += '<option class=\"editable-' + cnt + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        instructionselect += '</select>';\n        instructionselect += '<input id=\"edit_instruction-' + cnt + '\" name=\"instruction[' + cnt + ']\" class=\"editOption-' + cnt + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n        var html = '';\n        html += '<tr id=\"id-' + cnt + '\" class=\"tableRow previousRow single\" data-order=\"' + serial_no + '\" >';\n        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + cnt + '\" class=\"geometry\" data-id=\"' + cnt + '\" name=\"check\" value=\"' + cnt + '\"/></td>';\n        html += '<td><input readonly name=\"srnoItem[' + cnt + ']\" class=\"form-control srno-' + cnt + ' srnoItem\" id=\"srno-' + cnt + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\" /></td>';\n        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + cnt + ']\" class=\"form-control prescribeinput dosage-' + cnt + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + cnt + '\" medicine_status=\"notset\" type=\"text\" placeholder=\"Type min 3 char to search\"/><input name=\"medicine_type[' + cnt + ']\" id=\"medicine_type-' + cnt + '\" type=\"hidden\"/> <input type=\"hidden\" name=\"medicine_id[' + cnt + ']\"  id=\"medicine_id-' + cnt + '\"><p id=\"results' + cnt + '\"></p></td>';\n        html += '<td> <input readonly name=\"potencyItem[' + cnt + ']\" class=\"form-control potency-' + cnt + ' potencyItem\" id=\"potency-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[' + cnt + ']\"  id=\"potency_id-' + cnt + '\"></td>';\n        html += '<td> <input readonly name=\"dilutionItem[' + cnt + ']\" class=\"form-control dilution-' + cnt + ' dilutionItem\" id=\"dilution-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[' + cnt + ']\"  id=\"dilution_id-' + cnt + '\"></td>';\n        html += '<td> <select name=\"formItem[' + cnt + ']\" class=\"form-control slectform-' + cnt + ' formItem prescribeform-' + cnt + '\" id=\"prescribeform-' + cnt + '\"><option value=\"\">Select Form</option></select></td>';\n        html += '<td> <input name=\"factorItem[' + cnt + ']\" class=\"form-control factor-' + cnt + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td> <input name=\"medicineVial[' + cnt + ']\" class=\"form-control medicinevial-' + cnt + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td>' + instructionselect + '</td></tr>';\n        $('#prescriptionmedicine').append(html);\n        //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari , 09 July 2019\n        $('#prescriptionmedicine').addClass('singletemplate');\n        _this.checkEnableCheckbox();\n        //This below line of code is used for setting the focus on newly added Medicine Row's Medicine name column, shubh tiwari 27 Aug 2019\n        $('#medicine_name-' + cnt).focus();\n      },\n      getPatientHistory: function (patient_id, filter, data_limit) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (patient_id == undefined) {\n          patient_id = _this.get('patient_id');\n        }\n        if (patient_id != undefined && data_limit != undefined) {\n          var base_url_limit = _environment.default.APP.lumen_api_url + 'billing/history/' + patient_id + '/' + filter + '?limit=' + data_limit;\n        } else {\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/history/' + patient_id + '/' + filter;\n        }\n        if (patient_id != undefined && data_limit == undefined) {\n          _this.set('isLoadingHistory', true);\n          $.ajax({\n            url: base_url,\n            method: 'GET',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            async: true,\n            beforeSend: function () {\n              _this.set('PatientHistory', []);\n              _this.set('filterParameter', null);\n            },\n            success: function (res) {\n              //console.log(res);\n              _this.set('PatientHistory', res);\n              _this.set('filterParameter', filter);\n            },\n            complete: function (res) {\n              //console.log(\"Execution complete\");\n              _this.set('isLoadingHistory', false);\n            }\n          });\n        } else if (patient_id != undefined && data_limit != undefined) {\n          _this.set('isLoadingHistory', true);\n          $.ajax({\n            url: base_url_limit,\n            method: 'GET',\n            async: true,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#history-loader').show();\n              _this.set('PatientHistory', []);\n              _this.set('filterParameter', null);\n            },\n            success: function (res) {\n              //console.log(res);\n              $('#history-loader').hide();\n              _this.set('PatientHistory', res);\n              _this.set('filterParameter', filter);\n            },\n            complete: function (res) {\n              _this.set('isLoadingHistory', false);\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      // goToCheckoutPage() {\n      //   var _this = this;\n      //   //This below code is used for checking the duplicate mix, Shubh Tiwari. 29 dec 2020\n      //   var login_user_id = _this.get('session').getLoggedInUserId();\n      //   var reason = $('#medicine_edit_reason').val();\n      //   if (reason != undefined) {\n      //     var edit_reason = reason;\n      //   } else {\n      //     var edit_reason = '';\n      //   }\n      //   var edit_page = $('#prescribeedit').val();\n\n      //   var form = $('#cwPrescribeForm');\n      //   //console.log(form.serialize());\n      //   let i18n = _this.get('i18n');\n      //   $('#displayerror').html('');\n      //   if (edit_page != 'prescribeedit' && edit_page == undefined) {\n      //     console.log('prescription-a');\n      //     $.ajax({\n      //       url: ENV.APP.lumen_api_url + 'billing/prescribe',\n      //       method: 'POST',\n      //       data: {\n      //         user_id: login_user_id,\n      //         edit_reason: edit_reason,\n      //         formdata: form.serialize(),\n      //       },\n      //       beforeSend: function () {\n      //         $('#loading').addClass('in');\n      //         $('#loading').css('display', 'block');\n      //         $('body').addClass('modal-open');\n      //       },\n      //       success: function (res) {\n      //         if (res.error == true && res.actions == 'datainsufficient') {\n      //           var message = i18n.t('billing.messages.datainsufficient');\n      //           $('#displayerror').html(\n      //             '<div class=\"alert alert-danger\">' + message + '</div>'\n      //           );\n      //         } else if (res.error == false && res.actions == 'add') {\n      //           var message = i18n.t('billing.messages.savedBilling');\n      //           $('#displayerror').html(\n      //             '<div class=\"alert alert-success\">' + message + '</div>'\n      //           );\n      //           //get(_this, 'flashes').success(message);\n      //           _this.transitionToRoute('doctor-dashboard.checkout', res);\n      //           _this.getPrescribeMedicine(res.appointment_id);\n      //           // _this.set('appointment_id', res.appointment_id);\n      //           // _this.set('billing_id', res.billing_id);\n      //           // _this.set('patient_id', res.patient_id);\n      //           // _this.set('importvisitid', res.importvisitid);\n      //           //$res['actions'] ='duplicatedata';\n      //         } else if (res.error == true && res.actions == 'duplicatedata') {\n      //           var message = i18n.t('billing.messages.duplicatedata');\n      //           $('#displayerror').html(\n      //             '<div class=\"alert alert-danger\">' + message + '</div>'\n      //           );\n      //         } else if (res.error == false) {\n      //           _this.set('vali_errors', res.message);\n      //         }\n      //       },\n      //       complete: function () {\n      //         setTimeout(function () {\n      //           $('#loading').removeClass('in');\n      //           $('#loading').css('display', 'none');\n      //           $('.modal-backdrop').remove();\n      //           $('body').removeClass('modal-open');\n      //         }, 500);\n      //       },\n      //     });\n      //   }\n      // },\n\n      billingDataSubmit: function (page_name) {\n        //Called on clicking save & preview in icpattend page\n        //console.log(page_name);\n        var error = '';\n        var $focusId = '';\n        var _this = this;\n        let utoken = _this.session.getToken();\n        if (!$('#sort-serial').is(':checked')) {\n          var _this = this;\n          var tableId = 'prescriptionmedicine tbody.tbody';\n          _this.sortMedicineRow(tableId);\n          //console.log('not check');\n        }\n        //This below code is used for checking the duplicate mix, Shubh Tiwari. 29 dec 2020\n        var stage = 0;\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        var branch_detail = _this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var uniqueMixArray = [];\n        var duplicateMixArray = [];\n        $('.cw_mix_row').each(function () {\n          var mixid = $(this).attr('data-mixid');\n          var id = $(this).attr('id');\n          var idnum = id.replace('id-', '');\n          var form = $('#prescribeform-' + idnum).val();\n          var combo_id = mixid + '_' + form;\n          // console.log(combo_id);\n          var keyindex = uniqueMixArray.indexOf(combo_id);\n          if (keyindex == -1) {\n            uniqueMixArray.push(combo_id);\n          } else if (mixid > 0) {\n            duplicateMixArray.push(mixid);\n          }\n          //return false;\n        });\n        //console.log(uniqueMixArray);\n        // console.log(duplicateMixArray);\n        //return false;\n\n        duplicateMixArray.forEach(function (item) {\n          $(\"[data-mixid^='\" + item + \"']\").each(function () {\n            $(this).addClass('duplicate');\n            var item = $(this).attr('id');\n            var idnum = item.split('-')[1];\n            var rownumber = $('#srno-' + idnum).val();\n            error += '<p> The medicine/Mix for serial number ' + rownumber + ' already added. </p>';\n            $focusId = 'srno-' + idnum;\n          });\n        });\n\n        /* End code here for duplicate Medicine/Mix serial number*/\n        //This below each loop used the serial number input box, Rahul Khan 10 Aug 2019\n        $('.srnoItem').each(function (count) {\n          // if ($.trim($(this).val()) == '') {\n          //   error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n          //   $('.srnoItem').focus();\n          //   return false;\n          // }\n          //This below section is used for validation duplicate the Medicine/Mix Serial Number, Rahul Khan, 08 Aug 2019\n          var value1 = $(this).val();\n          var id1 = $(this).attr('id');\n          var duplicateRow = $('.srnoItem').map(function () {\n            var value2 = $(this).val();\n            var id2 = $(this).attr('id');\n            if (id1 != id2 && value1 == value2) {\n              return value2;\n            }\n          }).get();\n          if (duplicateRow.length > 0) {\n            //  swal(\"Duplicate!\", \"This medicine/Mix seriel number is occupied by already added Medcine/Mix.\", \"error\");\n            // $(\"#\"+id1).addClass(\"duplicate_serial\");\n            error += \"<p> The medicine/Mix serial number should't not same. </p>\";\n            $focusId = id1;\n            //$('#' + id1).focus();\n          } else {\n            $('#' + id1).removeClass('duplicate_serial');\n          }\n          //end code added for validation the Medicine/Mix serial number not be duplicate.\n          count++;\n        });\n        //This below each loop used the medicine name column,\n        var duplicateMedicineArray = [];\n        var notSetMedicineArray = [];\n        $('.cw-search-box .medicineItem').each(function (count) {\n          // if($.trim($(this).val()) == '')\n          // {\n          //     error += \"<p> Please enter medicine name at \"+(count+1)+\" row</p>\";\n          //     $('.medicineItem').focus();\n          //     return false;\n          // }\n\n          //This below section is used for validation duplicate the Medicine/Mix Serial Number, Rahul Khan, 10 Aug 2019\n          //var value1 = $( this ).val();\n          var id1 = $(this).attr('id');\n          var idnum1 = id1.replace('medicine_name-', '');\n          var idnum1 = idnum1.replace('mix_', '');\n          if ($('#id-' + idnum1).hasClass('ontheflymix')) {\n            var value1 = idnum1;\n            var prescribeFormValue1 = idnum1;\n          } else {\n            var value1 = $(this).attr('data-medicine');\n            // var value1  = $(this).attr('data-medicine').trim();//In this line we changed the value of value1 variable, value of input box to attribute \"data-medicine\",Rahul Khan, 16 aug 2019\n            var prescribeFormValue1 = $('#prescribeform-' + idnum1).val(); //In these below lines code is used for getting the form value, Rahul Khan 16 Aug 2019\n            var prescribeFormValue1 = prescribeFormValue1.split('-')[2];\n          }\n\n          // var idnum1 = id1.replace('medicine_name-','');\n\n          var duplicateRow = $('.cw-search-box .medicineItem').map(function () {\n            //var value2 = $(this).val();\n\n            var id2 = $(this).attr('id');\n            var medicine_status = $('#' + id2).attr('medicine_status');\n            var idnum = id2.replace('medicine_name-', '');\n            var idnum = idnum.replace('mix_', '');\n            if ($('#id-' + idnum).hasClass('ontheflymix')) {\n              var value2 = idnum;\n              var prescribeFormValue2 = idnum;\n            } else {\n              var value2 = $(this).attr('data-medicine');\n              //  var value2  = $(this).attr('data-medicine').trim();//In this line we changed the value of value2 variable, value of input box to attribute \"data-medicine\",Rahul Khan, 16 aug 2019\n              var prescribeFormValue2 = $('#prescribeform-' + idnum).val(); //In these below lines code is used for getting the form value, Rahul Khan 16 Aug 2019\n              var prescribeFormValue2 = prescribeFormValue2.split('-')[2];\n            }\n            if (id1 != id2 && value1 == value2 && prescribeFormValue1 == prescribeFormValue2) {\n              var keyindex = duplicateMedicineArray.indexOf(idnum);\n              if (keyindex == -1) {\n                duplicateMedicineArray.push(idnum);\n              }\n              //duplicateMedicineArray.push(idnum);\n              return idnum;\n            }\n            if (id1 != id2 && medicine_status == 'notset') {\n              var keyindex = notSetMedicineArray.indexOf(idnum);\n              if (keyindex == -1) {\n                notSetMedicineArray.push(idnum);\n              }\n            }\n          }).get();\n\n          //end code added for validation the Medicine/Mix serial number not be duplicate.\n          count++;\n        });\n        duplicateMedicineArray.forEach(function (item) {\n          var idnumber = $('#srno-' + item).val();\n          $('#id-' + item).addClass('duplicate');\n          $focusId = 'id-' + item;\n          error += '<p> The medicine/Mix for serial number ' + idnumber + ' already added. </p>';\n        });\n        if (duplicateMedicineArray.length == 0 && duplicateMixArray.length == 0) {\n          $(\"[id^='id-']\").removeClass('duplicate');\n        }\n        $('.inst_other').each(function (count) {\n          var id = $(this).attr('id');\n          var idnum = id.replace('edit_instruction-', '');\n          var idnumber = $('#srno-' + idnum).val();\n          var medicine_name = $('#medicine_name-' + idnum).val();\n          var mix_medicine_name = $('#mix_medicine_name-' + idnum).val();\n          var potency = $('#potency-' + idnum).val();\n          var dilution = $('#dilution-' + idnum).val();\n          var prescribeform = $('#prescribeform-' + idnum).val();\n          var factor = $('#factor-' + idnum).val();\n          var medicinevial = $('#medicinevial-' + idnum).val();\n          var edit_instruction = $('#edit_instruction-' + idnum).val();\n          if (edit_instruction != '') {\n            var instruction = edit_instruction;\n          } else {\n            var instruction = $('#instruction-' + idnum).val();\n          }\n          //console.log(instruction);\n          var medicine_type = $('#medicine_type-' + idnum).val();\n          var submitinstruction = $.trim($(this).val());\n          //console.log(submitinstruction);\n          if ($.trim(medicine_type) == 'single' && $.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) == '') {\n            error += '<p> Please select the instruction for medicine at serial number ' + idnumber + '</p>';\n            //console.log('a');\n            $focusId = 'instruction-' + idnum;\n            $('#instruction-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'single' && $.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) == '' && $.trim(instruction) != '') {\n            error += '<p> Please enter vial ' + (count + 1) + ' row</p>';\n            //console.log('b');\n            $focusId = 'medicinevial-' + idnum;\n            $('#medicinevial-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'single' && $.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) == '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            //console.log('c');\n            $focusId = 'factor-' + idnum;\n            $('#factor-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'single' && $.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) == '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            //console.log('d');\n            $focusId = 'prescribeform-' + idnum;\n            $('#prescribeform-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'single' && $.trim(idnumber) != '' && $.trim(medicine_name) == '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter medicine name at ' + (count + 1) + ' row</p>';\n            //console.log('e');\n            $focusId = 'medicine_name-' + idnum;\n            $('#medicine_name-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'single' && $.trim(idnumber) == '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            //console.log('f');\n            $focusId = 'srno-' + idnum;\n            $('#srno-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == '' && $.trim(idnumber) != '' && $.trim(medicine_name) == '' && $.trim(potency) == '' && $.trim(dilution) == '' && $.trim(prescribeform) == '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter medicine name at ' + (count + 1) + ' row</p>';\n            //console.log('ff-single');\n            $focusId = 'medicine_name-' + idnum;\n            $('#medicine_name-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) == '') {\n            error += '<p> Please select the instruction for mix medicine at serial number ' + idnumber + '</p>';\n            //console.log('mix-aaaa');\n            $focusId = 'instruction-' + idnum;\n            $('#instruction-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) == '' && $.trim(instruction) != '') {\n            error += '<p> Please enter vial ' + (count + 1) + ' row</p>';\n            //console.log('mix-bbbb');\n            $focusId = 'medicinevial-' + idnum;\n            $('#medicinevial-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) == '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            //console.log('mix-ccccc');\n            $focusId = 'factor-' + idnum;\n            $('#factor-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) == '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            //console.log('mix-ddddd');\n            $focusId = 'prescribeform-' + idnum;\n            $('#prescribeform-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) == '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter mix medicine name at ' + (count + 1) + ' row</p>';\n            //console.log('mix-eeee');\n            $focusId = 'mix_medicine_name-' + idnum;\n            $('#mix_medicine_name-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'mix' && $.trim(idnumber) == '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            //console.log('mix-fff');\n            $focusId = 'srno-' + idnum;\n            $('#srno-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) == '') {\n            error += '<p> Please select the instruction for On the fly mix medicine at serial number ' + idnumber + '</p>';\n            //console.log('mix-aa');\n            $focusId = 'instruction-' + idnum;\n            $('#instruction-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) == '' && $.trim(instruction) != '') {\n            error += '<p> Please enter vial ' + (count + 1) + ' row</p>';\n            //console.log('mix-bb');\n            $focusId = 'medicinevial-' + idnum;\n            $('#medicinevial-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) == '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            //console.log('mix-cc');\n            $focusId = 'factor-' + idnum;\n            $('#factor-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) == '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            //console.log('mix-dd');\n            $focusId = 'prescribeform-' + idnum;\n            $('#prescribeform-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) != '' && $.trim(mix_medicine_name) == '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter On the fly mix medicine name at ' + (count + 1) + ' row</p>';\n            //console.log('mix-ee');\n            $focusId = 'mix_medicine_name-' + idnum;\n            $('#mix_medicine_name-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(medicine_type) == 'ontheflymix' && $.trim(idnumber) == '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            //console.log('mix-ff');\n            $focusId = 'srno-' + idnum;\n            $('#srno-' + idnum).addClass('has-error');\n            return false;\n          } else if (($.trim(medicine_type) == 'mix' || $.trim(medicine_type) == 'ontheflymix') && $.trim(idnumber) != '' && $.trim(mix_medicine_name) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(submitinstruction) == '') {\n            error += '<p> Please select the instruction for medicine at serial number ' + idnumber + '</p>';\n            $focusId = 'instruction-' + idnumber;\n            return false;\n          }\n          // $(document).ready(function () {\n          //   $('html, body').animate(\n          //     { scrollTop: $('#patient-information').position().top },\n          //     1000\n          //   );\n          // });\n          count++;\n        });\n\n        // $('.medicineMixItem').each(function (count) {\n        //   if ($.trim($(this).val()) == '') {\n        //     error += '<p> Please enter mix name  at ' + (count + 1) + ' row</p>';\n        //     $('.medicineMixItem').focus();\n        //     return false;\n        //   }\n        //   count++;\n        // });\n\n        var filterheight = $('#filterheight').val();\n        var filterweight = $('#filterweight').val();\n        var filterbodytemp = $('#filterbodytemp').val();\n        // console.log(filterheight);\n        // console.log(filterweight);\n        // console.log(filterbodytemp);\n        // var reason = $('#medicine_edit_reason').val();\n        // if (reason != undefined) {\n        //   var edit_reason = reason;\n        // } else {\n        //   var edit_reason = '';\n        // }\n        var edit_page = $('#prescribeedit').val();\n        //console.log(reason);\n        //console.log(edit_page);\n        // if (edit_page == 'prescribeedit' && reason == '') {\n        //   event.preventDefault();\n        //   jQuery.noConflict();\n        //   $('#MedicineEditReasonPopup').modal('show');\n        //   $('#edit_reason').focus();\n        // }\n        var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n        var form = $('#cwPrescribeForm' + appointment_id);\n        //console.log(form.serialize());\n        let i18n = _this.get('i18n');\n        if (error == '') {\n          //$('#displayerror').html('');\n          if (edit_page == 'prescribeadd') {\n            //console.log('prescription-a');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/doctorprescribe',\n              method: 'POST',\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              data: {\n                user_id: login_user_id,\n                branch_id: branch_id,\n                shift_id: shift_id,\n                formdata: form.serialize()\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, '');\n                  //$('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false && res.actions == 'add') {\n                  var myArray = _this.get('prescriptionlocalstorageArray');\n                  var obj = myArray.findBy('id', res.appointment_id); // assuming the object has a property 'id'\n                  myArray.removeObject(obj);\n                  localStorage.setItem('prescription_instruction', JSON.stringify(myArray));\n                  if (page_name == 'icppage') {\n                    var message = i18n.t('icpattend.messages.caseTaken');\n                  } else {\n                    var message = i18n.t('billing.messages.savedBilling');\n                  }\n                  //$('#displayerror').html('<div class=\"alert alert-success\">' + message + '</div>');\n                  if (page_name == 'icppage') {\n                    _this.flashes.success(message);\n                    var login_shift_id = _this.session.getLoggedInUserShift();\n                    //This Below code line is used for getting Branch id for login user\n                    var login_branch_id = _this.session.getLocation().split('-')[0];\n                    _this.get('doctordasboard').send('getClinicPatientsIncomplete', login_user_id, login_shift_id, login_branch_id, stage);\n                    _this.get('doctordasboard').send('getPresctibeCaseTakenTabList', login_branch_id, login_shift_id);\n                    _this.transitionToRoute('doctor-dashboard.list');\n                    //_this.recalculateAmount.allSuccessMessage(message, '');\n                  } else {\n                    _this.flashes.success(message);\n                    _this.transitionToRoute('doctor-dashboard.checkout', res);\n                    _this.get('checkout').send('getCaseHistory', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getPatientAddress', res.patient_id, res.appointment_id);\n                    _this.get('checkout').send('getPGCharge', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('updateVitalFilterUnit', res.appointment_id, filterheight, filterweight, filterbodytemp);\n                    _this.get('checkout').send('getPrescribeDetail', res.appointment_id);\n                    _this.get('checkout').send('getTodayVitalList', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getCaseTakenList', res.appointment_id);\n                    _this.get('checkout').send('getReportsList', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getAdvisedReport', res.appointment_id);\n                    _this.get('checkout').send('getRecords', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('geMessageLogs', res.appointment_id);\n                    _this.get('checkout').send('getPreviousPendingAmount', res.patient_id, res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('getPreviousBillAmount', res.appointment_id);\n                    _this.get('checkout').send('getPharmacyHistory', res.patient_id, res.appointment_id);\n                    _this.get('checkout').send('getPreviousVisitCharges', res.appointment_id, res.billing_id);\n                    //_this.get('checkout').send('getAfterVisitPendingAmount',res.appointment_id,res.billing_id);\n                    _this.get('checkout').send('setReadMessage', res.read_message);\n                    var branch_detail = _this.session.getLocation().split('-');\n                    var branch_id = branch_detail[0];\n                    var today = moment().format('YYYY-MM-DD');\n                    var doctor_id = _this.session.getLoggedInUserId();\n                    var shift_id = _this.session.getLoggedInUserShift();\n                    _this.get('checkout').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, res.appointment_id, res.p_edit_status);\n                    _this.get('checkout').send('getApplyMedicineDiscount', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('getApplyConsultancyWaived', res.appointment_id, res.billing_id);\n                    //_this.get('checkout').send('refreshPage');\n                  }\n                  _this.set('appointment_id', res.appointment_id);\n                  _this.set('billing_id', res.billing_id);\n                  _this.set('patient_id', res.patient_id);\n                  _this.set('importvisitid', res.importvisitid);\n                  //$res['actions'] ='duplicatedata';\n                } else if (res.error == true && res.actions == 'duplicatedata') {\n                  var message = i18n.t('billing.messages.duplicatedata');\n                  //$('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, '');\n                } else if (res.error == false) {\n                  _this.set('vali_errors', res.message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          } else if (edit_page == 'prescribeedit') {\n            //console.log('prescription-b');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/doctorprescribe',\n              method: 'POST',\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              data: {\n                user_id: login_user_id,\n                branch_id: branch_id,\n                shift_id: shift_id,\n                formdata: form.serialize()\n              },\n              beforeSend: function () {\n                _this.recalculateAmount.popupLoaderOpen();\n              },\n              success: function (res) {\n                if (res.error == true && res.actions == 'datainsufficient') {\n                  var message = i18n.t('billing.messages.datainsufficient');\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, '');\n                  //$('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false && res.actions == 'add') {\n                  var myArray = _this.get('prescriptionlocalstorageArray');\n                  var obj = myArray.findBy('id', res.appointment_id); // assuming the object has a property 'id'\n                  myArray.removeObject(obj);\n                  localStorage.setItem('prescription_instruction', JSON.stringify(myArray));\n                  if (page_name == 'icppage') {\n                    var message = i18n.t('icpattend.messages.caseTaken');\n                  } else {\n                    var message = i18n.t('billing.messages.savedBilling');\n                  }\n                  if (page_name == 'icppage') {\n                    _this.flashes.success(message);\n                    var login_shift_id = _this.session.getLoggedInUserShift();\n                    //This Below code line is used for getting Branch id for login user\n                    var login_branch_id = _this.session.getLocation().split('-')[0];\n                    _this.get('doctordasboard').send('getClinicPatientsIncomplete', login_user_id, login_shift_id, login_branch_id, stage);\n                    _this.get('doctordasboard').send('getPresctibeCaseTakenTabList', login_branch_id, login_shift_id);\n                    _this.transitionToRoute('doctor-dashboard.list');\n                    //_this.recalculateAmount.allSuccessMessage(message, '');\n                  } else {\n                    _this.flashes.success(message);\n                    _this.transitionToRoute('doctor-dashboard.checkout', res);\n                    _this.get('checkout').send('getCaseHistory', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getPGCharge', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('getPatientAddress', res.patient_id, res.appointment_id);\n                    _this.get('checkout').send('setBillingId', res.billing_id);\n                    _this.get('checkout').send('getPatientAddress', res.patient_id, res.appointment_id);\n                    _this.get('checkout').send('updateVitalFilterUnit', res.appointment_id, filterheight, filterweight, filterbodytemp);\n                    _this.get('checkout').send('getPrescribeDetail', res.appointment_id);\n                    _this.get('checkout').send('getTodayVitalList', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getCaseTakenList', res.appointment_id);\n                    _this.get('checkout').send('getReportsList', res.appointment_id, res.patient_id);\n                    _this.get('checkout').send('getAdvisedReport', res.appointment_id);\n                    _this.get('checkout').send('getRecords', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('geMessageLogs', res.appointment_id);\n                    _this.get('checkout').send('getPreviousPendingAmount', res.patient_id, res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('getPreviousBillAmount', res.appointment_id);\n                    _this.get('checkout').send('getPharmacyHistory', res.patient_id, res.appointment_id);\n                    _this.get('checkout').send('getPreviousVisitCharges', res.appointment_id, res.billing_id);\n                    //_this.get('checkout').send('getAfterVisitPendingAmount',res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('setReadMessage', res.read_message);\n                    var branch_detail = _this.session.getLocation().split('-');\n                    var branch_id = branch_detail[0];\n                    var today = moment().format('YYYY-MM-DD');\n                    var doctor_id = _this.session.getLoggedInUserId();\n                    var shift_id = _this.session.getLoggedInUserShift();\n                    _this.get('checkout').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, res.appointment_id, res.p_edit_status);\n                    _this.get('checkout').send('getApplyMedicineDiscount', res.appointment_id, res.billing_id);\n                    _this.get('checkout').send('getApplyConsultancyWaived', res.appointment_id, res.billing_id);\n                    //_this.get('checkout').send('refreshPage');\n                  }\n                  _this.set('appointment_id', res.appointment_id);\n                  _this.set('billing_id', res.billing_id);\n                  _this.set('patient_id', res.patient_id);\n                  _this.set('importvisitid', res.importvisitid);\n                  //$res['actions'] ='duplicatedata';\n                } else if (res.error == true && res.actions == 'duplicatedata') {\n                  var message = i18n.t('billing.messages.duplicatedata');\n                  _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, '');\n                  //$('#displayerror').html('<div class=\"alert alert-danger\">' + message + '</div>');\n                } else if (res.error == false) {\n                  _this.set('vali_errors', res.message);\n                }\n              },\n              complete: function () {\n                _this.recalculateAmount.popupLoaderClose();\n              }\n            });\n          }\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(error, $focusId);\n          //$('#displayerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          //$('#displayerror .alert').fadeToggle(10000);\n        }\n      },\n      saveAdvisedReport: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var id = _this.get('appointment_id');\n        var patient_id = _this.get('patient_id');\n        var advised_report_name = $('#advised_report_name').val().trim();\n        var advised_report_id = $('#advised_report_id').val();\n        var advised_report_name_o = $('#advised_report_name_o').val();\n        var date = $('#advised_report_date').val();\n        var created_by = _this.get('session').getLoggedInUserId();\n        if (advised_report_name == advised_report_name_o) {\n          var diagnostic_id = advised_report_id;\n          var diagnostic_name = advised_report_name_o;\n        } else {\n          var diagnostic_id = '';\n          var diagnostic_name = advised_report_name;\n        }\n        if (advised_report_name == '') {\n          alert('Please enter report name');\n          $('#advised_report_name').focus();\n        } else if (advised_report_name.length < 3) {\n          alert('Report name : min 3 character allowed');\n          $('#advised_report_name').focus();\n        } else {\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'icpattend/addAdvisedReport',\n            method: 'POST',\n            data: {\n              report_name: diagnostic_name,\n              advised_date: date,\n              diagnostic_report_id: diagnostic_id,\n              appointment_id: id,\n              patient_id: patient_id,\n              created_by: created_by\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == false) {\n                // alert('Report added successfully.');\n                swal({\n                  text: 'Report added successfully.',\n                  icon: 'success',\n                  button: 'Ok'\n                });\n              }\n              _this.getAdvisedReport(id);\n              _this.ResetAdvisedReport();\n            },\n            complete: function () {\n              jQuery.noConflict();\n              $('#advisedReport').modal('hide');\n              return true;\n            }\n          });\n        }\n      },\n      getTempPrescribeMedicine: function (appointment_id) {\n        this.getTempPrescribeMedicine(appointment_id);\n      },\n      getPrescribeMedicine: function (appointment_id) {\n        this.getPrescribeMedicine(appointment_id);\n      },\n      getLastVisitHistory: function (patient_id) {\n        this.getLastVisitHistory(patient_id);\n      },\n      reAssign(reassigned, id, doc_id, case_taken, reassigned_doctor_id, patient_id, appointment_id, page_name) {\n        // if (reassigned == 'true') {\n        //   alert('Can not Re Assign.');\n        //   $('.modal-backdrop').click();\n        //   return false;\n        // }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.i18n;\n        var error = '';\n        var shift_id = _this.get('session').getLoggedInUserShift();\n        var casetaking_branch = _this.get('session').getLocation().split('-')[0];\n        var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n        $('.inst_other').each(function (count) {\n          var id = $(this).attr('id');\n          var idnum = id.replace('edit_instruction-', '');\n          var idnumber = $('#srno-' + idnum).val();\n          var medicine_name = $('#medicine_name-' + idnum).val();\n          var potency = $('#potency-' + idnum).val();\n          var dilution = $('#dilution-' + idnum).val();\n          var prescribeform = $('#prescribeform-' + idnum).val();\n          var factor = $('#factor-' + idnum).val();\n          var medicinevial = $('#medicinevial-' + idnum).val();\n          var instruction = $('#instruction-' + idnum).val();\n          if ($.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) == '') {\n            error += '<p> Please select the instruction for medicine at serial number ' + idnumber + '</p>';\n            //console.log('a');\n            $('#instruction-' + idnum).focus();\n            $('#instruction-' + idnum).addClass('has-error');\n            $(this).focus();\n            return false;\n          } else if ($.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) == '' && $.trim(instruction) != '') {\n            error += '<p> Please enter vial ' + (count + 1) + ' row</p>';\n            //console.log('b');\n            $('.medicinevialItem').focus();\n            $('#medicinevial-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) == '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            //console.log('c');\n            $('.factorItem').focus();\n            $('#factor-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(idnumber) != '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) == '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            //console.log('d');\n            $('.formItem').focus();\n            $('#prescribeform-' + idnum).addClass('has-error');\n            return false;\n          } else if ($.trim(idnumber) != '' && $.trim(medicine_name) == '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter medicine name at ' + (count + 1) + ' row</p>';\n            //console.log('e');\n            $('.medicineItem').focus();\n            $('#medicine_name-' + idnum).addClass('has-error');\n          } else if ($.trim(idnumber) == '' && $.trim(medicine_name) != '' && $.trim(potency) != '' && $.trim(dilution) != '' && $.trim(prescribeform) != '' && $.trim(factor) != '' && $.trim(medicinevial) != '' && $.trim(instruction) != '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            //console.log('f');\n            $('.srnoItem').focus();\n            $('#srno-' + idnum).addClass('has-error');\n            return false;\n          }\n          // $(document).ready(function () {\n          //   $('html, body').animate(\n          //     { scrollTop: $('#prescription').position().top },\n          //     1000\n          //   );\n          // });\n          count++;\n        });\n        if (error == '') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/reAssign',\n            data: {\n              id: id,\n              doctor_id: doc_id,\n              case_taken: case_taken,\n              reassigned_doctor_id: reassigned_doctor_id,\n              shift_id: shift_id,\n              appointment_id: appointment_id,\n              reassigned: reassigned,\n              casetaking_branch: casetaking_branch\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                if (page_name == 'icppage') {\n                  //console.log('block-b');\n                  if (doc_id !== reassigned_doctor_id) {\n                    if (tab_id !== undefined) {\n                      _this.get('doctordasboard').send('removePrescribeTabWithoutMessage', tab_id);\n                    }\n                    _this.transitionToRoute('doctor-dashboard.list');\n                  }\n                  _this.send('billingDataSubmit', page_name);\n                  //var message = i18n.t('icpattend.messages.caseTakenMessage');\n                  //_this.flashes.success(message);\n                } else if (page_name == undefined) {\n                  _this.transitionToRoute('doctor-dashboard.list');\n                }\n              }\n            },\n            error: function (error, x, y) {\n              //console.log(error);\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          $('#displayerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#displayerror .alert').fadeOut(10000);\n        }\n      }\n    },\n    viewPDFFileInPopup: function (url, fileName, fileId) {\n      let utoken = this.session.getToken();\n      const presignedUrl = url;\n      const apiBase = _environment.default.APP.lumen_api_url;\n      const proxiedUrl = `${apiBase}pdf-proxy?url=${encodeURIComponent(presignedUrl)}`;\n      if (fileId) {\n        $(`#loader-${fileId}`).show();\n      }\n      $.ajax({\n        url: proxiedUrl,\n        method: 'GET',\n        xhrFields: {\n          responseType: 'blob'\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (data) {\n          const blob = new Blob([data], {\n            type: 'application/pdf'\n          });\n          const blobUrl = URL.createObjectURL(blob);\n          const safeFileName = fileName.replace(/[^a-zA-Z0-9.\\-_ ]/g, '_');\n          const fullViewerUrl = `/js/pdfjs/web/viewer.html?file=${encodeURIComponent(blobUrl)}&filename=${encodeURIComponent(safeFileName)}`;\n          this.set('previewFileName', fileName);\n          this.set('previewUrl', fullViewerUrl);\n          jQuery.noConflict();\n          $('#filePreviewModal').modal('show');\n          $('#filePreviewModal iframe').on('load', function () {\n            if (fileId) {\n              $(`#loader-${fileId}`).hide();\n            }\n          });\n        }.bind(this),\n        error: function (xhr) {\n          alert('Failed to load PDF: ' + xhr.statusText);\n          if (fileId) {\n            $(`#loader-${fileId}`).hide();\n          }\n        },\n        complete: function () {\n          //doneCallback(); // Hide loader when done\n        }\n      });\n    },\n    getPatientAddress: function (patient_id, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpattend/getshippingaddress',\n        data: {\n          appointment_id: appointment_id\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            var addressData = res.data[0];\n            var dispatch_or_pickup = _this.getPickupDispatchPrescription(addressData.dispatch_or_pickup);\n            var prescription_email = _this.getPickupDispatchPrescription(addressData.prescription_email);\n            _this.set('address_mismatch', addressData.address_mismatch_flag);\n            _this.set('top_shiping_pickup', dispatch_or_pickup);\n            _this.set('top_prescription_email', prescription_email);\n          } else {\n            _this.set('address_mismatch', 0);\n            _this.set('top_shiping_pickup', 'Pickup');\n            _this.set('top_prescription_email', '');\n          }\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    getPatientAllReports: function (id, patient_id, drfromdate, drtodate) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      let i18n = _this.i18n;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'icpdfilterlist/' + id + '/' + patient_id,\n        data: {\n          drfromdate: drfromdate,\n          drtodate: drtodate\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#filter-loader').show();\n        },\n        success: function (res) {\n          if (res.data.firstObject == undefined && res.data.lastIndex == 0 && res.data.lastItem == undefined && res.data.lastObject == undefined) {\n            // array is empty\n            var message = i18n.t('icpattend.messages.filetRecordMessage');\n            _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'diagnostic_reasonerror');\n            _this.set('icpdfilterlist', '');\n          } else {\n            _this.set('icpdfilterlist', res.data);\n          }\n          _this.set('filter_fromdate', drfromdate);\n          _this.set('filter_todate', drtodate);\n        },\n        complete: function () {\n          $('#filter-loader').hide();\n        }\n      });\n    },\n    getMajorCondition: function (id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //_this.get('serviceIcpattend').getMajorConditionService(id, patient_id);\n      //_this.set('major_condition', _this.get('serviceIcpattend').majorcondition_data);\n      //console.log(_this.get('serviceIcpattend').getMajorCondition(id, patient_id));\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'majorcondition/' + id + '/' + patient_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('major_condition', res.data);\n        }\n      });\n    },\n    getTestName: async function (test_array, range_value) {\n      var html = '';\n      var binary = '';\n      var threshold = '';\n      var color_class1 = '';\n      var color_class2 = '';\n      var imagingHTML = '';\n      var cflHTML = '';\n      $('#dnorecod').html('');\n      $('#grouppath').html('');\n      $('.row-second').css('display', 'block');\n      $('.row-seven').css('display', 'none');\n      $('#group_tests_list').empty();\n      // Binary html\n      if (test_array.range_type == 'bnr') {\n        if (range_value == test_array.lower_range) {\n          var selected1 = 'selected=' + 'selected' + '';\n          var color_class1 = 'green';\n        } else if (range_value != test_array.lower_range) {\n          var selected1 = '';\n        }\n        if (range_value == test_array.upper_range) {\n          var selected2 = 'selected=' + 'selected' + '';\n          var color_class2 = 'red';\n        } else if (range_value != test_array.upper_range) {\n          var selected2 = '';\n        }\n        binary += ' <div class=\"col-sm-9\">';\n        binary += '<div class=\"col-sm-6 ' + color_class1 + ' ' + color_class2 + '\">';\n        binary += '<input type=\"hidden\" class=\"setabnormal1\" name=\"abnormal_value[1]\" value=\"' + test_array.abnormal_value + '\">';\n        binary += '<select name=\"range_value[1]\" data-id=\"1\" class=\"form-control changeAbnormalVal\">';\n        binary += '<option ' + selected1 + '  value=\"' + test_array.lower_range + '\">' + test_array.lower_range + '</option>';\n        binary += '<option ' + selected2 + '  value=\"' + test_array.upper_range + '\">' + test_array.upper_range + '</option>';\n        binary += '</select>';\n        binary += '</div>';\n        binary += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n        binary += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[1]\" value=\"' + test_array.lower_range + '\"><input type=\"hidden\" name=\"range_type[1]\" value=\"' + test_array.range_type + '\"><input type=\"hidden\" name=\"imaging[1]\" value=\"' + test_array.imaging + '\">' + test_array.lower_range + '</span> - ';\n        binary += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[1]\" value=\"' + test_array.upper_range + '\"><input type=\"hidden\" name=\"unit_id[1]\" value=\"' + test_array.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[1]\" value=\"' + test_array.unit_name + '\">' + test_array.upper_range + ' ' + test_array.unit_name + '</span>)';\n        binary += '</div>';\n        binary += '</div>';\n      } else if (test_array.range_type == 'th') {\n        // Threshold html\n        if (test_array.abnormal_value == 1) {\n          var abnormal_class = 'has-warning';\n        } else {\n          var abnormal_class = '';\n        }\n        threshold += '<div class=\"col-sm-9\">';\n        threshold += '<div class=\"col-sm-6\">';\n        threshold += '<input type=\"text\" class=\"form-control decimalremove ' + abnormal_class + '\" id=\"decimalremove\" name=\"range_value[1]\" data-id=\"1\" placeholder=\"Range value\" value=\"' + test_array.range_value + '\">';\n        threshold += '<input type=\"hidden\" class=\"setabnormal1\" name=\"abnormal_value[1]\" value=\"' + test_array.abnormal_value + '\">';\n        threshold += '</div>';\n        threshold += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n        threshold += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[1]\" value=\"' + test_array.lower_range + '\"><input type=\"hidden\" name=\"range_type[1]\" value=\"' + test_array.range_type + '\"><input type=\"hidden\" name=\"imaging[1]\" value=\"' + test_array.imaging + '\">' + test_array.lower_range + '</span> - ';\n        threshold += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[1]\" value=\"' + test_array.upper_range + '\"><input type=\"hidden\" name=\"unit_id[1]\" value=\"' + test_array.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[1]\" value=\"' + test_array.unit_name + '\">' + test_array.upper_range + ' ' + test_array.unit_name + '</span>)';\n        threshold += '</div>';\n        threshold += '</div>';\n      } else if (test_array.range_type == 'img') {\n        // imaging html\n        imagingHTML += '<div class=\"col-sm-9\">';\n        imagingHTML += '<div class=\"col-sm-6\">';\n        imagingHTML += '<input type=\"hidden\" class=\"form-control decimalremove\" data-id=\"1\" id=\"decimalremove\" name=\"range_value[1]\" value=\"0\">';\n        imagingHTML += '<input type=\"hidden\" class=\"form-control setabnormal1\" name=\"abnormal_value[1]\" value=\"0\">';\n        imagingHTML += '</div>';\n        imagingHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n        imagingHTML += '<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[1]\" value=\"0\"><input type=\"hidden\" name=\"range_type[1]\" value=\"' + test_array.range_type + '\"><input type=\"hidden\" name=\"imaging[1]\" value=\"' + test_array.imaging + '\"></span>';\n        imagingHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[1]\" value=\"0\"><input type=\"hidden\" name=\"unit_id[1]\" value=\"' + test_array.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[1]\" value=\"' + test_array.unit_name + '\"></span>';\n        imagingHTML += '</div>';\n        imagingHTML += '</div>';\n      } else if (test_array.range_type == 'cfl') {\n        await this.getCflHTML(0, test_array, test_array.test_id, function retval(d) {\n          cflHTML = d;\n        });\n      }\n      $('#diagnostic_test_name').val(test_array.group[0].name);\n      $('#group_id').val(test_array.group[0].id);\n      $('#parent_group_id').val(test_array.parent_group_name[0].id);\n      html += '<div class=\"row form-group\">';\n      html += '<label class=\"col-sm-3 dmargin\" for=\"urgent\"><input type=\"hidden\" name=\"test_id[1]\" value=\"' + test_array.test_id + '\"><input type=\"hidden\" name=\"test_name[1]\" value=\"' + test_array.test_name + '\">' + test_array.test_name + '</label>';\n      if (test_array.range_type == 'bnr') {\n        // Here Append Binary Html\n        html += binary;\n      } else if (test_array.range_type == 'th') {\n        // Append Threshold html\n        html += threshold;\n      } else if (test_array.range_type == 'img') {\n        // Append imaging html\n        html += imagingHTML;\n      } else if (test_array.range_type == 'cfl') {\n        // Append imaging html\n        html += cflHTML;\n      }\n      html += '</div>';\n      $('#tests_list').html(html);\n    },\n    refreshPage() {\n      window.location.href = window.location.href;\n    },\n    getDoctorDropdownList: function (user_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {\n          branch_id: branch_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctor', res.data);\n          _this.set('doctor_id', user_id);\n        }\n      });\n    },\n    updateMessageLogStatus: function (appointment_id, read_status) {\n      let utoken = this.session.getToken();\n      if (appointment_id != undefined && read_status != undefined) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'icpattend/readmessage/' + appointment_id + '/' + read_status,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log('message log');\n          },\n          error: function (error, x, y) {}\n        });\n      }\n    },\n    patientMarkComplete: function (branch_id, today, doctor_id, shift_id, appointment_id, p_edit_status) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/patientAssignedTodoctor',\n        data: {\n          branch_id: branch_id,\n          //dateTime: today,\n          doctor_id: doctor_id,\n          shift_id: shift_id,\n          appointment_id: appointment_id,\n          edit: p_edit_status\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res.data);\n          if (res.data.length > 0) {\n            _this.set('doc_id', '');\n            _this.set('current_doc_appointments', res.data[0]);\n            if (res.data[0].assigned_dr_1 != null) {\n              _this.set('doc_id', res.data[0].assigned_dr_1);\n            } else {\n              _this.set('doc_id', res.data[0].assigned_dr_2);\n            }\n          } else {\n            _this.set('doc_id', '');\n          }\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    // //This below function is used for getting all precribed patient data for Billing Dashboard, Rahul Khan 10_may_2019\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage, date) {\n      if (date == 'All') {\n        var date = date;\n      } else {\n        var date = '';\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctorbillclinic',\n        data: {\n          shift_id: shift_id,\n          branch_id: branch_id,\n          stage: stage,\n          date: date,\n          user_id: user_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res.data);\n          //_this.set('clinicPatients', res.data);\n          var notVisit = res.data.filter(function (el) {\n            return el.visit_complete == '0';\n          });\n\n          // var icpVcPatients = res.data.filter(function (el) {\n          //     var date = el.appointment_datetime.split(' ');;\n          //     var compairDate = moment(today).isSame(moment(date[0]).format('YYYY-DD-MM'));\n          //     return ((el.type == 'icp' && el.absent == '0') && (compairDate == true)) || (el.type == 'vc');\n          // });\n\n          var icpVcPatients = res.data.filter(function (el) {\n            return el.type == 'icp' && el.absent == '0' || el.type == 'vc';\n          });\n          var phonePatients = res.data.filter(function (el) {\n            return el.type == 'phone';\n          });\n          var emailPatients = res.data.filter(function (el) {\n            return el.type == 'email';\n          });\n          var ocpPatients = res.data.filter(function (el) {\n            return el.type == 'ocp';\n          });\n          var phoneUrgent = notVisit.filter(function (el) {\n            return el.type == 'phone' && el.urgent_status == '1';\n          });\n          var emailUrgent = notVisit.filter(function (el) {\n            return el.type == 'email' && el.urgent_status == '1';\n          });\n          var ocpUrgent = notVisit.filter(function (el) {\n            return el.type == 'ocp' && el.urgent_status == '1';\n          });\n          var icpVcUrgent = notVisit.filter(function (el) {\n            return (el.type == 'icp' || el.type == 'vc') && el.urgent_status == '1';\n          });\n          if (icpVcUrgent.length > '0') {\n            var icpVcStatus = 'fa-urgent';\n          } else {\n            var icpVcStatus = '';\n          }\n          if (phoneUrgent.length > '0') {\n            var phoneStatus = 'fa-urgent';\n          } else {\n            var phoneStatus = '';\n          }\n          if (emailUrgent.length > '0') {\n            var emailStatus = 'fa-urgent';\n          } else {\n            var emailStatus = '';\n          }\n          if (ocpUrgent.length > '0') {\n            var ocpStatus = 'fa-urgent';\n          } else {\n            var ocpStatus = '';\n          }\n          var headerCounter = [{\n            remaining: {\n              icpVc: icpVcPatients.length,\n              phone: phonePatients.length,\n              email: emailPatients.length,\n              ocp: ocpPatients.length\n            },\n            urgent: {\n              icpVc: icpVcStatus,\n              phone: phoneStatus,\n              email: emailStatus,\n              ocp: ocpStatus\n            }\n          }];\n          var loginUser = _this.get('session').getLoggedInUserId();\n          var dropdownUser = $('#doctor').val();\n          if (loginUser == dropdownUser) {\n            var currentUser = true;\n          } else {\n            var currentUser = false;\n          }\n          // _this.set('icpVcPatients', icpVcPatients);\n          // _this.set('phonePatients', phonePatients);\n          // _this.set('emailPatients', emailPatients);\n          // _this.set('ocpPatients', ocpPatients);\n          // _this.set('currentUser', currentUser);\n          _this.set('remainingIcpVcPatients', icpVcPatients.length);\n          _this.set('remainingPhonePatients', phonePatients.length);\n          _this.set('remainingEmailPatients', emailPatients.length);\n          _this.set('remainingOcpPatients', ocpPatients.length);\n          _this.set('phoneEmailOcpRemaining', headerCounter[0]);\n          //console.log(ocpPatients);\n        },\n        complete: function (res) {}\n      });\n      var _this = this;\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + user_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var counter = res.data[0];\n          //console.log(counter);\n          if (counter != undefined) {\n            var totalIcpVcPrescribe = +counter.total_icp_prescribe + +counter.total_vc_prescribe;\n            var totalIcpVcCasetaken = +counter.total_icp_casetaken + +counter.total_vc_casetaken;\n            counter['totalIcpVcPrescribe'] = totalIcpVcPrescribe;\n            counter['totalIcpVcCasetaken'] = totalIcpVcCasetaken;\n            _this.set('patientCount', counter);\n          } else {\n            _this.set('patientCount', 0);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    getTempPrescribeMedicine: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        _this.set('temp_billpatient', null);\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/tempprescribeMedicine/' + appointment_id,\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            if (response[0].length > 0) {\n              _this.set('temp_billpatient', response[0]);\n            } else {\n              _this.set('temp_billpatient', '');\n            }\n          },\n          complete: function (res) {\n            $('#loader').hide();\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getPrescribeMedicine: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/prescribeMedicinedetail/' + appointment_id,\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            if (response[0].length > 0) {\n              //console.log('a');\n              _this.set('billpatient', response[0]);\n              _this.set('prescription_billing_id', response[0][0].billing_id);\n              _this.set('pharmacy', response[0][0].pharmacy);\n              _this.set('reason', response[0][0].reason);\n              _this.set('page', 'prescribeedit');\n            } else {\n              //console.log('b');\n              _this.set('billpatient', '');\n              _this.set('prescription_billing_id', '');\n              _this.set('pharmacy', '');\n              _this.set('reason', '');\n              _this.set('page', 'prescribeadd');\n            }\n            _this.set('section_user', response.modify_user);\n          },\n          complete: function (res) {\n            $('#loader').hide();\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getLastVisitHistory: function (patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (patient_id == undefined) {\n        patient_id = _this.get('patient_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/last_visit/' + patient_id;\n      if (patient_id != undefined) {\n        $('.loader').show();\n        _this.set('last_visit_history', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            $('.loader').hide();\n            if (res.error == true && res.count == 0) {\n              _this.set('last_visit_history', res.count);\n            } else {\n              _this.set('last_visit_history', res);\n            }\n          },\n          complete: function (res) {\n            //console.log(\"Execution complete\");\n          }\n        });\n      }\n    },\n    getPreviousCaseTaken: function (appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/previouscasetaken/' + appointment_id + '/' + patient_id;\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (previous_response) {\n            if (previous_response.error == false && previous_response.actions == 'imported') {\n              _this.getCaseTakenList(previous_response.appointment_id);\n            }\n          },\n          complete: function (previous_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getCaseHistory: function (appointment_id, patient_id, page_no = 1) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //Nishant: 22-sep-2022 implement paging\n      var page_size = _environment.default.pagingDefaults.pageSize;\n      // console.log(page_size);\n      var offset = (page_no - 1) * page_size;\n      var no_of_pages = 1;\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/casetakenhistory/' + appointment_id + '/' + patient_id + '/' + offset + '/' + page_size;\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        _this.set('case_taken_history_list', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          cache: false,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            // console.log(history_response);\n            _this.set('case_taken_history_list', history_response);\n            _this.set('page_no', page_no);\n            no_of_pages = Math.floor(history_response.data['count'] / page_size);\n            if (history_response.data['count'] % page_size > 0) {\n              no_of_pages += 1;\n            }\n            _this.set('no_of_pages', no_of_pages);\n          },\n          beforeSend: function () {\n            $('#loader').show();\n          },\n          complete: function () {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getAdvisedReport(id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      const sectionId = 'advised-Reports';\n      $('#loader').show();\n      _this.set('advised_report', null);\n      _this.set('advised_report_user', null);\n      $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}icpattend/advisedReport/${id}`,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          $('#loader').hide();\n          _this.set('advised_report', res.data);\n          _this.set('advised_report_user', res.modify_user);\n        },\n        error: function (jqXHR, textStatus, errorThrown) {\n          (0, _ajaxErrorHandler.handleAjaxError)(jqXHR, textStatus, errorThrown, sectionId);\n        },\n        complete: function () {\n          $('#loader').hide();\n        }\n      });\n    },\n    getPreviousAdvisedReport(appointment_id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      const sectionId = 'advised-Reports';\n      $('#loader').show();\n      $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}icpattend/previousAdvisedReport`,\n        data: {\n          appointment_id: appointment_id,\n          patient_id: patient_id\n        },\n        method: 'POST',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          $('#loader').hide();\n          if (res.error == false && res.data.length > 0) {\n            _this.set('previous_advised_report', res.data);\n          } else {\n            _this.set('previous_advised_report', null);\n          }\n        },\n        error: function (jqXHR, textStatus, errorThrown) {\n          (0, _ajaxErrorHandler.handleAjaxError)(jqXHR, textStatus, errorThrown, sectionId);\n        },\n        complete: function () {\n          $('#loader').hide();\n        }\n      });\n    },\n    removeAdvicedReport: function (id, appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //comment below this code by shubh tiwari, 27-02-2024\n      //var a_id = _this.get('appointment_id');\n\n      Swal.fire({\n        text: 'Do you want to delete the record?',\n        icon: 'warning',\n        width: 600,\n        showCancelButton: true,\n        confirmButtonColor: '#3085d6',\n        cancelButtonColor: '#d33',\n        allowOutsideClick: false,\n        confirmButtonText: 'Yes, delete it!'\n      }).then(result => {\n        if (result.isConfirmed) {\n          $.ajax({\n            type: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'icpattend/advisedReport/' + id,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res == 'true') {\n                _this.getAdvisedReport(appointment_id);\n                swal({\n                  text: 'Report deleted successfully.',\n                  icon: 'success',\n                  button: 'Ok'\n                });\n              }\n            },\n            complete: function () {}\n          });\n        }\n      });\n    },\n    ResetAdvisedReport() {\n      var todayDate = moment().format('DD/MM/YYYY');\n      $('#advised_report_name').val('');\n      $('#advised_report_date').val(todayDate);\n      $('#advised_report_name').addClass('advised_report_name');\n      $('.reports_other').html('');\n      //$('#report_results').hide();\n      $('#report_results').html('').hide().removeClass('diagnostic-result');\n    },\n    assignToDoctorFrontDesk: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var login_user_id = _this.get('session').getLoggedInUserId();\n      var logged_user_type = _this.get('session').getLoggedInUserType();\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var label = $('#assign_doctor option:selected').attr('data-doctor-label');\n      var tab_id = $('ul#tab-list').find('li.active').attr('data-tabsid');\n      var select_doctor_id = $('#assign_doctor option:selected').val();\n      var doctoe_name = $('#assign_doctor option:selected').text();\n      var patientLogEntry = $('#patientLogEntry').val();\n      var message = patientLogEntry.trim();\n      //console.log(logged_user_type);\n      // if(label!=''){\n      //     var doctoe_name = label;\n      // }else{\n      //     var doctoe_name = non_label;\n      // }\n      var visit_id = _this.get('PatientInfo');\n      var id = visit_id[0].visit_id;\n      var form = $('#addMessageLog');\n      if (select_doctor_id !== null && select_doctor_id !== '' && select_doctor_id !== undefined && message !== null && message !== '' && message !== undefined) {\n        Swal.fire({\n          text: 'Are you sure you want to assign this patient to ' + doctoe_name + '?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, assign it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'icpattend/reSchedule',\n              data: {\n                user_id: login_user_id,\n                id: id,\n                label: label,\n                branch_id: branch_id,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loader').show();\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'assigned') {\n                  if (login_user_id == select_doctor_id) {\n                    _this.send('refreshApiRequest');\n                    $('#message_logs').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                    $('#message_logs .alert').fadeToggle(10000);\n                    $('#patientLogEntry').val('');\n                  } else {\n                    if (tab_id != undefined) {\n                      _this.get('doctordasboard').send('removePrescribeTabWithoutMessage', tab_id);\n                    }\n                    if (logged_user_type == 0) {\n                      _this.transitionToRoute('dashboard');\n                    } else {\n                      _this.transitionToRoute('doctor-dashboard');\n                    }\n                  }\n                }\n                var myArray = _this.get('messageLoglocalstorageArray');\n                var obj = myArray.findBy('id', res.appointment_id); // assuming the object has a property 'id'\n                myArray.removeObject(obj);\n                localStorage.setItem('message_log', JSON.stringify(myArray));\n                localStorage.removeItem(\"message_log\");\n              },\n              error: function (error, x, y) {\n                //console.log(error);\n              },\n              complete: function () {\n                $('#loader').hide();\n              }\n            });\n          }\n        });\n      } else {\n        _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please Enter the Message', 'message_logs');\n      }\n    },\n    saveFreeNote: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var login_user_id = _this.get('session').getLoggedInUserId();\n      var note = $('textarea[name=\"patientFreeNote\"]').val();\n      var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n      var free_patient_id = $('input[type=hidden][name=free_patient_id]').val();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'icpattend/updateFreeNote',\n        method: 'POST',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loader').show();\n        },\n        data: {\n          user_id: login_user_id,\n          free_note: note,\n          appointment_id: appointment_id,\n          patient_id: free_patient_id\n        },\n        success: function (res) {\n          var myArray = _this.get('freeNotelocalstorageArray');\n          var obj = myArray.findBy('id', appointment_id); // assuming the object has a property 'id'\n          myArray.removeObject(obj);\n          localStorage.setItem('freenote', JSON.stringify(myArray));\n          if (res.error == false && res.actions == 'update') {\n            $('#free_notemessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n            $('#free_notemessage .alert').fadeToggle(10000);\n            _this.getPrescribeDetail(res.appointment_id);\n          } else if (res.error == true && res.actions == 'no_update') {\n            $('#free_notemessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n            $('#free_notemessage .alert').fadeToggle(10000);\n            _this.getPrescribeDetail(res.appointment_id);\n          }\n        },\n        complete: function () {\n          $('#loader').hide();\n        }\n      });\n    },\n    clearVariableData() {\n      var _this = this;\n      _this.set('caseDetail', ' ');\n      _icd11ect.default.Handler.clear('1');\n      $('.show-error').removeClass('has-error');\n      $('.text-error-message').hide();\n      $('#icd_name').val('');\n      $('#max_order').val('');\n      $('#icd_code').val('');\n      $('#certificate_name').val('');\n      $('#icd_major_condition').prop('checked', false);\n      $('#disease_name').val('');\n      $('#disease_id').val('');\n      $('#system_name').val('');\n      $('#system_id').val('');\n      $('#organ_name').val('');\n      $('#organ_id').val('');\n      $('#dkbc_db_major_condition').prop('checked', false);\n      $('#details_notes').val('');\n      $('#symptom_duration').val('');\n      $('.drugs').val('');\n      $('.d_sympton').val('');\n      $('.non_homeopathic_start_date').val('');\n      $('.homeopathic_start_date').val('');\n      $('.non_homeopathic_stopped_date').val('');\n      $('.homeopathic_stopped_date').val('');\n      $('.remove_row').remove();\n      $('.hotherOption1').val('');\n      $('.hotherOption1').attr('placeholder', 'Select instruction');\n      $('.nhotherOption1').val('');\n      $('.nhotherOption1').attr('placeholder', 'Select instruction');\n      $('#caseTakenUpdate1').show();\n      $('#caseTakenUpdate').text('Save & Close');\n      $('#casetaken_title').text('Add Case Taking');\n      $('#case_taken_id').removeAttr('value');\n      $('#icd_name').removeAttr('readonly');\n      $('#icd_name').removeAttr('data-icdname');\n      $(\"select#patient_status option[value='First Reported']\").removeAttr('selected');\n      $('.homeopathicRemoveRow').attr('style', 'display:none');\n      $('.non_homeopathicRemoveRow').attr('style', 'display:none');\n      $('.icd_clear_class').attr('style', 'display:none');\n      $('.dkbc_clear_class').attr('style', 'display:none');\n      $('#icd_suggession_div').css('border', 'initial');\n      $('#disease_name').addClass('disease_name_input');\n      $('#system_name').addClass('system_name_input');\n      $('#organ_name').addClass('organ_name_input');\n      $('#disease_name').attr('placeholder', 'Select/Type disease name');\n      $('#system_name').attr('placeholder', 'System name');\n      $('#organ_name').attr('placeholder', 'Organ Name');\n      $('.dkbc_d_others_text').html('');\n      $('.dkbc_s_others_text').html('');\n      $('.dkbc_o_others_text').html('');\n      //$('#icd_suggession_div').removeAttr('style');\n    },\n    getPrescribeDetail: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/prescribe/' + appointment_id;\n      if (appointment_id != undefined) {\n        _this.set('PatientInfo', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          beforeSend: function () {\n            $('#loader').show();\n          },\n          success: function (res) {\n            var ParseData = JSON.parse(res);\n            _this.set('PatientInfo', ParseData.data);\n            //console.log(ParseData.data[0].urgent_status);\n            if (ParseData.data[0].urgent_status == 1) {\n              _this.set('display_block', 'block');\n            } else {\n              _this.set('display_block', 'none');\n            }\n          },\n          complete: function (res) {\n            $('#loader').hide();\n            //console.log(\"Execution complete\");\n          }\n        });\n      } else {}\n    },\n    getVitalList: function (appointment_id, patient_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/vitallist/' + appointment_id + '/' + patient_id;\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        $('#loader').show();\n        _this.set('patient_vital_list', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (vital_response) {\n            //_this.sortByKeyAsc(vital_response.data, 'id');\n            _this.set('patient_vital_list', vital_response);\n            if (vital_response.visit_data != null) {\n              //console.log('vital-a');\n              _this.set('height_unit', vital_response.visit_data.height_filter_unit);\n              _this.set('weight_unit', vital_response.visit_data.weight_filter_unit);\n              _this.set('body_temp_unit', vital_response.visit_data.body_temp_filter_unit);\n            } else {\n              if (vital_response.last_visit != null) {\n                //console.log('vital-b');\n                _this.set('height_unit', vital_response.last_visit.height_filter_unit);\n                _this.set('weight_unit', vital_response.last_visit.weight_filter_unit);\n                _this.set('body_temp_unit', vital_response.last_visit.body_temp_filter_unit);\n              }\n            }\n          },\n          complete: function (vital_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getDiagnosticList: function (appointment_id, patient_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var page_size = _environment.default.pagingDefaults.pageSize;\n      var base_url = _environment.default.APP.lumen_api_url + 'icpdlist/' + appointment_id + '/' + patient_id + '/' + page_size;\n      //console.log(base_url);\n      if (appointment_id != undefined && patient_id != undefined) {\n        _this.set('patient_test_reports', null);\n        _this.set('diagnostic_test_user', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (d_response) {\n            //console.log(d_response);\n            _this.set('patient_test_reports', d_response);\n            _this.set('diagnostic_test_user', d_response.modify_user);\n          },\n          complete: function (d_response) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    getCaseTakenList: function (appointment_id) {\n      //console.log(appointment_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/casetakenlist/' + appointment_id;\n      //console.log(base_url);\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        _this.set('patient_case_taking_list', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (case_taken_response) {\n            _this.set('patient_case_taking_list', case_taken_response);\n          },\n          complete: function (vital_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    removeTest: function (test_name, appointment_id, patient_id, test_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      Swal.fire({\n        text: 'Are you sure you want to remove ' + test_name + ' list?',\n        icon: 'warning',\n        width: 600,\n        showCancelButton: true,\n        confirmButtonColor: '#3085d6',\n        cancelButtonColor: '#d33',\n        allowOutsideClick: false,\n        confirmButtonText: 'Yes, remove it!'\n      }).then(result => {\n        if (result.isConfirmed) {\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'removetest',\n            method: 'POST',\n            data: {\n              test_id: test_id,\n              test_name: test_name,\n              appointment_id: appointment_id,\n              patient_id: patient_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (data) {\n              if (data.action == 'remove_test' && data.error == false) {\n                $('#diagnosticmessage').html('<div class=\"alert alert-success\">' + data.message + '</div>');\n                $('#diagnosticmessage .alert').fadeToggle(10000);\n                _this.send('getDiagnosticList', data.appointment_id, data.patient_id);\n              } else if (data.action == 'datainsufficient' && data.error == true) {\n                $('#diagnosticmessage').html('<div class=\"alert alert-success\">' + data.message + '</div>');\n                $('#diagnosticmessage .alert').fadeToggle(10000);\n              }\n            },\n            complete: function () {}\n          });\n        }\n      });\n    },\n    // editCaseTakingData: function (id) {\n    //   var _this = this;\n    //   jQuery.noConflict();\n    //   $('#caseTakingPopup').modal('show');\n    //   $('#caseTakingPopup').modal({\n    //     backdrop: 'static',\n    //     keyboard: false,\n    //   });\n    //   $('#case_taken_id').val(id);\n    //   $('#casetaken_title').text('Edit Case Taking');\n    //   if (id) {\n    //     $('#caseTakenUpdate').text('Update');\n    //     $('#caseTakenUpdate').removeClass('case-pull-left');\n    //     $('#caseTakenUpdate').attr('style', 'margin-left:69px');\n    //     var dataRow = $('.homeopathicRemoveRow').data('row');\n    //   }\n    //   $.ajax({\n    //     url: ENV.APP.lumen_api_url + 'icpattend/caseTakenDetail/' + id,\n    //     method: 'GET',\n    //     beforeSend: function () {\n    //       $('#case-taking-loader').show();\n    //     },\n    //     success: function (res) {\n    //       //console.log(res);\n    //       _this.set('caseDetail', res);\n    //       _this.set('editLable', dataRow);\n    //     },\n    //     complete: function () {\n    //       $('#case-taking-loader').hide();\n    //     },\n    //   });\n    // },\n    geMessageLogs: function (appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/messageloglist/' + appointment_id;\n      //console.log(base_url);\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (logs_response) {\n            _this.set('message_logs_list', logs_response.data);\n            _this.set('last_assigned_by', logs_response.assigned_by);\n          },\n          complete: function (logs_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n      // if the alphabetic part of a is less than that of b => -1\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n      // if the alphabetic part of a is greater than that of b => 1\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n      // if the alphabetic parts are equal, check the number parts\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n      // else, just sort using the numbers parts\n      return _n;\n    },\n    sortMedicineRow(tableId) {\n      //console.log(tableId);\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n        // if the alphabetic part of a is less than that of b => -1\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n        // if the alphabetic part of a is greater than that of b => 1\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n        // if the alphabetic parts are equal, check the number parts\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n        // else, just sort using the numbers parts\n        return _n;\n      }).appendTo($tbody);\n    },\n    sortByKeyAsc(array, key) {\n      return array.sort(function (a, b) {\n        var x = a[key];\n        var y = b[key];\n        return x < y ? -1 : x > y ? 1 : 0;\n      });\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    checkEnableCheckbox() {\n      var checkedValue = $('#sort-serial').is(':checked');\n      if (checkedValue == true) {\n        $('.srnoItem').attr('readonly', false);\n      } else {\n        $('.srnoItem').attr('readonly', true);\n      }\n    },\n    remove_linebreaks(str) {\n      return str.replace(/[\\r\\n]+/gm, '');\n    },\n    truncate(source, size) {\n      return source.length > size ? source.slice(0, size - 1) + '' : source;\n    },\n    textuptoThreeLine(source, size) {\n      return source.length > size ? source.slice(0, size - 1) + '...' : source;\n    },\n    getTabsList: function (user_id, branch_id, shift_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'tabs',\n        data: {\n          user_id: user_id,\n          branch_id: branch_id,\n          shift_id: shift_id\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.set('tablist', res);\n        },\n        complete: function (res) {}\n      });\n    },\n    canFindAppointmentId(free_note_object, id) {\n      //var result = false;\n      var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id === id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    parseValue(free_note_object, id) {\n      var result = false;\n      //var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id == id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    stringToForm(formString, unfilledForm) {\n      var formObject = JSON.parse(formString);\n      unfilledForm.find('input, select, textarea').each(function () {\n        if (this.id) {\n          var id = this.id;\n          var elem = $(this);\n          if (elem.attr('type') == 'checkbox' || elem.attr('type') == 'radio') {\n            elem.attr('checked', formObject[id]);\n          } else {\n            elem.val(formObject[id]);\n          }\n        }\n      });\n    },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.api_url + 'appointments/docCounters?shift_id=' + shift_id + '&branch_id=' + branch_id + '&doctor_id=' + doctor_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var counter = res.data[0];\n          //console.log(counter);\n          if (counter != undefined) {\n            _this.set('totalPrescribe', counter.total_prescribed);\n            _this.set('totalCasetaken', counter.total_case_taken);\n          } else {\n            _this.set('totalPrescribe', 0);\n            _this.set('totalCasetaken', 0);\n          }\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    canFindAppointmentId(free_note_object, id) {\n      //var result = false;\n      var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id === id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    parseValue(free_note_object, id) {\n      var result = false;\n      //var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id == id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    stringToForm(formString, unfilledForm) {\n      var formObject = JSON.parse(formString);\n      unfilledForm.find('input, select, textarea').each(function () {\n        if (this.id) {\n          var id = this.id;\n          var elem = $(this);\n          if (elem.attr('type') == 'checkbox' || elem.attr('type') == 'radio') {\n            elem.attr('checked', formObject[id]);\n          } else {\n            elem.val(formObject[id]);\n          }\n        }\n      });\n    },\n    canFindAppointmentId(free_note_object, id) {\n      //var result = false;\n      var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id === id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    parseValue(free_note_object, id) {\n      var result = false;\n      //var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id == id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    stringToForm(formString, unfilledForm) {\n      var formObject = JSON.parse(formString);\n      unfilledForm.find('input, select, textarea').each(function () {\n        if (this.id) {\n          var id = this.id;\n          var elem = $(this);\n          if (elem.attr('type') == 'checkbox' || elem.attr('type') == 'radio') {\n            elem.attr('checked', formObject[id]);\n          } else {\n            elem.val(formObject[id]);\n          }\n        }\n      });\n    },\n    canFindAppointmentId(free_note_object, id) {\n      //var result = false;\n      var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id === id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    parseValue(free_note_object, id) {\n      var result = false;\n      //var result = '';\n      $.each(free_note_object, function (key, value) {\n        if (value.id == id) {\n          result = value.value;\n          return false; //This will only exit the anonymous function and stop the iteration immediatelly.\n        }\n      });\n      return result; //This will exit the function with return true;\n    },\n    stringToForm(formString, unfilledForm) {\n      var formObject = JSON.parse(formString);\n      unfilledForm.find('input, select, textarea').each(function () {\n        if (this.id) {\n          var id = this.id;\n          var elem = $(this);\n          if (elem.attr('type') == 'checkbox' || elem.attr('type') == 'radio') {\n            elem.attr('checked', formObject[id]);\n          } else {\n            elem.val(formObject[id]);\n          }\n        }\n      });\n    },\n    newDoctorId(id) {\n      var _this = this;\n      var stage = 0;\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = id;\n      var currentUserId = _this.get('session').getLoggedInUserId();\n      var user = $('#doctor').val();\n      _this.send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n      // if(currentUserId != user_id){\n      //   $(\".table\").css(\"pointer-events\", \"none\");\n      // } else {\n      //   $(\".table\").css(\"pointer-events\", \"auto\");\n      // }\n    },\n    getreportedProxy(appointment_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/getproxy/' + appointment_id;\n      //console.log(base_url);\n      if (appointment_id != undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (proxy_response) {\n            _this.set('reportedProxy', proxy_response.data);\n          },\n          complete: function (proxy_response) {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    getVisitLogs(patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'icpattend/visitlog/' + patient_id;\n      //console.log(base_url);\n      if (patient_id != undefined) {\n        $('#loader').show();\n        // Reset visit_logs value\n        _this.set('visit_logs', null);\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          //dataType: 'json',\n          async: true,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (visit_response) {\n            if (visit_response.data.lastObject == undefined && visit_response.data.lastItem == undefined && visit_response.data.lastIndex == undefined) {\n              _this.set('visit_logs', visit_response.data);\n            } else if (visit_response.data.lastObject == undefined && visit_response.data.lastItem == undefined && visit_response.data.lastIndex == 0) {\n              // Clear previous content\n              $('#visitlogbody').empty();\n              var html = '';\n              html += '<tr>';\n              html += '<td colspan=\"5\" class=\"text-center\">No past visit</td>';\n              html += '</tr>';\n              $('#visitlogbody').append(html);\n            }\n          },\n          complete: function () {\n            $('#loader').hide();\n          }\n        });\n      }\n    },\n    //Nishant 9-Jan-2023: This below function is used for getting all the patient visit changes which applied, Rahul Khan, 12 July 2019\n    getPreviousVisitCharges: function (appointment_id, billing_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      if (appointment_id == undefined) {\n        appointment_id = _this.get('appointment_id');\n      }\n      if (billing_id === undefined) {\n        billing_id = _this.get('billing_id');\n      }\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/previousbillothercharge/' + appointment_id + '/' + billing_id;\n      if (appointment_id != undefined && billing_id !== undefined) {\n        $('#loader').show();\n        $.ajax({\n          url: base_url,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: true,\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (prescribe_editresponse) {\n            $('#loader').hide();\n            // $(\".tbody\").empty();\n            var visit_charge_array = [];\n            var visit_charge_amount_array = [];\n            var jsondata = JSON.stringify(prescribe_editresponse.other_charges);\n            // console.log('JSONdata:'+jsondata);\n            _this.set('previous_edit_page_visit_charges', jsondata);\n            _this.set('visit_charges', prescribe_editresponse.other_charges);\n            /*This below code is used for making disabled already selected charges, Rahul Khan 23 july 2019 */\n            if (prescribe_editresponse.other_charges.length > 0) {\n              $.each(prescribe_editresponse.other_charges, function (key, value) {\n                visit_charge_array.push(value.charge_code.toUpperCase());\n                visit_charge_amount_array.push(value.charge_amount);\n                $(\"#medicine_charge option:contains('\" + value.charge_name + \"')\").attr('disabled', true);\n              });\n            }\n            var total_charge = _this.sum(visit_charge_amount_array);\n            _this.set('total_charge', total_charge);\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    },\n    sum(input) {\n      //console.log(input);\n      if (toString.call(input) !== '[object Array]') return false;\n      var total = 0;\n      for (var i = 0; i < input.length; i++) {\n        if (isNaN(input[i])) {\n          continue;\n        }\n        total += Number(input[i]);\n      }\n      return total;\n    },\n    async fetchPresignedUrl(filePath, utoken) {\n      try {\n        const base_url = _environment.default.APP.lumen_api_url + 'presignedurl';\n        const param = '?filePath=' + filePath;\n        const response = await fetch(base_url + param, {\n          method: 'GET',\n          headers: {\n            'Authorization': `Bearer ${utoken}`,\n            'Content-Type': 'application/json',\n            'Accept': 'application/json'\n          }\n        });\n        if (!response.ok) {\n          const errorData = await response.json();\n          console.error('Error fetching presigned URL:', errorData.message);\n          throw new Error(errorData.message || 'Failed to fetch presigned URL');\n        }\n        const data = await response.json();\n        //console.log('data url='+data.presignedUrl);\n\n        return data.presignedUrl;\n      } catch (error) {\n        console.error('Error in fetchPresignedUrl:', error);\n        throw error;\n      }\n    },\n    sanitizeFileName(name) {\n      // Separate name and extension\n      const parts = name.split('.');\n      const extension = parts.length > 1 ? '.' + parts.pop() : '';\n      const base = parts.join('.');\n\n      // Sanitize filename (base only)\n      const cleanBase = base.normalize('NFKD') // normalize Unicode\n      .replace(/[^\\w.-]/g, '_') // keep a-zA-Z0-9 _ . -\n      .replace(/_+/g, '_') // collapse underscores\n      .replace(/^_+|_+$/g, '') // trim underscores\n      .substring(0, 150); // safe length\n\n      return cleanBase + extension.toLowerCase(); // lowercase extensions are more standard\n    },\n    async uploadfiles(get_file_name) {\n      let uploaded_count = 0;\n      let error_count = 0;\n      let utoken = this.session.getToken();\n      this.s3UploadedFile = []; // Reset the array\n\n      for (let i = 0; i < get_file_name.length; i++) {\n        try {\n          const originalName = get_file_name[i].file.name;\n          const sanitizedFileName = this.sanitizeFileName(originalName);\n          const base_url = _environment.default.APP.lumen_api_url + 's3';\n          const param = '?file_name=' + encodeURIComponent(sanitizedFileName) + '&file_type=' + encodeURIComponent(get_file_name[i].file.type);\n          const response = await fetch(base_url + param, {\n            method: 'POST',\n            headers: {\n              'Content-Type': 'text/plain',\n              \"Authorization\": `Bearer ${utoken}`\n            }\n          });\n          if (!response.ok) throw new Error('Failed to get presigned URL');\n          const {\n            url,\n            key\n          } = await response.json();\n\n          // Show progress bar\n          const progressDiv = document.getElementById(`myProgress[${originalName}]`);\n          const progressBar = document.getElementById(`myBar[${originalName}]`);\n          if (progressDiv && progressBar) {\n            progressDiv.style.display = 'block';\n          }\n          const uploadResponse = await fetch(url, {\n            method: 'PUT',\n            headers: {\n              'Content-Type': get_file_name[i].file.type\n            },\n            body: get_file_name[i].file\n          });\n          if (!uploadResponse.ok) throw new Error('File upload failed');\n          if (progressBar) progressBar.style.width = '100%';\n          uploaded_count++;\n          this.s3UploadedFile.push({\n            upload_folder_path: key,\n            original_file_name: originalName,\n            file_name: sanitizedFileName,\n            file_type: get_file_name[i].file.type,\n            file_size: get_file_name[i].file.size\n          });\n        } catch (error) {\n          console.error(error);\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(`File upload failed for ${get_file_name[i].file.name}`, 'diagnosticmessage');\n          error_count++;\n        }\n      }\n      return {\n        uploaded_count,\n        error_count\n      };\n    },\n    // async uploadfiles(get_file_name) {\n    //   let uploaded_count = 0;\n    //   let error_count = 0;\n\n    //   this.s3UploadedFile = []; // Reset the array before upload\n\n    //   for (let i = 0; i < get_file_name.length; i++) {\n    //       try {\n    //           // Request a presigned URL from the backend\n    //           const base_url = ENV.APP.lumen_api_url + 's3';\n    //           const param = '?file_name='+get_file_name[i].file.name+'&file_type='+get_file_name[i].file.type;\n    //           let response = await fetch(base_url+param, {\n    //               method: 'POST',\n    //               headers: {\n    //                   'Content-Type': 'text/plain',\n    //               },\n    //           });\n\n    //           if (!response.ok) {\n    //               throw new Error('Failed to get presigned URL');\n    //           }\n\n    //           let { url, key } = await response.json();\n\n    //           // Upload the file to S3 using the presigned URL\n    //           let progressDiv = document.getElementById(`myProgress[${get_file_name[i].file.name}]`);\n    //           progressDiv.style.display = 'block';\n    //           let progressBar = document.getElementById(`myBar[${get_file_name[i].file.name}]`);\n\n    //           let uploadResponse = await fetch(url, {\n    //               method: 'PUT',\n    //               headers: {\n    //                   'Content-Type': get_file_name[i].file.type,\n    //               },\n    //               body: get_file_name[i].file,\n    //           });\n\n    //           if (!uploadResponse.ok) {\n    //               throw new Error('File upload failed');\n    //           }\n\n    //           // Update progress bar\n    //           progressBar.style.width = '100%';\n    //           uploaded_count++;\n\n    //           // Add file details to the uploaded file list\n    //           this.s3UploadedFile.push({\n    //               upload_folder_path: key,\n    //               original_file_name: get_file_name[i].file.name,\n    //               file_name: get_file_name[i].file.name,\n    //               file_type: get_file_name[i].file.type,\n    //               file_size: get_file_name[i].file.size,\n    //           });\n    //       } catch (error) {\n    //           console.error(error);\n    //           this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(\n    //               `File upload failed for ${get_file_name[i].file.name}`,\n    //               'diagnosticmessage'\n    //           );\n    //           error_count++;\n    //       }\n    //   }\n    //   return { uploaded_count, error_count };\n    // },\n\n    async getCflHTML(index, val, test_id, retval) {\n      //Function to get Choose from list dropdown options\n      let utoken = this.session.getToken();\n      var cflHTML = '';\n      await $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'diagnostic/' + test_id,\n        dataType: 'json',\n        async: true,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#diagnostic_loader').show();\n        },\n        success: function (res) {\n          $('#diagnostic_loader').hide();\n          var gdata = [];\n          var report_data = res.data;\n          var cfl_list = res.cfl_list;\n          // console.log(cfl_list);\n          //console.log(cfl_list.length);\n          if (cfl_list.length > 0) {\n            cflHTML += ' <div class=\"col-sm-9\">';\n            cflHTML += '<div class=\"col-sm-6\">';\n            cflHTML += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n            cflHTML += '<select name=\"range_value[' + (index + 1) + ']\" data-id=\"' + (index + 1) + '\" class=\"form-control changeAbnormalVal\">';\n            cflHTML += '<option value=\"\">--Select--</option>';\n            cfl_list.forEach(function (options, index) {\n              if (val.range_value == options.label_name) {\n                var isSelected = 'selected=' + 'selected' + '';\n              }\n              cflHTML += '<option value=\"' + options.label_name + '\"' + isSelected + '>' + options.label_name + '</option>';\n            });\n            cflHTML += '</select>';\n            cflHTML += '</div>';\n            cflHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n            cflHTML += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value = \"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n            cflHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name.toUpperCase() + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n            cflHTML += '</div>';\n            cflHTML += '</div>';\n            retval(cflHTML);\n          }\n        },\n        complete: function (res) {\n          //console.log('Execution complete3');\n        },\n        error: function (error, x, y) {\n          cflHTML += 'There was an error fetching list of options' + error;\n          retval(cflHTML);\n        }\n      });\n    },\n    FileQueueList(qf) {\n      var _this = this;\n      //console.log(qf);\n      _this.selectedFileItems.addObject(qf);\n      const imageType = /^image\\//;\n      const thumbWidth = _this.get('thumbWidth');\n      const thumbHeight = _this.get('thumbHeight');\n      if (qf.file.type == 'image/png' || qf.file.type == 'image/jpg' || qf.file.type == 'image/jpeg' || qf.file.type == 'image/dcm') {\n        if (imageType.test(qf.file.type)) {\n          var reader = new FileReader();\n          reader.onload = function (e) {\n            var image = new Image();\n            image.src = reader.result;\n            image.onload = function () {\n              var width = image.width;\n              var height = image.height;\n              var shouldResize = width > thumbWidth && height > thumbHeight;\n              var newWidth;\n              var newHeight;\n              if (shouldResize) {\n                const largest = Math.max(thumbHeight, thumbWidth);\n                if (width > height) {\n                  newWidth = width * (largest / height);\n                  newHeight = largest;\n                } else {\n                  newHeight = height * (largest / width);\n                  newWidth = largest;\n                }\n              } else {\n                newWidth = width;\n                newHeight = height;\n              }\n              var canvas = document.createElement('canvas');\n              canvas.width = thumbWidth;\n              canvas.height = thumbHeight;\n              var context = canvas.getContext('2d');\n              context.drawImage(this, (thumbWidth - newWidth) / 2, (thumbHeight - newHeight) / 2, newWidth, newHeight);\n              qf.set('thumbnail', canvas.toDataURL());\n            };\n          };\n          Ember.run.once(reader, 'readAsDataURL', qf.file);\n        }\n      } else {\n        var file_extenstion = this.openFile(qf.file.name);\n        //console.log(file_extenstion);\n        if (qf.file.type == 'application/pdf' && file_extenstion == 'pdf') {\n          var other_file = 'pdf';\n        } else if (qf.file.type == 'application/msword' && file_extenstion == 'doc') {\n          var other_file = 'doc';\n        } else if (qf.file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' && file_extenstion == 'docx') {\n          var other_file = 'docx';\n        } else if (qf.file.type == 'application/csv' || qf.file.type == 'text/csv' && file_extenstion == 'csv') {\n          var other_file = 'csv';\n        } else if ((qf.file.type == 'application/x-zip-compressed' || qf.file.type == 'application/zip' || qf.file.type == 'multipart/x-zip' || qf.file.type == 'application/octet-stream') && file_extenstion == 'zip') {\n          var other_file = 'zip';\n        } else if ((qf.file.type == 'application/octet-stream' || qf.file.type == 'dicom') && file_extenstion == 'dicom') {\n          var other_file = 'dicom';\n        } else if (qf.file.type == '' && file_extenstion == 'dcm') {\n          var other_file = 'dcm';\n        } else {\n          var other_file = 'wrongfiletype';\n        }\n        qf.set('other_file', other_file);\n      }\n      var unique_report_file = [];\n      $.each(_this.selectedFileItems, function (index, event) {\n        var events = $.grep(unique_report_file, function (e) {\n          //console.log(e.file.name);\n          return event.file.name === e.file.name && event.file.size === e.file.name;\n        });\n        if (events.length === 0) {\n          unique_report_file.push(event);\n        }\n      });\n      _this.selectedFileItems = unique_report_file;\n      _this.set('filequeue', unique_report_file);\n    },\n    FileValidate: function (file) {\n      var that = this;\n      /**\n       * This code will check a number of files added\n       */\n      var maxFiles = that.get('maxFiles');\n      if (typeof maxFiles === 'number' && that._uploader.getValidFiles().length >= maxFiles) {\n        return false;\n      }\n\n      /**\n       * This will prevent duplicates from adding to list\n       */\n      const files = that._uploader.getAllFiles();\n      for (var i = 0; i < files.length; i++) {\n        if (file.name === files[i].file.name && file.size === files[i].file.size) {\n          return false;\n        }\n      }\n\n      /**\n       * This will check file type\n       */\n      const acceptedTypes = that.get('acceptedTypes').split(',');\n      const escapeRegExp = /[|\\\\{}()[\\]^$+?.]/g;\n      var passTypeTest = false;\n      var file_extenstion = this.openFile(file.name);\n      for (i = 0; i < acceptedTypes.length; i++) {\n        if (acceptedTypes[i] == 'application/dicom' && file_extenstion == 'dicom') {\n          var file_type = 'application/dicom';\n        } else {\n          var file_type = file.type;\n        }\n        var test = new RegExp(acceptedTypes[i].replace(escapeRegExp, '\\\\$&').replace(/\\*/g, '.*'), 'g');\n        if (test.test(file_type)) {\n          passTypeTest = true;\n          break;\n        }\n      }\n      if (!passTypeTest) {\n        return that.get('msgWrongFileType').toString();\n      }\n\n      /**\n       * This will check file size\n       */\n      const maxFileSize = that.get('maxFileSize');\n      if (typeof maxFileSize === 'string') {\n        const bytes = (0, _numeral.default)(maxFileSize);\n        if (bytes.value() < file.size) {\n          return that.get('msgMaxFileSize').toString().replace('{fileSize}', (0, _numeral.default)(file.size).format('0.0b')).replace('{maxFileSize}', maxFileSize);\n        }\n      }\n      return true;\n    },\n    /**\n     * This structure will contain a file, it's state (valid/invalid) and error message\n     *\n     * @param file\n     * @param valid\n     * @param error\n     * @returns {*}\n     * @constructor\n     */\n    QueuedFile: function (file, valid, error) {\n      this.file = file;\n      this.valid = !!valid;\n      this.error = typeof error === 'string' ? error : null;\n      return Ember.Object.create(this);\n    },\n    counter: Ember.computed('filequeue.@each', function () {\n      var count = 0;\n      var dynamiccount = this.selectedFileItems;\n      count = dynamiccount.length;\n      if (count > 0) {\n        count = dynamiccount.length;\n      } else if (this._uploader) {\n        count = this._uploader.getValidFiles().length;\n      }\n      var maxFiles = this.maxFiles;\n      return this.msgFileCounter.toString().replace('{count}', count).replace('{maxFiles}', maxFiles);\n    }),\n    filecounter: Ember.computed('filequeue.@each', function () {\n      var count = 0;\n      var dynamiccount = this.selectedFileItems;\n      count = dynamiccount.length;\n      if (count > 0) {\n        count = dynamiccount.length;\n      } else if (this._uploader) {\n        count = this._uploader.getValidFiles().length;\n      }\n      return count;\n    }),\n    current_date: Ember.computed('current_date', function () {\n      return moment().format('YYYY-MM-DD');\n    }),\n    openFile: function (file) {\n      var extension = file.substr(file.lastIndexOf('.') + 1);\n      var name;\n      var extension_name = extension.toLowerCase();\n      switch (extension_name) {\n        case 'jpg':\n          name = extension_name;\n          break;\n        case 'png':\n          name = extension_name;\n          break;\n        case 'jpeg':\n          name = extension_name;\n          break;\n        case 'dicom':\n          name = extension_name;\n          break;\n        case 'pdf':\n          name = extension_name;\n          break;\n        case 'doc':\n          name = extension_name;\n          break;\n        case 'docx':\n          name = extension_name;\n          break;\n        case 'csv':\n          name = extension_name;\n          break;\n        case 'zip':\n          name = extension_name;\n        case 'dcm':\n          name = extension_name;\n          break;\n      }\n      return name;\n    },\n    getPickupDispatchPrescription: function (value) {\n      var name;\n      if (value == \"P\") {\n        name = \"Pickup\";\n      } else if (value == \"D\") {\n        name = \"Dispatch\";\n      } else if (value == \"O\") {\n        name = \"Outside\";\n      } else if (value == \"PE\") {\n        name = \"Prescription Email\";\n      } else {\n        name = '';\n      }\n      return name;\n    }\n  });\n});","define(\"clinic-dev/controllers/login\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    applicationController: Ember.inject.controller('application'),\n    dashboard: Ember.inject.controller('dashboard'),\n    icpattend: Ember.inject.controller('icpattend'),\n    doctordashboard: Ember.inject.controller('doctor-dashboard'),\n    flashes: Ember.inject.service('flash-messages'),\n    permissions: Ember.inject.service('userPermissionsService'),\n    topnav: Ember.inject.service('topNavService'),\n    route_permission: Ember.inject.service('has-permissions'),\n    actions: {\n      login() {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        var username = this.username;\n        var password = this.password;\n        var location_id = $('#location_id').val();\n        var shift_id = $('#shift_id').val();\n        if ($.trim(location_id) == '' || $.trim(location_id) == '--') {\n          alert('Please select location!');\n          $('#location_id').focus();\n          return false;\n        } else if ($.trim(shift_id) == '' || $.trim(shift_id) == '--') {\n          alert('Please select shift!');\n          $('#shift_id').focus();\n          return false;\n        } else if ($.trim(username) == '') {\n          alert('Please enter username!');\n          $('#username').focus();\n          return false;\n        } else if ($.trim(password) == '') {\n          alert('Please enter password!');\n          $('#password').focus();\n          return false;\n        }\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'users/auth',\n          data: {\n            username: username,\n            password: password,\n            location_id: location_id\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            // This below code is used for clear localstorage key\n            localStorage.clear();\n            if (res.validate === true && res.mfa_enabled === true) {\n              localStorage.setItem('username', username);\n              localStorage.setItem('location_id', location_id);\n              localStorage.setItem('shift_id', shift_id);\n              _this.transitionToRoute('otp-verification', {\n                queryParams: {\n                  user_id: res.user_id,\n                  mfa_enabled: res.mfa_enabled\n                }\n              });\n            } else if (res.validate === true && res.mfa_enabled === false) {\n              localStorage.setItem('username', username);\n              localStorage.setItem('location_id', location_id);\n              localStorage.setItem('shift_id', shift_id);\n              localStorage.setItem('type', res.user_type);\n              _this.transitionToRoute('mfa-setup', {\n                queryParams: {\n                  user_id: res.user_id,\n                  mfa_enabled: res.mfa_enabled\n                }\n              });\n            } else if (res.validate == 'invalid') {\n              var message = i18n.t('user.login.messages.invalidUser');\n              Ember.get(_this, 'flashes').danger(message);\n              //alert('Invalid username/password. ');\n            } else if (res.validate == 'passwordreset') {\n              var message = i18n.t('user.login.messages.passwordreset');\n              Ember.get(_this, 'flashes').danger(message);\n              //alert('Invalid username/password. ');\n            } else if (res.validate == 'nobranch') {\n              var message = i18n.t('user.login.messages.nobranch', {\n                object: res.name\n              });\n              Ember.get(_this, 'flashes').danger(message);\n            } else if (res.validate == 'nouser') {\n              var message = i18n.t('user.login.messages.nouser');\n              Ember.get(_this, 'flashes').danger(message);\n            }\n          },\n          complete: function (res) {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      forgotPassword() {\n        var _this = this;\n        var username = this.username;\n        if ($.trim(username) == '' || $.trim(username) == '--') {\n          alert('Please enter your username');\n          $('#mobile').focus();\n          return false;\n        }\n        //var url = ENV.APP.api_url+\"users/recoverPassword\" //Old API URL Rahul Khan 31 july 2019\n        var url = _environment.default.APP.lumen_api_url + 'user/changepass'; //Old API URL Rahul Khan 31 july 2019\n        $.ajax({\n          method: 'POST',\n          url: url,\n          data: {\n            username: username\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            console.log(res);\n            //  status = res.validate;This is the old code Rahul khan 31 July 2019\n            status = res.success;\n            if (status == 'true') {\n              alert('An Email with your userid & password has been sent to your registered email id.');\n              _this.transitionToRoute('login');\n            } else {\n              alert('Username not found.');\n            }\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      }\n    } //actions\n  });\n});","define(\"clinic-dev/controllers/manage-appointment/manage-appointment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class ManageAppointmentManageAppointmentController extends Ember.Controller {}\n  _exports.default = ManageAppointmentManageAppointmentController;\n});","define(\"clinic-dev/controllers/manage-transaction/manage-transaction\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/controller\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    permissions: Ember.inject.service('userPermissionsService'),\n    init: function () {\n      this._super(...arguments);\n    },\n    actions: {\n      openPaymentPopup: function () {\n        var _this = this;\n        jQuery.noConflict();\n        if ($('.payment_gateway_checkbox').is(':checked')) {\n          var percentage = $('.payment_gateway_charge').val();\n          if (percentage == '') {\n            $('#pendingRefund').modal('hide');\n            swal({\n              text: 'Please enter Payment Gateway Charge',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          }\n        } else {\n          $('#pendingRefund').modal('show');\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/mfa\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class MfaController extends Ember.Controller {}\n  _exports.default = MfaController;\n});","define(\"clinic-dev/controllers/patient\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    queryParams: ['p', 'sort', 'order', 'q'],\n    p: 1,\n    state: '',\n    other_state: '',\n    other_city: '',\n    country: '',\n    phone_1: '',\n    phone_2: '',\n    first_name: '',\n    middle_name: '',\n    last_name: '',\n    email_id: '',\n    address_1: '',\n    address_2: '',\n    pin: '',\n    mode: '',\n    note: '',\n    date_of_birth: '',\n    age_years: '',\n    age_months: '',\n    age_days: '',\n    selected_city: null,\n    selected_state: null,\n    selected_country: null,\n    loginCheck: true,\n    sort: 'registration_number',\n    order: 'desc',\n    sorted_by: 'Registration Number (Desc)',\n    stats: null,\n    q: '',\n    states: null,\n    countries: null,\n    priority: 'normal',\n    category: '',\n    title_prefix: '',\n    selected_phonecode: 91,\n    uniquePhoneCodes: Ember.computed('countries.[]', function () {\n      let map = {};\n      let result = [];\n      (this.get('countries') || []).forEach(country => {\n        if (country.phonecode && !map[country.phonecode]) {\n          map[country.phonecode] = true;\n          result.push({\n            phonecode: country.phonecode,\n            country_name: country.country_name\n          });\n        }\n      });\n      return result;\n    }),\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      setPhoneCode(code) {\n        if (typeof code !== 'string') {\n          this.set('selected_phonecode', '');\n          return;\n        }\n        this.set('selected_phonecode', code.replace('+', ''));\n      },\n      getAllPatientAppointments(patient_id) {\n        this.getAllPatientAppointments(patient_id);\n      },\n      setDateOfBirth() {\n        if (moment($('#date_of_birth').val(), 'MM/DD/YYYY', true).isValid()) {\n          var patient_dob = moment($('#date_of_birth').val()).format('YYYY-MM-DD');\n          var current_date = moment().format('YYYY-MM-DD');\n          var today = new Date(current_date);\n          var past = new Date(patient_dob);\n          var age = this.dateDiff(today, past);\n          this.set('age_days', age.days);\n          this.set('age_months', age.months);\n          this.set('age_years', age.years);\n          console.log(age);\n          //This conditions and code is commmented because we need all of three values but condition return invalid date, shubh tiwari 12 december 2019\n          //   console.log(dob.split(\"-\"));\n          //   console.log(dob);\n          //   var a = moment().format('YYYY-MM-DD');\n          //   console.log(a.split(\"-\"));\n\n          //   var a = moment(a.split(\"-\"));\n          //   var b = moment(dob.split(\"-\"));\n          //   console.log(a);\n          //   console.log(b);\n\n          // var age_years = a.diff(b, 'year');\n          // b.add(age_years, 'years');\n\n          // var age_months = a.diff(b, 'months');\n          // b.add(age_months, 'months');\n\n          //var age_days = a.diff(b, 'days');\n\n          // this.set('age_days',age.days);\n          // this.set('age_months',age.months);\n          // this.set('age_years',age.years);\n\n          /*\n          This conditions and code is commmented because we need all of three values but condition return one, Rahul Khan 05 July 2019\n          var age_years = moment().diff(isoDate, 'years');\n          if(age_years == '0')\n          {\n          var age_months = moment().diff(isoDate, 'month');\n          if(age_months == '0' )\n          {\n            var age_days = moment().diff(isoDate, 'days');\n            this.set('age_days',age_days);\n            this.set('age_months','');\n            this.set('age_years','');\n          }\n          else {\n          this.set('age_months',age_months);\n          this.set('age_days','');\n          this.set('age_years','');\n          }\n          }\n          else\n          {\n          this.set('age_years',age_years);\n          this.set('age_months','');\n          this.set('age_days','');\n          }*/\n        }\n      },\n      //This below function us used for getting the raughly date of birth of patient from age, Rahul khan 05 nov 2019\n      getDateofBirth(date) {\n        var cntOfYears = date.year;\n        var cntOfMonths = date.month;\n        var cntOfDays = date.day;\n        var birthDate = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('MM/DD/YYYY');\n        this.set('date_of_birth', birthDate);\n      },\n      setCategory() {\n        var category = $('select[name=category]').val();\n        this.set('category', category);\n      },\n      setTitlePrefix() {\n        var title_prefix = $('select[name=title_prefix]').val();\n        this.set('title_prefix', title_prefix);\n      },\n      setPriority() {\n        var priority = $('select[name=priority]').val();\n        this.set('priority', priority);\n      },\n      setBloodType() {\n        var blood_type = $('select[name=blood_type]').val();\n        this.set('blood_type', blood_type);\n      },\n      search_patient() {\n        var _this = this;\n        var utoken = _this.session.getToken();\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            q: q\n          },\n          success: function (res) {\n            _this.set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.transitionToRoute({\n          queryParams: {\n            sort: sort,\n            order: order,\n            p: page,\n            q: q\n          }\n        });\n      },\n      //This below function is used for select value of Discount category for patient, Rahul Khan\n      updateDiscountCategoty() {\n        var discount_category_id_id = $('select[name=discount_category]').val();\n        this.set('selected_discount_category', discount_category_id_id);\n      },\n      updateCountry() {\n        var country_id = $('select[name=country]').val();\n        this.set('selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('states', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateShippingCountry() {\n        var country_id = $('select[name=shipping_country]').val();\n        this.set('shipping_selected_country', country_id);\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/states',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            country_id: country_id\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('shipping_states', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      updateState() {\n        var state_id = $('select[name=state]').val();\n        this.set('selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#other_state').val('').addClass('hidden');\n          /* AJAX call */\n          var _this = this;\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            dataType: 'json',\n            success: function (res) {\n              _this.set('cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#other_state').removeClass('hidden');\n        }\n      },\n      updateShippingState() {\n        var state_id = $('select[name=shipping_state]').val();\n        this.set('shipping_selected_state', state_id);\n        //We get this ajax request out of the below other condition, Because we need to reload the child dependenpt cities again,Rahul Khan, 04 July 2019,\n\n        /* AJAX call */\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'info/cities',\n          data: {\n            state_id: state_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          dataType: 'json',\n          success: function (res) {\n            _this.set('shipping_cities', res.data);\n          },\n          error: function (error, x, y) {}\n        });\n        if (state_id != 'other') {\n          $('#shipping_other_state').val('').addClass('hidden');\n          /* AJAX call */\n          var _this = this;\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'info/cities',\n            data: {\n              state_id: state_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            dataType: 'json',\n            success: function (res) {\n              _this.set('shipping_cities', res.data);\n            },\n            error: function (error, x, y) {}\n          });\n        } else {\n          $('#shipping_other_state').removeClass('hidden');\n        }\n      },\n      updateCity() {\n        /*Inthis below line of we have to pass the actula value of select option of city, Because we managing this at the backend side, and backend is same form previuos version, Rahul Khan. 04 July 2019  */\n        var city_id = $('select[name=city]').val();\n        this.set('selected_city', city_id);\n        if (city_id != 'other') {\n          $('#other_city').val('').addClass('hidden');\n        } else {\n          $('#other_city').removeClass('hidden');\n        }\n      },\n      updateShippingCity() {\n        var city_id = $('select[name=shipping_city]').val();\n        this.set('shipping_selected_city', city_id);\n        if (city_id != 'other') {\n          $('#shipping_other_city').val('').addClass('hidden');\n        } else {\n          $('#shipping_other_city').removeClass('hidden');\n        }\n      },\n      submit(page) {\n        //  console.log(\"Please select the discount category.\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var user_id = this.session.getLoggedInUserId();\n        /*This below line code is used for getting discount category, Rahul Khan 13 june 2019 */\n        var selected_discount_category = this.selected_discount_category;\n        /*This below line code, we validate the Discount category Required only, Rahul Khan 13 june 2019 */\n        if (selected_discount_category == '' || selected_discount_category == undefined) {\n          alert('Please select the discount category.');\n          $('select[name=discount_category]').focus();\n          return false;\n        } //Rahul Khan appointment_date\n        // console.log(moment(this.get('date_of_birth')).format('YYYY-MM-DD'));\n\n        if ($('#same_to_ship').is(':checked')) {\n          var sameToShip = 1;\n        } else {\n          var sameToShip = 0;\n        }\n        var data = {\n          first_name: this.first_name,\n          middle_name: this.middle_name,\n          last_name: this.last_name,\n          gender: this.gender,\n          // date_of_birth:moment(this.get('date_of_birth')).format('YYYY-MM-DD'),In this below line we get value of date direct from element attributr , Rahul Khan\n          date_of_birth: moment($('#date_of_birth').val()).format('YYYY-MM-DD'),\n          age_years: this.age_years,\n          age_months: this.age_months,\n          age_days: this.age_days,\n          phonecode: this.selected_phonecode,\n          full_phone: `+${this.selected_phonecode}${this.phone_1}`,\n          phone_1: this.phone_1,\n          phone_2: this.phone_2,\n          email_id: this.email_id,\n          address_1: this.address_1,\n          address_2: this.address_2,\n          title_prefix: this.title_prefix,\n          city: this.selected_city,\n          // city:$(\"select[name=city]\").val(),\n          state: this.selected_state,\n          country: this.selected_country,\n          discount_category: this.selected_discount_category,\n          other_state: this.other_state,\n          other_city: this.other_city,\n          zip: this.zip,\n          mode: this.mode,\n          note: this.note,\n          category: this.category,\n          priority: this.priority,\n          blood_type: this.blood_type,\n          uid: user_id,\n          autogenid: true,\n          //this is used to generate patient id automatically in case of mode = email.\n          sameToShip: sameToShip,\n          shipingAddress_1: $('#shipping_address_1').val().trim(),\n          shipingAddress_2: $('#shipping_address_2').val().trim(),\n          shippingCity: this.shipping_selected_city,\n          shippingState: this.shipping_selected_state,\n          shipingCountry: this.shipping_selected_country,\n          shippingZip: $('#shipping_zip').val().trim(),\n          shippingMob: $('#shipping_mob').val().trim(),\n          shipping_other_state: $('#shipping_other_state').val().trim(),\n          shipping_other_city: $('#shipping_other_city').val().trim(),\n          master_update: $('#master_update').val().trim()\n        };\n        //console.log(data);\n        if (page == 'Register') {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'patients/register',\n            data: data,\n            async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              //var regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false;\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false;\n              }\n              // else if ($.trim(data.email_id) == \"\") {\n              //   alert('Please enter email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              // else if(!regex.test(data.email_id)) {\n              //   alert('Please enter valid email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n\n              // }\n              else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              } else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false;\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if (data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n              if (sameToShip == 0) {\n                if (data.shipingAddress_1 == '' || data.shipingAddress_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                  alert('Invalid Shipping Address 1');\n                  $('input[name=shipping_address_1]').focus();\n                  return false;\n                } else if (data.shipingAddress_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                  alert('Invalid Shipping Address 2');\n                  $('input[name=shipping_address_2]').focus();\n                  return false;\n                } else if (data.shipingCountry == '' || data.shipingCountry == undefined) {\n                  alert('Invalid Shipping Country');\n                  $('select[name=shipping_country]').focus();\n                  return false;\n                } else if (data.shippingState == '' || data.shippingState == undefined) {\n                  alert('Invalid Shipping State');\n                  $('select[name=shipping_state]').focus();\n                  return false;\n                } else if (data.shippingState == 'other' && data.shipping_other_state == '') {\n                  alert('Invalid Shipping Other State');\n                  $('select[name=shipping_other_state]').focus();\n                  return false;\n                } else if (data.shippingCity == '' || data.shippingCity == undefined) {\n                  alert('Invalid Shipping City');\n                  $('select[name=shipping_city]').focus();\n                  return false;\n                } else if (data.shippingCity == 'other' && data.shipping_other_city == '') {\n                  alert('Invalid Shipping Other City');\n                  $('select[name=shipping_other_city]').focus();\n                  return false;\n                } else if (data.shippingZip == '' || data.shippingZip.match('^[a-zA-Z0-9]+$') == false || data.shippingZip.match('^[a-zA-Z0-9]+$') == null) {\n                  alert('Invalid Shipping Zip');\n                  $('input[name=shipping_zip]').focus();\n                  return false;\n                } else if (data.shippingMob == '' || data.shippingMob.match('^[a-zA-Z0-9]+$') == false || data.shippingMob.match('^[0-9]+$') == null) {\n                  alert('Invalid Shipping Mobile no');\n                  $('input[name=shipping_mob]').focus();\n                  return false;\n                }\n              }\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == 'true') {\n                alert('Patient registered successfully.');\n                _this.transitionToRoute('patient');\n              } else if (res.validate = 'false') {\n                $('.patient_registration_form').hide();\n                $('#register_patient').trigger('reset');\n                //alert(res.message);\n                // _this.sendAction('reloadDashboard');\n                $('#' + $('#button_clicked').val()).click();\n              }\n            },\n            complete: function (res) {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else if (page == 'Edit') {\n          console.log(data.zip);\n          var patient_id = this.patient_id;\n          data = $.extend(true, data, {\n            patient_id: patient_id\n          });\n          //return false;\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'patients/update/' + patient_id,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            async: false,\n            beforeSend: function () {\n              //var regex = /^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;\n              if (data.mode == '') {\n                alert('Invalid Mode of Registration.');\n                $('select[name=mode]').focus();\n                return false;\n              } else if ($.trim(data.first_name) == '' || data.first_name.match('^[a-zA-Z]+$') == false) {\n                alert('Invalid First Name.');\n                $('input[name=first_name]').focus();\n                return false;\n              } else if ($.trim(data.gender) == '') {\n                alert('Invalid Gender');\n                $('select[name=gender]').focus();\n                return false;\n              } else if ($.trim(data.age_years) == '') {\n                alert('Please enter valid age in years.');\n                $('input[name=age_years]').focus();\n                return false;\n              } else if ($.trim(data.phone_1) == '' || data.phone_1.match('^[0-9]+$') == false || data.phone_1.match('^[0-9]+$') == null) {\n                alert('Invalid Phone 1');\n                $('input[name=phone_1]').focus();\n                return false;\n              } else if ((data.phone_2.match('^[0-9]+$') == false || data.phone_2.match('^[0-9]+$') == null) && data.phone_2 != '') {\n                alert('Invalid Phone 2');\n                $('input[name=phone_2]').focus();\n                return false;\n              }\n              // else if ($.trim(data.email_id) == \"\") {\n              //   alert('Please enter email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              // else if(!regex.test(data.email_id)) {\n              //   alert('Please enter valid email id');\n              //   $(\"input[name=email_id]\").focus();\n              //   return false;\n              // }\n              else if ($.trim(data.address_1) == '' || data.address_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 1');\n                $('input[name=address_1]').focus();\n                return false;\n              } else if (data.address_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                alert('Invalid Address 2');\n                $('input[name=address_2]').focus();\n                return false;\n              } else if ($.trim(data.country) == '') {\n                //Nishant 2-Feb-2023: Fix issue DKBC22-I681\n                alert('Invalid Country');\n                $('select[name=country]').focus();\n                return false;\n              } else if ($.trim(data.state) == '' || $.trim(data.state) == 'other' && $.trim(data.other_state) == '') {\n                alert('Invalid State');\n                $('select[name=state]').focus();\n                return false;\n              } else if ($.trim(data.city) == '' || $.trim(data.city) == 'other' && $.trim(data.other_city) == '') {\n                alert('Invalid City');\n                $('select[name=city]').focus();\n                return false;\n              } else if ($.trim(data.zip) == '' || data.zip.match('^[a-zA-Z0-9]+$') == false || data.zip.match('^[a-zA-Z0-9]+$') == null) {\n                alert('Invalid Zip');\n                $('input[name=zip]').focus();\n                return false;\n              } else if ($.trim(data.note) != '' && data.note.match('^[a-zA-Z0-9s]+$') == false) {\n                alert('Invalid Note');\n                $('textarea[name=note]').focus();\n                return false;\n              }\n              if (sameToShip == 0) {\n                if (data.shipingAddress_1 == '' || data.shipingAddress_1.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                  alert('Invalid Shipping Address 1');\n                  $('input[name=shipping_address_1]').focus();\n                  return false;\n                } else if (data.shipingAddress_2.match('^[a-zA-Z0-9-s/\\\\.,()]+$') == false) {\n                  alert('Invalid Shipping Address 2');\n                  $('input[name=shipping_address_2]').focus();\n                  return false;\n                } else if (data.shipingCountry == '' || data.shipingCountry == undefined) {\n                  alert('Invalid Shipping Country');\n                  $('select[name=shipping_country]').focus();\n                  return false;\n                } else if (data.shippingState == '' || data.shippingState == undefined) {\n                  alert('Invalid Shipping State');\n                  $('select[name=shipping_state]').focus();\n                  return false;\n                } else if (data.shippingState == 'other' && data.shipping_other_state == '') {\n                  alert('Invalid Shipping Other State');\n                  $('select[name=shipping_other_state]').focus();\n                  return false;\n                } else if (data.shippingCity == '' || data.shippingCity == undefined) {\n                  alert('Invalid Shipping City');\n                  $('select[name=shipping_city]').focus();\n                  return false;\n                } else if (data.shippingCity == 'other' && data.shipping_other_city == '') {\n                  alert('Invalid Shipping Other City');\n                  $('select[name=shipping_other_city]').focus();\n                  return false;\n                } else if (data.shippingZip == '' || data.shippingZip.match('^[a-zA-Z0-9]+$') == false || data.shippingZip.match('^[a-zA-Z0-9]+$') == null) {\n                  alert('Invalid Shipping Zip');\n                  $('input[name=shipping_zip]').focus();\n                  return false;\n                } else if (data.shippingMob == '' || data.shippingMob.match('^[a-zA-Z0-9]+$') == false || data.shippingMob.match('^[0-9]+$') == null) {\n                  alert('Invalid Shipping Mobile no');\n                  $('input[name=shipping_mob]').focus();\n                  return false;\n                }\n              }\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.validate == true || res.validate == 'true') {\n                alert('Patient details updated successfully.');\n                // _this.transitionToRoute('patient.edit',patient_id)\n                _this.transitionToRoute('patient');\n              } else if (res.validate == 'already_exist' && res.appointment_no != '') {\n                alert(\"You can't update changes because this patient already exist in front desk OR doctor dashboard queue.\");\n              } else {\n                alert('Error: Unable to update Patient Details!');\n              }\n            },\n            error(error, x, y) {\n              // console.log(error);\n            },\n            complete: function (res) {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        }\n      },\n      setGender() {\n        this.set('gender', $('select[name=gender]').val());\n      },\n      setMode() {\n        this.set('mode', $('select[name=mode]').val());\n      },\n      setNote() {\n        this.set('note', $('textarea#note').val());\n      },\n      redirect(sort, order, label) {\n        var _this = this;\n        var utoken = _this.session.getToken();\n        var page = 1;\n        this.set('sort', sort);\n        this.set('order', order);\n        var page = this.p;\n        var sort = this.sort;\n        var order = this.order;\n        var q = this.q;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients/stats',\n          data: {\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('stats', res);\n          },\n          error: function (res) {\n            // console.error(res);\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'patients',\n          data: {\n            p: page,\n            order: order,\n            sort: sort,\n            q: q\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            _this.set('patients', res.data);\n          },\n          error: function (res) {\n            // console.error(res);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n        this.set('sorted_by', label);\n        this.transitionToRoute({\n          queryParams: {\n            p: page,\n            sort: sort,\n            order: order,\n            q: q\n          }\n        });\n      },\n      prev(stats, p, sort) {\n        if (p != 1) {\n          var page = Number(p) - 1;\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      next(stats, p, sort) {\n        if (p != stats.total_pages) {\n          var page = Number(p) + 1;\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              q: q,\n              sort: sort\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      },\n      goto() {\n        var page = this.p;\n        var stats = this.stats;\n        if (page > 0 && page <= stats.total_pages) {\n          var _this = this;\n          var utoken = _this.session.getToken();\n          var order = this.order;\n          var sort = this.sort;\n          var q = this.q;\n          //populate table\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'patients',\n            data: {\n              p: page,\n              order: order,\n              sort: sort,\n              q: q\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              _this.set('patients', res.data);\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n          var q = this.q;\n          if (q != '') {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page,\n                q: q\n              }\n            });\n          } else {\n            this.transitionToRoute({\n              queryParams: {\n                sort: sort,\n                order: order,\n                p: page\n              }\n            });\n          }\n        }\n      }\n    },\n    getAllPatientAppointments(patient_id) {\n      var BaseUrl = _environment.default.APP.api_url + 'appointments/patientappointment?patient_id=' + patient_id;\n      var utoken = this.session.getToken();\n      //var BaseUrl = ENV.APP.lumen_api_url + 'billing/allappointment?patient_id=' + patient_id;\n      // Initialize DataTables API object and configure table\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $('#appointment_details').DataTable().destroy();\n        var appointment_details = $('#appointment_details').DataTable({\n          language: {\n            'processing': '<i class=\"fa fa-spinner fa-spin fa-2x\"></i><span class=\"ml-2\">Loading...</span>'\n          },\n          \"scrollX\": true,\n          autoWidth: false,\n          fixedColumns: true,\n          processing: true,\n          //dom: 'Bfrtip',\n          //buttons: ['csv', 'excel'],\n          order: [[1, 'dsc'], [0, 'asc']],\n          // \"aoColumnDefs\": [\n          //   { \"sType\": \"html\" }\n          // ],\n          ajax: {\n            url: BaseUrl,\n            type: 'GET',\n            headers: {\n              \"Authorization\": \"Bearer \" + utoken\n            },\n            dataSrc: 'data'\n          },\n          columns: [{\n            data: 'sr_no'\n          }, {\n            data: 'dateTime',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var appointment = '';\n              if (type === 'display') {\n                appointment = row.shift_id + ' / ' + row.appointment_booked_branch + ' / ' + row.type + '<br><span class=\"nowrap\">' + row.dateTime + '</span>';\n              }\n              return appointment;\n            }\n          }, {\n            data: 'booked_for_doctor'\n          }, {\n            data: 'booked_by'\n          }, {\n            data: 'entered_by',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var advance = \"\";\n              if (type === 'display') {\n                advance = '<span>' + row.advance_amount + '</span>' + (row.entered_by ? ' / ' : '') + '<span>' + row.entered_by + '</span><br><span class=\"nowrap\">' + row.date_paid + '</span>';\n              }\n              return advance;\n            }\n          }, {\n            data: 'assign_datetime',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var assigned = '';\n              if (type === 'display') {\n                assigned = '<span>' + row.assigned_by + '</span><br><span class=\"nowrap\">' + row.assign_datetime + '</span>';\n              }\n              return assigned;\n            }\n          }, {\n            data: 'casetaking_datetime',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var case_taking = '';\n              if (type === 'display') {\n                case_taking = '<span>' + row.casetaking_doctor_name + '</span><br><span class=\"nowrap\">' + row.casetaking_datetime + '</span>';\n              }\n              return case_taking;\n            }\n          }, {\n            data: 'prescribed_datetime',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var prescribed = '';\n              if (type === 'display') {\n                prescribed = '<span>' + row.prescribe_doctor_name + '</span><br><span class=\"nowrap\">' + row.prescribed_datetime + '</span>';\n              }\n              return prescribed;\n            }\n          }, {\n            data: 'pending_amount',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var billing = \"\";\n              if (type === 'display') {\n                if (row.payment_status > 0) {\n                  billing = '<span>' + row.total_visit_amount + '</span>' + (row.billing_location ? ' / ' : '') + '<span>' + row.billing_location + '</span>' + (row.billed_by ? ' / ' : '') + '<span>' + row.billed_by + '</span><br><span class=\"nowrap\">' + row.billing_date + '</span>';\n                }\n              }\n              return billing;\n            }\n          }, {\n            data: 'total_received',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var payment = \"\";\n              if (row.due_amount > 0) {\n                var visit_due = '<br><span>' + row.due_amount + ' ' + row.amount_status + '</span>';\n              } else {\n                var visit_due = '';\n              }\n              if (type === 'display') {\n                payment = '<span>' + row.total_received + '</span>' + (row.received_by ? ' / ' : '') + '<span>' + row.received_by + '</span>' + visit_due + '<br><span class=\"nowrap\">' + row.received_date + '</span>';\n              }\n              return payment;\n            }\n          }, {\n            data: 'pharmacy_location',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var pharmacy = \"\";\n              if (type === 'display') {\n                pharmacy = '<span>' + row.pharmacy_location + '</span>' + (row.medicine_prepared_by ? ' / ' : '') + '<span>' + row.medicine_prepared_by + '</span><br><span class=\"nowrap\">' + row.pharmacy_date + '</span>';\n              }\n              return pharmacy;\n            }\n          }, {\n            data: 'dispatch_time',\n            className: \"dt-head-center\",\n            mRender: function (data, type, row) {\n              var dispatch = \"\";\n              if (type === 'display') {\n                dispatch = '<span>' + row.courier_name + '</span>' + (row.tracking_id ? ' / ' : '') + '<span>' + row.tracking_id + '</span><br><span class=\"nowrap\">' + row.dispatch_time + '</span>';\n              }\n              return dispatch;\n            }\n          }, {\n            className: 'dt-action',\n            mRender: function (data, type, row) {\n              var details_button = \"\";\n              var prescribe_button = \"\";\n              if (row.payment_status > 0 && (row.prescribed_status == 1 || row.reassigned == 'true')) {\n                prescribe_button = '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/billedpatient/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '/' + row.visit_id + '\" class=\"btn btn-success btn-xs space-between\" title=\"Details\"> Details</a><a href=\"' + _environment.default.crossOriginWhitelist + '/doctor-dashboard/checkoutdetail/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '/0/' + 'preview' + '\" class=\"btn btn-info btn-xs\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Case Preview\"> Case Preview</a>';\n              } else if (row.prescribed_status == 1 || row.reassigned == 'true') {\n                prescribe_button = '<a href=\"' + _environment.default.crossOriginWhitelist + '/doctor-dashboard/checkoutdetail/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '/0/' + 'preview' + '\" class=\"btn btn-info btn-xs\" data-patientId=\"' + row.patient_id + '\" data-appointmentId=\"' + row.appointment_id + '\" title=\"Case Preview\"> Case Preview</a>';\n              } else if (row.payment_status > 0) {\n                prescribe_button = '<a href=\"' + _environment.default.crossOriginWhitelist + '/billing/billedpatient/' + row.appointment_id + '/' + row.billing_id + '/' + row.patient_id + '/' + row.visit_id + '\" class=\"btn btn-success btn-xs space-between\" title=\"Details\"> Details</a>';\n              } else if (row.prescribed_status == 0 && row.payment_status == 0) {\n                prescribe_button = \"No transaction details\";\n              }\n              return prescribe_button;\n            }\n          }]\n        });\n        // Redraw the table\n        appointment_details.draw();\n        // Redraw the table based on the custom input\n        $('.search_patient').bind('click', function () {\n          appointment_details.draw();\n        });\n      });\n    },\n    //This function get Year Month and Days form data of birth of patient\n    dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    }\n  });\n});","define(\"clinic-dev/controllers/pharmacy\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    init: function () {\n      this._super(...arguments);\n      var payerId = this.instruction;\n    },\n    actions: {\n      historyClearCheckbox: function () {\n        $('li :checkbox').prop('checked', false);\n      },\n      historycheckBoxCheck: function () {\n        $(document).ready(function () {\n          $('li :checkbox').on('click', function () {\n            var $chk = $(this),\n              $li = $chk.closest('li'),\n              $ul,\n              $parent;\n            if ($li.has('table-data ul')) {\n              $li.find(':checkbox').not(this).prop('checked', this.checked);\n            }\n            do {\n              $ul = $li.parent();\n              $parent = $ul.siblings(':checkbox');\n              if ($chk.is(':checked')) {\n                $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0);\n              } else {\n                $parent.prop('checked', false);\n              }\n              $chk = $parent;\n              $li = $chk.closest('li');\n            } while ($ul.is(':not(.someclass)'));\n          });\n        });\n      },\n      addMoreMedicine: function () {\n        var cnt = 1;\n        $(function () {\n          $('.add-prescription-medicine').on('click', function () {\n            //var data = $(\"#prescriptionmedicine tr td:eq(7)\").clone(true).appendTo(\"#prescriptionmedicine\");\n            //data.find(\"input\").val('');\n            cnt++;\n            var html = '';\n            html += '<tr id=\"id-' + cnt + '\">';\n            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + cnt + '\" class=\"geometry checkItem\" data-id=\"' + cnt + '\" name=\"check\" value=\"' + cnt + '\"/></td>';\n            html += '<td><input name=\"srnoItem[' + cnt + ']\" class=\"form-control srno-' + cnt + ' srnoItem\" id=\"srno-' + cnt + '\" type=\"text\" value=\"' + cnt + '\" /></td>';\n            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + cnt + ']\" class=\"form-control prescribeinput dosage-' + cnt + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + cnt + '\" type=\"text\" placeholder=\"Type min 3 char to search\"/><input name=\"medicine_type[]\" id=\"medicine_type-' + cnt + '\" type=\"hidden\"/> <p id=\"results' + cnt + '\"></p></td>';\n            html += '<td> <input name=\"potencyItem[' + cnt + ']\" class=\"form-control potency-' + cnt + ' potencyItem\" id=\"potency-' + cnt + '\" type=\"text\"/></td>';\n            html += '<td> <input name=\"dilutionItem[' + cnt + ']\" class=\"form-control dilution-' + cnt + ' dilutionItem\" id=\"dilution-' + cnt + '\" type=\"text\"/></td>';\n            html += '<td> <select name=\"formItem[' + cnt + ']\" class=\"form-control slectform-' + cnt + ' formItem prescribeform-' + cnt + '\" id=\"prescribeform-' + cnt + '\"><option value=\"\">Select Form</option></select></td>';\n            html += '<td> <input name=\"factorItem[' + cnt + ']\" class=\"form-control factor-' + cnt + ' factorItem\" type=\"text\" id=\"factor-' + cnt + '\" value=\"1\"/></td>';\n            var ppp = $('#instruction-1').clone();\n            //    var selectedValue = $(\"#instruction-\"+cnt+\" option:selected\").val();\n            //    alert(selectedValue);\n            html += '<td><select name=\"instructionItem[' + cnt + ']\" class=\"form-control cwareinstruction-' + cnt + ' instruction-' + cnt + ' cware_other iother-' + cnt + ' instructionItem\" id=\"instruction-' + cnt + '\">' + ppp[0].innerHTML + '</select></td></tr>';\n            $('#prescriptionmedicine').append(html);\n            //This added class is used for getting seprated the layout for single and mix, Rahul Khan, 09 July 2019\n            $('#prescriptionmedicine').addClass('singletemplate');\n          });\n          //remove selected table row\n          $('.delete-row').click(function () {\n            $('#prescriptionmedicine').find('input[name=\"check\"]').each(function () {\n              if ($(this).is(':checked')) {\n                var check_value = $(this).val();\n                if (check_value == 1) {\n                  if ($(this).closest('tr').find('.geometry').data('id')) {\n                    $(this).prop('checked', false);\n                    swal(\"Sorry!! Can't remove first row!\");\n                  }\n                } else {\n                  $(this).closest('tr').remove();\n                }\n              }\n            });\n          });\n        });\n      },\n      //check dublicate medicine,potency,dilution and form\n      billingDataSubmit: function (e) {\n        var error = '';\n        let utoken = this.session.getToken();\n        $('.srnoItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter s.no. at ' + (count + 1) + ' row</p>';\n            $('.srnoItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.medicineItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter medicine name at ' + (count + 1) + ' row</p>';\n            $('.medicineItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.potencyItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter potency at ' + (count + 1) + ' row</p>';\n            $('.potencyItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.dilutionItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter dilution at ' + (count + 1) + ' row</p>';\n            $('.dilutionItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.formItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please select form at ' + (count + 1) + ' row</p>';\n            $('.formItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.factorItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter factor ' + (count + 1) + ' row</p>';\n            $('.factorItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.instructionItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please select the instruction for medicine at serial number ' + (count + 1) + ' row</p>';\n            $('.instructionItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.medicineMixItem').each(function (count) {\n          if ($(this).val() == '') {\n            error += '<p> Please enter mix name  at ' + (count + 1) + ' row</p>';\n            $('.medicineMixItem').focus();\n            return false;\n          }\n          count++;\n        });\n        $('.precribe_pharmacy_instruction').each(function () {\n          if ($(this).val() == '') {\n            error += '<p> Enter pharmacy instruction </p>';\n            $('.precribe_pharmacy_instruction').focus();\n            return false;\n          }\n        });\n        var form = $('#cwPrescribeForm');\n        if (error == '') {\n          $('#displayerror').html('');\n          $.ajax({\n            url: _environment.default.APP.lumen_api_url + 'billing/prescribe',\n            method: 'POST',\n            data: {\n              formdata: form.serialize()\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (data) {\n              if (data == 'ok') {\n                $('#displayerror').html('<div class=\"alert alert-success\">Item Details Saved</div>');\n              }\n            }\n          });\n        } else {\n          $('#displayerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          //$(\"#displayerror .alert\").fadeToggle(10000);\n        }\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getClinicPatients: function (shift_id, branch_id) {\n        this.getClinicPatients(shift_id, branch_id);\n      },\n      //This below function is used Call Same Name function outside the action block, Rahul Khan 10_may_2019\n      getMedicineQueuePatients: function (shift_id, branch_id) {\n        this.getMedicineQueuePatients(shift_id, branch_id);\n      },\n      getCheckedVaue: function (checkbox_checked_vaue) {\n        var html = '';\n        html += '<table id=\"cwarecombo\" class=\"table table-bordered table-hover\"><thead><th width=\"10%\">S.No.</th><th width=\"90%\">Medicine Name</th></thead><tbody>';\n        for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n          var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val();\n          var srno = $('#srno-' + checkbox_checked_vaue[i]).val();\n          html += '<tr><td class=\"rowvalue\" id=\"' + checkbox_checked_vaue[i] + '\">' + srno + '</td><td style=\"text-align:left\">' + medicine + '</td></tr>';\n        }\n        html += '</tbody></table>';\n        $('#selecteddosage').append(html);\n      },\n      setDropdownId: function (id) {\n        var html = '';\n        html += '<input type=\"hidden\" value=\"' + id + '\" id=\"' + id + '\">';\n        $('#otherinstructionid').append(html);\n      }\n    },\n    //This below function is used for getting all precribed patient data for Billing Dashboard, Rahul Khan 10_may_2019\n    getClinicPatients: function (shift_id, branch_id) {\n      // console.log(\"Shift id = \"+shift_id);\n      // console.log(\"Branch id = \"+branch_id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/clinicpatients?shift_id=' + shift_id + '&branch_id=' + branch_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          var ParseData = JSON.parse(res);\n          var clinicPatients = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp';\n          });\n          var OCPPatients = ParseData.data.filter(function (el) {\n            return el.appointment_type != 'icp';\n          });\n          _this.set('clinicPatients', clinicPatients);\n          _this.set('OCPPatients', OCPPatients);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    //This below function is used for getting All Branch Patients and\n    getMedicineQueuePatients: function (shift_id, branch_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/branch?shift_id=' + shift_id + '&branch_id=' + branch_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          //console.log(ParseData.onspot);\n          var arr = [];\n          ParseData.onspot.filter(function (item, index, self) {\n            // console.log(item.medicine_queue_number);\n            // console.log(item.medicine_complete);\n            if (item.medicine_queue_number > 0 && item.medicine_complete == 0) {\n              arr.push(item);\n            }\n          });\n          //  console.log(arr);\n          _this.set('RepeatMedicinePatients', arr);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/reports\", [\"exports\", \"jquery\", \"clinic-dev/config/environment\"], function (_exports, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"jquery\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    actions: {\n      downloadTransactionalReports() {\n        let export_from_date = (0, _jquery.default)('#transaction_from').val();\n        let export_to_date = (0, _jquery.default)('#transaction_to').val();\n        if (!export_from_date.trim()) {\n          alert(\"Please select From date.\");\n          (0, _jquery.default)('#transaction_from').focus();\n          return;\n        }\n        if (!export_to_date.trim()) {\n          alert(\"Please select To date.\");\n          (0, _jquery.default)('#transaction_to').focus();\n          return;\n        }\n        let fromParts = export_from_date.split('/');\n        let toParts = export_to_date.split('/');\n        let from_date = `${fromParts[2]}-${fromParts[0]}-${fromParts[1]}`;\n        let to_date = `${toParts[2]}-${toParts[0]}-${toParts[1]}`;\n        let utoken = this.session.getToken();\n        let url = `${_environment.default.APP.lumen_api_url}reports/transactional?from_export_date=${from_date}&to_export_date=${to_date}`;\n        _jquery.default.ajax({\n          url: url,\n          method: 'GET',\n          xhrFields: {\n            responseType: 'blob'\n          },\n          headers: {\n            'Authorization': 'Bearer ' + utoken\n          },\n          success: function (data, status, xhr) {\n            // Convert blob\n            let blob = new Blob([data], {\n              type: xhr.getResponseHeader('Content-Type')\n            });\n            let link = document.createElement('a');\n            link.href = window.URL.createObjectURL(blob);\n\n            // Extract dynamic filename\n            let disposition = xhr.getResponseHeader('Content-Disposition');\n            let filename = 'report.xlsx';\n            if (disposition && disposition.indexOf('filename=') !== -1) {\n              filename = disposition.split('filename=')[1].trim().replace(/['\"]/g, '');\n            }\n            link.download = filename;\n            document.body.appendChild(link);\n            link.click();\n            document.body.removeChild(link);\n          },\n          error: function (xhr, status, error) {\n            console.error(\"AJAX Error\", status, error, xhr);\n            alert(\"Download failed: \" + xhr.status + \" \" + xhr.statusText);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/schedule\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    formValidator: Ember.inject.service('form-validator'),\n    schedule: Ember.inject.service('schedule'),\n    selectedScheduleType: 'regular',\n    // default value\n    activeTab: 'non-ocp',\n    requiredShifts: ['beforeMorning', 'afterMorning', 'afterEvening'],\n    shiftKeyMap: {\n      beforeMorning: 'before_morning',\n      afterMorning: 'after_morning',\n      afterEvening: 'after_evening'\n    },\n    shiftLabels: {\n      beforeMorning: 'Before Morning',\n      afterMorning: 'After Morning',\n      afterEvening: 'After Evening'\n    },\n    loginCheck: true,\n    doctors: null,\n    location_id: null,\n    schedule_date: null,\n    showModal: false,\n    selectedDay: null,\n    isFormVisible: false,\n    isScheduleListVisible: true,\n    selectedSchedule: {\n      doctor: null,\n      location: null,\n      startDate: null,\n      endDate: null,\n      availability: {}\n    },\n    ocpSlotAvailability: {},\n    isDoctorOnLeave: false,\n    formData: {},\n    formErrors: Ember.computed.reads('formValidator.errors'),\n    // UI state\n    searchTerm: '',\n    savingMap: {},\n    vcConfigurations: [],\n    vcOverviewSearchTerm: '',\n    filteredVcConfigurations: Ember.computed('vcConfigurations.@each.Name', 'vcConfigurations.@each.email', 'vcOverviewSearchTerm', function () {\n      const q = (this.get('vcOverviewSearchTerm') || '').toLowerCase();\n      const all = this.get('vcConfigurations') || [];\n      if (!q) return all;\n      return all.filter(v => {\n        const name = (v.Name || '').toLowerCase();\n        const email = (v.email || '').toLowerCase();\n        return name.includes(q) || email.includes(q);\n      });\n    }),\n    init() {\n      this._super(...arguments);\n      this.getLocation();\n      this.getWeekdayList();\n      // Initialize availability object if not present\n      if (!this.get('selectedSchedule.availability')) {\n        this.set('selectedSchedule.availability', {});\n      }\n      this.set('ocpSlotAvailability', {});\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: res => {\n          const data = res.data;\n          if (data && data.length !== 0) {\n            this.set('doctors', data);\n            this.set('avatarUrl', _environment.default.APP.doctor_url);\n          } else {\n            alert('Invalid username/password.');\n          }\n        }\n      });\n    },\n    actions: {\n      markVcOverviewDirty(vc, field, event) {\n        const value = event && event.target ? event.target.value : '';\n        Ember.set(vc, field, value);\n        Ember.set(vc, 'isDirty', true);\n      },\n      filterVcConfigurations(searchText) {\n        this.set('vcOverviewSearchTerm', searchText || '');\n      },\n      async saveAllVcOverviewSlots() {\n        if (!confirm(\"Are you sure you want to save all VC overview slot changes?\")) return;\n        const dirty = (this.get('vcConfigurations') || []).filter(v => v.isDirty);\n        if (!dirty.length) {\n          toastr.warning(\"No changes to save\");\n          return;\n        }\n        for (const vc of dirty) {\n          const error = this._validateOverviewSlots(vc);\n          if (error) {\n            toastr.error(`${vc.Name}: ${error}`, \"Validation Error\");\n            return;\n          }\n        }\n        const token = this.session.getToken();\n        let hadError = false;\n        const savedNames = [];\n        for (const vc of dirty) {\n          try {\n            await $.ajax({\n              url: `${_environment.default.APP.lumen_api_url}doctor/${vc.user_id}/max-slots`,\n              type: \"POST\",\n              contentType: \"application/json\",\n              headers: {\n                Authorization: `Bearer ${token}`\n              },\n              data: JSON.stringify({\n                max_slot: Number(vc.max_slot || 0),\n                max_vc_slot: Number(vc.max_vc_slot || 0)\n              })\n            });\n            Ember.set(vc, 'isDirty', false);\n            savedNames.push(vc.Name);\n          } catch (err) {\n            hadError = true;\n            console.error(\"Failed to update VC overview slots for doctor\", vc.user_id, err);\n            toastr.error(`Failed to update ${vc.Name}'s slots`, \"Error\");\n          }\n        }\n        // Per-doctor success toast like before\n        if (savedNames.length) {\n          savedNames.forEach(name => {\n            toastr.success(`${name}'s slots updated successfully`, \"Success\");\n          });\n        }\n        if (hadError) return;\n        // Re-fetch the VC configuration overview so the table shows the saved values.\n        const controller = this;\n        $.ajax({\n          url: `${_environment.default.APP.lumen_api_url}vc-configurations`,\n          type: \"GET\",\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: res => {\n            if (res && res.success && Array.isArray(res.data)) {\n              controller.set('vcConfigurations', res.data);\n            } else {\n              controller.set('vcConfigurations', []);\n            }\n          },\n          error: e => {\n            console.warn(\"VC configurations endpoint unavailable; rendering without overview.\", e);\n            controller.set('vcConfigurations', []);\n          }\n        });\n      },\n      _fetchVcConfigurations(token) {\n        $.ajax({\n          url: `${_environment.default.APP.lumen_api_url}vc-configurations`,\n          type: \"GET\",\n          headers: {\n            \"Authorization\": `Bearer ${token}`\n          },\n          success: res => {\n            if (res && res.success && Array.isArray(res.data)) {\n              this.set('vcConfigurations', res.data);\n            } else {\n              this.set('vcConfigurations', []);\n            }\n          },\n          error: e => {\n            console.warn(\"VC configurations endpoint unavailable; rendering without overview.\", e);\n            this.set('vcConfigurations', []);\n          }\n        });\n      },\n      goBack() {\n        this.set('activeTab', this.activeTab);\n        this.clearFormData();\n        this.transitionToRoute('schedule'); // Navigate back to the main schedule route\n      },\n      setScheduleType(type) {\n        console.log('function setScheduleType:', type);\n        this.set('selectedScheduleType', type);\n      },\n      addCustomHours(day, id) {\n        console.log('function addCustomHours:', day, 'id:', id);\n        this.formValidator.clearErrors();\n        this.set(\"selectedDay\", day);\n        this.set(\"dayID\", id);\n        //this.set('selectedSchedule.availability', {});\n        this.set('selectedSchedule', {\n          availability: {}\n        });\n        this.set(\"scheduleId\", null);\n        this.set(\"fromTime\", '');\n        this.set(\"toTime\", '');\n        this.set(\"shiftType\", 0);\n        this.set(\"showModal\", true);\n      },\n      closeModal() {\n        //this.set(\"selectedDay\", \"\");\n        //this.set('selectedSchedule.availability', {});\n        this.set(\"scheduleId\", null);\n        this.set(\"fromTime\", '');\n        this.set(\"toTime\", '');\n        this.set(\"selectedDay\", '');\n        this.set(\"shiftType\", 0);\n        this.set(\"showModal\", false);\n      },\n      callGetWeekdayList() {\n        this.getWeekdayList();\n      },\n      scheduleActiveTab(tab) {\n        console.log('function scheduleActiveTab:', tab);\n        this.set('activeTab', tab);\n        this.formValidator.clearErrors();\n        //this.clearFormData();  \n      },\n      addOCPForm(doctorId, ocp, add) {\n        console.log('function addOCPForm', 'doctorId:', doctorId, 'ocp:', ocp, 'add:', add);\n        this.set('isScheduleListVisible', false);\n        this.set('formData.doctorId', doctorId);\n        this.set('formData.add', add);\n        this.set('block_key', '');\n        this.set('formData.locationId', ocp);\n        this.set('ocp_layout', ocp);\n        this.set('selectedScheduleType', 'regular');\n        //this.set('selectedSchedule.availability', {});\n        this.set('selectedSchedule', {\n          availability: {}\n        });\n        this.set('isFormVisible', true);\n        this.set('activeTab', 'ocp');\n        this.formValidator.clearErrors();\n      },\n      editSchedule(id, fromTime, toTime, weekDays, shift, week_days_id, event) {\n        console.log('function editSchedule', 'id:', id, 'fromTime:', fromTime, 'toTime:', toTime, 'weekDays:', weekDays, 'shift:', shift, 'week_days_id:', week_days_id);\n        //console.log(\"Editing schedule ID:\", id);\n        //console.log('shift-type:', shift);\n        //console.log(\"Shift Type:\", shift);\n        event?.preventDefault();\n        this.set(\"showModal\", true);\n        this.set(\"dayID\", week_days_id);\n        this.set(\"scheduleId\", id);\n        this.set(\"fromTime\", fromTime);\n        this.set(\"toTime\", toTime);\n        this.set(\"selectedDay\", weekDays);\n        this.set(\"shiftType\", shift);\n      },\n      deleteSchedule(block_key, id, branchId) {\n        console.log('block_key:', block_key, 'id:', id, 'branchId:', branchId);\n        const self = this;\n        let utoken = self.session.getToken();\n        Swal.fire({\n          title: \"Are you sure?\",\n          text: \"You want to delete this? This cannot be undone.\",\n          icon: \"warning\",\n          width: 500,\n          showCancelButton: true,\n          confirmButtonColor: \"#3085d6\",\n          cancelButtonColor: \"#d33\",\n          confirmButtonText: \"Yes, delete it!\"\n        }).then(result => {\n          if (result.isConfirmed) {\n            // Call backend delete API\n            $.ajax({\n              url: `${_environment.default.APP.lumen_api_url}schedules/${block_key}`,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              method: 'POST',\n              success: function (response) {\n                self.loadDoctorAndSchedules(id, branchId);\n                self.clearFormData();\n                self.getWeekdayList(); // Refresh list\n                Swal.fire({\n                  title: \"Deleted!\",\n                  text: response.message || \"Weekly schedule deleted successfully.\",\n                  icon: \"success\"\n                });\n              },\n              error: function (xhr) {\n                let errorMessage = \"Delete failed.\";\n                try {\n                  const response = JSON.parse(xhr.responseText);\n                  if (response.message) {\n                    errorMessage = response.message;\n                  }\n                } catch (e) {}\n                Swal.fire({\n                  title: \"Error!\",\n                  text: errorMessage,\n                  icon: \"error\"\n                });\n              }\n            });\n          }\n        });\n      },\n      editOCPDoctorSchedule(schedule, update) {\n        console.log('function editOCPDoctorSchedule', 'schedule:', schedule, 'update:', update);\n        console.log('ocp schedule', schedule);\n        let {\n          start_date,\n          end_date,\n          source_type,\n          doctor_id,\n          is_on_leave,\n          weekly_schedule\n        } = schedule;\n        let formattedAvailability = this.formatOCPWeeklySchedule(weekly_schedule);\n        this.set('isScheduleListVisible', false);\n        this.set('formData.doctorId', doctor_id);\n        this.set('formData.update', update);\n        this.set('block_key', schedule.block_key);\n        this.set('selectedScheduleType', source_type);\n        this.set('formData.locationId', 'ocp');\n        this.set('ocp_layout', 'ocp');\n        this.set('formData.startDate', start_date);\n        this.set('formData.endDate', end_date);\n        this.set('isDoctorOnLeave', is_on_leave);\n        this.set('selectedSchedule', {\n          availability: {}\n        });\n        this.set('ocpSlotAvailability', formattedAvailability);\n        console.log('only weekly schedule', formattedAvailability);\n        this.set('isFormVisible', true);\n        this.formValidator.clearErrors();\n      },\n      editDoctorSchedule(schedule, update) {\n        console.log('function editDoctorSchedule', 'schedule:', schedule, 'update:', update);\n        console.log('non-ocp-schedule', schedule);\n        let {\n          start_date,\n          end_date,\n          source_type,\n          doctor_id,\n          branch_id,\n          is_on_leave,\n          weekly_schedule\n        } = schedule;\n        let formattedAvailability = this.formatWeeklySchedule(weekly_schedule);\n        this.set('isScheduleListVisible', false);\n        this.set('formData.doctorId', doctor_id);\n        this.set('formData.update', update);\n        this.set('block_key', schedule.block_key);\n        this.set('selectedScheduleType', source_type);\n        this.set('formData.locationId', branch_id);\n        this.set('formData.startDate', start_date);\n        this.set('formData.endDate', end_date);\n        this.set('isDoctorOnLeave', is_on_leave);\n        this.set('ocpSlotAvailability', {});\n        this.set('selectedSchedule', {\n          availability: formattedAvailability\n        });\n        this.set('isFormVisible', true);\n        this.formValidator.clearErrors();\n      },\n      toggleForm(doctorId, locationId, add) {\n        console.log('function toggleForm', 'doctorId:', doctorId, 'locationId:', locationId, 'add:', add);\n        this.set('isScheduleListVisible', false);\n        this.set('formData.doctorId', doctorId);\n        this.set('formData.add', add);\n        this.set('formData.locationId', locationId);\n        this.set('block_key', '');\n        this.set('ocp_layout', null);\n        this.set('isFormVisible', true);\n        this.set('activeTab', 'non-ocp');\n        this.formValidator.clearErrors();\n      },\n      cancelForm() {\n        this.set('isScheduleListVisible', true);\n        this.set('selectedScheduleType', 'regular');\n        this.set('formData.add', '');\n        this.set('formData.update', '');\n        this.set('ocp_layout', null);\n        //this.set('selectedSchedule.availability', {});\n        this.set('selectedSchedule', {\n          availability: {}\n        });\n        this.formValidator.clearErrors();\n        this.set('isFormVisible', false);\n      },\n      setDoctor(event) {\n        this.set('selectedSchedule.doctor', event.target.value);\n      },\n      setStartDate(fieldKey, event) {\n        console.log('function setStartDate', 'fieldKey:', fieldKey);\n        this.handleInputChange(fieldKey, event);\n      },\n      setEndDate(fieldKey, event) {\n        console.log('function setEndDate', 'fieldKey:', fieldKey);\n        this.handleInputChange(fieldKey, event);\n      },\n      handleLocationChange(locationId, event) {\n        console.log('function handleLocationChange', 'locationId:', locationId);\n        const selectedValue = event.target.value;\n        this.handleInputChange(locationId, event); // First action\n        //this.loadDoctorsForLocation(selectedValue);  // Second action\n      },\n      // setDayAvailability(weekDay, from, to, shift) {\n      //   console.log('function setDayAvailability', 'weekDay:', weekDay, 'from:', from, 'to:', to, 'shift:', shift);\n      //   let path = `selectedSchedule.availability.${weekDay}`;\n      //   let availability = this.get(path) || [];\n\n      //   let alreadyExists = availability.find(item =>\n      //     item.from === from &&\n      //     item.to === to &&\n      //     item.shift === shift\n      //   );\n\n      //   let updated;\n      //   if (alreadyExists) {\n      //     // Remove the existing selection (toggle off)\n      //     updated = availability.filter(item =>\n      //       !(item.from === from && item.to === to && item.shift === shift)\n      //     );\n      //   } else {\n      //     // Add the new selection (toggle on)\n      //     updated = [...availability, { from, to, shift }];\n      //   }\n\n      //   // Clear validation error for this day\n      //   this.formValidator.clearError(`weeklySchedule.${weekDay}`);\n      //   this.set(path, updated);\n      // },\n\n      setDayAvailability(weekDay, from, to, shift) {\n        console.log('function setDayAvailability', 'weekDay:', weekDay, 'from:', from, 'to:', to, 'shift:', shift);\n        let path = `selectedSchedule.availability.${weekDay}`;\n        let availability = this.get(path) || [];\n        let alreadyExists = availability.find(item => item.from === from && item.to === to && item.shift === shift);\n        let updated;\n        if (alreadyExists) {\n          // 🔁 Toggle OFF (remove same selection)\n          updated = availability.filter(item => !(item.from === from && item.to === to && item.shift === shift));\n        } else {\n          // 🔄 AUTO-REPLACE LOGIC\n          // Remove existing entry of the same shift (Morning or Evening)\n          let filtered = availability.filter(item => item.shift !== shift);\n\n          // Add new selection\n          updated = [...filtered, {\n            from,\n            to,\n            shift\n          }];\n\n          // Safety: keep max 2 (Morning + Evening)\n          updated = updated.slice(0, 2);\n        }\n\n        // Clear validation error for this day\n        this.formValidator.clearError(`weeklySchedule.${weekDay}`);\n        this.set(path, updated);\n      },\n      removeDayAvailability(weekDay, from, to, shift) {\n        console.log('function removeDayAvailability', 'weekDay:', weekDay, 'from:', from, 'to:', to, 'shift:', shift);\n        let path = `selectedSchedule.availability.${weekDay}`;\n        let availability = this.get(path) || [];\n        let updated = availability.filter(item => !(item.from === from && item.to === to && item.shift === shift));\n        this.set(path, updated);\n      },\n      clearDayAvailability(weekDay) {\n        let path = `selectedSchedule.availability.${weekDay}`;\n        this.set(path, []); // Clear all slots\n      },\n      setOcpSlotAvailability(day, shift, event) {\n        let value = event.target.value;\n        console.log('function setOcpSlotAvailability', 'day:', day, 'shift:', shift, 'value:', value);\n        let availability = Object.assign({}, this.get('ocpSlotAvailability') || {});\n        let dayData = Object.assign({}, availability[day] || {});\n\n        // Store camelCase directly\n        dayData[shift] = value;\n        availability[day] = dayData;\n        this.set('ocpSlotAvailability', availability);\n        this.formValidator.clearError(`ocpWeeklySchedule.${day}.${shift}`);\n      },\n      createSchedule() {\n        let utoken = this.session.getToken();\n        this.formValidator.clearErrors(); // Reset previous errors\n\n        const formattedStartDate = this.formatToDMY(this.formData.startDate);\n        const formattedEndDate = this.formData.endDate ? this.formatToDMY(this.formData.endDate) : null;\n        const nonOCPAvailability = this.selectedSchedule.availability || {};\n        const ocpAvailability = this.ocpSlotAvailability || {};\n        const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n        const shifts = ['before_morning', 'after_morning', 'after_evening'];\n        const locationType = this.formData.locationId;\n        console.log(ocpAvailability);\n        const validationRules = [{\n          key: 'doctorId',\n          value: this.formData.doctorId,\n          message: 'Doctor is required',\n          elementId: 'doctor-select'\n        }, {\n          key: 'locationId',\n          value: this.formData.locationId,\n          message: 'Location is required',\n          elementId: 'location-select'\n        }];\n\n        // Date validation for adjustment\n        if (this.selectedScheduleType === 'adjustment') {\n          validationRules.push({\n            key: 'startDate',\n            value: formattedStartDate,\n            message: 'Start date is required',\n            elementId: 'start-date',\n            type: 'date'\n          });\n          validationRules.push({\n            key: 'endDate',\n            value: formattedEndDate,\n            message: 'End date is required',\n            elementId: 'end-date',\n            type: 'date'\n          });\n        }\n\n        // Non-OCP weekly schedule\n        if (this.selectedScheduleType === 'regular' && !this.isDoctorOnLeave && locationType !== 'ocp') {\n          weekDays.forEach(day => {\n            validationRules.push({\n              key: `weeklySchedule.${day}`,\n              type: 'non-ocp',\n              validate: () => Array.isArray(nonOCPAvailability[day]) && nonOCPAvailability[day].length > 0,\n              message: `Please fill schedule for ${day}`,\n              elementId: `weekly-day-${day}`,\n              dayKeys: [day]\n            });\n          });\n        }\n\n        // OCP weekly schedule\n        if (this.selectedScheduleType === 'regular' && !this.isDoctorOnLeave && locationType === 'ocp') {\n          weekDays.forEach(day => {\n            shifts.forEach(shift => {\n              validationRules.push({\n                key: `ocpWeeklySchedule.${day}.${shift}`,\n                type: 'ocp',\n                shift: shift,\n                validate: () => {\n                  const dayData = ocpAvailability[day] || {};\n                  return typeof dayData[shift] !== 'undefined';\n                },\n                message: `Please fill schedule for ${day} ${shift}`,\n                elementId: `ocp-weekly-day-${day}-${shift}`,\n                dayKeys: [day]\n              });\n            });\n          });\n        }\n        const isValid = this.formValidator.validate(validationRules);\n        console.log(this.formValidator.errors);\n        if (!isValid) {\n          return;\n        }\n\n        // Prepare weekly schedule\n        const cleanedAvailability = {};\n        if (!this.isDoctorOnLeave) {\n          if (locationType === 'ocp') {\n            Object.entries(ocpAvailability).forEach(([day, shifts]) => {\n              cleanedAvailability[day] = {};\n              ['before_morning', 'after_morning', 'after_evening'].forEach(shiftKey => {\n                const value = shifts?.[shiftKey] === '1' ? '1' : '0';\n                cleanedAvailability[day][shiftKey] = parseInt(shifts?.[shiftKey]) === 1 ? 1 : 0;\n              });\n            });\n          } else {\n            Object.entries(nonOCPAvailability).forEach(([day, entries]) => {\n              if (Array.isArray(entries)) {\n                cleanedAvailability[day] = entries.map(entry => ({\n                  from: entry.from,\n                  to: entry.to,\n                  shift_id: entry.shift\n                }));\n              }\n            });\n          }\n        }\n        const payload = {\n          mode: this.formData.update ? this.formData.update : \"create\",\n          doctor_id: this.formData.doctorId,\n          branch_id: this.formData.locationId,\n          schedule_type: this.selectedScheduleType,\n          start_date: formattedStartDate,\n          end_date: formattedEndDate,\n          is_on_leave: this.isDoctorOnLeave ? 1 : 0,\n          weekly_schedule: this.isDoctorOnLeave ? {} : cleanedAvailability,\n          created_by: this.session.getLoggedInUserId()\n        };\n        $.ajax({\n          url: `${_environment.default.APP.lumen_api_url}save-schedules`,\n          method: 'POST',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: JSON.stringify(payload),\n          success: response => {\n            let isOCP = this.formData.locationId === 'ocp';\n            this.set('activeTab', isOCP ? 'ocp' : 'non-ocp');\n            this.set('selectedScheduleType', 'regular');\n            this.set('isScheduleListVisible', true);\n            this.set('isFormVisible', false);\n            this.loadDoctorAndSchedules(payload.doctor_id, payload.branch_id);\n            this.clearFormData();\n            this.getWeekdayList();\n            Swal.fire({\n              icon: \"success\",\n              width: 500,\n              title: \"Success\",\n              text: `${response.message}`\n            });\n            //alert(response.message);\n          },\n          error: xhr => {\n            let errorMessage = 'Something went wrong';\n            const dayMap = {\n              S: 'Sunday',\n              M: 'Monday',\n              T: 'Tuesday',\n              W: 'Wednesday',\n              TH: 'Thursday',\n              F: 'Friday',\n              SA: 'Saturday'\n            };\n            try {\n              const response = JSON.parse(xhr.responseText);\n              if (response.errors) {\n                const formattedErrors = [];\n                Object.entries(response.errors).forEach(([dayKey, message]) => {\n                  const dayName = dayMap[dayKey] || dayKey;\n                  formattedErrors.push(`${dayName}: ${message}`);\n                });\n                errorMessage = formattedErrors.join('\\n');\n              } else if (response.message) {\n                errorMessage = response.message;\n              }\n            } catch (e) {\n              console.error(e);\n            }\n            Swal.fire({\n              icon: \"error\",\n              width: 500,\n              title: \"Oops...\",\n              text: errorMessage\n            });\n          }\n        });\n      }\n    },\n    getWeekdayList() {\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'weekday',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: res => {\n          this.set('weekDays', res);\n        },\n        error: (error, x, y) => {\n          this.set('weekDays', y);\n        }\n      });\n    },\n    getLocation() {\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=1',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: res => {\n          this.set('locations', res);\n        },\n        error: (error, x, y) => {\n          this.set('locations', y);\n        }\n      });\n    },\n    formatToDMY(isoDate) {\n      if (!isoDate || !isoDate.includes('-')) return '';\n      const [year, month, day] = isoDate.split('-');\n      return `${day}-${month}-${year}`;\n    },\n    handleInputChange(fieldKey, event) {\n      const rawValue = event.target.value;\n      const value = typeof rawValue === 'string' ? rawValue.trim() : rawValue;\n      this.set('formData', {\n        ...this.formData,\n        [fieldKey]: value\n      });\n      if (!value) {\n        this.set(`formValidator.errors.${fieldKey}`, 'This field is required');\n      } else {\n        this.formValidator.clearError(fieldKey);\n      }\n    },\n    loadDoctorAndSchedules(doctorId, branchId) {\n      console.log('doctor id submit par mil raha hai:', doctorId, 'branchId:', branchId);\n      let _this = this;\n\n      // Step 1: Fetch doctor details\n      this.schedule.getDoctorDetails(doctorId).then(doctor => {\n        _this.set('model', doctor);\n        // Step 2: Fetch both non-OCP and OCP schedules in parallel\n        return Promise.all([_this.schedule.getDoctorSchedules(doctorId), _this.schedule.getDoctorOCPSchedules(doctorId)]);\n      }).then(([nonOcpSchedules, ocpSchedules]) => {\n        // if (typeof branchId === 'number' && Number.isInteger(branchId)) {\n        //   console.log('branchId is a number and an integer');\n        //   _this.set('activeTab', 'non-ocp');\n        // } else if (typeof branchId === 'string') {\n        //   _this.set('activeTab', 'ocp');\n        // }\n        _this.set('nonOcpSchedules', nonOcpSchedules);\n        _this.set('ocpSchedules', ocpSchedules);\n      }).catch(err => {\n        alert('Error loading doctor or schedules');\n        console.error(err);\n      });\n    },\n    clearFormData() {\n      this.formValidator.clearErrors();\n      this.set('formData', {\n        doctorId: '',\n        locationId: '',\n        startDate: '',\n        endDate: ''\n      });\n      this.set('isScheduleListVisible', true);\n      this.set('selectedScheduleType', 'regular');\n      this.set('formData.add', '');\n      this.set('formData.update', '');\n      this.set('selectedSchedule.availability', {});\n      this.set('ocpSlotAvailability', {});\n      this.set('isDoctorOnLeave', false);\n      this.set('isFormVisible', false);\n      this.set('nonOcpSchedules', []);\n      this.set('ocpSchedules', []);\n      this.set('selectedSchedule', {\n        availability: {}\n      });\n      this.set('block_key', '');\n      this.set('ocp_layout', null);\n    },\n    formatWeeklySchedule(apiWeeklySchedule) {\n      let availability = {};\n      Object.keys(apiWeeklySchedule).forEach(day => {\n        availability[day] = [];\n\n        // Shift keys: 1, 2 etc.\n        Object.keys(apiWeeklySchedule[day]).forEach(shiftKey => {\n          let shiftSlots = apiWeeklySchedule[day][shiftKey];\n          shiftSlots.forEach(slot => {\n            let [from, to] = slot.time_range.split(' - '); // Split \"09:13 - 13:24\"\n\n            availability[day].push({\n              from: from.trim(),\n              to: to.trim(),\n              shift: Number(shiftKey),\n              source_id: slot.source_id,\n              source_type: slot.source_type,\n              unique_key: slot.unique_key\n            });\n          });\n        });\n      });\n      return availability;\n    },\n    formatOCPWeeklySchedule(apiWeeklySchedule) {\n      let availability = {};\n      Object.keys(apiWeeklySchedule).forEach(day => {\n        availability[day] = {};\n        ['before_morning', 'after_morning', 'after_evening'].forEach(shift => {\n          availability[day][shift] = apiWeeklySchedule[day][shift];\n        });\n      });\n      return availability;\n    },\n    _validateOverviewSlots(vc) {\n      if (vc.max_slot === null || vc.max_slot === '' || vc.max_slot === undefined) {\n        return \"Daily slot is required\";\n      }\n      if (vc.max_vc_slot === null || vc.max_vc_slot === '' || vc.max_vc_slot === undefined) {\n        return \"VC slot is required\";\n      }\n      let daily = Number(vc.max_slot);\n      let vcSlots = Number(vc.max_vc_slot);\n      if (isNaN(daily) || daily < 0) {\n        return \"Daily slot must be a non-negative number\";\n      }\n      if (isNaN(vcSlots) || vcSlots < 0) {\n        return \"VC slot must be a non-negative number\";\n      }\n      if (vcSlots > daily) {\n        return \"VC slot cannot be greater than Daily slot\";\n      }\n      return null;\n    },\n    /**\n     * 🔹 Debounced helper function (must be outside `actions`)\n     */\n    _sendMaxSlotUpdate(doctor) {\n      const self = this;\n      const utoken = self.session.getToken();\n      self.set(`savingMap.${doctor.user_id}`, true);\n      $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}doctor/${doctor.user_id}/max-slots`,\n        type: \"POST\",\n        contentType: \"application/json\",\n        headers: {\n          Authorization: `Bearer ${utoken}`\n        },\n        data: JSON.stringify({\n          max_slot: doctor.max_slot,\n          max_vc_slot: doctor.max_vc_slot\n        })\n      }).done(() => {\n        Ember.set(doctor, 'isDirty', false);\n        toastr.success(`${doctor.Name}'s slots updated successfully`, \"Success\");\n      }).fail(err => {\n        console.error(\"Failed to update slots:\", err);\n        const message = err?.responseJSON?.message || \"Failed to update slots\";\n        toastr.error(message, \"Error\");\n      }).always(() => {\n        self.set(`savingMap.${doctor.user_id}`, false);\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/schedule/max-slots/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/object\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function refreshParentOverview(editController) {\n    if (!editController) return;\n    // The edit controller's `target` is the route. Use the route's controllerFor\n    // to look up the parent schedule controller, then trigger a re-fetch.\n    const route = editController.target;\n    if (!route || typeof route.controllerFor !== 'function') return;\n    const scheduleController = route.controllerFor('schedule');\n    if (!scheduleController) return;\n    const token = editController.session.getToken();\n    $.ajax({\n      url: `${_environment.default.APP.lumen_api_url}vc-configurations`,\n      type: \"GET\",\n      headers: {\n        \"Authorization\": `Bearer ${token}`\n      },\n      success: res => {\n        if (res && res.success && Array.isArray(res.data)) {\n          scheduleController.set('vcConfigurations', res.data);\n        } else {\n          scheduleController.set('vcConfigurations', []);\n        }\n      },\n      error: e => {\n        console.warn(\"VC configurations endpoint unavailable; rendering without overview.\", e);\n        scheduleController.set('vcConfigurations', []);\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Controller.extend({\n    vcConfig: null,\n    doctorList: [],\n    vcConfigDays: Ember.A([]),\n    isSavingVcConfig: false,\n    actions: {\n      backToListing() {\n        // Force the parent route to re-fetch its model so the Overview\n        // table reflects the just-saved values, then transition back.\n        const router = this.target && this.target.router;\n        if (router && typeof router.refresh === 'function') {\n          try {\n            router.refresh('schedule.max-slots');\n          } catch (e) {/* no-op */}\n        }\n        this.replaceRoute('schedule.max-slots', {\n          queryParams: {\n            refresh: String(Date.now())\n          }\n        });\n      },\n      changeDoctor(doctorId) {\n        if (!doctorId) return;\n        this.transitionToRoute('schedule.max-slots.edit', doctorId);\n      },\n      toggleVcDay(day, event) {\n        if (!day) return;\n        const newValue = event && typeof event.target !== 'undefined' ? event.target.checked : !day.is_vc_enabled;\n        Ember.set(day, 'is_vc_enabled', newValue ? 1 : 0);\n      },\n      togglePreventConsecutive(event) {\n        const vcConfig = this.get('vcConfig');\n        if (!vcConfig) return;\n        const newValue = event && typeof event.target !== 'undefined' ? event.target.checked : !vcConfig.prevent_consecutive_vc;\n        Ember.set(vcConfig, 'prevent_consecutive_vc', newValue ? 1 : 0);\n      },\n      markVcConfigDirty(field, valueOrEvent) {\n        const vcConfig = this.get('vcConfig');\n        if (!vcConfig) return;\n        let value = valueOrEvent;\n        // If the second arg looks like a DOM event, extract target.value\n        if (valueOrEvent && typeof valueOrEvent === 'object' && valueOrEvent.target) {\n          value = valueOrEvent.target.value;\n        }\n        const num = Number(value);\n        Ember.set(vcConfig, field, isNaN(num) ? value : num);\n      },\n      async saveVcConfig() {\n        const vcConfig = this.get('vcConfig');\n        const days = this.get('vcConfigDays');\n        if (!vcConfig || !days) {\n          toastr.error('VC configuration not loaded', 'Error');\n          return;\n        }\n        // Validation: Max VC Slots must be a non-negative integer\n        // and must not exceed Daily Slots.\n        const daily = Number(vcConfig.max_slot || 0);\n        const maxVc = Number(vcConfig.max_vc_slot || 0);\n        if (isNaN(daily) || daily < 0) {\n          toastr.error('Daily Slots is invalid. Edit it on the Overview table.', 'Validation Error');\n          return;\n        }\n        if (isNaN(maxVc) || maxVc < 0) {\n          toastr.error('Max VC Slots must be a non-negative number', 'Validation Error');\n          return;\n        }\n        if (maxVc > daily) {\n          toastr.error('Max VC Slots cannot be greater than Daily Slots', 'Validation Error');\n          return;\n        }\n        if (!confirm('Are you sure you want to save this VC configuration?')) return;\n        this.set('isSavingVcConfig', true);\n        try {\n          const token = this.session.getToken();\n          const payload = {\n            max_vc_slot: Number(vcConfig.max_vc_slot || 0),\n            vc_gap_minutes: Number(vcConfig.vc_gap_minutes || 0),\n            prevent_consecutive_vc: !!vcConfig.prevent_consecutive_vc,\n            days: days.map(d => ({\n              week_day_id: Number(d.week_day_id),\n              is_vc_enabled: !!d.is_vc_enabled\n            }))\n          };\n          const res = await $.ajax({\n            url: `${_environment.default.APP.lumen_api_url}vc-configurations/${vcConfig.user_id}`,\n            type: 'POST',\n            contentType: 'application/json',\n            headers: {\n              Authorization: `Bearer ${token}`\n            },\n            data: JSON.stringify(payload)\n          });\n          if (res && res.success) {\n            toastr.success(res.message || 'VC configuration saved successfully', 'Success');\n            // Keep the local vcConfig in sync with the saved backend values\n            // so the form inputs don't show stale state on subsequent saves.\n            if (res.data) {\n              if (typeof res.data.max_vc_slot !== 'undefined') {\n                Ember.set(vcConfig, 'max_vc_slot', Number(res.data.max_vc_slot));\n              }\n              if (typeof res.data.vc_gap_minutes !== 'undefined') {\n                Ember.set(vcConfig, 'vc_gap_minutes', Number(res.data.vc_gap_minutes));\n              }\n              if (typeof res.data.prevent_consecutive_vc !== 'undefined') {\n                Ember.set(vcConfig, 'prevent_consecutive_vc', Number(res.data.prevent_consecutive_vc));\n              }\n              if (Array.isArray(res.data.days) && this.get('vcConfigDays')) {\n                this.set('vcConfigDays', Ember.A(res.data.days));\n              }\n            }\n            // Refresh the parent Overview table immediately so the saved\n            // values are visible without a manual page reload.\n            refreshParentOverview(this);\n          } else {\n            toastr.error(res && res.message || 'Failed to save VC configuration', 'Error');\n          }\n        } catch (err) {\n          const msg = err && err.responseJSON && err.responseJSON.message || 'Failed to save VC configuration';\n          toastr.error(msg, 'Error');\n          console.error('[VC config save] error=', err);\n        } finally {\n          this.set('isSavingVcConfig', false);\n        }\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/settings\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    loginCheck: true,\n    doctors: [],\n    actions: {\n      showTab(tab) {\n        $('.tab-pane.active').removeClass('active');\n        $('#assign-tab-list > li.active').removeClass('active');\n        $('#' + tab + '.tab-pane').addClass('active');\n        $('[data-tab=' + tab + ']').parent('li').addClass('active');\n        this.set('active_tab', tab);\n        // this.send('updateDkbList')\n      }\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/charges\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    doctor_related: false,\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    init() {\n      this._super();\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.set('refresh', false);\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'getsetting/appointment_type',\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        data: '',\n        success: function (res) {\n          _this.set('appointment_types', JSON.parse(res));\n        }\n      });\n    },\n    actions: {\n      cancelVisitDefaultCharge() {\n        var _this = this;\n        _this.set('refresh', false);\n      },\n      openVisitDefaultChargePopUp() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        _this.set('refresh', true);\n        jQuery.noConflict();\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n          method: 'GET',\n          data: '',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('default_charges', res);\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'billing/visittypechargecode',\n              method: 'GET',\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                _this.set('mapping_code', res.data);\n              }\n            });\n            $('#visitDefaultChargePopup').modal('show');\n          }\n        });\n      },\n      changeCharge() {\n        console.log('test2');\n      },\n      saveVisitTypeCharge() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var created_by = _this.session.getLoggedInUserId();\n        var icp_visit_type_code = $(\"#icp\").val();\n        if (icp_visit_type_code == \"\") {\n          var icp_charge_code = '';\n          var icp_appointment_type = '';\n          var icp_charge_id = '';\n        } else {\n          var icp_charge_code = icp_visit_type_code;\n          var icp_appointment_type = $(\"#icp option[value=\" + icp_charge_code + \"]\").attr('data-appointmenttype');\n          var icp_charge_id = $(\"#icp option[value=\" + icp_charge_code + \"]\").attr('data-chargeid');\n        }\n        var phone_visit_type_code = $(\"#phone\").val();\n        if (phone_visit_type_code == \"\") {\n          var phone_charge_code = '';\n          var phone_appointment_type = '';\n          var phone_charge_id = '';\n        } else {\n          var phone_charge_code = phone_visit_type_code;\n          var phone_appointment_type = $(\"#phone option[value=\" + phone_charge_code + \"]\").attr('data-appointmenttype');\n          var phone_charge_id = $(\"#phone option[value=\" + phone_charge_code + \"]\").attr('data-chargeid');\n        }\n        var email_visit_type_code = $(\"#email\").val();\n        if (email_visit_type_code == \"\") {\n          var email_charge_code = '';\n          var email_appointment_type = '';\n          var email_charge_id = '';\n        } else {\n          var email_charge_code = email_visit_type_code;\n          var email_appointment_type = $(\"#email option[value=\" + email_charge_code + \"]\").attr('data-appointmenttype');\n          var email_charge_id = $(\"#email option[value=\" + email_charge_code + \"]\").attr('data-chargeid');\n        }\n        var ocp_visit_type_code = $(\"#ocp\").val();\n        if (ocp_visit_type_code == \"\") {\n          var ocp_charge_code = '';\n          var ocp_appointment_type = '';\n          var ocp_charge_id = '';\n        } else {\n          var ocp_charge_code = ocp_visit_type_code;\n          var ocp_appointment_type = $(\"#ocp option[value=\" + ocp_charge_code + \"]\").attr('data-appointmenttype');\n          var ocp_charge_id = $(\"#ocp option[value=\" + ocp_charge_code + \"]\").attr('data-chargeid');\n        }\n        var vc_visit_type_code = $(\"#vc\").val();\n        if (vc_visit_type_code == \"\") {\n          var vc_charge_code = '';\n          var vc_appointment_type = '';\n          var vc_charge_id = '';\n        } else {\n          var vc_charge_code = vc_visit_type_code;\n          var vc_appointment_type = $(\"#vc option[value=\" + vc_charge_code + \"]\").attr('data-appointmenttype');\n          var vc_charge_id = $(\"#vc option[value=\" + vc_charge_code + \"]\").attr('data-chargeid');\n        }\n        var data = {\n          icp_charge_code: icp_charge_code,\n          icp_appointment_type: icp_appointment_type,\n          icp_charge_id: icp_charge_id,\n          phone_charge_code: phone_charge_code,\n          phone_appointment_type: phone_appointment_type,\n          phone_charge_id: phone_charge_id,\n          email_charge_code: email_charge_code,\n          email_appointment_type: email_appointment_type,\n          email_charge_id: email_charge_id,\n          ocp_charge_code: ocp_charge_code,\n          ocp_appointment_type: ocp_appointment_type,\n          ocp_charge_id: ocp_charge_id,\n          vc_charge_code: vc_charge_code,\n          vc_appointment_type: vc_appointment_type,\n          vc_charge_id: vc_charge_id,\n          created_by: created_by\n        };\n        //console.log(data);\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'billing/visittypecharge',\n          data: data,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('#visitDefaultChargePopup').modal('hide');\n            _this.recalculateAmount.allSuccessMessage('Default charge set successfully');\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n      },\n      //This below function is used for submitting the form data for lumen backend.\n      submit: function () {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        let utoken = _this.session.getToken();\n        var created_by = _this.session.getLoggedInUserId();\n        if (this.validate()) {\n          var data = {\n            charge_type: this.charge_type,\n            charge_cost: this.charge_cost,\n            charge_code: this.charge_code,\n            print_code: this.print_code,\n            description: this.description,\n            doctor_related: this.doctor_related,\n            shipping_related: this.shipping_related,\n            status: this.status,\n            created_by: created_by\n          };\n          //console.log(data);\n          //console.log(this.get(\"doctor_related\"));\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('charges.messages.updateCharge');\n          } else {\n            data.id = 0;\n            var message = i18n.t('charges.messages.savedCharge');\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'billing/charge',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                //vali_errors:res.message;\n                _this.set('vali_errors', res.message);\n              } else {\n                //alert(res.form);\n                //var message = i18n.t('forms.messages.savedForm');\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.charges.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set values of status radion button\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      //This function is used for setting up value of doctor related checkbox\n      doctorHasChanged(value) {\n        // console.log(value);\n        this.set('doctor_related', value);\n      },\n      //This function is ussed for getting records back and internally this funtion called same name function which is written in the below\n\n      shippingHasChanged(value) {\n        // console.log(value);\n        this.set('shipping_related', value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('charges.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/charge/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == true) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('charges.messages.chargeDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('charges.messages.chargeDeleteMessage');\n                  Ember.get(_this, 'flashes').success(res.charges);\n                }\n              },\n              complete: function () {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        this.getRecords(page, status, searchtext);\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var charge_type = i18n.t('charges.validationErrorMessage.charge_type');\n      var charge_cost = i18n.t('charges.validationErrorMessage.charge_cost');\n      var charge_code = i18n.t('charges.validationErrorMessage.charge_code');\n      var Charge_status = i18n.t('charges.validationErrorMessage.Charge_status');\n      var charge_code_min = i18n.t('charges.validationErrorMessage.charge_code_min');\n      var charge_code_max = i18n.t('charges.validationErrorMessage.charge_code_max');\n      var charge_code_alphabate = i18n.t('charges.validationErrorMessage.charge_code_alphabate');\n      var print_code = i18n.t('charges.validationErrorMessage.print_code');\n      var print_code_min = i18n.t('charges.validationErrorMessage.print_code_min');\n      var print_code_max = i18n.t('charges.validationErrorMessage.print_code_max');\n      var print_code_alphabate = i18n.t('charges.validationErrorMessage.print_code_alphabate');\n      var numbers = /\\D/;\n      //\tnumbers.test(this.get('charge_cost'))\n      //console.log(numbers.test(this.get('charge_cost')));\n      if (this.charge_type == '' || this.charge_type == undefined) {\n        this.errors.add('charge_type', charge_type);\n      }\n      if (this.charge_cost == '' || this.charge_cost == undefined || numbers.test(this.charge_cost)) {\n        this.errors.add('charge_cost', charge_cost);\n      }\n      if (this.charge_code == '' || this.charge_code == undefined) {\n        this.errors.add('charge_code', charge_code);\n      } else if (this.charge_code != this.charge_code.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('charge_code', charge_code_alphabate);\n      } else if (this.charge_code.length < 2) {\n        this.errors.add('charge_code', charge_code_min);\n      } else if (this.charge_code.length > 4) {\n        this.errors.add('charge_code', charge_code_max);\n      }\n      if (this.print_code == '' || this.print_code == undefined) {\n        this.errors.add('print_code', print_code);\n      } else if (this.print_code != this.print_code.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('print_code', print_code_alphabate);\n      } else if (this.print_code.length < 2) {\n        this.errors.add('print_code', print_code_min);\n      } else if (this.print_code.length > 4) {\n        this.errors.add('print_code', print_code_max);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', Charge_status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/charges';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/charges?search=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('charges', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/diagnostic\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    selectedGroupOption: [],\n    selectedGroupCount: Ember.computed.reads('selectedGroupOption.length'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n      var _this = this;\n      let utoken = _this.session.getToken();\n      // This ajax call to get parent group up to nth level\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'activegroup',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('groupList', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete1');\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'outcomesuom?datalist=datalist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('units_list', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete2');\n        }\n      });\n    },\n    actions: {\n      hideUnitBinaryAndUpperLower(isChecked) {\n        if (isChecked == true) {\n          $('.test_name').removeClass('col-xs-2');\n          $('.test_name').removeClass('test_name_enlarge');\n          $('.test_name').addClass('col-xs-6');\n          $('.imagingshowhide').hide();\n        } else {\n          $('.test_name').removeClass('test_name_enlarge');\n          $('.test_name').removeClass('col-xs-6');\n          $('.test_name').addClass('col-xs-2');\n          $('.imagingshowhide').show();\n        }\n      },\n      addMoreCFL() {\n        var appointment = [];\n        $('.labelOrder').each(function () {\n          var stval = $(this).attr('data-field');\n          appointment.push(stval);\n        });\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        //Nishant 6-Feb-2023: hide the color option for CFL diagnostic master form as the functionality is not implemented yet. The field is there, just input type is changed from \"text\" to \"hidden\"\n        var recRow = '<div class=\"form-group row\" id=\"cflAdd' + rowCount + '\"><label class=\"col-xs-1 text-right control-label\" for=\"cfl_label' + rowCount + '\">Label <span class=\"required\">*</span> </label> <div class=\"col-xs-2\"><input type=\"text\" class=\"form-control labelOrder\" data-field=\"' + rowCount + '\" name=\"cfl_label[]\" id=\"cfl_label' + rowCount + '\" autocomplete=\"off\"><span class=\"mix-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-2\"><input type=\"hidden\" class=\"form-control cfl_color\" name=\"cfl_color[]\" id=\"cfl_color' + rowCount + '\"> </div><div class=\"col-xs-2 ml-2\"><button class=\"btn btn-danger btn-sm\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Label ' + rowCount + '\"></i> Delete </button></div></div>';\n        // var recRow ='<div class=\"form-group row\" id=\"cflAdd' +rowCount +'\"><label class=\"col-xs-1 text-right control-label\" for=\"cfl_label' +rowCount +'\">Label <span class=\"required\">*</span> </label> <div class=\"col-xs-2\"><input type=\"text\" class=\"form-control labelOrder\" data-field=\"'+rowCount+'\" name=\"cfl_label[]\" id=\"cfl_label' +rowCount +'\" autocomplete=\"off\"><span class=\"mix-hightlight' +rowCount +\n        //   '\"></span></div><label class=\"col-xs-1 text-right control-label\" for=\"cfl_color' +rowCount +\n        //   '\">Color</label><div class=\"col-xs-2\"><input type=\"text\" class=\"form-control cfl_color\" name=\"cfl_color[]\" id=\"cfl_color' +rowCount +\n        //   '\"> </div><div class=\"col-xs-2 ml-2\"><button class=\"btn btn-danger btn-sm\" type=\"button\"  data-row=\"' +\n        //   rowCount +'\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Label ' +\n        //   rowCount + '\"></i> Delete </button></div></div>';\n        if (rowCount <= 15) {\n          $('#addedRows').append(recRow);\n        } else {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('You can\\'t add more than 15 CFL', 'cflAdd');\n        }\n      },\n      selectGroup(item, isChecked) {\n        if (item == undefined) {\n          item = $('.diagnosticlist').children('option:selected').val();\n        }\n        this.set('selectedgroup', item);\n        // console.log(isChecked);\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n        console.log(this.selectedItems);\n      },\n      getRangeValue(value) {\n        this.set('range_type', value);\n        if (value == 'bnr') {\n          $('label.upper').text('Red');\n          $('input.upper').attr('placeholder', 'Red');\n          $('input.upper').attr('data-red', 'Red');\n          $('label.lower').text('Green');\n          $('input.lower').attr('placeholder', 'Green');\n          $('input.lower').attr('data-green', 'Green');\n          $('#addedRows').html('');\n          $('.cflist').hide();\n          $('.thbnr').show();\n        } else if (value == 'th') {\n          $('label.upper').text('Upper');\n          $('input.upper').attr('placeholder', 'Upper');\n          $('input.upper').attr('data-red', '');\n          $('label.lower').text('Lower');\n          $('input.lower').attr('placeholder', 'Lower');\n          $('input.lower').attr('data-green', '');\n          $('.thbnr').show();\n          $('#addedRows').html('');\n          $('.cflist').hide();\n        } else if (value == 'cfl') {\n          $('.thbnr').hide();\n          $('.cflist').show();\n        }\n      },\n      selectedGroupOption(event) {\n        const selectedGroups = Ember.$(event.target).val();\n        this.set('selectedGroupOption', selectedGroups);\n      },\n      selectedUnitOption(event) {\n        const selectedUnit = Ember.$(event.target).val();\n        this.set('unit_name', selectedUnit);\n      },\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var status = _this.get('status');\n        var user_id = this.session.getLoggedInUserId();\n        var test_name = _this.get('test_name');\n        var unit_name = _this.get('unit_name');\n        var range_type = _this.get('range_type');\n        var upper_range = _this.get('upper_range');\n        var lower_range = _this.get('lower_range');\n        var upper_class = $('input[name=\"upper_range\"]').attr('data-red');\n        var lower_class = $('input[name=\"lower_range\"]').attr('data-green');\n        var imaging = $('input[name=\"imaging\"]:checked').val();\n        var test_notes = $('textarea#test_notes').val();\n        var cfl_label = $(\".labelOrder\").map(function () {\n          var objLabel = {};\n          objLabel['cfl_label'] = $(this).val();\n          objLabel['id'] = $(this).attr('id');\n          return objLabel;\n        }).get();\n        var cfl_color = $(\".cfl_color\").map(function () {\n          var objColor = {};\n          objColor['cfl_color'] = $(this).val();\n          return objColor;\n        }).get();\n        if (imaging == undefined) {\n          var img = 0;\n        } else {\n          var img = $('input[name=\"imaging\"]:checked').val();\n        }\n        var selected_group = this.selectedGroupOption;\n        var group_count = Ember.get(_this, 'selectedGroupCount');\n        if (_this.validate(test_name, unit_name, range_type, upper_range, lower_range, group_count, imaging, status, cfl_label)) {\n          var data = {\n            name: test_name,\n            unit_name: unit_name,\n            range_type: range_type,\n            upper_range: upper_range,\n            lower_range: lower_range,\n            id: _this.id,\n            selected_group: selected_group,\n            status: status,\n            user_id: user_id,\n            img: img,\n            upper_class: upper_class,\n            lower_class: lower_class,\n            cfl_label: cfl_label,\n            cfl_color: cfl_color,\n            test_notes: test_notes\n          };\n          if (this.id > 0) {\n            data.id = _this.id;\n            var message = i18n.t('diagnostic.messages.updateDiagnotic');\n          } else {\n            data.id = 0;\n            var message = i18n.t('diagnostic.messages.savedDiagnotic');\n          }\n          console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'diagnostic',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                _this.set('vali_errors', res.message);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.diagnostic.list');\n              }\n            },\n            complete: function (res) {\n              //console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('diagnostic.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'diagnostic/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('diagnostic.messages.diagnosticDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('diagnostic.messages.diagnoticDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        //this.set('vali_errors', '');\n        var searchtext = this.query_string;\n        var group = this.selectedgroup;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && (group == undefined || group == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype, group);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      selectSystem(item, name, organ) {\n        if (item == undefined) {\n          item = $('.systemlist').children('option:selected').val();\n        }\n        this.set('system', item);\n        var base_url = _environment.default.APP.lumen_api_url + 'systemorgan/' + item;\n        var id = $('#id').val();\n        if (id > 0) {\n          var base_url = base_url + '&?editlist=edit';\n        } else {\n          var base_url = base_url + '?datalist=datalist';\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: base_url,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('.systemlist').css('display', 'block');\n            _this.set('organs', res);\n            _this.set('organname', name);\n            _this.set('organ', organ);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n      },\n      viewRecords(id, name, variables) {\n        if ($('.detail_' + id)[0]) {\n          $('.detail_' + id).remove();\n          return false;\n        }\n        var html = '';\n        var red = '';\n        var green = '';\n        $.each(variables, function (k, v) {\n          if (v.range_type == 'bnr') {\n            red = 'red';\n            green = 'green';\n          } else {\n            red = '';\n            green = '';\n          }\n          html += '<tr class=\"detail_' + id + '\"> <td> </td> <td>' + v.variable_name + ' </td>  <td>' + v.variable_unit + '</td> <td class=\"' + green + '\">' + v.lower_range + '</td> <td class=\"' + red + '\">' + v.upper_range + '</td><td></td>  <td> </td><td> </td><td> </td></tr>';\n        });\n        Ember.$(html).insertAfter('#diagnosticreport_' + id);\n      }\n    },\n    validate: function (test_name, unit_name, range_type, upper_range, lower_range, group_count, imaging, status, cfl_label_array) {\n      let i18n = this.i18n;\n      var taxonomy_message = i18n.t('diagnostic.validationErrorMessage.taxonomy');\n      var test_message = i18n.t('diagnostic.validationErrorMessage.test_name');\n      var unit_message = i18n.t('diagnostic.validationErrorMessage.unit_name');\n      var range_type_message = i18n.t('diagnostic.validationErrorMessage.range_type');\n      var range_message = i18n.t('diagnostic.validationErrorMessage.range');\n      var threshold_numeric = i18n.t('diagnostic.validationErrorMessage.threshold_numeric');\n      var status_message = i18n.t('diagnostic.validationErrorMessage.status');\n      if (group_count == 0) {\n        this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(taxonomy_message, 'taxonomy');\n        return false;\n      } else if (test_name == '' || test_name == undefined) {\n        this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(test_message, 'test_name');\n        return false;\n      } else if (imaging == undefined) {\n        if (unit_name == '' || unit_name == undefined) {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(unit_message, 'unit_name');\n          return false;\n        } else if (range_type == '' || range_type == undefined) {\n          this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(range_type_message, 'range_type');\n          return false;\n        } else if (range_type == 'th' || range_type == 'bnr') {\n          if (upper_range == '' || upper_range == undefined || lower_range == '' || lower_range == undefined) {\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(range_message, 'range');\n            return false;\n          } else if (range_type == 'th' && !(upper_range >= 0 && upper_range >= 0)) {\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(threshold_numeric, 'range');\n            return false;\n          } else if (status == '' || status == undefined) {\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(status_message, 'status');\n            return false;\n          } else {\n            return true;\n          }\n        } else if (range_type == 'cfl') {\n          for (var i = 0; i < cfl_label_array.length; i++) {\n            if (cfl_label_array[i].cfl_label == '' || cfl_label_array[i].cfl_label == undefined) {\n              this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Label can\\'t be empty', cfl_label_array[i].id);\n              return false;\n            }\n          }\n          if (status == '' || status == undefined) {\n            this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(status_message, 'status');\n            return false;\n          } else {\n            return true;\n          }\n        }\n      } else if (status == '' || status == undefined) {\n        this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(status_message, 'status');\n        return false;\n      }\n      return true;\n    },\n    getRecords: function (page, status, searchtext, name, sorttype, group) {\n      var base_url = _environment.default.APP.lumen_api_url + 'diagnostic';\n      //\tvar url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (group != '' && group != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&group=' + group;\n        } else {\n          var base_url = base_url + '?group=' + group;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('diagnosticreports', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    viewRecords(id, name) {\n      if ($('.detail_' + id)[0]) {\n        $('.detail_' + id).remove();\n        return false;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/potency/' + id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res.potencyGroup);\n          var pricegrouphtml = '';\n          $.each(res.potencyGroup, function (k, v) {\n            pricegrouphtml += '<tr class=\"detail_' + id + '\"> <td> </td> <td> </td>  <td>' + v.name + '</td> <td></td> <td></td><td> </td>  <td> </td></tr>';\n          });\n          $(pricegrouphtml).insertAfter('#potency_' + id);\n        },\n        error: function (error, x, y) {}\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/disease\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n    },\n    actions: {\n      submit: function () {\n        //console.log(\"ggs\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var diseasename = [];\n        let i18n = _this.get('i18n');\n        $('input.diseasename').each(function () {\n          var ans = $(this).val().trim();\n          if (ans != '' && ans != undefined) {\n            diseasename.push(ans);\n          }\n        });\n        //console.log(diseasename);\n        if (this.validate(diseasename)) {\n          var data = {\n            system: this.system,\n            organ: this.organ,\n            name: diseasename,\n            id: this.id,\n            status: this.status,\n            isSerious: this.isSerious\n          };\n          // console.log(data);\n          //return false;\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('disease.messages.updateDisease');\n          } else {\n            data.id = 0;\n            var message = i18n.t('disease.messages.savedDisease');\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'disease',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                var duplicateName = [];\n                //var i = 0;\n                //vali_errors:res.message;\n                //_this.set('vali_errors', res.message);\n                $.each(res.message, function (index, value) {\n                  $.each(value, function (index, value) {\n                    duplicateName[0] = value;\n                    //i++;\n                  });\n                });\n                _this.set('vali_errors', duplicateName);\n                //console.log(duplicateName);\n              } else {\n                //alert(res.form);\n                //var message = i18n.t('forms.messages.savedForm');\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.disease.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('disease.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'disease/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('disease.messages.diseaseDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('disease.messages.diseaseDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        var system = this.system;\n        var organ = this.organ;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && (system == undefined || system == '') && (organ == undefined || organ == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype, system, organ);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      selectSystem(item, name, organ) {\n        if (item == undefined) {\n          item = $('.systemlist').children('option:selected').val();\n        }\n        this.set('organ', '');\n        this.set('system', item);\n        var base_url = _environment.default.APP.lumen_api_url + 'systemorgan/' + item;\n        var id = $('#id').val();\n        if (id > 0) {\n          var base_url = base_url + '&?editlist=edit';\n        } else {\n          var base_url = base_url + '?datalist=datalist';\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: base_url,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('.systemlist').css('display', 'block');\n            _this.set('organs', res);\n            _this.set('organname', name);\n            //\t_this.set('organ', organ);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n      },\n      selectOrganSystem(item, isChecked) {\n        if (item == undefined) {\n          item = $('.organlist').children('option:selected').val();\n        }\n        this.set('organ', item);\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n        //console.log(this.get('selectedItems'));\n      }\n    },\n    validate: function (diseasename) {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var name = i18n.t('disease.validationErrorMessage.name');\n      var system = i18n.t('disease.validationErrorMessage.system_required');\n      var organ = i18n.t('disease.validationErrorMessage.organ_required');\n      var status = i18n.t('disease.validationErrorMessage.status');\n      if (diseasename.length == 0) {\n        this.errors.add('name', name);\n      }\n      if (this.system == '' || this.system == undefined) {\n        this.errors.add('system', system);\n      }\n      if (this.organ == '' || this.organ == undefined) {\n        this.errors.add('organ', organ);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype, system, organ) {\n      //console.log(\"page=>\"+page+\"status=>\"+status+\"searchtext=>\"+searchtext+\"name=>\"+name+\"sorttype=>\"+sorttype);\n      //return false\n      var base_url = _environment.default.APP.lumen_api_url + 'disease';\n      //\tvar url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (system != '' && system != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&system=' + system;\n        } else {\n          var base_url = base_url + '?system=' + system;\n        }\n      }\n      if (organ != '' && organ != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&organ=' + organ;\n        } else {\n          var base_url = base_url + '?organ=' + organ;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('diseases', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/doctor-level\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    vali_errors: null,\n    seniority_level: null,\n    init() {\n      this._super(...arguments);\n      this.chargeselectedItems = [];\n      this.addedlocationList = [];\n    },\n    actions: {\n      chargeHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.chargeselectedItems.addObject(item);\n        } else {\n          this.chargeselectedItems.removeObject(item);\n        }\n      },\n      addlocation() {\n        this.addlocation();\n      },\n      setBranch() {\n        var id = $('select[name=location]').val();\n        this.set('branch', id);\n      },\n      removelocation(branch_id) {\n        var locationUniqueArray = this.get('addedlocationList');\n        var obj = locationUniqueArray.findBy('id', branch_id); // assuming the object has a property 'id'\n        locationUniqueArray.removeObject(obj);\n        this.set('charge_name_list', locationUniqueArray);\n      },\n      removeLocationCharge(branch_id, dr_level_id) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'billing/removelocationcharge',\n          data: {\n            branch_id: branch_id,\n            level_id: dr_level_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error == false && res.actions == \"deleted\") {\n              var locationUniqueArray = _this.get('addedlocationList');\n              var obj = locationUniqueArray.findBy('id', branch_id); // assuming the object has a property 'id'\n              locationUniqueArray.removeObject(obj);\n              _this.set('charge_name_list', locationUniqueArray);\n            } else if (res.error == true && res.actions == \"not-found\") {\n              var locationUniqueArray = _this.get('addedlocationList');\n              var obj = locationUniqueArray.findBy('id', branch_id); // assuming the object has a property 'id'\n              locationUniqueArray.removeObject(obj);\n              _this.set('charge_name_list', locationUniqueArray);\n            }\n          }\n        });\n      },\n      getDoctorCharge() {\n        this.getDoctorCharge();\n      },\n      getLocation() {\n        this.getLocation();\n      },\n      getRecordOfDoctorLevel(id) {\n        this.getRecordOfDoctorLevel(id);\n      },\n      submit(page) {\n        var _this = this;\n        let i18n = _this.get('i18n');\n        // This below line of code is used to get all checkbox checked the location charges field values\n        var checked_array = [];\n        $(\"input[type=checkbox]:checked\").each(function () {\n          var checked_item = {\n            value: $(this).val(),\n            code: $(this).attr('title'),\n            type: $(this).attr('data-type'),\n            print_code: $(this).attr('data-printcode'),\n            charge_id: $(this).attr('data-chargeid'),\n            branch_id: $(this).attr('data-branchid')\n          };\n          checked_array.push(checked_item);\n        });\n\n        /* This below line of code is used to get all the charges field values */\n        var chargeFeilds = $('.charges');\n        var charge_fields = $.map(chargeFeilds, function (element) {\n          return {\n            id: element.name,\n            value: element.value,\n            code: element.title,\n            type: element.dataset.type,\n            print_code: element.dataset.printcode\n          };\n        });\n        var valueCheck = true;\n        charge_fields.forEach(function (charge, index) {\n          if (charge.value == '' || charge.value < 0) {\n            $(\"<span class='help-block custom-error-msg'>Please Enter Value.</span>\").insertAfter('#charge_' + charge.id);\n            $('#charge_' + charge.id).addClass('custom_error');\n            valueCheck = false;\n          }\n        });\n        setTimeout(function () {\n          $('.custom-error-msg').remove();\n          $('.charges').removeClass('custom_error');\n        }, 2000);\n        if (this.validate() == true && valueCheck == true) {\n          var nameobj = this.name;\n          var name = nameobj.trim();\n          if (checked_array.length == 0) {\n            var override_charge = '';\n          } else {\n            var override_charge = checked_array;\n          }\n          var data = {\n            name: name,\n            seniority_level: this.seniority_level,\n            status: this.status,\n            created_by: this.session.getLoggedInUserId(),\n            doctor_level_charges: charge_fields,\n            doctor_location_level_charges: override_charge\n          };\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('doctorLevel.messages.updateDoctorLevel');\n            var url = _environment.default.APP.lumen_api_url + 'billing/doctorlevel/' + data.id;\n          } else {\n            data.id = 0;\n            var message = i18n.t('doctorLevel.messages.savedDoctorLevel');\n            var url = _environment.default.APP.lumen_api_url + 'billing/doctorlevel';\n          }\n          var _this = this;\n          let utoken = _this.session.getToken();\n          $.ajax({\n            method: 'POST',\n            url: url,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                _this.set('vali_errors', res.message);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.doctor-level.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteDoctorLevelRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('doctorLevel.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/doctor-level/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'not-delete') {\n                  var message = i18n.t('doctorLevel.messages.doctorLevelDeleteErrorUsedMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else if (res.error == false && res.actions == 'deleted') {\n                  var message = i18n.t('doctorLevel.messages.doctorLevelDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        this.set('vali_errors', '');\n        var searchtext = this.query_string;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        //var searchtext = searchtext.trim();\n\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    getDoctorCharge() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.length > 0) {\n            _this.set('charges', res);\n          }\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    addlocation() {\n      console.log(this.branch);\n      if (this.branch == undefined || this.branch == '') {\n        this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please select location', 'location');\n        this.set('charge_name_list', this.get('addedlocationList'));\n      } else {\n        var location_name = $('select[name=location] option:selected').text();\n        var branch_id = $('select[name=location]').val();\n        var branch_name = location_name.trim();\n        var locationUniqueArray = this.get('addedlocationList');\n        var obj = locationUniqueArray.findBy('id', branch_id); // assuming the object has a property 'id'\n        locationUniqueArray.removeObject(obj);\n        var location = {\n          id: branch_id,\n          name: branch_name,\n          location_charge: this.get('charges')\n        };\n        locationUniqueArray.addObject(location);\n        this.set('charge_name_list', locationUniqueArray);\n        console.log(this.get('charge_name_list'));\n      }\n    },\n    getRecordOfDoctorLevel(id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctorlevel/' + id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var data = res;\n          console.log(\"console seniority_level value:\" + data.seniority_level);\n          _this.set('name', data.name);\n          _this.set('seniority_level', data.seniority_level);\n          _this.set('status', data.status);\n          var default_charge_array = _this.get('charges');\n          if (data.level_charges.length > 0) {\n            var override_location_charge = data.level_charges;\n            var default_overide_array = _this.getOverrideChargeList(default_charge_array, override_location_charge);\n            _this.set('default_charges', default_overide_array);\n          }\n          // if (data.location_charges.length > 0) {\n          //   _this.set('location_charges', data.location_charges);\n          // }\n          if (data.location.length > 0) {\n            var locationUniqueArray = _this.get('addedlocationList');\n            data.location.forEach(function (item, index) {\n              var override_location_charge = item.location_charge_level;\n              //var default_charge_array = data.level_charges;\n              var overide_array = _this.getOverrideLocationChargeList(default_charge_array, override_location_charge);\n              //console.log(overide_array);\n              var obj = locationUniqueArray.findBy('id', item.location_id); // assuming the object has a property 'id'\n              locationUniqueArray.removeObject(obj);\n              var location = {\n                id: JSON.stringify(item.location_id),\n                name: item.branch.title,\n                location_charge: overide_array\n              };\n              locationUniqueArray.addObject(location);\n              //console.log(locationUniqueArray);\n              _this.set('charge_name_list', locationUniqueArray);\n            });\n            //console.log(_this.get('charge_name_list'));\n          }\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    getLocation() {\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch',\n        data: {\n          activerecord: '1'\n        },\n        success: function (res) {\n          if (res.length > 0) {\n            _this.set('locations', res);\n          }\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var name = i18n.t('doctorLevel.validationErrorMessage.name');\n      var seniority_level = i18n.t('doctorLevel.validationErrorMessage.seniority_level');\n      var status = i18n.t('doctorLevel.validationErrorMessage.status');\n      var form_status = i18n.t('doctorLevel.validationErrorMessage.status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', name);\n      }\n      if (this.seniority_level == '' || this.seniority_level == undefined) {\n        this.errors.add('seniority_level', seniority_level);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype) {\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/doctorlevel';\n      //\tvar url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctor-level', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    getOverrideLocationChargeList: function (default_charge_array, override_location_charge) {\n      // default charge\n      var results = [];\n      for (let default_index = 0; default_index < default_charge_array.length; default_index++) {\n        var default_dr_level_id = default_charge_array[default_index].dr_level_id;\n        var default_charge_id = default_charge_array[default_index].id;\n        var default_charge_name = default_charge_array[default_index].charge_type;\n        var default_charge_code = default_charge_array[default_index].charge_code;\n        var amount = default_charge_array[default_index].charge_cost;\n        var default_print_code = default_charge_array[default_index].print_code;\n        var amount_override = 0;\n        // dynamic location based charge\n        for (let override_index = 0; override_index < override_location_charge.length; override_index++) {\n          var override_charge_id = override_location_charge[override_index].charge_id;\n          if (override_charge_id === default_charge_id) {\n            var amount = override_location_charge[override_index].amount;\n            var amount_override = 1;\n          }\n        }\n        var default_item = {\n          id: default_charge_id,\n          charge_type: default_charge_name,\n          charge_code: default_charge_code,\n          charge_cost: amount,\n          print_code: default_print_code,\n          amount_override: amount_override\n        };\n        results.push(default_item);\n      }\n      return results;\n    },\n    getOverrideChargeList: function (default_charge_array, override_location_charge) {\n      // default charge\n      var results = [];\n      for (let default_index = 0; default_index < default_charge_array.length; default_index++) {\n        var default_dr_level_id = default_charge_array[default_index].dr_level_id;\n        var default_charge_id = default_charge_array[default_index].id;\n        var default_charge_name = default_charge_array[default_index].charge_type;\n        var default_charge_code = default_charge_array[default_index].charge_code;\n        var amount = default_charge_array[default_index].charge_cost;\n        var default_print_code = default_charge_array[default_index].print_code;\n        var amount_override = 0;\n        // dynamic location based charge\n        for (let override_index = 0; override_index < override_location_charge.length; override_index++) {\n          var override_charge_id = override_location_charge[override_index].charge_id;\n          if (override_charge_id === default_charge_id) {\n            var amount = override_location_charge[override_index].amount;\n            var amount_override = 1;\n          }\n        }\n        var default_item = {\n          id: default_charge_id,\n          charge_type: default_charge_name,\n          charge_code: default_charge_code,\n          charge_cost: amount,\n          print_code: default_print_code,\n          amount_override: amount_override\n        };\n        results.push(default_item);\n      }\n      return results;\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/doctor-management\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  //import Cryptr from 'cryptr';\n  //const cryptr = new Cryptr('UTpNi9OEFG3KVXzVlWR2qcpZTUikW3e1');\n  var _default = _exports.default = Ember.Controller.extend({\n    applicationController: Ember.inject.controller('application'),\n    flashes: Ember.inject.service('flash-messages'),\n    showInTimeslot: 0,\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n      this.roleselectedItems = [];\n      this.branchselectedItems = [];\n      this.rolebasedcheckArray = [];\n      this.radioarray = [];\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctor-level',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctor-level', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    actions: {\n      showHover() {\n        this.set('hoverActive', true);\n      },\n      hideHover() {\n        this.set('hoverActive', false);\n      },\n      triggerFileInput() {\n        document.getElementById('doctor_image').click();\n      },\n      previewDoctorImage(event) {\n        let file = event.target.files[0];\n        if (!file) return;\n        let reader = new FileReader();\n        reader.onload = e => {\n          this.set('imagePreview', e.target.result);\n        };\n        reader.readAsDataURL(file);\n      },\n      removeImage() {\n        this.set('imagePreview', null);\n        //this.set('doctor_image', null);\n        this.set('remove_image', '1');\n        document.getElementById('doctor_image').value = \"\";\n      },\n      changeDoctorCharges: function (id) {\n        if (id > 0) {\n          var _this = this;\n          let utoken = _this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'billing/doctorlevel/' + id,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var data = '';\n              $('#doctor-charges').empty();\n              res.level_charges.forEach(function (item, index) {\n                data = '<div class=\"col-md-4\"><div class=\"col-xs-8\"><label for=\"charges\" class=\"no-margin-bottom status-label\">' + item.charge_name + '</label><input type=\"number\" class=\"form-control charges\" data-print =\"' + item.print_code + '\" id=\"charge_' + item.charge_id + '\" name=\"' + item.charge_id + '\" title=\"' + item.charge_code + '\"  placeholder=\"' + item.charge_name + '\" value=\"' + item.amount + '\" readonly></div></div>';\n                $('#doctor-charges').append(data);\n              });\n              $('#doctor-charges').show();\n              $('#doctor-charges-message').show();\n            }\n          });\n        } else {\n          $('#doctor-charges').hide();\n          $('#doctor-charges-message').hide();\n        }\n      },\n      showInTimeslot(event) {\n        console.log(event.target.checked);\n        this.showInTimeslot = event.target.checked;\n      },\n      //This below function is used for set the value of prescription format for user  as varaible \"prsformat\" variable, Rahul khan 26 Sept 2019\n      changePrescriptionFormat: function (mode) {\n        this.set('pres_print', mode);\n      },\n      //This below function is used for set the value of Receipt format for user  as varaible \"rcpformat\" variable,  Rahul khan 26 Sept 2019\n      changeReceiptFormat: function (mode) {\n        this.set('rcp_print', mode);\n      },\n      getUserProfile: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var loginuserid = _this.get('session').getLoggedInUserId();\n        //     // console.log(utoken);\n        //     //set selected branch id\n        //   //  this.controllerFor('settings.masters.users').set('user_id', params.id);\n        //     // ajax call for branch  list\n        // //In This below Ajax request We have added a activerecord and passed status parameter two get only active branches in profile page, Rahul Khan, 19 July 2019\n        // // Also change the return res.data to res.\n        var status = 1;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n          success: function (res) {\n            _this.set('branches', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        //       // ajax call for permission list\n        //       $.ajax({\n        //         method: \"GET\",\n        //         url: ENV.APP.lumen_api_url + \"categorywisepermissions\",\n        //         success: function (res) {\n        //             _this.set('permissions', res);\n        //         },\n        //         complete: function (res) {\n        //             console.log(\"Execution complete\");\n        //         }\n        //     });\n        //     //This below function is used for getting all the doctors related charges, Rahul Khan\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doc_charges', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        //This below function is used for getting medicine and consultancy print code\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/drprintchargescode',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doc_print_code', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n        // ajax call for fetch record for role table\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'user/' + loginuserid,\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var user_data = res;\n            _this.set('user_name', user_data.Name);\n            _this.set('username', user_data.username);\n            _this.set('email_id', user_data.email);\n            _this.set('mobile_no', user_data.mobile_no);\n            _this.set('user_status', user_data.status);\n            _this.set('id', user_data.user_id);\n            _this.set('user_type', user_data.user_type);\n            _this.set('user_order', user_data.ordering);\n            _this.set('user_label', user_data.label);\n            _this.set('consultancy_fees', user_data.consultancy_fees);\n            var s = _this.set('status', user_data.status);\n            $(document).ready(function () {\n              if (user_data.user_type == 2) {\n                $('#user_type').prop('checked', true);\n                $('#user_type').val(2);\n                $('.doctor_show').show();\n              } else {\n                $('.doctor_show').hide();\n              }\n              //This below line used for getting the reset password section hidden default for page profile, 06 Aug 2019, Rahul Khan\n              $('.password_show').hide();\n              if (s == 1) {\n                $('input[name=\"user_status\"]:radio:first').prop('checked', true).trigger('click');\n                //$('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n              } else {\n                $('input[name=\"user_status\"]:radio:last').prop('checked', true).trigger('click');\n                // $('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n              }\n            });\n          },\n          error: function (error, x, y) {}\n        });\n\n        // ajax call for role permission list\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userpermission/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            res.forEach(function (item, index) {\n              $('input:radio[name=' + item.permission + '][value=' + item.value + ']').prop('checked', true);\n              //$(\"#\" + item).prop('checked',true);\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n        //This below code is used for getting the data of doctors' charges price , Rahul Khan\n        var location_id = this.session.getLocation().split('-')[0];\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + loginuserid + '/' + location_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            res.forEach(function (item) {\n              $('#charge_' + item.charge_id).val(item.price);\n              //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n              //$(\"#\" + item).prop('checked',true);\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for roles list\n        //In This below Ajax request We have added a activerecord and passed status parameter two get only active roles in profile page, Rahul Khan, 19 July 2019\n        // Also change the return res.data to res.\n        var status = 1;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('roles', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for user branch map list from cl_user_branch_map\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userbranch/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('branchselectedItems', res);\n            if (res.length > 0) {\n              $('.profile-branch-section').removeClass('cw-hidden');\n            }\n            res.forEach(function (item, index) {\n              $('#branchinput_' + item).prop('checked', true);\n              $('.profile-branch-section #branch_' + item).removeClass('cw-hidden');\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for user roles list  from cl_user_roles\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userrole/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('roleselectedItems', res);\n            if (res.length > 0) {\n              $('.profile-role-section').removeClass('cw-hidden');\n            }\n            res.forEach(function (item, index) {\n              $('#roleinput_' + item).prop('checked', true);\n              $('.profile-role-section #role_' + item).removeClass('cw-hidden');\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n      },\n      clicky(value) {\n        this.set('user_status', value);\n        this.set('Active', $('checked[name=user_status]').val());\n        this.set('Inactive', $('checked[name=user_status]').val());\n      },\n      roleHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.roleselectedItems.addObject(item);\n        } else {\n          this.roleselectedItems.removeObject(item);\n        }\n      },\n      branchHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.branchselectedItems.addObject(item);\n        } else {\n          this.branchselectedItems.removeObject(item);\n        }\n      },\n      permissionAllow(item) {\n        $('.deny_' + item).prop('checked', false);\n        $('.allow_' + item).prop('checked', true);\n      },\n      permissionDeny(item) {\n        $('.allow_' + item).prop('checked', false);\n        $('.deny_' + item).prop('checked', true);\n      },\n      permissionHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n      },\n      doctorHasChanged() {\n        if ($('#user_type').val() == 1) {\n          $('#user_type').val(2);\n          this.set('user_type', 2);\n          $('.doctor_show').show();\n        } else {\n          $('#user_type').val(1);\n          this.set('user_type', 1);\n          $('.doctor_show').hide();\n        }\n      },\n      ChangePassword() {\n        if ($('#change_pass').val() == 1) {\n          $('#change_pass').val(2);\n          this.set('change_pass', 2);\n          $('.password_show').show();\n          this.set('password', '');\n          this.set('confirm_password', '');\n        } else {\n          $('#change_pass').val(1);\n          this.set('change_pass', 1);\n          $('.password_show').hide();\n        }\n      },\n      getPermissionByRoleId(role_id) {\n        var arr = new Array();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $('input[name=\"user_role[]\"]').each(function () {\n          if (this.checked) {\n            arr.push($(this).attr('id'));\n          }\n        });\n        var data = {\n          roles: arr\n        };\n        //console.log(data);\n        if (arr.length > 0) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'multiplerolepermission',\n            async: false,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              // _this.set('radioarray', res);\n              $('.permission_radio').prop('checked', false);\n              res.forEach(function (item, index) {\n                $('#on' + item).prop('checked', true);\n                //$(\"#on\" + item).attr('checked',false);\n              });\n            }\n          });\n        } else {\n          $('.permission_radio').prop('checked', false);\n          //_this.set('radioarray', '');\n        }\n      },\n      submit(page) {\n        var _this = this;\n        var i18n = this.i18n;\n        var utoken = _this.get('session').getToken();\n        var loginuserid = _this.get('session').getLoggedInUserId();\n\n        // Prepare permissions array\n        var values = $('.permission_radio:checked');\n        var myArray = $.map(values, function (element) {\n          return {\n            name: element.name,\n            value: element.value,\n            permission_name: element.dataset.permission,\n            route_name: element.dataset.routename\n          };\n        });\n\n        // Prepare charges array\n        var chargeFeilds = $('.charges');\n        var charge_fields = $.map(chargeFeilds, function (element) {\n          return {\n            id: element.name,\n            value: element.value,\n            code: element.title,\n            printcode: element.dataset.print\n          };\n        });\n        var dr_lv = $('#doctor_level').val();\n        _this.set('doctor_level', dr_lv);\n        if (_this.validate(_this.get('user_type'))) {\n          var formData = new FormData();\n\n          // Basic user info\n          formData.append('user_name', _this.get('user_name'));\n          formData.append('username', _this.get('username'));\n          formData.append('email_id', _this.get('email_id'));\n          formData.append('mobile_no', _this.get('mobile_no'));\n          formData.append('employee_code', _this.get('employee_code'));\n          formData.append('user_status', _this.get('user_status'));\n          formData.append('showInTimeslot', this.showInTimeslot ? 1 : 0);\n          // Doctor image handling\n          var doctorImageFile = $('#doctor_image')[0].files[0];\n\n          // removed flag\n          if (_this.get('remove_image') == '1') {\n            formData.append('remove_image', 1);\n          } else {\n            formData.append('remove_image', 0);\n          }\n\n          // only append file when new file selected\n          if (doctorImageFile) {\n            formData.append('doctor_image', doctorImageFile);\n          }\n\n          // Designation\n          formData.append('designation', _this.get('designation'));\n\n          // Roles[] multiple entries\n          var roles = _this.get('roleselectedItems');\n          if (roles.length === 0) {\n            formData.append('roles[]', 0);\n          } else {\n            roles.forEach(function (role) {\n              formData.append('roles[]', role);\n            });\n          }\n\n          // Branches[] multiple entries\n          var branches = _this.get('branchselectedItems');\n          if (branches.length === 0) {\n            formData.append('branches[]', 0);\n          } else {\n            branches.forEach(function (branch) {\n              formData.append('branches[]', branch);\n            });\n          }\n\n          // Permission array multiple entries (indexed)\n          if (myArray.length === 0) {\n            formData.append('permissionarray', 0);\n          } else {\n            myArray.forEach(function (perm, index) {\n              formData.append(`permissionarray[${index}][name]`, perm.name);\n              formData.append(`permissionarray[${index}][value]`, perm.value);\n              formData.append(`permissionarray[${index}][permission_name]`, perm.permission_name);\n              formData.append(`permissionarray[${index}][route_name]`, perm.route_name);\n            });\n          }\n\n          // DoctorCharge multiple entries (indexed)\n          charge_fields.forEach(function (charge, index) {\n            formData.append(`doctorCharge[${index}][id]`, charge.id);\n            formData.append(`doctorCharge[${index}][value]`, charge.value);\n            formData.append(`doctorCharge[${index}][code]`, charge.code);\n            formData.append(`doctorCharge[${index}][printcode]`, charge.printcode);\n          });\n\n          // User type specific fields\n          var userType = _this.get('user_type');\n          if (!userType || userType == '0') {\n            formData.append('label', '');\n            formData.append('user_order', 0);\n            formData.append('color', 0);\n            formData.append('user_type', 0);\n            formData.append('doctorCharge', 0);\n            formData.append('user_id', loginuserid);\n          } else if (userType == '1') {\n            formData.append('label', '');\n            formData.append('user_order', 0);\n            formData.append('color', 0);\n            formData.append('user_type', 1);\n            formData.append('doctorCharge', 0);\n            formData.append('user_id', loginuserid);\n          } else if (userType == '2') {\n            formData.append('label', _this.get('user_label'));\n            formData.append('user_order', _this.get('user_order'));\n            formData.append('color', _this.get('user_color'));\n            formData.append('user_type', 2);\n            formData.append('pres_print', _this.get('pres_print'));\n            formData.append('rcp_print', _this.get('rcp_print'));\n            formData.append('user_id', loginuserid);\n            formData.append('doctor_level', _this.get('doctor_level'));\n          }\n\n          // Existing user check\n          if (_this.get('id') > 0) {\n            formData.append('id', _this.get('id'));\n            formData.append('user_id', loginuserid);\n            formData.append('password', 0);\n          } else {\n            formData.append('id', 0);\n            formData.append('password', _this.get('password'));\n          }\n\n          // AJAX call\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'user',\n            data: formData,\n            headers: {\n              Authorization: `Bearer ${utoken}`\n            },\n            contentType: false,\n            processData: false,\n            beforeSend: function () {\n              $('#loading').addClass('in').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error) {\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  if (key == 'label') {\n                    var errorText = [];\n                    $.each(value, function (k, v) {\n                      errorText.push(v);\n                    });\n                    reponse['user_label'] = errorText;\n                  }\n                  reponse[key] = value;\n                });\n                _this.set('vali_errors', reponse);\n                setTimeout(function () {\n                  var errors = $('.has-error');\n                  if (errors.length) {\n                    $('html, body').animate({\n                      scrollTop: errors.offset().top - 50\n                    }, 500);\n                  }\n                }, 100);\n              } else {\n                var message = res.actions == 'add' ? i18n.t('user.messages.savedUser') : i18n.t('user.messages.updateUser');\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.doctor-management.list');\n              }\n            },\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          setTimeout(function () {\n            var errors = $('.has-error');\n            if (errors.length) {\n              $('html, body').animate({\n                scrollTop: errors.offset().top - 50\n              }, 500);\n            }\n          }, 100);\n        }\n      },\n      // submit(page) {\n      //   var _this = this;\n      //   let i18n = this.i18n;\n      //   var utoken = _this.get('session').getToken();\n      //   var loginuserid = _this.get('session').getLoggedInUserId();\n      //   var values = $('.permission_radio:checked');\n      //   var myArray = $.map(values, function (element) {\n      //     return {\n      //       name: element.name,\n      //       value: element.value,\n      //       permission_name: element.dataset.permission,\n      //       route_name: element.dataset.routename,\n      //     };\n      //   });\n      //   /*This below line of code is used to get all the charges field values, Rahul Khan */\n      //   var chargeFeilds = $('.charges');\n      //   var charge_fields = $.map(chargeFeilds, function (element) {\n      //     return {\n      //       id: element.name,\n      //       value: element.value,\n      //       code: element.title,\n      //       printcode: element.dataset.print,\n      //     };\n      //   });\n      //   var dr_lv = $('#doctor_level ').val();\n      //   _this.set('doctor_level', dr_lv);\n      //   //console.log(_this.get('doctor_level'));\n      //   if (_this.validate(_this.get('user_type'))) {\n      //     //   var permissions_name = $(\".permission_radio:checked\").map(function(){\n      //     //     return $(this).data('permission');\n      //     // }).get();\n      //     // var routesname = $(\".permission_radio:checked\").map(function(){\n      //     //   return $(this).data('routename');\n      //     // }).get();\n\n      //     var data = {\n      //       user_name: _this.get('user_name'),\n      //       username: _this.get('username'),\n      //       email_id: _this.get('email_id'),\n      //       mobile_no: _this.get('mobile_no'),\n      //       employee_code: _this.get('employee_code'),\n      //       user_status: _this.get('user_status'),\n      //       showInTimeslot: this.showInTimeslot?1:0,\n      //     };\n\n      //     // if(permissions_name.length == 0){\n      //     //   data.permission_name = null;\n      //     //  }else{\n      //     //   data.permission_name = permissions_name;\n      //     //  }\n\n      //     //  if(routesname.length == 0){\n      //     //   data.route_name = '';\n      //     //  }else{\n      //     //   data.route_name = routesname;\n      //     //  }\n      //     // if(_this.get('radioarray').length == 0){\n      //     //   data.radioarray = 0;\n      //     //  }else{\n      //     //   data.radioarray = _this.get('radioarray');\n      //     //  }\n\n      //     if (myArray.length == 0) {\n      //       data.permissionarray = 0;\n      //     } else {\n      //       data.permissionarray = myArray;\n      //     }\n\n      //     if (_this.get('roleselectedItems').length == 0) {\n      //       data.roles = 0;\n      //     } else {\n      //       data.roles = _this.get('roleselectedItems');\n      //     }\n\n      //     if (_this.get('branchselectedItems').length == 0) {\n      //       data.branches = 0;\n      //     } else {\n      //       data.branches = _this.get('branchselectedItems');\n      //     }\n\n      //     if (\n      //       _this.get('user_type') == undefined ||\n      //       _this.get('user_type') == '0'\n      //     ) {\n      //       //In these below both conditions we have replaced the \"user_label\" to \"label\" for making server-side valiation, Rahul Khan, 10 July 2019\n      //       data.label = '';\n      //       data.user_order = 0;\n      //       data.color = 0;\n      //       data.user_type = 0;\n      //       data.doctorCharge = 0;\n      //     }\n      //     if (_this.get('user_type') == '1') {\n      //       data.label = '';\n      //       data.user_order = 0;\n      //       data.color = 0;\n      //       data.user_type = 1;\n      //       data.doctorCharge = 0;\n      //       data.user_id = loginuserid;\n      //     } else if (_this.get('user_type') == '2') {\n      //       data.label = _this.get('user_label');\n      //       data.user_order = _this.get('user_order');\n      //       data.color = _this.get('user_color');\n      //       data.user_type = _this.get('user_type');\n      //       data.pres_print = _this.get('pres_print');\n      //       data.rcp_print = _this.get('rcp_print');\n      //       data.doctorCharge = charge_fields;\n      //       data.user_id = loginuserid;\n      //       data.doctor_level = _this.get('doctor_level');\n      //       //data.consultancy_fees = _this.get('consultancy_fees');\n      //     }\n\n      //     if (_this.get('id') > 0) {\n      //       data.id = _this.get('id');\n      //       data.user_id = loginuserid;\n      //       data.password = 0;\n      //     } else {\n      //       data.password = _this.get('password');\n      //       data.id = 0;\n      //     }\n      //     $.ajax({\n      //       method: 'POST',\n      //       url: ENV.APP.lumen_api_url + 'user',\n      //       data: data,\n      //       headers: {\"Authorization\": `Bearer ${utoken}`},\n      //       beforeSend: function () {\n      //         $('#loading').addClass('in');\n      //         $('#loading').css('display', 'block');\n      //         $('body').addClass('modal-open');\n      //       },\n      //       success: function (res) {\n      //         if (res.error == true) {\n      //           /*In these below line we have customize the error reponse date format, Rahul Khan, 10 July 2019*/\n      //           var reponse = [];\n      //           $.each(res.message, function (key, value) {\n      //             if (key == 'label') {\n      //               var errorText = [];\n      //               $.each(value, function (key1, value1) {\n      //                 errorText.push(value1);\n      //               });\n      //               reponse['user_label'] = errorText;\n      //             }\n      //             reponse[key] = value;\n      //           });\n      //           _this.set('vali_errors', reponse);\n      //           setTimeout(function () {\n      //             var errors = $('.has-error');\n      //             if (errors.length) {\n      //               $('html, body').animate(\n      //                 { scrollTop: errors.offset().top - 50 },\n      //                 500\n      //               );\n      //             }\n      //           }, 100);\n\n      //           // _this.set('vali_errors', res.message);\n      //         } else if (res.error == false) {\n      //           if (res.actions == 'add') {\n      //             var message = i18n.t('user.messages.savedUser');\n      //           } else if (res.actions == 'update') {\n      //             var message = i18n.t('user.messages.updateUser');\n      //           }\n      //           Ember.get(_this, 'flashes').success(message);\n      //           _this.transitionToRoute(\n      //             'settings.masters.doctor-management.list'\n      //           );\n      //         }\n      //       },\n      //       complete: function (res) {\n      //         // console.log(res);\n      //         setTimeout(function () {\n      //           $('#loading').removeClass('in');\n      //           $('#loading').css('display', 'none');\n      //           $('.modal-backdrop').remove();\n      //           $('body').removeClass('modal-open');\n      //         }, 500);\n      //       },\n      //     });\n      //   } else {\n      //     setTimeout(function () {\n      //       var errors = $('.has-error');\n      //       if (errors.length) {\n      //         $('html, body').animate(\n      //           { scrollTop: errors.offset().top - 50 },\n      //           500\n      //         );\n      //       }\n      //     }, 100);\n      //   }\n      // },\n      user_delete(user_id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let message = i18n.t('role.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'user/delete',\n              data: {\n                user_id: user_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('user.messages.userDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('user.messages.userDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              error: function (res) {},\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      getUsers: function (page, status) {\n        this.getUsers(page, status);\n      },\n      search_user: function (page, status) {\n        var searchtext = this.query_string;\n        var doctorLevel = $('#doctor_level').val();\n        this.getUsers(page, status, searchtext, doctorLevel);\n        //console.log(this.get('query_string'));\n      },\n      //This function is used for save the user profile data in database, 06/Aug/2019, Rahul Khan\n\n      saveprofile: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        var loginuserid = _this.get('session').getLoggedInUserId();\n        //console.log(loginuserid);\n        //if(_this.saveProfilevalidate()){\n        if (this.saveProfilevalidate()) {\n          var data = {\n            user_name: _this.get('user_name'),\n            email_id: _this.get('email_id'),\n            mobile_no: _this.get('mobile_no'),\n            id: loginuserid\n          };\n          if (_this.get('change_pass') != 2) {\n            data.password = 0;\n          } else {\n            data.password = _this.get('password');\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'user/profile',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n                setTimeout(function () {\n                  var errors = $('.has-error');\n                  if (errors.length) {\n                    $('html, body').animate({\n                      scrollTop: errors.offset().top - 50\n                    }, 500);\n                  }\n                }, 100);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('user.messages.savedUser');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('user.messages.updateUser');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                //this condidtion is used for make user logout when user change his password.\n                setTimeout(function () {\n                  //console.log((_this.get('confirm_password')));\n                  if (_this.get('change_pass') == '2' && _this.get('confirm_password') != '') {\n                    _this.transitionToRoute('logout');\n                  }\n                }, 1500);\n              }\n            }\n          });\n        } else {\n          setTimeout(function () {\n            var errors = $('.has-error');\n            if (errors.length) {\n              $('html, body').animate({\n                scrollTop: errors.offset().top - 50\n              }, 500);\n            }\n          }, 100);\n        }\n      },\n      //This below function is used for getting the last visited page\n\n      goBack: function () {\n        history.back();\n      }\n    },\n    getUsers: function (page, status, searchtext, doctorLevel) {\n      // const encryptedString = cryptr.encrypt('shubh');\n      // const decryptedString = cryptr.decrypt(encryptedString);\n      // console.log(encryptedString);\n      //console.log(decryptedString);\n\n      var base_url = _environment.default.APP.lumen_api_url + 'doctoruser';\n      if (searchtext != '' && searchtext != undefined || doctorLevel != '' && doctorLevel != undefined) {\n        if (searchtext == undefined) {\n          var text = '';\n        } else {\n          var text = searchtext;\n        }\n        var base_url = _environment.default.APP.lumen_api_url + 'doctoruser?query_string=' + text + '&doctorlevel=' + doctorLevel;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('users', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function (user_type) {\n      this.set('errors', _emberData.default.Errors.create());\n      //charge_fields = this.get('charge_fields');\n      let i18n = this.i18n;\n      var user_name = i18n.t('user.validationErrorMessage.user_name');\n      var user_name_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var user_name_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var username = i18n.t('user.validationErrorMessage.username');\n      var username_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var username_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var email_id = i18n.t('user.validationErrorMessage.email_id');\n      var invalid_email_id = i18n.t('user.validationErrorMessage.invalid_email_id');\n      var mobile_no = i18n.t('user.validationErrorMessage.mobile_no');\n      var password = i18n.t('user.validationErrorMessage.password');\n      var password_min = i18n.t('user.validationErrorMessage.password_min');\n      var confirm_password = i18n.t('user.validationErrorMessage.confirm_password');\n      var confirm_password_not_match = i18n.t('user.validationErrorMessage.confirm_password_not_match');\n      var user_status = i18n.t('user.validationErrorMessage.user_status');\n      var user_branch = i18n.t('user.validationErrorMessage.user_branch');\n      var user_role = i18n.t('user.validationErrorMessage.user_role');\n      var mobile_max_allowed = i18n.t('user.validationErrorMessage.mobile_max_allowed');\n      var mobile_valid = i18n.t('user.validationErrorMessage.mobile_valid');\n      var user_label = i18n.t('user.validationErrorMessage.user_label');\n      var user_label_max = i18n.t('user.validationErrorMessage.user_label_max');\n      var user_order = i18n.t('user.validationErrorMessage.user_order');\n      var user_color = i18n.t('user.validationErrorMessage.user_color');\n      var pres_print = i18n.t('user.validationErrorMessage.pres_print');\n      var doctor_level = i18n.t('user.validationErrorMessage.doctor_level');\n      var rcp_print = i18n.t('user.validationErrorMessage.rcp_print');\n      var employee_code = i18n.t('user.validationErrorMessage.employee_code');\n      var employee_code_min = i18n.t('user.validationErrorMessage.employee_code_min');\n      var employee_code_max = i18n.t('user.validationErrorMessage.employee_code_max');\n      var employee_code_alphabate = i18n.t('user.validationErrorMessage.employee_code_alphabate');\n      var filter = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/;\n      var pattern = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\n      if (this.user_name == '' || this.user_name == undefined) {\n        this.errors.add('user_name', user_name);\n      } else if (this.user_name != this.user_name.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('user_name', user_name_alphabate);\n      } else if (this.user_name.length < 3) {\n        this.errors.add('user_name', user_name_min);\n      }\n      if (this.username == '' || this.username == undefined) {\n        this.errors.add('username', username);\n      } else if (this.username.length < 3) {\n        this.errors.add('username', username_min);\n      }\n      if (this.email_id == '' || this.email_id == undefined) {\n        this.errors.add('email_id', email_id);\n      } else if (!pattern.test(this.email_id)) {\n        this.errors.add('email_id', invalid_email_id);\n      }\n      if (this.mobile_no == '' || this.mobile_no == undefined) {\n        this.errors.add('mobile_no', mobile_no);\n      } else if (!filter.test(this.mobile_no)) {\n        this.errors.add('mobile_no', mobile_valid);\n      } else if (this.mobile_no.length > 10) {\n        this.errors.add('mobile_no', mobile_max_allowed);\n      }\n      if (this.id == '') {\n        if (this.password == '' || this.password == undefined) {\n          this.errors.add('password', password);\n        } else if (this.password.length < 8) {\n          this.errors.add('password', password_min);\n        }\n        if (this.confirm_password == '' || this.confirm_password == undefined) {\n          this.errors.add('confirm_password', confirm_password);\n        } else if (this.confirm_password != this.password) {\n          this.errors.add('confirm_password', confirm_password_not_match);\n        }\n      }\n      ////\n      if (this.employee_code == '' || this.employee_code == undefined) {\n        this.errors.add('employee_code', employee_code);\n      } else if (this.employee_code != this.employee_code.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('employee_code', employee_code_alphabate);\n      } else if (this.employee_code.length < 4) {\n        this.errors.add('employee_code', employee_code_min);\n      } else if (this.employee_code.length > 4) {\n        this.errors.add('employee_code', employee_code_max);\n      }\n      if (this.branchselectedItems.length == 0 || this.branchselectedItems == undefined) {\n        this.errors.add('user_branch', user_branch);\n      }\n      if (this.roleselectedItems.length == 0 || this.roleselectedItems == undefined) {\n        this.errors.add('user_role', user_role);\n      }\n      if (this.user_status == '' || this.user_status == undefined) {\n        this.errors.add('user_status', user_status);\n      }\n      //console.log(this.get('user_label').length);\n\n      /*This below code is used for validating doctors's charges */\n      $('.doctor-charges span').remove();\n      if (user_type == '2') {\n        if (this.user_label == '' || this.user_label == undefined) {\n          this.errors.add('user_label', user_label);\n        } else if (this.user_label.length > 5) {\n          this.errors.add('user_label', user_label_max);\n        }\n        if (this.user_order == '' || this.user_order == undefined) {\n          this.errors.add('user_order', user_order);\n        }\n        if (this.user_color == '' || this.user_color == undefined) {\n          this.errors.add('user_color', user_color);\n        }\n        //These line is used for validation the Prescription format\n        if (this.pres_print == '' || this.pres_print == undefined) {\n          this.errors.add('pres_print', pres_print);\n        }\n        //These line is used for validation the doctor-level\n        if (this.doctor_level == '' || this.doctor_level == undefined) {\n          this.errors.add('doctor_level', doctor_level);\n        }\n        //These line is used for validation the Receipt format\n        if (this.rcp_print == '' || this.rcp_print == undefined) {\n          this.errors.add('rcp_print', rcp_print);\n        }\n        // charge_fields.forEach(function(charge, index){\n        //     if(charge.value==\"\" || charge.value < 0 ){\n        //       $( \"<span class='help-block'>This field should be a number.</span>\" ).insertAfter( \"#charge_\"+charge.id);\n        //     }\n        // });\n      }\n      return this.get('errors.isEmpty');\n    },\n    //This below function is used for validating the\n    saveProfilevalidate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      //charge_fields = this.get('charge_fields');\n      let i18n = this.i18n;\n      var user_name = i18n.t('user.validationErrorMessage.user_name');\n      var user_name_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var user_name_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var email_id = i18n.t('user.validationErrorMessage.email_id');\n      var invalid_email_id = i18n.t('user.validationErrorMessage.invalid_email_id');\n      var mobile_no = i18n.t('user.validationErrorMessage.mobile_no');\n      var password = i18n.t('user.validationErrorMessage.password');\n      var password_min = i18n.t('user.validationErrorMessage.password_min');\n      var confirm_password = i18n.t('user.validationErrorMessage.confirm_password');\n      var confirm_password_not_match = i18n.t('user.validationErrorMessage.confirm_password_not_match');\n      var mobile_max_allowed = i18n.t('user.validationErrorMessage.mobile_max_allowed');\n      var mobile_valid = i18n.t('user.validationErrorMessage.mobile_valid');\n      var filter = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/;\n      var pattern = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\n      if (this.user_name == '' || this.user_name == undefined) {\n        this.errors.add('user_name', user_name);\n      } else if (this.user_name != this.user_name.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('user_name', user_name_alphabate);\n      } else if (this.user_name.length < 3) {\n        this.errors.add('user_name', user_name_min);\n      }\n      if (this.email_id == '' || this.email_id == undefined) {\n        this.errors.add('email_id', email_id);\n      } else if (!pattern.test(this.email_id)) {\n        this.errors.add('email_id', invalid_email_id);\n      }\n      if (this.mobile_no == '' || this.mobile_no == undefined) {\n        this.errors.add('mobile_no', mobile_no);\n      } else if (!filter.test(this.mobile_no)) {\n        this.errors.add('mobile_no', mobile_valid);\n      } else if (this.mobile_no.length > 10) {\n        this.errors.add('mobile_no', mobile_max_allowed);\n      }\n      if (this.change_pass == 2) {\n        if (this.password == '' || this.password == undefined) {\n          this.errors.add('password', password);\n        } else if (this.password.length < 8) {\n          this.errors.add('password', password_min);\n        }\n        if (this.confirm_password == '' || this.confirm_password == undefined) {\n          this.errors.add('confirm_password', confirm_password);\n        } else if (this.confirm_password != this.password) {\n          this.errors.add('confirm_password', confirm_password_not_match);\n        }\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/dtg/dtg\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      redirectOnCurrentPageNumber: function (page) {\n        this.redirectOnCurrentPageNumber(page);\n      },\n      changesParentGroup() {\n        var parent_group = $('select[name=parent_group]').val();\n        this.set('parent_id', parent_group);\n        if (parent_group == 0) {\n          this.set('showColor', 'block');\n        } else {\n          this.set('showColor', 'none');\n        }\n      },\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var group_name = [];\n        let i18n = _this.get('i18n');\n        var user_id = this.session.getLoggedInUserId();\n        $('input.group_name').each(function () {\n          var ans = $(this).val();\n          group_name.push(ans);\n        });\n        var parent_group = $('select[name=\"parent_group\"]').val();\n        var page_on = $('input[type=hidden][name=page_on]').val();\n        var group_color = $('input[name=group_color]').val();\n        if (parent_group == 0) {\n          var color = group_color;\n        } else {\n          var color = null;\n        }\n        var nameValue = parent_group;\n        if (_this.validate(group_name, nameValue, group_color)) {\n          var data = {\n            parent_group: nameValue,\n            name: group_name,\n            id: _this.id,\n            status: _this.status,\n            user_id: user_id,\n            page_on: page_on,\n            color: color\n          };\n          //console.log(data);\n          //return false;\n          if (_this.id > 0) {\n            data.id = _this.id;\n            data.page_on = page_on;\n            var message = i18n.t('dtg.messages.updateDTG');\n          } else {\n            data.id = 0;\n            data.page_on = 1;\n            var message = i18n.t('dtg.messages.savedDTG');\n          }\n          //console.log(data);\n          //return false;\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'dtg',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                //vali_errors:res.message;\n                _this.set('vali_errors', res.message);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.getRecords(res.page, 'self');\n                _this.transitionToRoute('settings.masters.dtg.list', {\n                  queryParams: {\n                    page: res.page\n                  }\n                });\n              }\n            },\n            complete: function (res) {\n              //console.log('Execution complete');\n              //_this.getRecords('2', 'self');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name, page) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('dtg.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'dtg/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('dtg.messages.dtgDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('dtg.messages.dtgDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords(page, 'self');\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          return false;\n        }\n        var sorttype = $('input.sorttype').val();\n        var page_on = $('input[type=hidden][name=page_on]').val();\n        this.getRecords(page, status, searchtext, name, sorttype, page_on);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function (group_name, nameValue, group_color_name) {\n      this.set('errors', '');\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var group_all_required = i18n.t('dtg.validationErrorMessage.group_all_required');\n      var status = i18n.t('dtg.validationErrorMessage.status');\n      var group_color = i18n.t('dtg.validationErrorMessage.group_color');\n      if (nameValue == '0') {\n        if (group_color_name == '' || group_color_name == undefined) {\n          this.errors.add('group_color', group_color);\n        }\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      for (var i = 0; i < group_name.length; i++) {\n        if (group_name[i] == '' || group_name[i] == undefined) {\n          this.errors.add('group_name', group_all_required);\n          var num = i + 1;\n          Ember.$('#group_row' + num).addClass('has-error');\n          $('.error_message' + num).text(group_all_required);\n        }\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype, page_on) {\n      var base_url = _environment.default.APP.lumen_api_url + 'dtg/list';\n      console.log(page);\n      console.log(status);\n      console.log(searchtext);\n      console.log(name);\n      console.log(sorttype);\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype + '&page=' + page_on;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype + '&page=' + page_on;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      //console.log(api_url);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('dtg_lists', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    redirectOnCurrentPageNumber: function (page, status) {\n      var base_url = _environment.default.APP.lumen_api_url + 'dtg/list';\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      }\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        success: function (res) {\n          _this.set('dtg_lists', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/form\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    actions: {\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        if (this.validate()) {\n          var data = {\n            name: this.name,\n            form_code: this.form_code,\n            description: this.description,\n            status: this.status\n          };\n          //\tconsole.log(data);\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('forms.messages.updateForm');\n          } else {\n            data.id = 0;\n            var message = i18n.t('forms.messages.savedForm');\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/form',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                //vali_errors:res.message;\n                _this.set('vali_errors', res.message);\n              } else {\n                //alert(res.form);\n                //var message = i18n.t('forms.messages.savedForm');\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.form.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('forms.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'post',\n              url: _environment.default.APP.lumen_api_url + 'medicine/form/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('forms.messages.formDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').error(message);\n                } else {\n                  var message = i18n.t('forms.messages.formDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        this.getRecords(page, status, searchtext);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var form_name = i18n.t('forms.validationErrorMessage.form_name');\n      var form_code = i18n.t('forms.validationErrorMessage.form_code');\n      var form_status = i18n.t('forms.validationErrorMessage.form_status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', form_name);\n      }\n      if (this.form_code == '' || this.form_code == undefined) {\n        this.errors.add('form_code', form_code);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', form_status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'medicine/form';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'medicine/form?search=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // _this.set('settings/masters/pricegroups' , res);\n          _this.set('forms', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/medicines/instruction\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    actions: {\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        if (this.validate()) {\n          var data = {\n            instruction_name: _this.get('instruction_name'),\n            status: _this.get('status')\n          };\n          if (this.id > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'instruction/instructioncreate',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('instruction.messages.savedInstruction');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('instruction.messages.updateInstruction');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.medicines.instruction.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('forms.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'instruction/instructiondelete',\n              data: {\n                instruction_id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('instruction.messages.instructionDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('instruction.messages.instructionDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var instruction_name = i18n.t('instruction.validationErrorMessage.instruction_name');\n      var instruction_status = i18n.t('instruction.validationErrorMessage.instruction_status');\n      if (this.instruction_name == '' || this.instruction_name == undefined) {\n        this.errors.add('instruction_name', instruction_name);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', instruction_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/medicines/medicine\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n      this.yourArray = [];\n      this.temporaryCheckboxCheckValue = [];\n      //this.selectedPotency_array=[];\n    },\n    actions: {\n      submit: function () {\n        //console.log(\"sdfsd\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var potencygroup = [];\n        var group_arry = [];\n        var potencygroupform = [];\n        var group_variable = $('.card').map(function (index) {\n          var $this = $(this);\n          var jsObjectgroup = {};\n          jsObjectgroup['group_value'] = $this.data('group');\n          return jsObjectgroup;\n        }).get();\n        group_variable.forEach(function (item, index) {\n          var potencychk = $('input.group' + item.group_value + ':checkbox:checked').map(function (index) {\n            var $this = $(this);\n            var jsObjectpp = {};\n            //potency.push($this.val());\n            jsObjectpp['potency'] = $this.val();\n            //jsObjectpp['group'] = item.group_value;\n            var resulst = $('input.potencyform' + $this.val() + ':checkbox:checked').map(function (index) {\n              var $this = $(this);\n              var jsObjectfrrm = {};\n              jsObjectfrrm['form'] = $this.val();\n              jsObjectfrrm['gid'] = $this.data('gid');\n              jsObjectfrrm['fcode'] = $this.data('fcode');\n              return jsObjectfrrm;\n            }).get();\n            //potencygroupform.push(resulst);\n            jsObjectpp['form'] = resulst;\n            return jsObjectpp;\n          }).get();\n          potencygroup.push({\n            group_id: item,\n            potencydata: potencychk\n          });\n          //potencygroup.push({\"group_id\": item,\"potencydata\":potencychk});\n          //potencygroup.push(potencychk);\n          //potencygroupform = new Array();\n        });\n        //\n        console.log(potencygroup);\n        //return false;\n        _this.set('potencygroup', potencygroup);\n        potencygroup = new Array();\n        group_variable = new Array();\n        if (this.validate()) {\n          //return false;\n          var data = {\n            name: _this.get('name'),\n            status: _this.get('status'),\n            id: _this.get('id'),\n            potencygroup: _this.get('potencygroup')\n          };\n          //\tconsole.log(data);\n          // if(_this.get('id') > 0){\n          // \tdata.id = _this.get('id');\n          // }else{\n          // \tdata.id = 0;\n          // }\n          //console.log(data);\n          $.ajax({\n            type: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/singlemedicine',\n            data: data,\n            contentType: 'application/x-www-form-urlencoded',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            dataType: 'json',\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('medicine.messages.savedMedicine');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('medicine.messages.updateMedicine');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.medicines.medicine.list');\n              } else if (res.error == 'nogrouppotency') {\n                var message = i18n.t('medicine.validationErrorMessage.noGroupPotency');\n                Ember.get(_this, 'flashes').danger(message);\n              } else if (res.error == 'nopotencyingroup') {\n                var message = i18n.t('medicine.validationErrorMessage.nopotencyingroup');\n                Ember.get(_this, 'flashes').danger(message);\n              } else if (res.error == 'samemedicine') {\n                if (res.status == \"Inactive\" && res.error == 'samemedicine') {\n                  var message = i18n.t('medicine.validationErrorMessage.InactiveSameMedicine', {\n                    object: res.status\n                  });\n                  //Ember.get(_this, 'flashes').danger(message);\n                  Swal.fire({\n                    icon: 'error',\n                    html: message,\n                    width: 650,\n                    confirmButtonColor: '#3085d6',\n                    confirmButtonText: 'Ok',\n                    allowOutsideClick: false\n                  });\n                } else {\n                  var message = i18n.t('medicine.validationErrorMessage.samemedicine');\n                  //Ember.get(_this, 'flashes').danger(message);\n                  Swal.fire({\n                    icon: 'error',\n                    html: message,\n                    width: 650,\n                    confirmButtonColor: '#3085d6',\n                    confirmButtonText: 'Ok',\n                    allowOutsideClick: false\n                  });\n                }\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      // getRecords: function(page ,status){\n      // \t\t\t\t\tthis.getRecords(page ,status);\n      // \t\t\t},\n      //This below functuion is used for check/unckeck the potency related forms\n      getClearPotency(potency_id, group_id, isChecked) {\n        //console.log(\"potency_id \"+potency_id+ \" group_id \"+group_id+ \" isChecked \"+isChecked);\n        var formclass = 'potency' + potency_id + '_group_form' + group_id;\n        if (isChecked) {\n          $('.' + formclass).attr('disabled', false);\n          //this.get('selectedPotency_array').removeObject(potency_id);\n        } else {\n          $('.' + formclass).attr('disabled', true);\n          //this.get('selectedPotency_array').addObject(potency_id);\n        }\n        var selected = [];\n        var potencyCheckbox = 'potency' + potency_id;\n        var potencyCheck = 'cw-potency' + potency_id;\n        var groupCheck = 'cw-group' + group_id;\n        var groupCheckBox = 'group' + group_id;\n        var classform = 'potency' + potency_id + '_' + 'group' + group_id;\n        var eachunselectPotency = $('input.unselected-potency:checkbox:not(:checked)').map(function () {\n          return $(this).val();\n        }).get();\n        this.set('selectedPotency_array', eachunselectPotency);\n        $('.' + potencyCheckbox + ':checked').each(function () {\n          selected.push($(this).attr('value'));\n        });\n        if (selected.length > 1) {\n          swal({\n            title: \"Potency can't be belongs to multiple groups. If you select this, other group potency will be deselected automatically.\",\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willSelect => {\n            if (willSelect) {\n              $('.' + classform).removeAttr('disabled');\n              $('.' + potencyCheckbox).prop('checked', true);\n              $(\"input[class^='\" + potencyCheckbox + \"']\").prop('checked', true);\n              $('.' + potencyCheck).addClass('uncheckall');\n              $('.' + groupCheck).removeClass('uncheckall');\n              $(\".uncheckall input[class^='\" + potencyCheckbox + \"']\").removeAttr('checked');\n              $(\".uncheckall input[class^='\" + potencyCheckbox + \"']\").prop('checked', false);\n              $('.uncheckall .potencyform' + potency_id).attr('disabled', true);\n              $('.' + classform).attr('checked', true);\n            } else {\n              $('.uncheckall .potencyform' + potency_id).attr('disabled', true);\n              $('.' + classform + '.' + potencyCheckbox).prop('checked', false);\n            }\n          });\n        } else {\n          //console.log(isChecked);\n          if (!isChecked) {\n            $('.' + classform).prop('checked', false);\n            $('.' + classform).removeAttr('checked');\n          } else if (isChecked) {\n            $('.' + classform).prop('checked', true);\n            $('.' + classform).attr('checked', true);\n          }\n        }\n        // console.log(selectedPotency_array);\n        // if(selectedPotency_array.firstObject!=undefined){\n        // \t$.each(selectedPotency_array, function(i,items){\n        // \t\tconsole.log(items);\n        // \t\tvar uncheckpotencyCheckbox = \"potency\"+items;\n        // \t\tvar uncheckpotencyCheck=  \"cw-potency\"+items;\n        // \t\tsetTimeout(function(){\n        // \t\t   $('.'+uncheckpotencyCheckbox).removeAttr(\"checked\");\n        // \t   }, 1000);\n\n        // \t});\n        // }\n      },\n      //This function is used for getting the\n      getClearFormCheckbox(group_id, potency_id, form_id, isChecked) {\n        var classform = 'potency' + potency_id + '_' + 'group' + group_id + '_' + 'form' + form_id;\n        var potencygroup = 'potency' + potency_id + '_' + 'group_form' + group_id;\n        var potencyclass = 'potency' + potency_id + '_' + 'group_potency' + group_id;\n        /*if(!isChecked){\n        $('.'+classform).removeAttr('checked');\n        }else if(isChecked){\n        $('.'+classform).attr('checked', true);\n        }*/\n        //console.log(potencyclass);\n        var searchIDs = $('.' + potencygroup + ':checkbox:checked').map(function () {\n          return $(this).val();\n        }).get();\n        if (searchIDs.length < 1) {\n          $('.' + potencyclass).removeAttr('checked');\n          $('.' + potencyclass).prop('checked', false);\n          $('.potencyform' + potency_id).attr('disabled', true);\n        } else {\n          $('.' + potencyclass).prop('checked', true);\n          $('.' + potencyclass).attr('checked', true);\n        }\n        //  console.log(searchIDs.length);\n        //\tconsole.log(\"Atleast function calll\");//Rahul Khan\n      },\n      setPricegroup(item, name, isChecked) {\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n          this.temporaryCheckboxCheckValue.addObject(item);\n        } else {\n          this.temporaryCheckboxCheckValue.removeObject(item);\n          this.selectedItems.removeObject(item);\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let arr = this.selectedItems;\n        //var reversed = arr.reverse();\n        if (this.id > 0) {\n          var medicine_id = _this.get('id');\n        }\n        var data = {\n          pricegroup: arr\n        };\n        if (arr.length > 0) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/getpotency',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              _this.set('selectedPotency', '');\n              //console.log(res);\n              _this.set('selectedPotency', res);\n              //\tvar total_form = new Array();\n              //\tvar total_potency = new Array();\n              $.each(res, function (key, value) {\n                var group = value.group_id;\n                $.each(value, function (key1, value1) {\n                  $.each(value1.potency, function (key2, potency_value2) {\n                    //console.log(potency_value2.length);\n                    if (potency_value2.length > 0 && potency_value2[0].id != undefined) {\n                      var verificaHorario = $('.' + potency_value2[0].id);\n                      setTimeout(function () {\n                        $('.cw-potency' + potency_value2[0].id).not(':first').addClass('uncheckall');\n                        $(\".uncheckall input[class^='potency\" + potency_value2[0].id + \"']\").removeAttr('checked');\n                        $('.uncheckall .potencyform' + potency_value2[0].id).attr('disabled', true);\n                      }, 1000);\n                    }\n                  });\n                });\n              });\n\n              //added by shubh tiwari 29 Nov 2019\n              //get potecy of selected price group\n              if (medicine_id != undefined) {\n                var data = {\n                  pricegroup: arr,\n                  medicine_id: medicine_id\n                };\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'medicine/getselectedpotencyformpost',\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (presult) {\n                    $('[class^=potency]').removeAttr('checked');\n                    var selected_potency = new Array();\n                    //   $.each(presult, function (i) {\n                    console.log(presult);\n                    if (presult.firstObject != undefined) {\n                      $.each(presult, function (key, groupValue) {\n                        var current_group_id = groupValue.group.group_id;\n                        //alert(presult);\n                        var remainig_group = arr.filter(function (elem) {\n                          return elem != current_group_id;\n                        });\n                        $.each(remainig_group, function (key, item) {\n                          $('.groupcheck' + item).attr('checked', true);\n                        });\n                        $.each(groupValue.group.potency, function (key, potency) {\n                          //console.log(potency.potency_id);\n                          var current_potency_id = potency.potency_id;\n                          $.each(potency.form, function (key, form) {\n                            // console.log(form.form_id)\n                            var current_form_id = form.form_id;\n                            // potency5_group11_form3\n                            //   $(\"div[class^='cw-potency']\").addClass(\"uncheckall\");\n                            // $( \".cw-potency\"+current_potency_id).addClass(\"uncheckall\");\n                            $('.potencyform' + current_potency_id).attr('disabled', true);\n                            // $().attr('disabled', true);\n                            // potency4_group_form10\n                            var formselectClass = 'potency' + current_potency_id + '_group' + current_group_id + '_form' + current_form_id;\n                            var potencyClass = 'potency' + current_potency_id + '_group_potency' + current_group_id;\n                            var potencySelectClass = 'potency' + current_potency_id + '_group_potency' + current_group_id;\n                            var formClass = 'potency' + current_group_id + '_group_form' + current_form_id;\n                            var formSelectClass = 'potency' + current_potency_id + '_group_form' + current_group_id;\n                            // console.log(formSelectClass);\n                            // $( \".cw-potency\"+current_potency_id).removeClass(\"uncheckall\");\n                            $('.' + formSelectClass).removeAttr('disabled');\n                            //  $('.'+formClass).attr('disabled', true);\n                            if ($.inArray(current_group_id, arr) != -1) {\n                              $('.' + formselectClass).attr('checked', true);\n                              $('.' + potencyClass).attr('checked', true);\n                            }\n                          });\n                        });\n                      });\n                    } else {\n                      $('[class^=potency]').attr('checked', true);\n                    }\n                  }\n                });\n              }\n              //end\n            },\n            complete: function () {\n              var storeselect_array = _this.get('selectedPotency_array');\n              console.log(storeselect_array);\n              $.each(storeselect_array, function (index, items) {\n                setTimeout(function () {\n                  var potencyClass = 'potency' + items;\n                  var potencyFormClass = 'potencyform' + items;\n                  $('.' + potencyClass).removeAttr('checked');\n                  $('.' + potencyFormClass).removeAttr('checked');\n                  $('.' + potencyFormClass).attr('disabled', true);\n                }, 250);\n              });\n            }\n          });\n        } else {\n          _this.set('selectedPotency', '');\n          _this.set('selectedPotency_array', '');\n        }\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var message = i18n.t('forms.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'medicine/singledelete',\n              data: {\n                medicine_id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('medicine.messages.medicineDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('medicine.messages.medicineDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              complete: function () {\n                //_this.getRecords();\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      // search: function(page ,status){\n      // \tvar searchtext = this.get('query_string');\n      // \tthis.getRecords(page ,status, searchtext );\n      //       },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var medicine_name = i18n.t('medicine.validationErrorMessage.medicine_name');\n      var pricegroup = i18n.t('medicine.validationErrorMessage.pricegroup');\n      var potency = i18n.t('medicine.validationErrorMessage.potency');\n      var medicine_status = i18n.t('medicine.validationErrorMessage.medicine_status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', medicine_name);\n      }\n      if (this.selectedItems.length == 0 || this.selectedItems == undefined) {\n        this.errors.add('pricegroup', pricegroup);\n      }\n      // else if(this.get('selectedItems').length>0){\n      // \t\tif(this.get('potencygroup').length==0 || this.get('potencygroup') == undefined ){\n      // \t\t\tthis.get('errors').add(\"pricegroup1\", potency);\n      // \t\t}\n      // }\n      /*This below validation is used for make sure every group shuold have at least one potency and form combo, Rahul Khan, 26 July 2019 */\n      $('.card').removeClass('zeropotencygroup');\n      var potencygroupArray = this.potencygroup;\n      console.log(potencygroupArray);\n      var _this = this;\n      potencygroupArray.forEach(function (item, index) {\n        if (item.potencydata.length == 0) {\n          _this.get('errors').add('pricegroup1', potency);\n          $(\"[data-group^='\" + item.group_id.group_value + \"']\").addClass('zeropotencygroup');\n          //_this.set('potencygroupNotSelected', item.group_id.group_value );\n        }\n      });\n\n      // if(this.get('potencygroupNotSelected') > 0 ){\n      // \tthis.get('errors').add(\"pricegroup1\", potency);\n      // \t$(\"[data-group^='\"+this.get('potencygroupNotSelected')+\"']\").addClass(\"zeropotencygroup\");\n      // }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', medicine_status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    find_duplicate_in_array: function (arra1) {\n      const object = {};\n      const result = [];\n      arra1.forEach(item => {\n        if (!object[item]) object[item] = 0;\n        object[item] += 1;\n      });\n      for (const prop in object) {\n        if (object[prop] >= 2) {\n          result.push(prop);\n        }\n      }\n      return result;\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/medicines/mix\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n    },\n    actions: {\n      submit: function (page) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var mixture_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).val();\n        }).get();\n        var mixture_medicine_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).data('med');\n        }).get();\n        var mixture_potency_form_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).data('poten');\n        }).get();\n        var forms_id = $('.mixform:checked').map(function () {\n          var form_code = $(this).attr('data-form_code');\n          var form_id = $(this).val();\n          var combination = form_code + '_' + form_id;\n          return combination;\n        }).get();\n        /*var  mixture_form_val= $(\"select[name=\\'mix_medicine_mixture_form[]\\']\").map(function() {\n        return $(this).val();\n        }).toArray();*/\n        if (this.validate(page)) {\n          var data = {\n            mix_medicine_name: _this.get('mix_medicine_name'),\n            status: _this.get('status')\n          };\n          if (this.id > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          if (forms_id.length > 0) {\n            data.forms_id = forms_id;\n          }\n          if (mixture_values.length > 0) {\n            data.medicine_mixture = mixture_values;\n          }\n\n          /*if(mixture_form_val.length>0){\n          data.medicine_mixture_form = mixture_form_val;\n          }*/\n          // for medicine id\n          if (mixture_medicine_values.length > 0) {\n            data.mixture_medicine_id = mixture_medicine_values;\n          }\n\n          // for potency id\n          if (mixture_potency_form_values.length > 0) {\n            data.mixture_potency_form_id = mixture_potency_form_values;\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicinecreate',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('mixmedicine.messages.savedMixmedicine');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('mixmedicine.messages.updateMixmedicine');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.medicines.mix.list');\n              } else if (res.error == 'atleasttwomedicine') {\n                var message = i18n.t('mixmedicine.validationErrorMessage.atleasttwomedicine');\n                Ember.get(_this, 'flashes').danger(message);\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      /*\n          removeRow:function (removeNum){\n                  if(removeNum == 1 || removeNum == 2){\n      \tswal(\"Cannot delete this row, If add other medicine than click on Clear button to clear existing data\");\n                      return false;\n                  }else{ \n                      jQuery('#mixmedicineAdd'+removeNum).remove(); \n                  }\n              \n      } ,*/\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('forms.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixdelete',\n              data: {\n                mix_id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('mixmedicine.messages.mixmedicineDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('mixmedicine.messages.mixmedicineDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              complete: function () {\n                //_this.getRecords();\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      //This below function is used for getting the all possible Forms for medicines which used in Mix. Rahul khan, 10 Sept 2019\n      getmixForms: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var midicinePotencty = [];\n        // var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n        $(\"[id^='medicine_mixture-']\").each(function () {\n          {\n            var id = $(this).attr('id');\n            var potency = $('#' + id).attr('data-poten');\n            var medicine = $('#' + id).attr('data-med');\n            var value = $('#' + id).val();\n            var combination = medicine + '_' + potency;\n            if (potency != undefined && medicine != undefined && value != '') {\n              midicinePotencty.push(combination);\n            }\n          }\n          //return this.val;\n        });\n        var mixture_medicine_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).data('med');\n        }).get();\n        var midicinePotencty = JSON.stringify(midicinePotencty);\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'mixmedicine/forms',\n          data: {\n            data: midicinePotencty\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            $('#mixforms').empty();\n            if (response.error) {\n              _this.set('errors', _emberData.default.Errors.create());\n              _this.get('errors').add('mix_forms', response.message);\n            } else {\n              _this.set('errors', '');\n              response.forEach(function (form) {\n                var formDiv = '<div class=\"col-offset-xs-1 col-xs-1\"> <input type=\"checkbox\" class=\"mixform mixform-' + form.form_code + '\" name=\"form\" data-form_code=\"' + form.form_code + '\" value=\"' + form.id + '\"> ' + form.name + ' </div>';\n                $('#mixforms').append(formDiv);\n              });\n            }\n          }\n        });\n      }\n    },\n    //This is the validation block, 09 Aug 2019, Rahul Khan\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var medicine_name = i18n.t('mixmedicine.validationErrorMessage.medicine_name');\n      var mixformMessage = i18n.t('mixmedicine.validationErrorMessage.mixform');\n      var mix_status = i18n.t('mixmedicine.validationErrorMessage.medicine_status');\n      var mixture_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n        return $(this).val();\n      }).get();\n      var forms_id = $('.mixform:checked').map(function () {\n        var form_code = $(this).attr('data-form_code');\n        var form_id = $(this).val();\n        var combination = form_code + '_' + form_id;\n        return combination;\n      }).get();\n      if ($.trim(this.mix_medicine_name) == '' || $.trim(this.mix_medicine_name) == undefined) {\n        this.errors.add('mix_medicine_name', medicine_name);\n      }\n      var duplicateMedicineArray = [];\n      var notSameForm = [];\n      var notMedicineNotSet = [];\n      var notMedicineFormNotSet = [];\n      for (var i = 0; i < mixture_values.length; i++) {\n        var sr = i + 1;\n        //This below condition is used for checking, is form of medicines are same or not, Rahul Khan , 09 Aug 2019\n        var Formvalue = $('#mix_medicine_mixture_form-' + sr + ' option:selected').text().trim();\n        if (i == 0) {\n          var firstFormvalue = $('#mix_medicine_mixture_form-' + sr + ' option:selected').text().trim();\n        }\n        if (firstFormvalue != Formvalue && firstFormvalue != 'Select Form' && Formvalue != 'Select Form') {\n          notSameForm.push(Formvalue);\n          swal('Forms are not same!', 'The mix must have the same \"Forms\" for all selected medicines.', 'warning');\n          $(\"[id^='mix_medicine_mixture_form']\").addClass('duplicate_serial');\n          $(\"[id^='mix_medicine_mixture_form']\").attr('title', 'Form is not same as other medicine.');\n          this.errors.add('medicine_status', 'set');\n        }\n        //End code here which added for different forms\n        var medicine_duplicate = i18n.t('mixmedicine.validationErrorMessage.medicine_duplicate');\n\n        //This below code is used for checking the duplicate medcine, Rahul Khan, 09 Aug 2019\n        //var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n        //var currentMedicine= $(\"#medicine_mixture-\"+sr).attr('data-medicine').trim();\n        var currentMedicine = $('#medicine_mixture-' + sr).attr('data-medicine');\n        $(\"[id^='medicine_mixture-']\").map(function () {\n          var currentid = this.id;\n          var current_med = $(this).attr('data-medicine');\n          var idnum = currentid.replace('medicine_mixture-', '');\n          if (current_med == currentMedicine && idnum != sr && current_med != '') {\n            duplicateMedicineArray.push(idnum);\n            return idnum;\n          }\n        }).get();\n\n        //Code here for checking the duplicate medicine\n        //This below line is added for the getting the medicine_status attribute value to validate the medicine is added or not, Rahul Khan. 09 Aug 2019\n        var medicine_status = $('#medicine_mixture-' + sr).attr('medicine_status'); //\n        var medicine_mixture_name = i18n.t('mixmedicine.validationErrorMessage.medicine_select', {\n          object: sr\n        });\n        var medicineform_name = i18n.t('mixmedicine.validationErrorMessage.medicineform_select', {\n          object: sr\n        });\n        //This code is used for checking the medicine validation required\n        if ($.trim($('#medicine_mixture-' + sr).val()) == '' || $.trim($('#medicine_mixture-' + sr).val()) == undefined || medicine_status == 'notset') {\n          $('.mix-hightlight' + sr).text(medicine_mixture_name);\n          $('.mix-hightlight' + sr).parent().addClass('has-error');\n          notMedicineNotSet.push(sr);\n          //This below line is used for show and hide the listing page, Rahul Khan, Aug 2019\n          $('#results' + sr + ' .medicine-list').css('display', 'none');\n          $('.mix-hightlight' + sr).text(medicine_mixture_name);\n          this.errors.add('medicine_status', 'set');\n        }\n        //This below code of medicine is added for checking corresponsing the form is selected or not, Rahul Khan, 19 Aug 2019\n        /*$('#mix_medicine_mixture_form-'+sr).next('.mix-hightlight'+sr).remove();\n        $('#mix_medicine_mixture_form-'+sr).removeClass('has-error');\n        if($.trim($(\"#mix_medicine_mixture_form-\"+sr).val())=='' || $.trim($(\"#mix_medicine_mixture_form-\"+sr).val()) == undefined){\n        \t//$('#mix_medicine_mixture_form-'+sr).text(medicine_mixture_name);\n        \t$('#mix_medicine_mixture_form-'+sr).addClass('has-error');\n        \t$( \"<span class='mix-hightlight\"+sr+\"'>\"+medicineform_name+\"</span>\" ).insertAfter( \"#mix_medicine_mixture_form-\"+sr );\n        \tnotMedicineFormNotSet.push(sr);\n        }*/\n      }\n\n      /*\tif(notSameForm.length == 0){\n      \t\t\t$(\"[id^='mix_medicine_mixture_form']\").removeClass(\"duplicate_serial\");\n      \t\t\t$(\"[id^='mix_medicine_mixture_form']\").attr(\"title\", \"\");\n      \t\t}*/\n\n      if (duplicateMedicineArray.length == 0 && notMedicineNotSet.length == 0) {\n        $(\"[class^='mix-hightlight']\").text('');\n        $(\"[class^='mix-hightlight']\").parent().removeClass('has-error');\n      } else {\n        this.errors.add('medicine_status', 'set');\n      }\n      duplicateMedicineArray.forEach(function (item) {\n        $('.mix-hightlight' + item).text(medicine_duplicate);\n        $('.mix-hightlight' + item).parent().addClass('has-error');\n      });\n      if (forms_id.length == 0) {\n        this.errors.add('mix_forms', mixformMessage);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', mix_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/medicines/template\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n      this.formdata = [];\n    },\n    actions: {\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var template_mixture_no_values = $(\"input[name='template_mixture_no[]']\").map(function () {\n          return $(this).val();\n        }).get();\n        var template_mixture_values = $(\"input[name='template_mixture[]']\").map(function () {\n          return $(this).val();\n        }).get();\n        var mixture_medicine_values = $(\"input[name='template_mixture[]']\").map(function () {\n          return $(this).data('med');\n        }).get();\n        var mixture_potency_form_values = $(\"input[name='template_mixture[]']\").map(function () {\n          return $(this).data('poten');\n        }).get();\n        var data_type = $(\"input[name='template_mixture[]']\").map(function () {\n          return $(this).data('type');\n        }).get();\n        var template_mixture_form_val = $(\"select[name='template_mixture_form[]']\").map(function () {\n          return $(this).val();\n        }).toArray();\n        var template_medicine_instruction_val = $(\"select[name='template_medicine_instruction[]']\").map(function () {\n          return $(this).val();\n        }).toArray();\n\n        /*This below line of code is used to get all the template medicine serial number field values, Shubh Tiwari as 02 March 2020 */\n        var serialFeilds = $('.srnoItem');\n        var medicineSerialFeilds = $.map(serialFeilds, function (element) {\n          return {\n            id: element.id,\n            value: element.value\n          };\n        });\n\n        /*This below line of code is used to get all the template medicine name field values, Shubh Tiwari as 02 March 2020 */\n        var medicineFeilds = $('.textinput');\n        var medicineVariantFeilds = $.map(medicineFeilds, function (element) {\n          return {\n            id: element.id,\n            value: element.value\n          };\n        });\n        /*This below line of code is used to get all the template medicine form field values, Shubh Tiwari as 02 March 2020 */\n        var formFeilds = $('.medicine_form');\n        var medicineFormFeilds = $.map(formFeilds, function (element) {\n          return {\n            id: element.id,\n            value: element.value\n          };\n        });\n        /*This below line of code is used to get all the template medicine form field values, Shubh Tiwari as 02 March 2020 */\n        var instructionFeilds = $('.cware_other');\n        var medicineInstructionFeilds = $.map(instructionFeilds, function (element) {\n          return {\n            id: element.id,\n            value: element.value\n          };\n        });\n        if (this.validate(medicineSerialFeilds, medicineVariantFeilds, medicineFormFeilds, medicineInstructionFeilds)) {\n          var data = {\n            medicineTempName: _this.get('template_name'),\n            pharmacy_instruction: _this.get('template_pharmacy_instruction'),\n            status: _this.get('status')\n          };\n          if (this.id > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          // for mixture data type\n          if (data_type.length > 0) {\n            data.data_type = data_type;\n          }\n          // for mixture no data\n          if (template_mixture_no_values.length > 0) {\n            data.template_mixture_no = template_mixture_no_values;\n          }\n          //for mixture name\n          if (template_mixture_values.length > 0) {\n            data.template_mixture_name = template_mixture_values;\n          }\n          // for mixture form id\n          if (template_mixture_form_val.length > 0) {\n            data.template_mixture_form_id = template_mixture_form_val;\n          }\n\n          // for mixture instruction id\n          if (template_medicine_instruction_val.length > 0) {\n            data.template_mixture_instruction_id = template_medicine_instruction_val;\n          }\n          // for medicine mixture medicine id\n          if (mixture_medicine_values.length > 0) {\n            data.mixture_medicine_id = mixture_medicine_values;\n          }\n\n          // for medicine mixture potency id\n          if (mixture_potency_form_values.length > 0) {\n            data.mixture_potency_form_id = mixture_potency_form_values;\n          }\n          console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempmedicinecreate',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n                var html = '';\n                if (res.message.template_mixture_name != undefined) {\n                  html += '<div class=\"row \">';\n                  html += '<div class=\"col-xs-3\"></div>';\n                  html += '<div class=\"col-xs-5\">';\n                  html += '<ul class=\"list-group\">';\n                  html += '<li class=\"list-group-item list-group-item-danger\">' + res.message.template_mixture_name + '</li>';\n                  html += '</ul>';\n                  html += '</div>';\n                  html += '</div>';\n                  $('.message').html(html);\n                } else {\n                  $('.message').html('');\n                }\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('templatemedicine.messages.savedTempmedicine');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('templatemedicine.messages.updateTempmedicine');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.medicines.template.list');\n              } else if (res.error == 'atleasttwomedicine') {\n                var message = i18n.t('templatemedicine.validationErrorMessage.atleasttwomedicine');\n                Ember.get(_this, 'flashes').danger(message);\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      setDropdownId: function (id) {\n        var html = '';\n        html += '<input type=\"hidden\" value=\"' + id + '\" id=\"' + id + '\">';\n        $('#otherinstructionid').append(html);\n      },\n      removeRow: function (removeNum) {\n        if (removeNum == 1) {\n          swal('Cannot delete this row, If add other medicine than click on Clear button to clear existing data');\n          return false;\n        } else {\n          jQuery('#templateAdd' + removeNum).remove();\n        }\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('templatemedicine.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempdelete',\n              data: {\n                template_id: id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('templatemedicine.messages.tempmedicineDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('templatemedicine.messages.tempmedicineDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      getCheckedVaue: function (checkbox_checked_vaue) {\n        var html = '';\n        html += '<table id=\"cwaretemplatecombo\" class=\"table table-bordered table-hover\"><thead><th width=\"10%\">S.No.</th><th width=\"90%\">Medicine Name</th></thead><tbody>';\n        for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n          var medicine = $('#template_mixture-' + checkbox_checked_vaue[i]).val();\n          var srno = $('#template_mixture_no-' + checkbox_checked_vaue[i]).val();\n          html += '<tr><td class=\"rowvalue\" id=\"' + checkbox_checked_vaue[i] + '\">' + srno + '</td><td style=\"text-align:left\">' + medicine + '</td></tr>';\n        }\n        html += '</tbody></table>';\n        $('#selectedtemplatedosage').append(html);\n      },\n      templateInstructionSubmit: function (event) {\n        $('#template_dosage_instruction').empty();\n        var error = '';\n        var dosage_val = $('#template_dosage_instruction').val();\n        if (dosage_val == '') {\n          error += '<p>Enter Pharmacy Instruction</p>';\n          $('#template_dosage_instruction').focus();\n        }\n        if (error == '') {\n          $('#cwTemplateComboInstruction').modal('hide');\n          $('.check').prop('checked', false);\n          var serial_id_array = $('#cwaretemplatecombo').find('.rowvalue').map(function () {\n            return $(this).attr('id');\n          }).get();\n          for (var j = 0; j < serial_id_array.length; j++) {\n            $('#template_medicine_instruction-' + serial_id_array[j]).removeClass('has-error');\n            var cc = $('.cwareinstruction-' + serial_id_array[j] + ' ' + 'option:selected').val();\n            if (Ember.typeOf(cc) == 'string') {\n              $('.cwareinstruction-' + serial_id_array[j] + ' ' + 'option:selected').remove();\n            }\n            $('#template_medicine_instruction-' + serial_id_array[j]).append(\"<option selected=selected value='\" + dosage_val + \"' >\" + dosage_val + '</option>');\n          }\n          $('#template_dosage_instruction').val('');\n        } else {\n          $('#tempdosageerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#tempdosageerror .alert').fadeToggle(10000);\n        }\n      },\n      OtherInstructionSubmit: function (event) {\n        $('#other_instruction').empty();\n        var error = '';\n        var other_val = $('#other_instruction').val();\n        if (other_val == '') {\n          error += '<p>Please enter other instruction</p>';\n          $('#other_instruction').focus();\n        }\n        if (error == '') {\n          $('#OtherInstruction').modal('hide');\n          var insid = $('#otherinstructionid :input').val();\n          var other_value = $('.iother-' + insid + ' ' + 'option:selected').val();\n          if (other_value == 1) {\n            $('.iother-' + insid).append(\"<option selected=selected value='\" + other_val + \"' >\" + other_val + '</option>');\n          }\n          $('#other_instruction').val('');\n        } else {\n          $('#othererror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#othererror .alert').fadeToggle(8000);\n        }\n      }\n    },\n    validate: function (serialNumber, medicineField, formFeilds, instructionFeilds) {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var template_name = i18n.t('templatemedicine.validationErrorMessage.template_name');\n      var template_pharmacy_instruction = i18n.t('templatemedicine.validationErrorMessage.template_pharmacy_instruction');\n      var template_status = i18n.t('templatemedicine.validationErrorMessage.template_status');\n      if (this.template_name == '' || this.template_name == undefined) {\n        this.errors.add('template_name', template_name);\n      }\n\n      // if(this.get('template_pharmacy_instruction')=='' || this.get('template_pharmacy_instruction') == undefined ){\n      //     this.get('errors').add(\"template_pharmacy_instruction\", template_pharmacy_instruction);\n      // }\n      serialNumber.forEach(function (serial, index) {\n        if (serial.value == '' || serial.value < 0) {\n          var med = serial.id.replace(/[^\\d.]/g, '');\n          //$('#templateAdd'+med).addClass('has-error');\n          $('.serial-hightlight' + med).html(\"<span class='help-block'>Please enter Med \" + med + ' serial number</span>');\n        } else {\n          $('.serial-hightlight' + med).html('');\n        }\n      });\n      medicineField.forEach(function (medicine, index) {\n        if (medicine.value == '' || medicine.value < 0) {\n          var med = medicine.id.replace(/[^\\d.]/g, '');\n          //$('#templateAdd'+med).addClass('has-error');\n          $('.medicine-hightlight' + med).html(\"<span class='help-block'>Please enter Med \" + med + '</span>');\n        } else {\n          $('.medicine-hightlight' + med).html('');\n        }\n      });\n      formFeilds.forEach(function (form, index) {\n        if (form.value == '' || form.value < 0) {\n          var med = form.id.replace(/[^\\d.]/g, '');\n          $('.form-hightlight' + med).html(\"<span class='help-block'>Please select Med form \" + med + '</span>');\n        } else {\n          $('.form-hightlight' + med).html('');\n        }\n      });\n      instructionFeilds.forEach(function (Instruction, index) {\n        if (Instruction.value == '' || Instruction.value < 0) {\n          var med = Instruction.id.replace(/[^\\d.]/g, '');\n          $('.instruction-hightlight' + med).html(\"<span class='help-block'>Please select Med Instruction \" + med + '</span>');\n        } else {\n          $('.instruction-hightlight' + med).html('');\n        }\n      });\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', template_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/menu\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"@ember/service\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    menu: Ember.inject.service('menu'),\n    actions: {\n      clicky(value) {\n        this.set('menu_status', value);\n        this.set('Active', $('checked[name=menu_status]').val());\n        this.set('Inactive', $('checked[name=menu_status]').val());\n        console.log(value);\n      },\n      setMenuCategory: function (selected) {\n        this.set('menu_category', selected);\n      },\n      setMenuHome: function (selected) {\n        this.set('menu_ishome', selected);\n      },\n      submit(page) {\n        var _this = this;\n        let i18n = this.i18n;\n        var utoken = _this.get('session').getToken();\n        if (this.validate()) {\n          var data = {\n            menu_category: _this.get('menu_category'),\n            menu_name: _this.get('menu_name'),\n            menu_alias: _this.get('menu_alias'),\n            menu_icon: _this.get('menu_icon'),\n            menu_view: _this.get('menu_view'),\n            menu_ishome: _this.get('menu_ishome'),\n            menu_ordering: _this.get('menu_ordering'),\n            menu_status: _this.get('menu_status'),\n            api_token: utoken\n          };\n          if (this.id > 0) {\n            data.id = this.id;\n          } else {\n            data.id = 0;\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'menu',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('menus.messages.savedMemu');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('menus.messages.updateMenu');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.menu.list');\n              }\n            }\n          });\n        }\n      },\n      menu_delete(menu_id, $name) {\n        this.menu.deleteMenu(menu_id, $name);\n      },\n      getMenu: function (page, status) {\n        this.getMenu(page, status);\n      },\n      search_menu: function (page, status) {\n        var searchtext = this.query_string;\n        this.getMenu(page, status, searchtext);\n      }\n    },\n    getMenu: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'menu';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'menu?query_string=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('menus', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var menu_name = i18n.t('menus.validationErrorMessage.menu_name');\n      var menu_alias = i18n.t('menus.validationErrorMessage.menu_alias');\n      var menu_icon = i18n.t('menus.validationErrorMessage.menu_icon');\n      var menu_ishome = i18n.t('menus.validationErrorMessage.menu_ishome');\n      var menu_status = i18n.t('menus.validationErrorMessage.menu_status');\n      if (this.menu_name == '' || this.menu_name == undefined) {\n        this.errors.add('menu_name', menu_name);\n      }\n      if (this.menu_alias == '' || this.menu_alias == undefined) {\n        this.errors.add('menu_alias', menu_alias);\n      }\n      if (this.menu_icon == '' || this.menu_icon == undefined) {\n        this.errors.add('menu_icon', menu_icon);\n      }\n      if (this.menu_ishome == '' || this.menu_ishome == undefined) {\n        this.errors.add('menu_ishome', menu_ishome);\n      }\n      if (this.menu_status == '' || this.menu_status == undefined) {\n        this.errors.add('menu_status', menu_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/organ\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n    },\n    actions: {\n      submit: function () {\n        //console.log(\"ggs\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        //console.log(this.validate());\n        if (this.validate()) {\n          var data = {\n            name: this.name.trim(),\n            system: this.selectedItems,\n            status: this.status\n          };\n          //console.log(data);\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('organ.messages.updateOrgan');\n          } else {\n            data.id = 0;\n            var message = i18n.t('organ.messages.savedOrgan');\n          }\n          //console.log(data);\n          if (this.status == 2) {\n            Swal.fire({\n              text: 'Warning: Deactivating a System or Organ will also deactivate all diseases related to them. Are you sure you want to proceed?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, save it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                //console.log(data);\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'organ',\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    if (res.error) {\n                      //vali_errors:res.message;\n                      _this.set('vali_errors', res.message);\n                    } else {\n                      //alert(res.form);\n                      //var message = i18n.t('forms.messages.savedForm');\n                      Ember.get(_this, 'flashes').success(message);\n                      _this.transitionToRoute('settings.masters.organ.list');\n                    }\n                  },\n                  complete: function (res) {\n                    console.log('Execution complete');\n                  }\n                });\n              }\n            });\n          } else {\n            //console.log(data);\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'organ',\n              data: data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  _this.set('vali_errors', res.message);\n                } else {\n                  //alert(res.form);\n                  //var message = i18n.t('forms.messages.savedForm');\n                  Ember.get(_this, 'flashes').success(message);\n                  _this.transitionToRoute('settings.masters.organ.list');\n                }\n              },\n              complete: function (res) {\n                console.log('Execution complete');\n              }\n            });\n          }\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('organ.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'organ/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('organ.messages.organDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('organ.messages.organDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        this.set('vali_errors', '');\n        var searchtext = this.query_string;\n        var name = $('input.name').val();\n        var system = this.selectedsystem;\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && (system == undefined || system == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype, system);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      },\n      selectSystem(item, isChecked) {\n        if (item == undefined) {\n          item = $('.systemlist').children('option:selected').val();\n        }\n        this.set('selectedsystem', item);\n        // console.log(isChecked);\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n        console.log(this.selectedItems);\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var name = i18n.t('organ.validationErrorMessage.name');\n      var system = i18n.t('organ.validationErrorMessage.system_required');\n      var status = i18n.t('organ.validationErrorMessage.status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', name);\n      }\n      if (this.selectedItems == '' || this.selectedItems == undefined) {\n        this.errors.add('system', system);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype, system) {\n      //console.log(\"page=>\"+page+\"status=>\"+status+\"searchtext=>\"+searchtext+\"name=>\"+name+\"sorttype=>\"+sorttype);\n      //return false\n      var base_url = _environment.default.APP.lumen_api_url + 'organ';\n      //var url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (system != '' && system != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&system=' + system;\n        } else {\n          var base_url = base_url + '?system=' + system;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('organs', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/outcomesuom/outcomesuom\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    actions: {\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        if (this.validate()) {\n          var nameobj = this.name;\n          var name = nameobj.trim();\n          var data = {\n            name: name,\n            status: this.status\n          };\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('outcomesuom.messages.updateUnit');\n          } else {\n            data.id = 0;\n            var message = i18n.t('outcomesuom.messages.savedUnit');\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'outcomesuom',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error) {\n                _this.set('vali_errors', res.message);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.outcomesuom.list');\n              }\n            },\n            complete: function (res) {\n              console.log('Execution complete');\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('outcomesuom.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'outcomesuom/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  var message = i18n.t('outcomesuom.messages.unitDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('outcomesuom.messages.unitDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        //this.set('vali_errors', '');\n        var searchtext = this.query_string;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        //var searchtext = searchtext.trim();\n\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var name = i18n.t('outcomesuom.validationErrorMessage.name');\n      var status = i18n.t('outcomesuom.validationErrorMessage.status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', name);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype) {\n      var base_url = _environment.default.APP.lumen_api_url + 'outcomesuom';\n      //\tvar url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('units', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/permissions\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init: function () {\n      this._super(...arguments);\n      //var theController = App.theController.create();\n      //this.send('getPricegroup', 1);\n    },\n    actions: {\n      clicky(value) {\n        this.set('permission_status', value);\n        this.set('Active', $('checked[name=permission_status]').val());\n        this.set('Inactive', $('checked[name=permission_status]').val());\n        console.log(value);\n      },\n      setPermissionCategory() {\n        var permission_category = $('select[name=permission_category]').val();\n        this.set('permission_category', permission_category);\n      },\n      setMenuHome: function (selected) {\n        this.set('menu_ishome', selected);\n      },\n      submit(page) {\n        var _this = this;\n        let i18n = this.i18n;\n        var utoken = _this.get('session').getToken();\n        if (this.validate()) {\n          var data = {\n            permission_category: _this.get('permission_category'),\n            permission_name: _this.get('permission_name'),\n            full_name: _this.get('full_name'),\n            permission_description: _this.get('permission_description'),\n            menu_alias: _this.get('menu_alias'),\n            menu_ishome: _this.get('menu_ishome'),\n            menu_ordering: _this.get('menu_ordering'),\n            menu_icon: _this.get('menu_icon'),\n            permission_status: _this.get('permission_status'),\n            api_token: utoken\n          };\n          if (_this.get('id') > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'permissions',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            data: data,\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('permission.messages.savedPermission');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('permission.messages.updatePermission');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.permissions.list');\n              }\n            }\n          });\n        }\n      },\n      permission_delete(permission_id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let message = i18n.t('branch.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'permissions/delete',\n              data: {\n                permission_id: permission_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('permission.messages.permissionDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('permission.messages.permissionDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              error: function (res) {},\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      getPermissions: function (page, status) {\n        this.getPermissions(page, status);\n      },\n      search_permission: function (page, status) {\n        var searchtext = this.query_string;\n        this.getPermissions(page, status, searchtext);\n        //console.log(this.get('query_string'));\n      }\n    },\n    getPermissions: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'permissions';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'permissions?query_string=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('permissions', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var permission_name = i18n.t('permission.validationErrorMessage.permission_name');\n      var full_name = i18n.t('permission.validationErrorMessage.full_name');\n      var permission_status = i18n.t('permission.validationErrorMessage.permission_status');\n      if (this.permission_name == '' || this.permission_name == undefined) {\n        this.errors.add('permission_name', permission_name);\n      }\n      if (this.full_name == '' || this.full_name == undefined) {\n        this.errors.add('full_name', full_name);\n      }\n      if (this.permission_status == '' || this.permission_status == undefined) {\n        this.errors.add('permission_status', permission_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/permissions/category\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init: function () {\n      this._super(...arguments);\n      //var theController = App.theController.create();\n      // this.send('getPricegroup', 1);\n    },\n    actions: {\n      submit(page) {\n        var _this = this;\n        var utoken = this.session.getToken();\n        if (this.validate()) {\n          var data = {\n            category_name: _this.get('category_name')\n          };\n          if (_this.get('id') > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'permissionscategory',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                //console.log(res.message);\n                _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                Ember.get(_this, 'flashes').success(res.category);\n                _this.transitionToRoute('settings.masters.permissions.category.list');\n              }\n            }\n          });\n        }\n      },\n      permission_category_delete(category_id, $name) {\n        let utoken = this.session.getToken();\n        var r = confirm('Are you sure you want delete category ' + $name + ' ?');\n        if (r == true) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'permissionscategory/delete',\n            data: {\n              category_id: category_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == false) {\n                //alert(res.category);\n                Ember.get(_this, 'flashes').success(res.category);\n              } else if (res.error == true) {\n                //alert(res.category);\n                Ember.get(_this, 'flashes').danger(res.category);\n              }\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                window.location.reload();\n              }, 500);\n            }\n          });\n        }\n      },\n      getCategory: function (page, status) {\n        this.getCategory(page, status);\n      }\n    },\n    getCategory: function (page, status) {\n      var base_url = _environment.default.APP.lumen_api_url + 'permissionscategory';\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('categories', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      if (this.category_name == '' || this.category_name == undefined) {\n        this.errors.add('category_name', \"Category name can't be empty\");\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/potency\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n    },\n    actions: {\n      submit: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        var commbovali = 'TEST';\n        if (this.validate()) {\n          //if(true){\n          var data = {\n            name: this.name,\n            dilution: this.dilution,\n            pricegroup: this.selectedItems,\n            ordering: commbovali,\n            status: this.status\n            //pricegroup_id:this.get('pricegroup_id')\n          };\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('potency.messages.updatePotency');\n          } else {\n            data.id = 0;\n            var message = i18n.t('potency.messages.savedPotency');\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/potency',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              console.log(res.message);\n              if (res.error) {\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  var errorMessages = [];\n                  $.each(value, function (key1, value1) {\n                    if (key == 'ordering') {\n                      //var errorMessage = _this.get('name')+ \" potency is already added with \"+ _this.get('dilution') + \" dilution\";\n                      //potencyDilution\n                      var errorMessage = i18n.t('potency.validationErrorMessage.potencyDilution');\n                      errorMessages.push(errorMessage);\n                      key = 'dilution';\n                    }\n                    //errorMessages.push(errorMessage);\n                  });\n                  reponse[key] = errorMessages;\n                });\n                _this.set('vali_errors', reponse);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.potency.list');\n              }\n            },\n            complete: function (res) {\n              //this.getItems(page, status);\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('potency.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'post',\n              url: _environment.default.APP.lumen_api_url + 'medicine/potency/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  var message = i18n.t('potency.messages.potencyDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').error(message);\n                } else {\n                  var message = i18n.t('potency.messages.potencyDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        this.getRecords(page, status, searchtext);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n        console.log(value);\n      },\n      setPricegroup(item, isChecked) {\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n        console.log(this.selectedItems);\n      },\n      viewRecords(id, name) {\n        this.viewRecords(id, name);\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var potency_name = i18n.t('potency.validationErrorMessage.potency_name');\n      var dilution = i18n.t('potency.validationErrorMessage.dilution');\n      var pricegroup = i18n.t('potency.validationErrorMessage.pricegroup');\n      var potency_status = i18n.t('potency.validationErrorMessage.potency_status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', potency_name);\n      }\n      if (this.dilution == '' || this.dilution == undefined) {\n        this.errors.add('dilution', dilution);\n      }\n      if (this.selectedItems == '' || this.selectedItems == undefined) {\n        this.errors.add('pricegroup', pricegroup);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', potency_status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'medicine/potency';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'medicine/potency?search=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // _this.set('settings/masters/pricegroups' , res);\n          _this.set('potencys', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    viewRecords(id, name) {\n      if ($('.detail_' + id)[0]) {\n        $('.detail_' + id).remove();\n        return false;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/potency/' + id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res.potencyGroup);\n          var pricegrouphtml = '';\n          $.each(res.potencyGroup, function (k, v) {\n            pricegrouphtml += '<tr class=\"detail_' + id + '\"> <td> </td> <td> </td>  <td>' + v.name + '</td> <td></td> <td></td><td> </td>  <td> </td></tr>';\n          });\n          $(pricegrouphtml).insertAfter('#potency_' + id);\n        },\n        error: function (error, x, y) {}\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/pricegroup\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    errors: _emberData.default.Errors.create(),\n    datatset: null,\n    ounce_check: true,\n    globule_check: true,\n    powder_check: true,\n    liquid_check: true,\n    pricegroups: null,\n    vali_errors: null,\n    qty: null,\n    init: function () {\n      this._super(...arguments);\n      //var theController = App.theController.create();\n      //this.send('getPricegroup', 1);\n    },\n    actions: {\n      submit: function (page) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        //this.validate()\n        if (this.validate()) {\n          var data = {\n            name: this.name,\n            description: this.description,\n            ounce: this.ounce,\n            globule: this.globule,\n            powder: this.powder,\n            liquid: this.liquid,\n            status: this.status\n          };\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('pricegroup.messages.updatePricegroup');\n          } else {\n            data.id = 0;\n            var message = i18n.t('pricegroup.messages.savedPricegroup');\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  var errorTest = [];\n                  $.each(value, function (key1, value1) {\n                    var errorMessage = value1.replace(key, key + ' price');\n                    errorTest.push(errorMessage);\n                  });\n                  reponse[key] = errorTest;\n                });\n                _this.set('vali_errors', reponse);\n              } else {\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.pricegroup.list');\n              }\n            },\n            complete: function (res) {\n              //this.getItems(page, status);\n              //console.log(\"Execution complete\");\n            }\n          });\n        }\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('pricegroup.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'post',\n              url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  _this.set('vali_errors', res.message);\n                  var message = i18n.t('pricegroup.messages.pricegroupDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').error(message);\n                } else {\n                  var message = i18n.t('pricegroup.messages.pricegroupDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n                //console.log(\"Execution complete\");\n              }\n            });\n          }\n        });\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      search: function (page, status) {\n        var searchtext = this.query_string;\n        this.getRecords(page, status, searchtext);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    getRecords: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'medicine/pricegroup';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'medicine/pricegroup?search=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // _this.set('settings/masters/pricegroups' , res);\n          _this.set('pricegroups', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n          //   _this.controllerFor('settings/masters/pricegroup').set('path' , res.path);\n          // _this.controllerFor('pricegroup').set('pricegroups' , res);\n          /////_this.controller.set('pricegroups', res);\n          //console.log(\"Records updated successfully\");\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var group_name = i18n.t('pricegroup.validationErrorMessage.group_name');\n      var ounce = i18n.t('pricegroup.validationErrorMessage.ounce');\n      var ounce_check = i18n.t('pricegroup.validationErrorMessage.ounce_check');\n      var globule = i18n.t('pricegroup.validationErrorMessage.globule');\n      var globule_check = i18n.t('pricegroup.validationErrorMessage.globule_check');\n      var powder = i18n.t('pricegroup.validationErrorMessage.powder');\n      var powder_check = i18n.t('pricegroup.validationErrorMessage.powder_check');\n      var liquid = i18n.t('pricegroup.validationErrorMessage.liquid');\n      var liquid_check = i18n.t('pricegroup.validationErrorMessage.liquid_check');\n      var group_status = i18n.t('pricegroup.validationErrorMessage.group_status');\n      var name_value = this.name;\n      var ounce_value = this.ounce;\n      var globule_value = this.globule;\n      var powder_value = this.powder;\n      var liquid_value = this.liquid;\n      //var name_value = this.get('name').toString(10).replace(/\\s/g,'');\n      //var name_value = this.get('name').toString(10).replace(/\\s/g,'');\n      //var name_value = this.get('name').toString(10).replace(/\\s/g,'');\n\n      if (name_value == '' || name_value == undefined) {\n        this.errors.add('name', group_name);\n      }\n      if (this.ounce_check) {\n        if (ounce_value == '' || ounce_value == undefined) {\n          this.errors.add('ounce', ounce);\n        }\n      }\n      if (ounce_value != '' && ounce_value != undefined) {\n        if (this.ounce_check != '1' || this.ounce_check == undefined) {\n          this.errors.add('ounce_check', ounce_check);\n        }\n      }\n      if (this.globule_check) {\n        if (globule_value == '' || globule_value == undefined) {\n          this.errors.add('globule', globule);\n        }\n      }\n      if (globule_value != '' && globule_value != undefined) {\n        if (this.globule_check != '1' || this.globule_check == undefined) {\n          this.errors.add('globule', globule_check);\n        }\n      }\n      if (this.powder_check) {\n        if (powder_value == '' || powder_value == undefined) {\n          this.errors.add('powder', powder);\n        }\n      }\n      if (powder_value != '' && powder_value != undefined) {\n        if (this.powder_check != '1' || this.powder_check == undefined) {\n          this.errors.add('powder', powder_check);\n        }\n      }\n      if (this.liquid_check) {\n        if (liquid_value == '' || liquid_value == undefined) {\n          this.errors.add('liquid', liquid);\n        }\n      }\n      if (liquid_value != '' && liquid_value != undefined) {\n        if (this.liquid_check != '1' || this.liquid_check == undefined) {\n          this.errors.add('liquid', liquid_check);\n        }\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', group_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/role\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n    },\n    actions: {\n      clicky(value) {\n        this.set('role_status', value);\n        this.set('Active', $('checked[name=role_status]').val());\n        this.set('Inactive', $('checked[name=role_status]').val());\n        console.log(value);\n      },\n      valueHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n      },\n      submit(page) {\n        var _this = this;\n        let token = _this.session.getToken();\n        let i18n = this.i18n;\n        var utoken = _this.get('session').getLoggedInUserId();\n        if (_this.validate()) {\n          var permissions_name = $('input[name=permission_name]:checked').map(function () {\n            return $(this).data('permission');\n          }).get();\n          var routesname = $('input[name=permission_name]:checked').map(function () {\n            return $(this).data('routename');\n          }).get();\n          var data = {\n            name: _this.get('role_name'),\n            role_description: _this.get('role_description'),\n            role_status: _this.get('role_status'),\n            api_token: utoken\n          };\n          if (_this.get('selectedItems').length == 0) {\n            data.permissions = 0;\n          } else {\n            data.permissions = _this.get('selectedItems');\n          }\n          if (permissions_name.length == 0) {\n            data.permission_name = null;\n          } else {\n            data.permission_name = permissions_name;\n          }\n          if (routesname.length == 0) {\n            data.route_name = '';\n          } else {\n            data.route_name = routesname;\n          }\n          if (_this.get('id') > 0) {\n            data.id = _this.get('id');\n          } else {\n            data.id = 0;\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'role',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == true) {\n                /*In these below line we have customize the error reponse date format, Rahul Khan, 10 July 2019*/\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  if (key == 'name') {\n                    var errorText = [];\n                    $.each(value, function (key1, value1) {\n                      var errorMessage = value1.replace(key, 'role name');\n                      errorText.push(errorMessage);\n                    });\n                    reponse['role_name'] = errorText;\n                  }\n                  reponse[key] = value;\n                });\n                _this.set('vali_errors', reponse);\n                setTimeout(function () {\n                  var errors = $('.has-error');\n                  if (errors.length) {\n                    $('html, body').animate({\n                      scrollTop: errors.offset().top - 50\n                    }, 500);\n                  }\n                }, 100);\n                //_this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('role.messages.savedRole');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('role.messages.updateRole');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.role.list');\n              }\n            },\n            complete: function (res) {\n              // console.log(res);\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          setTimeout(function () {\n            var errors = $('.has-error');\n            if (errors.length) {\n              $('html, body').animate({\n                scrollTop: errors.offset().top - 50\n              }, 500);\n            }\n          }, 100);\n        }\n      },\n      role_delete(role_id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let message = i18n.t('role.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'role/delete',\n              data: {\n                role_id: role_id\n              },\n              // beforeSend:function(){\n              //   $(\"#loading\").addClass('in');\n              //   $(\"#loading\").css('display','block');\n              //   $('body').addClass('modal-open');\n              // },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == true && res.status == false) {\n                  var message = res.msg;\n                  Ember.get(_this, 'flashes').danger(message);\n                } else if (res.error == false) {\n                  var message = i18n.t('role.messages.roleDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('role.messages.roleDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n                _this.send('getRoles');\n              },\n              error: function (res) {}\n              // complete:function(){\n              //   setTimeout(function(){$(\"#loading\").removeClass('in');\n              //   $(\"#loading\").css('display','none');\n              //   $('.modal-backdrop').remove();\n              //   $('body').removeClass('modal-open');\n              //   window.location.reload();\n              //   },500);\n              // }\n            });\n          }\n        });\n      },\n      getRoles: function (page, status) {\n        this.getRoles(page, status);\n      },\n      search_role: function (page, status) {\n        var searchtext = this.query_string;\n        this.getRoles(page, status, searchtext);\n        //console.log(this.get('query_string'));\n      }\n    },\n    getRoles: function (page, status, searchtext) {\n      var base_url = _environment.default.APP.lumen_api_url + 'role';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'role?query_string=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('roles', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var role_name = i18n.t('role.validationErrorMessage.role_name');\n      var role_status = i18n.t('role.validationErrorMessage.role_status');\n      var permission = i18n.t('role.validationErrorMessage.permission');\n      if (this.role_name == '' || this.role_name == undefined) {\n        this.errors.add('role_name', role_name);\n      }\n      if (this.selectedItems == '' || this.selectedItems == undefined) {\n        this.errors.add('permission_name', permission);\n      }\n      if (this.role_status == '' || this.role_status == undefined) {\n        this.errors.add('role_status', role_status);\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/system\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    errors: _emberData.default.Errors.create(),\n    flashes: Ember.inject.service('flash-messages'),\n    vali_errors: null,\n    actions: {\n      submit: function () {\n        //console.log(\"ggs\");\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        //\tconsole.log(this.validate());\n        if (this.validate()) {\n          var nameobj = this.name;\n          var name = nameobj.trim();\n          var data = {\n            name: name,\n            status: this.status\n          };\n          //console.log(data);\n          if (this.id > 0) {\n            data.id = this.id;\n            var message = i18n.t('system.messages.updateSystem');\n          } else {\n            data.id = 0;\n            var message = i18n.t('system.messages.savedSystem');\n          }\n          if (this.status == 2) {\n            Swal.fire({\n              text: 'Warning: Deactivating a System or Organ will also deactivate all diseases related to them. Are you sure you want to proceed?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, save it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                //console.log(data);\n                $.ajax({\n                  method: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'system',\n                  data: data,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    if (res.error) {\n                      //vali_errors:res.message;\n                      _this.set('vali_errors', res.message);\n                    } else {\n                      //alert(res.form);\n                      //var message = i18n.t('forms.messages.savedForm');\n                      Ember.get(_this, 'flashes').success(message);\n                      _this.transitionToRoute('settings.masters.system.list');\n                    }\n                  },\n                  complete: function (res) {\n                    console.log('Execution complete');\n                  }\n                });\n              }\n            });\n          } else {\n            //console.log(data);\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'system',\n              data: data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  _this.set('vali_errors', res.message);\n                } else {\n                  //alert(res.form);\n                  //var message = i18n.t('forms.messages.savedForm');\n                  Ember.get(_this, 'flashes').success(message);\n                  _this.transitionToRoute('settings.masters.system.list');\n                }\n              },\n              complete: function (res) {\n                console.log('Execution complete');\n              }\n            });\n          }\n        }\n      },\n      //This below function is used for set box value\n      updateValue: function (el) {\n        this.set(el.name, el.value);\n      },\n      getRecords: function (page, status) {\n        this.getRecords(page, status);\n      },\n      deleteRecords: function (id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = _this.get('i18n');\n        let message = i18n.t('system.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            //if (confirm(\"Are you sure you want delete Form \"+$name +\" ?\")) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'system/' + id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error) {\n                  //vali_errors:res.message;\n                  var message = i18n.t('system.messages.systemDeleteErrorMessage', {\n                    object: name\n                  });\n                  Ember.get(_this, 'flashes').danger(message);\n                } else {\n                  var message = i18n.t('system.messages.systemDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                }\n              },\n              complete: function (res) {\n                _this.getRecords();\n              }\n            });\n          }\n        });\n      },\n      search: function (page, status) {\n        this.set('vali_errors', '');\n        var searchtext = this.query_string;\n        var name = $('input.name').val();\n        var error = '';\n        if ((searchtext == undefined || searchtext == '') && name == '') {\n          error += '{\"query_string\":\"Please enter something to search.\"}';\n          this.set('vali_errors', JSON.parse(error));\n          //console.log(error);\n          return false;\n        }\n        //var searchtext = searchtext.trim();\n\n        var sorttype = $('input.sorttype').val();\n        this.getRecords(page, status, searchtext, name, sorttype);\n      },\n      clicky(value) {\n        this.set('status', value);\n        this.set('Active', $('checked[name=status]').val());\n        this.set('Inactive', $('checked[name=status]').val());\n      }\n    },\n    validate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      let i18n = this.i18n;\n      var name = i18n.t('system.validationErrorMessage.name');\n      var status = i18n.t('system.validationErrorMessage.status');\n      var form_status = i18n.t('system.validationErrorMessage.status');\n      if (this.name == '' || this.name == undefined) {\n        this.errors.add('name', name);\n      }\n      if (this.status == '' || this.status == undefined) {\n        this.errors.add('status', status);\n      }\n      return this.get('errors.isEmpty');\n    },\n    getRecords: function (page, status, searchtext, name, sorttype) {\n      //console.log(\"page=>\"+page+\"status=>\"+status+\"searchtext=>\"+searchtext+\"name=>\"+name+\"sorttype=>\"+sorttype);\n      //return false\n      var base_url = _environment.default.APP.lumen_api_url + 'system';\n      //\tvar url = window.location.href;\n      if (searchtext != '' && searchtext != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&search=' + searchtext;\n        } else {\n          var base_url = base_url + '?search=' + searchtext;\n        }\n      }\n      if (name != '' && name != undefined) {\n        if (base_url.indexOf('?') != -1) {\n          var base_url = base_url + '&column=' + name + '&sorttype=' + sorttype;\n        } else {\n          var base_url = base_url + '?column=' + name + '&sorttype=' + sorttype;\n        }\n      }\n      if (status == 'self') {\n        if (base_url.indexOf('?') != -1) {\n          var api_url = base_url + '&page=' + page;\n        } else {\n          var api_url = base_url + '?page=' + page;\n        }\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('systems', res.data);\n          //self.controller.set('pricegroups' , res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/controllers/settings/masters/token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    flashes: Ember.inject.service('flash-messages')\n  });\n});","define(\"clinic-dev/controllers/settings/masters/users\", [\"exports\", \"clinic-dev/config/environment\", \"ember-data\"], function (_exports, _environment, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"clinic-dev/config/environment\",0,\"ember-data\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  //import Cryptr from 'cryptr';\n  //const cryptr = new Cryptr('UTpNi9OEFG3KVXzVlWR2qcpZTUikW3e1');\n  var _default = _exports.default = Ember.Controller.extend({\n    applicationController: Ember.inject.controller('application'),\n    flashes: Ember.inject.service('flash-messages'),\n    showInTimeslot: 0,\n    init() {\n      this._super(...arguments);\n      this.selectedItems = [];\n      this.roleselectedItems = [];\n      this.branchselectedItems = [];\n      this.rolebasedcheckArray = [];\n      this.radioarray = [];\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/doctor-level',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('doctor-level', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    actions: {\n      reset2FA(id) {\n        if (confirm('Are you sure you want to reset Two-Factor Authentication?')) {\n          let utoken = this.session.getToken();\n          fetch(_environment.default.APP.lumen_api_url + 'users/reset-2fa', {\n            method: 'POST',\n            body: JSON.stringify({\n              user_id: id\n            }),\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            }\n          }).then(res => {\n            if (!res.ok) throw new Error('Failed to reset 2FA');\n            return res.json();\n          }).then(() => {\n            alert('2FA has been reset successfully.');\n            this.send('getUsers');\n            this.set('is2FAEnabled', false);\n            this.set('show2FAResetMessage', true);\n            Ember.run.later(() => this.set('show2FAResetMessage', false), 5000);\n          }).catch(err => {\n            alert(err.message || 'Something went wrong.');\n          });\n        }\n      },\n      changeDoctorCharges: function (id) {\n        if (id > 0) {\n          var _this = this;\n          let utoken = _this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'billing/doctorlevel/' + id,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              var data = '';\n              $('#doctor-charges').empty();\n              res.level_charges.forEach(function (item, index) {\n                data = '<div class=\"col-md-4\"><div class=\"col-xs-8\"><label for=\"charges\" class=\"no-margin-bottom status-label\">' + item.charge_name + '</label><input type=\"number\" class=\"form-control charges\" data-print =\"' + item.print_code + '\" id=\"charge_' + item.charge_id + '\" name=\"' + item.charge_id + '\" title=\"' + item.charge_code + '\"  placeholder=\"' + item.charge_name + '\" value=\"' + item.amount + '\" readonly></div></div>';\n                $('#doctor-charges').append(data);\n              });\n              $('#doctor-charges').show();\n            }\n          });\n        } else {\n          $('#doctor-charges').hide();\n        }\n      },\n      //This below function is used for set the value of prescription format for user  as varaible \"prsformat\" variable, Rahul khan 26 Sept 2019\n      changePrescriptionFormat: function (mode) {\n        this.set('pres_print', mode);\n      },\n      //This below function is used for set the value of Receipt format for user  as varaible \"rcpformat\" variable,  Rahul khan 26 Sept 2019\n      changeReceiptFormat: function (mode) {\n        this.set('rcp_print', mode);\n      },\n      getUserProfile: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var loginuserid = _this.get('session').getLoggedInUserId();\n        //     // console.log(utoken);\n        //     //set selected branch id\n        //   //  this.controllerFor('settings.masters.users').set('user_id', params.id);\n        //     // ajax call for branch  list\n        // //In This below Ajax request We have added a activerecord and passed status parameter two get only active branches in profile page, Rahul Khan, 19 July 2019\n        // // Also change the return res.data to res.\n        var status = 1;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('branches', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        //       // ajax call for permission list\n        //       $.ajax({\n        //         method: \"GET\",\n        //         url: ENV.APP.lumen_api_url + \"categorywisepermissions\",\n        //         success: function (res) {\n        //             _this.set('permissions', res);\n        //         },\n        //         complete: function (res) {\n        //             console.log(\"Execution complete\");\n        //         }\n        //     });\n        //     //This below function is used for getting all the doctors related charges, Rahul Khan\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doc_charges', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        //This below function is used for getting medicine and consultancy print code\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'billing/drprintchargescode',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('doc_print_code', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n        // ajax call for fetch record for role table\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'user/' + loginuserid,\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var user_data = res;\n            _this.set('user_name', user_data.Name);\n            _this.set('username', user_data.username);\n            _this.set('email_id', user_data.email);\n            _this.set('mobile_no', user_data.mobile_no);\n            _this.set('user_status', user_data.status);\n            _this.set('id', user_data.user_id);\n            _this.set('user_type', user_data.user_type);\n            _this.set('user_order', user_data.ordering);\n            _this.set('user_label', user_data.label);\n            _this.set('is2FAEnabled', user_data.mfa_enabled);\n            _this.set('consultancy_fees', user_data.consultancy_fees);\n            var s = _this.set('status', user_data.status);\n            $(document).ready(function () {\n              if (user_data.user_type == 2) {\n                $('#user_type').prop('checked', true);\n                $('#user_type').val(2);\n                $('.doctor_show').show();\n              } else {\n                $('.doctor_show').hide();\n              }\n              //This below line used for getting the reset password section hidden default for page profile, 06 Aug 2019, Rahul Khan\n              $('.password_show').hide();\n              if (s == 1) {\n                $('input[name=\"user_status\"]:radio:first').prop('checked', true).trigger('click');\n                //$('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n              } else {\n                $('input[name=\"user_status\"]:radio:last').prop('checked', true).trigger('click');\n                // $('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n              }\n            });\n          },\n          error: function (error, x, y) {}\n        });\n\n        // ajax call for role permission list\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userpermission/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            res.forEach(function (item, index) {\n              $('input:radio[name=' + item.permission + '][value=' + item.value + ']').prop('checked', true);\n              //$(\"#\" + item).prop('checked',true);\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n        //This below code is used for getting the data of doctors' charges price , Rahul Khan\n        var location_id = this.session.getLocation().split('-')[0];\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + loginuserid + '/' + location_id,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            res.forEach(function (item) {\n              $('#charge_' + item.charge_id).val(item.price);\n              //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n              //$(\"#\" + item).prop('checked',true);\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for roles list\n        //In This below Ajax request We have added a activerecord and passed status parameter two get only active roles in profile page, Rahul Khan, 19 July 2019\n        // Also change the return res.data to res.\n        var status = 1;\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('roles', res);\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for user branch map list from cl_user_branch_map\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userbranch/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('branchselectedItems', res);\n            if (res.length > 0) {\n              $('.profile-branch-section').removeClass('cw-hidden');\n            }\n            res.forEach(function (item, index) {\n              $('#branchinput_' + item).prop('checked', true);\n              $('.profile-branch-section #branch_' + item).removeClass('cw-hidden');\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n\n        // ajax call for user roles list  from cl_user_roles\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'userrole/' + loginuserid,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('roleselectedItems', res);\n            if (res.length > 0) {\n              $('.profile-role-section').removeClass('cw-hidden');\n            }\n            res.forEach(function (item, index) {\n              $('#roleinput_' + item).prop('checked', true);\n              $('.profile-role-section #role_' + item).removeClass('cw-hidden');\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          }\n        });\n      },\n      clicky(value) {\n        this.set('user_status', value);\n        this.set('Active', $('checked[name=user_status]').val());\n        this.set('Inactive', $('checked[name=user_status]').val());\n      },\n      roleHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.roleselectedItems.addObject(item);\n        } else {\n          this.roleselectedItems.removeObject(item);\n        }\n      },\n      branchHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.branchselectedItems.addObject(item);\n        } else {\n          this.branchselectedItems.removeObject(item);\n        }\n      },\n      permissionAllow(item) {\n        $('.deny_' + item).prop('checked', false);\n        $('.allow_' + item).prop('checked', true);\n      },\n      permissionDeny(item) {\n        $('.allow_' + item).prop('checked', false);\n        $('.deny_' + item).prop('checked', true);\n      },\n      permissionHasChanged(item, isChecked) {\n        if (isChecked) {\n          this.selectedItems.addObject(item);\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n      },\n      showInTimeslot(event) {\n        console.log(event.target.checked);\n        this.showInTimeslot = event.target.checked;\n      },\n      doctorHasChanged() {\n        if ($('#user_type').val() == 1) {\n          $('#user_type').val(2);\n          this.set('user_type', 2);\n          $('.doctor_show').show();\n        } else {\n          $('#user_type').val(1);\n          this.set('user_type', 1);\n          $('.doctor_show').hide();\n        }\n      },\n      ChangePassword() {\n        if ($('#change_pass').val() == 1) {\n          $('#change_pass').val(2);\n          this.set('change_pass', 2);\n          $('.password_show').show();\n          this.set('password', '');\n          this.set('confirm_password', '');\n        } else {\n          $('#change_pass').val(1);\n          this.set('change_pass', 1);\n          $('.password_show').hide();\n        }\n      },\n      getPermissionByRoleId(role_id) {\n        var arr = new Array();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $('input[name=\"user_role[]\"]').each(function () {\n          if (this.checked) {\n            arr.push($(this).attr('id'));\n          }\n        });\n        var data = {\n          roles: arr\n        };\n        //console.log(data);\n        if (arr.length > 0) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'multiplerolepermission',\n            async: false,\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              // _this.set('radioarray', res);\n              $('.permission_radio').prop('checked', false);\n              res.forEach(function (item, index) {\n                $('#on' + item).prop('checked', true);\n                //$(\"#on\" + item).attr('checked',false);\n              });\n            }\n          });\n        } else {\n          $('.permission_radio').prop('checked', false);\n          //_this.set('radioarray', '');\n        }\n      },\n      submit(page) {\n        var _this = this;\n        let token = _this.session.getToken();\n        let i18n = this.i18n;\n        var utoken = _this.get('session').getToken();\n        var loginuserid = _this.get('session').getLoggedInUserId();\n        var values = $('.permission_radio:checked');\n        var myArray = $.map(values, function (element) {\n          return {\n            name: element.name,\n            value: element.value,\n            permission_name: element.dataset.permission,\n            route_name: element.dataset.routename\n          };\n        });\n        /*This below line of code is used to get all the charges field values, Rahul Khan */\n        var chargeFeilds = $('.charges');\n        var charge_fields = $.map(chargeFeilds, function (element) {\n          return {\n            id: element.name,\n            value: element.value,\n            code: element.title,\n            printcode: element.dataset.print\n          };\n        });\n        var dr_lv = $('#doctor_level ').val();\n        _this.set('doctor_level', dr_lv);\n        if (_this.validate(_this.get('user_type'))) {\n          //   var permissions_name = $(\".permission_radio:checked\").map(function(){\n          //     return $(this).data('permission');\n          // }).get();\n          // var routesname = $(\".permission_radio:checked\").map(function(){\n          //   return $(this).data('routename');\n          // }).get();\n\n          var data = {\n            user_name: _this.get('user_name'),\n            username: _this.get('username'),\n            email_id: _this.get('email_id'),\n            mobile_no: _this.get('mobile_no'),\n            employee_code: _this.get('employee_code'),\n            user_status: _this.get('user_status'),\n            showInTimeslot: this.showInTimeslot ? 1 : 0\n          };\n\n          // if(permissions_name.length == 0){\n          //   data.permission_name = null;\n          //  }else{\n          //   data.permission_name = permissions_name;\n          //  }\n\n          //  if(routesname.length == 0){\n          //   data.route_name = '';\n          //  }else{\n          //   data.route_name = routesname;\n          //  }\n          // if(_this.get('radioarray').length == 0){\n          //   data.radioarray = 0;\n          //  }else{\n          //   data.radioarray = _this.get('radioarray');\n          //  }\n\n          if (myArray.length == 0) {\n            data.permissionarray = 0;\n          } else {\n            data.permissionarray = myArray;\n          }\n          if (_this.get('roleselectedItems').length == 0) {\n            data.roles = 0;\n          } else {\n            data.roles = _this.get('roleselectedItems');\n          }\n          if (_this.get('branchselectedItems').length == 0) {\n            data.branches = 0;\n          } else {\n            data.branches = _this.get('branchselectedItems');\n          }\n          if (_this.get('user_type') == undefined || _this.get('user_type') == '0') {\n            //In these below both conditions we have replaced the \"user_label\" to \"label\" for making server-side valiation, Rahul Khan, 10 July 2019\n            data.label = '';\n            data.user_order = 0;\n            data.color = 0;\n            data.user_type = 0;\n            data.doctorCharge = 0;\n            data.user_id = loginuserid;\n          }\n          if (_this.get('user_type') == '1') {\n            data.label = '';\n            data.user_order = 0;\n            data.color = 0;\n            data.user_type = 1;\n            data.doctorCharge = 0;\n            data.user_id = loginuserid;\n          } else if (_this.get('user_type') == '2') {\n            data.label = _this.get('user_label');\n            data.user_order = _this.get('user_order');\n            data.color = _this.get('user_color');\n            data.user_type = _this.get('user_type');\n            data.pres_print = _this.get('pres_print');\n            data.rcp_print = _this.get('rcp_print');\n            data.doctorCharge = charge_fields;\n            data.user_id = loginuserid;\n            data.doctor_level = _this.get('doctor_level');\n            //data.consultancy_fees = _this.get('consultancy_fees');\n          }\n          if (_this.get('id') > 0) {\n            data.id = _this.get('id');\n            data.user_id = loginuserid;\n            data.password = 0;\n          } else {\n            data.password = _this.get('password');\n            data.id = 0;\n          }\n          //console.log(data);\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'user',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${token}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == true) {\n                /*In these below line we have customize the error reponse date format, Rahul Khan, 10 July 2019*/\n                var reponse = [];\n                $.each(res.message, function (key, value) {\n                  if (key == 'label') {\n                    var errorText = [];\n                    $.each(value, function (key1, value1) {\n                      errorText.push(value1);\n                    });\n                    reponse['user_label'] = errorText;\n                  }\n                  reponse[key] = value;\n                });\n                _this.set('vali_errors', reponse);\n                setTimeout(function () {\n                  var errors = $('.has-error');\n                  if (errors.length) {\n                    $('html, body').animate({\n                      scrollTop: errors.offset().top - 50\n                    }, 500);\n                  }\n                }, 100);\n\n                // _this.set('vali_errors', res.message);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('user.messages.savedUser');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('user.messages.updateUser');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                _this.transitionToRoute('settings.masters.users.list');\n              }\n            },\n            complete: function (res) {\n              // console.log(res);\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }, 500);\n            }\n          });\n        } else {\n          setTimeout(function () {\n            var errors = $('.has-error');\n            if (errors.length) {\n              $('html, body').animate({\n                scrollTop: errors.offset().top - 50\n              }, 500);\n            }\n          }, 100);\n        }\n      },\n      user_delete(user_id, name) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        let i18n = this.i18n;\n        let message = i18n.t('role.messages.areYouSureDelete', {\n          object: name\n        });\n        swal({\n          title: message,\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'user/delete',\n              data: {\n                user_id: user_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false) {\n                  var message = i18n.t('user.messages.userDeleteMessage');\n                  Ember.get(_this, 'flashes').success(message);\n                } else if (res.error == true) {\n                  var message = i18n.t('user.messages.userDeleteErrorMessage');\n                  Ember.get(_this, 'flashes').danger(message);\n                }\n              },\n              error: function (res) {},\n              complete: function () {\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                  window.location.reload();\n                }, 500);\n              }\n            });\n          }\n        });\n      },\n      getUsers: function (page, status) {\n        this.getUsers(page, status);\n      },\n      search_user: function (page, status) {\n        var searchtext = this.query_string;\n        this.getUsers(page, status, searchtext);\n        //console.log(this.get('query_string'));\n      },\n      //This function is used for save the user profile data in database, 06/Aug/2019, Rahul Khan\n\n      saveprofile: function () {\n        var _this = this;\n        let i18n = this.i18n;\n        let utoken = _this.session.getToken();\n        var loginuserid = _this.get('session').getLoggedInUserId();\n        //console.log(loginuserid);\n        //if(_this.saveProfilevalidate()){\n        if (this.saveProfilevalidate()) {\n          var data = {\n            user_name: _this.get('user_name'),\n            email_id: _this.get('email_id'),\n            mobile_no: _this.get('mobile_no'),\n            id: loginuserid\n          };\n          if (_this.get('change_pass') != 2) {\n            data.password = 0;\n          } else {\n            data.password = _this.get('password');\n          }\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'user/profile',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.error == true) {\n                _this.set('vali_errors', res.message);\n                setTimeout(function () {\n                  var errors = $('.has-error');\n                  if (errors.length) {\n                    $('html, body').animate({\n                      scrollTop: errors.offset().top - 50\n                    }, 500);\n                  }\n                }, 100);\n              } else if (res.error == false) {\n                if (res.actions == 'add') {\n                  var message = i18n.t('user.messages.savedUser');\n                } else if (res.actions == 'update') {\n                  var message = i18n.t('user.messages.updateUser');\n                }\n                Ember.get(_this, 'flashes').success(message);\n                //this condidtion is used for make user logout when user change his password.\n                setTimeout(function () {\n                  //console.log((_this.get('confirm_password')));\n                  if (_this.get('change_pass') == '2' && _this.get('confirm_password') != '') {\n                    _this.transitionToRoute('logout');\n                  }\n                }, 1500);\n              }\n            }\n          });\n        } else {\n          setTimeout(function () {\n            var errors = $('.has-error');\n            if (errors.length) {\n              $('html, body').animate({\n                scrollTop: errors.offset().top - 50\n              }, 500);\n            }\n          }, 100);\n        }\n      },\n      //This below function is used for getting the last visited page\n\n      goBack: function () {\n        history.back();\n      }\n    },\n    getUsers: function (page, status, searchtext) {\n      // const encryptedString = cryptr.encrypt('shubh');\n      // const decryptedString = cryptr.decrypt(encryptedString);\n      // console.log(encryptedString);\n      //console.log(decryptedString);\n\n      var base_url = _environment.default.APP.lumen_api_url + 'user';\n      if (searchtext != '' && searchtext != undefined) {\n        var base_url = _environment.default.APP.lumen_api_url + 'user?query_string=' + searchtext;\n      }\n      if (status == 'self') {\n        var api_url = base_url + '?page=' + page;\n      } else if (status == 'next' || status == 'prev') {\n        var api_url = page;\n      } else {\n        var api_url = base_url;\n      }\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: api_url,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('users', res.data);\n          _this.set('total_item', res.total);\n          _this.set('current_page', res.current_page);\n          _this.set('from', res.from);\n          _this.set('to', res.to);\n          _this.set('last_page', res.last_page);\n          _this.set('per_page', res.per_page);\n          _this.set('prev_page_url', res.prev_page_url);\n          _this.set('next_page_url', res.next_page_url);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    validate: function (user_type) {\n      this.set('errors', _emberData.default.Errors.create());\n      //charge_fields = this.get('charge_fields');\n      let i18n = this.i18n;\n      var user_name = i18n.t('user.validationErrorMessage.user_name');\n      var user_name_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var user_name_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var username = i18n.t('user.validationErrorMessage.username');\n      var username_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var username_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var email_id = i18n.t('user.validationErrorMessage.email_id');\n      var invalid_email_id = i18n.t('user.validationErrorMessage.invalid_email_id');\n      var mobile_no = i18n.t('user.validationErrorMessage.mobile_no');\n      var password = i18n.t('user.validationErrorMessage.password');\n      var password_min = i18n.t('user.validationErrorMessage.password_min');\n      var confirm_password = i18n.t('user.validationErrorMessage.confirm_password');\n      var confirm_password_not_match = i18n.t('user.validationErrorMessage.confirm_password_not_match');\n      var user_status = i18n.t('user.validationErrorMessage.user_status');\n      var user_branch = i18n.t('user.validationErrorMessage.user_branch');\n      var user_role = i18n.t('user.validationErrorMessage.user_role');\n      var mobile_max_allowed = i18n.t('user.validationErrorMessage.mobile_max_allowed');\n      var mobile_valid = i18n.t('user.validationErrorMessage.mobile_valid');\n      var user_label = i18n.t('user.validationErrorMessage.user_label');\n      var user_label_max = i18n.t('user.validationErrorMessage.user_label_max');\n      var user_order = i18n.t('user.validationErrorMessage.user_order');\n      var user_color = i18n.t('user.validationErrorMessage.user_color');\n      var pres_print = i18n.t('user.validationErrorMessage.pres_print');\n      var doctor_level = i18n.t('user.validationErrorMessage.doctor_level');\n      var rcp_print = i18n.t('user.validationErrorMessage.rcp_print');\n      var employee_code = i18n.t('user.validationErrorMessage.employee_code');\n      var employee_code_min = i18n.t('user.validationErrorMessage.employee_code_min');\n      var employee_code_max = i18n.t('user.validationErrorMessage.employee_code_max');\n      var employee_code_alphabate = i18n.t('user.validationErrorMessage.employee_code_alphabate');\n      var filter = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/;\n      var pattern = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\n      if (this.user_name == '' || this.user_name == undefined) {\n        this.errors.add('user_name', user_name);\n      } else if (this.user_name != this.user_name.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('user_name', user_name_alphabate);\n      } else if (this.user_name.length < 3) {\n        this.errors.add('user_name', user_name_min);\n      }\n      if (this.username == '' || this.username == undefined) {\n        this.errors.add('username', username);\n      } else if (this.username.length < 3) {\n        this.errors.add('username', username_min);\n      }\n      if (this.email_id == '' || this.email_id == undefined) {\n        this.errors.add('email_id', email_id);\n      } else if (!pattern.test(this.email_id)) {\n        this.errors.add('email_id', invalid_email_id);\n      }\n      if (this.mobile_no == '' || this.mobile_no == undefined) {\n        this.errors.add('mobile_no', mobile_no);\n      } else if (!filter.test(this.mobile_no)) {\n        this.errors.add('mobile_no', mobile_valid);\n      } else if (this.mobile_no.length > 10) {\n        this.errors.add('mobile_no', mobile_max_allowed);\n      }\n      if (this.id == '') {\n        if (this.password == '' || this.password == undefined) {\n          this.errors.add('password', password);\n        } else if (this.password.length < 8) {\n          this.errors.add('password', password_min);\n        }\n        if (this.confirm_password == '' || this.confirm_password == undefined) {\n          this.errors.add('confirm_password', confirm_password);\n        } else if (this.confirm_password != this.password) {\n          this.errors.add('confirm_password', confirm_password_not_match);\n        }\n      }\n      ////\n      if (this.employee_code == '' || this.employee_code == undefined) {\n        this.errors.add('employee_code', employee_code);\n      } else if (this.employee_code != this.employee_code.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('employee_code', employee_code_alphabate);\n      } else if (this.employee_code.length < 4) {\n        this.errors.add('employee_code', employee_code_min);\n      } else if (this.employee_code.length > 4) {\n        this.errors.add('employee_code', employee_code_max);\n      }\n      if (this.branchselectedItems.length == 0 || this.branchselectedItems == undefined) {\n        this.errors.add('user_branch', user_branch);\n      }\n      if (this.roleselectedItems.length == 0 || this.roleselectedItems == undefined) {\n        this.errors.add('user_role', user_role);\n      }\n      if (this.user_status == '' || this.user_status == undefined) {\n        this.errors.add('user_status', user_status);\n      }\n      //console.log(this.get('user_label').length);\n\n      /*This below code is used for validating doctors's charges */\n      $('.doctor-charges span').remove();\n      if (user_type == '2') {\n        if (this.user_label == '' || this.user_label == undefined) {\n          this.errors.add('user_label', user_label);\n        } else if (this.user_label.length > 5) {\n          this.errors.add('user_label', user_label_max);\n        }\n        if (this.user_order == '' || this.user_order == undefined) {\n          this.errors.add('user_order', user_order);\n        }\n        if (this.user_color == '' || this.user_color == undefined) {\n          this.errors.add('user_color', user_color);\n        }\n        //These line is used for validation the Prescription format\n        if (this.pres_print == '' || this.pres_print == undefined) {\n          this.errors.add('pres_print', pres_print);\n        }\n        //These line is used for validation the doctor-level\n        if (this.doctor_level == '' || this.doctor_level == undefined) {\n          this.errors.add('doctor_level', doctor_level);\n        }\n        //These line is used for validation the Receipt format\n        if (this.rcp_print == '' || this.rcp_print == undefined) {\n          this.errors.add('rcp_print', rcp_print);\n        }\n        // charge_fields.forEach(function(charge, index){\n        //     if(charge.value==\"\" || charge.value < 0 ){\n        //       $( \"<span class='help-block'>This field should be a number.</span>\" ).insertAfter( \"#charge_\"+charge.id);\n        //     }\n        // });\n      }\n      return this.get('errors.isEmpty');\n    },\n    //This below function is used for validating the\n    saveProfilevalidate: function () {\n      this.set('errors', _emberData.default.Errors.create());\n      //charge_fields = this.get('charge_fields');\n      let i18n = this.i18n;\n      var user_name = i18n.t('user.validationErrorMessage.user_name');\n      var user_name_min = i18n.t('user.validationErrorMessage.user_name_min');\n      var user_name_alphabate = i18n.t('user.validationErrorMessage.user_name_alphabate');\n      var email_id = i18n.t('user.validationErrorMessage.email_id');\n      var invalid_email_id = i18n.t('user.validationErrorMessage.invalid_email_id');\n      var mobile_no = i18n.t('user.validationErrorMessage.mobile_no');\n      var password = i18n.t('user.validationErrorMessage.password');\n      var password_min = i18n.t('user.validationErrorMessage.password_min');\n      var confirm_password = i18n.t('user.validationErrorMessage.confirm_password');\n      var confirm_password_not_match = i18n.t('user.validationErrorMessage.confirm_password_not_match');\n      var mobile_max_allowed = i18n.t('user.validationErrorMessage.mobile_max_allowed');\n      var mobile_valid = i18n.t('user.validationErrorMessage.mobile_valid');\n      var filter = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/;\n      var pattern = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\n      if (this.user_name == '' || this.user_name == undefined) {\n        this.errors.add('user_name', user_name);\n      } else if (this.user_name != this.user_name.match(/^[a-zA-Z\\s]+$/)) {\n        this.errors.add('user_name', user_name_alphabate);\n      } else if (this.user_name.length < 3) {\n        this.errors.add('user_name', user_name_min);\n      }\n      if (this.email_id == '' || this.email_id == undefined) {\n        this.errors.add('email_id', email_id);\n      } else if (!pattern.test(this.email_id)) {\n        this.errors.add('email_id', invalid_email_id);\n      }\n      if (this.mobile_no == '' || this.mobile_no == undefined) {\n        this.errors.add('mobile_no', mobile_no);\n      } else if (!filter.test(this.mobile_no)) {\n        this.errors.add('mobile_no', mobile_valid);\n      } else if (this.mobile_no.length > 10) {\n        this.errors.add('mobile_no', mobile_max_allowed);\n      }\n      if (this.change_pass == 2) {\n        if (this.password == '' || this.password == undefined) {\n          this.errors.add('password', password);\n        } else if (this.password.length < 8) {\n          this.errors.add('password', password_min);\n        }\n        if (this.confirm_password == '' || this.confirm_password == undefined) {\n          this.errors.add('confirm_password', confirm_password);\n        } else if (this.confirm_password != this.password) {\n          this.errors.add('confirm_password', confirm_password_not_match);\n        }\n      }\n      return this.get('errors.isEmpty');\n    }\n  });\n});","define(\"clinic-dev/controllers/transactional-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({});\n});","define(\"clinic-dev/controllers/users\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Controller.extend({\n    permissions: Ember.inject.service('userPermissionsService'),\n    loginCheck: true,\n    init() {\n      this._super(...arguments);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/' + _this.get('session').getLoggedInUserId(),\n        data: {},\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          _this.set('userDetails', res.data);\n          //console.log(res.data);\n        },\n        error: function () {\n          // console.error(res);\n        },\n        complete: function () {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    },\n    actions: {\n      editDetail() {\n        $('.edit_detail').hide();\n        $('.update_detail').show();\n      },\n      cancelUpdate() {\n        $('.edit_detail').show();\n        $('.update_detail').hide();\n      },\n      updateDetail() {\n        var user_email = $('#user_email').val();\n        var user_id = $('#user_id').val();\n        var mobile_no = $('#mobile_no').val();\n        var new_password = $('#new_password').val();\n        if ($('#new_password').val() != $('#confirm_password').val()) {\n          alert('New password and confirm password should be same!');\n          $('#new_password').val('');\n          $('#confirm_password').val('');\n          $('#new_password').focus();\n          return false;\n        }\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $('#loading').addClass('in');\n        $('#loading').css('display', 'block');\n        $('body').addClass('modal-open');\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'users/updateDetail',\n          data: {\n            email: user_email,\n            user_id: user_id,\n            mobile_no: mobile_no,\n            new_password: new_password\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.validate == true) {\n              alert('User details updated successfully!');\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.api_url + 'users/' + _this.get('session').getLoggedInUserId(),\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                data: {},\n                beforeSend: function () {\n                  $('#loading').addClass('in');\n                  $('#loading').css('display', 'block');\n                  $('body').addClass('modal-open');\n                },\n                success: function (res) {\n                  _this.set('userDetails', res.data);\n                  //console.log(res.data);\n                },\n                error: function () {\n                  // console.error(res);\n                },\n                complete: function () {\n                  setTimeout(function () {\n                    $('#loading').removeClass('in');\n                    $('#loading').css('display', 'none');\n                    $('.modal-backdrop').remove();\n                    $('body').removeClass('modal-open');\n                  }, 500);\n                }\n              });\n              _this.transitionTo('users.profile');\n            } else {\n              alert('Your request can not be processed right now. Please try after sometime. ');\n              //console.log(res);\n            }\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/data-adapter\", [\"exports\", \"@ember-data/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _debug.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/flash/object\", [\"exports\", \"ember-cli-flash/flash/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _object.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-flash/flash/object\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"and\", {\n    enumerable: true,\n    get: function () {\n      return _and.and;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/and\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/app-version\", [\"exports\", \"clinic-dev/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"clinic-dev/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = Ember.Helper.helper(appVersion);\n});","define(\"clinic-dev/helpers/appointment-overview-component\", [\"clinic-dev/config/environment\"], function (_environment) {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  Ember.Helper.helper('times', function (n, block) {\n    var accum = '';\n    for (var i = 0; i < n; ++i) accum += block.fn(i);\n    return accum;\n  });\n  Ember.Helper.helper('for', function (from, to, incr, block) {\n    var accum = '1';\n    for (var i = from; i < to; i += incr) accum++;\n    $('body').append(accum);\n    return accum;\n  });\n\n  /*\n  Ember.Handlebars.\t('renderAppointmentBlock', function(doctors, slots, appointments, branch_id, options) {\n  \tvar table_content = '';\n  \t// alert(branch_id);\n  \n  \t$('table.appointments tr.slot_detail').remove();\n  \n  \tvar appointment_date = '';\n  \tif($(\"#appointment_date\").val() != ''){\n  \t\tappointment_date = moment($(\"#appointment_date\").val()).format('YYYY-MM-DD');\n  \t} else{\n  \t\tvar fullDate = new Date();\n  \t\tvar twoDigitMonth = ((fullDate.getMonth().toString().length+1) > 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);\n  \n  \t\tvar twoDigitDate = ((fullDate.getDate().toString().length+1) > 1)? (fullDate.getDate()) : '0' + (fullDate.getDate());\n  \n  \t\tappointment_date =  fullDate.getFullYear()+ \"-\" + twoDigitMonth + \"-\" + twoDigitDate;\n  \t}\n  \t//\n  \t// alert(moment(appointment_date).day());\n  \t/*  $.ajax({\n  \t\t  method: \"GET\",\n  \t\t  url: ENV.APP.api_url+\"appointments/schedule/all/\"+branch_id,\n  \t\t  data : {},\n  \t\t  dataType:'json',\n  \t\t  success: function(resData){\n  \t\t\t  // console.log('abc');\n  \t\t\t  // console.log(resData.data);\n  \t\t\t  $.ajax({\n  \t\t\t\t  method: \"GET\",\n  \t\t\t\t  url: ENV.APP.api_url+\"appointments/scheduleadjustment/all/\"+branch_id,\n  \t\t\t\t  data : {},\n  \t\t\t\t  dataType:'json',\n  \t\t\t\t  success: function(resDataAjs){\n  \t\t\t\t\tconsole.log(\"overview\");\n  \t\t\t\t\t  // console.log('123');\n  \t\t\t\t\t  // console.log(resDataAjs.data);\n  \t\t\t\t\t  $('table.appointments tr.slot_detail').remove();\n  \t\t\t\t\t\t  table_content = '<tr class=\"slot_detail\">';\n  \t\t\t\t\t\t\t\n  \t\t\t\t\t\t\t$.each(doctors, function(keyD,valD) {\n  \t\t\t\t\t\t\t\t/* */\n  /* var abc = '9:00';\n  \t\t\t\t\t\t\t\tvar def = '13:00';\n  \t\t\t\t\t\t\t\tvar full_start_time = abc.split(':');\n  \t\t\t\t\t\t\t\tvar full_end_time = def.split(':'); */\n  /*\t\tvar full_start_time = [];\n  \t\t\t\t\t\t\t\tvar full_end_time = [];\n  \t\t\t\t\t\t\t\tvar check_doctor_schedule_taken = 0;\n  \t\t\t\t\t\t\t\tif(resData.data.length > 0){\n  \t\t\t\t\t\t\t\t\t$.each(resData.data, function(keyResD, valResD){\n  \t\t\t\t\t\t\t\t\t\tif(valResD.doctor_id == valD.user_id && valResD.DayOfWeek - 1 == moment(appointment_date).day()){\n  \t\t\t\t\t\t\t\t\t\t\tfull_start_time = valResD.StartTime.split(':');\n  \t\t\t\t\t\t\t\t\t\t\tfull_end_time = valResD.EndTime.split(':');\n  \t\t\t\t\t\t\t\t\t\t\tcheck_doctor_schedule_taken = 1;\n  \t\t\t\t\t\t\t\t\t\t\t// alert(valResD.doctor_id + ' Test');\n  \t\t\t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t\t});\n  \t\t\t\t\t\t\t\t}\n  \n  \t\t\t\t\t\t\t\tif(resDataAjs.data.length > 0){\n  \t\t\t\t\t\t\t\t\t$.each(resDataAjs.data, function(keyResAjsD, valResAjsD){\n  \t\t\t\t\t\t\t\t\t\tif(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek - 1 == moment(appointment_date).day() && moment(appointment_date).format('YYYY-MM-DD') >= moment(valResAjsD.dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(valResAjsD.dateTo).format('YYYY-MM-DD')){\n  \t\t\t\t\t\t\t\t\t\t// if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek == moment(appointment_date).day()){\n  \t\t\t\t\t\t\t\t\t\t\tfull_start_time = valResAjsD.StartTime.split(':');\n  \t\t\t\t\t\t\t\t\t\t\tfull_end_time = valResAjsD.EndTime.split(':');\n  \t\t\t\t\t\t\t\t\t\t\tcheck_doctor_schedule_taken = 2;\n  \t\t\t\t\t\t\t\t\t\t\t// console.log(full_start_time + ' ' + moment(appointment_date).format('YYYY-MM-DD') + ' ' + valResAjsD.doctor_id + ' ' + ' Test123');\n  \t\t\t\t\t\t\t\t\t\t\t// console.log(full_start_time + ' test');\n  \t\t\t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t\t});\n  \t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t// console.log(full_start_time + ' test');\n  \t\t\t\t\t\t\t\t// alert(check_doctor_schedule_taken);\n  \n  \n  \n  \t\t\t\t\t\t\t\t/* if(resDataAjs.data.length > 0 && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs.data[moment(appointment_date).day()].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs.data[moment(appointment_date).day()].dateTo).format('YYYY-MM-DD')){\n  \t\t\t\t\t\t\t\t\tvar full_start_time = resDataAjs.data[moment(appointment_date).day()].StartTime.split(':');\n  \t\t\t\t\t\t\t\t\t// alert(moment(appointment_date).day());\n  \t\t\t\t\t\t\t\t\tvar full_end_time = resDataAjs.data[moment(appointment_date).day()].EndTime.split(':');\n  \t\t\t\t\t\t\t\t} else{\n  \t\t\t\t\t\t\t\t\tvar full_start_time = resData.data[moment(appointment_date).day()].StartTime.split(':');\n  \t\t\t\t\t\t\t\t\tvar full_end_time = resData.data[moment(appointment_date).day()].EndTime.split(':');\n  \t\t\t\t\t\t\t\t} */\n\n  /*\t\t\t\tvar check_status = 0;\n  \n  \t\t\t\t\t\t\t\tvar start_time_minute = (full_start_time[0] * 60) + full_start_time[1];\n  \n  \t\t\t\t\t\t\t\tvar end_time_minute = (full_end_time[0] * 60) + full_end_time[1];\n  \t\t\t\t\t\t\t\tvar full_time_slot = valS.slot.split(':');\n  \t\t\t\t\t\t\t\tvar time_slot_minute = (full_time_slot[0] * 60) + full_time_slot[1];\n  \n  \n  \t\t\t\t\t\t\t\tif(time_slot_minute < start_time_minute || time_slot_minute > end_time_minute){\n  \t\t\t\t\t\t\t\t/* if(moment(appointment_date).day() == 4){ */\n  /*\t\t\t\ttable_content += '<td class=\"not_available\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"'+valD.Name+' is not available on this time slot.\">N/A3</td>';\n  \t\t\t\t\t\t\t\t} else{\n  \t\t\t\t\t\t\t\tif($(appointments).size() > 0){\n  \t\t\t\t\t\t\t\t\tvar check_status = 0;\n  \t\t\t\t\t\t\t\t\t$.each(appointments, function(keyA,valA) {\n  \t\t\t\t\t\t\t\t\t\tif(valD.user_id == valA.doctor_id && valS.slot == valA.appointment_time){\n  \t\t\t\t\t\t\t\t\t\t\ttable_content += '<td class=\"booked\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" title=\"Patient Id: '+valA.OldRegistrationNo+', \\n Appointment Id: '+ valA.id +',\\n Patient Name: '+valA.first_name+' '+valA.last_name+',\\n Doctor: '+valA.doctor_name+'\">Booked</td>';\n  \t\t\t\t\t\t\t\t\t\t\tcheck_status = 1;\n  \t\t\t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t\t});\n  \t\t\t\t\t\t\t\t\tif(check_status == 0){\n  \t\t\t\t\t\t\t\t\t\ttable_content += '<td class=\"available available_slot\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: '+valD.Name+',\\n Slot: '+valS.slot+'\" data-content=\"'+appointment_date+' '+valS.slot+':00?'+valD.user_id+'\" rel=\"\">Available</td>';\n  \t\t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t} else{\n  \t\t\t\t\t\t\t\t\ttable_content += '<td class=\"available available_slot\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: '+valD.Name+',\\n Slot: '+valS.slot+'\" data-content=\"'+appointment_date+' '+valS.slot+':00?'+valD.user_id+'\" rel=\"\">Available</td>';\n  \t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t\t}\n  \t\t\t\t\t\t\t });\n  \t\t\t\t\t\t  table_content += '</tr>';\n  \t\t\t\t\t\t  $('table.appointments').append(table_content);\n  \n  \n  \t\t\t\t   }\n  \t\t\t  });\n  \t\t  }\n  \t});\n  \n  });*/\n\n  Ember.Handlebars.registerBoundHelper('renderDoctorAppointmentBlock', function (branch_id, doctors, slots, options) {\n    var table_content = '';\n    $('table.doctor_appointments_' + branch_id + ' tr.slot_detail').remove();\n    var appointments = '';\n    var appointment_date = '';\n    if ($('#appointment_date').val() != '') {\n      appointment_date = $('#appointment_date').val();\n    } else {\n      var fullDate = new Date();\n      var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n      var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n      appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n    }\n    $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.api_url + 'appointments/' + branch_id,\n      data: {},\n      dataType: 'json',\n      success: function (res) {\n        $.each(slots, function (key, valS) {\n          table_content = '<tr class=\"slot_detail\">';\n          table_content += '<td>' + valS.slot + '</td>';\n          $.each(doctors, function (keyD, valD) {\n            if ($(res).size() > 0) {\n              var check_status = 0;\n              $.each(res, function (keyA, valA) {\n                if (valD.user_id == valA.doctor_id && valS.slot == valA.appointment_time) {\n                  table_content += '<td class=\"booked\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Appointment Details\" data-content=\"Patient ID : 109876 <br/> Name : John Smith\">Booked</td>';\n                  check_status = 1;\n                }\n              });\n              if (check_status == 0) {\n                table_content += '<td class=\"available available_slot\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Appointment Details\" data-content=\"' + moment(appointment_date).format('YYYY-MM-DD') + ' ' + valS.slot + ':00?' + valD.user_id + '\">Available</td>';\n              }\n            } else {\n              table_content += '<td class=\"available available_slot\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Appointment Details\" data-content=\"' + moment(appointment_date).format('YYYY-MM-DD') + ' ' + valS.slot + ':00?' + valD.user_id + '\">Available</td>';\n            }\n          });\n          table_content += '</tr>';\n          //$('table.doctor_appointments_'+branch_id).append(table_content);\n        });\n      },\n      error: function (error, x, y) {\n        _this.controller.set('appointmentsD', y);\n      }\n    });\n  });\n  Ember.Helper.helper('ifCond', function (v1, operator, v2, options) {\n    switch (operator) {\n      case '==':\n        return v1 == v2 ? true : false;\n      case '===':\n        return v1 === v2 ? options.fn(this) : options.inverse(this);\n      case '<':\n        return v1 < v2 ? options.fn(this) : options.inverse(this);\n      case '<=':\n        return v1 <= v2 ? options.fn(this) : options.inverse(this);\n      case '>':\n        return v1 > v2 ? options.fn(this) : options.inverse(this);\n      case '>=':\n        return v1 >= v2 ? options.fn(this) : options.inverse(this);\n      case '&&':\n        return v1 && v2 ? options.fn(this) : options.inverse(this);\n      case '||':\n        return v1 || v2 ? options.fn(this) : options.inverse(this);\n      default:\n        return options.inverse(this);\n    }\n  });\n});","define(\"clinic-dev/helpers/appointment-type-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function appointmentTypeIcon(params) {\n    var appointment_type = params[0];\n    if (appointment_type == 'vc') {\n      var icon = 'fas fa-video';\n    } else if (appointment_type == 'icp') {\n      var icon = 'icon-user';\n    } else if (appointment_type == 'ocp') {\n      var icon = 'fas fa-hospital';\n    } else if (appointment_type == 'phone') {\n      var icon = 'fa fa-phone-square';\n    } else if (appointment_type == 'email') {\n      var icon = 'fas fa-envelope';\n    }\n    return icon;\n  });\n});","define(\"clinic-dev/helpers/array-item\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function ([array, index], hash) {\n    return array !== undefined && array[index] !== undefined ? array[index] : undefined;\n  });\n});","define(\"clinic-dev/helpers/array-last-index-value\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function ([array], hash) {\n    var unit = '';\n    var lastEl = array[array.length - 1];\n    var range_type = lastEl.range_type;\n    if (range_type == 'th' || range_type == 'bnr') {\n      return unit = '(' + lastEl.lower_range + ' - ' + lastEl.upper_range + ' ' + lastEl.unit_name + ')';\n    }\n  });\n});","define(\"clinic-dev/helpers/array-size\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function arraySize(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/billed-current-due-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billedCurrentDueStatus(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var TotalPGAmount = hash.TotalPGAmount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous Bill Paid Amount\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_paid_amount = 0;\n    }\n    // Current PG amount\n    if (TotalPGAmount != '' || TotalPGAmount != undefined) {\n      var total_pg_amount = parseFloat(TotalPGAmount).toFixed(2);\n    } else {\n      var total_pg_amount = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    } else if (consultancy_waive_type == 'Not Set' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    var eVal = parseFloat(total) - (parseFloat(previous_paid_amount) - parseFloat(total_pg_amount));\n    var remaining_balance_status = Math.sign(eVal);\n    if (remaining_balance_status == 1) {\n      var payment_status = 'DUE';\n    } else if (remaining_balance_status == -1) {\n      var payment_status = 'ADVANCE';\n    } else if (remaining_balance_status == 0) {\n      var payment_status = 'NO DUE';\n    }\n    return 'Paid (' + payment_status + ')';\n  });\n});","define(\"clinic-dev/helpers/billed-current-due\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billedCurrentDue(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_paid_amount = hash.previous_bill_paid_amount;\n    var pgAmountText = hash.pgAmountText;\n\n    // console.log('medicine_amount='+medicine_amount);\n    // console.log('medicine_category_discount='+medicine_category_discount);\n    // console.log('consultancy_fees='+consultancy_fees);\n    // console.log('consultancy_category_discount='+consultancy_category_discount);\n    // console.log('medicine_onthefly_check='+medicine_onthefly_check);\n    // console.log('medicine_onthefly_discount='+medicine_onthefly_discount);\n    // console.log('consultancy_waive_type='+consultancy_waive_type);\n    // console.log('consultancy_waived_amount='+consultancy_waived_amount);\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous Bill Paid Amount\n    if (previous_bill_paid_amount != '' || previous_bill_paid_amount != undefined) {\n      var previous_paid_amount = parseFloat(previous_bill_paid_amount).toFixed(2);\n    } else {\n      var previous_paid_amount = 0;\n    }\n    // Current PG amount\n    if (pgAmountText != '' || pgAmountText != undefined) {\n      var current_pg_amount = parseFloat(pgAmountText).toFixed(2);\n    } else {\n      var current_pg_amount = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    //var pgamount = Math.abs(parseFloat(previous_pg_amount) - parseFloat(current_pg_amount));\n    //console.log(pgamount+'pgamount');\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge) + parseFloat(current_pg_amount);\n    //var dec = (gatewayCharge / 100).toFixed(2); //its convert 10 into 0.10\n    //var mult = total * dec; // gives the value for subtract from main value\n    //var pg_with_total = parseFloat(total).toFixed(2);\n    var eVal = parseFloat(total) - parseFloat(previous_paid_amount);\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/billed-payment-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billedPaymentStatus(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var TotalPGAmount = hash.TotalPGAmount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    var lastPaidAmount = hash.lastPaidAmount;\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous Bill Paid Amount\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_paid_amount = 0;\n    }\n    // Current Bill Paid Amount\n    if (lastPaidAmount != '' || lastPaidAmount != undefined) {\n      var current_bill_paid_amount = parseFloat(lastPaidAmount).toFixed(2);\n    } else {\n      var current_bill_paid_amount = 0;\n    }\n    // PG Amount\n    if (TotalPGAmount != '') {\n      var total_pg_amount = parseFloat(TotalPGAmount).toFixed(2);\n    } else {\n      var total_pg_amount = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    } else if (consultancy_waive_type == 'Not Set' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    var eVal = parseFloat(total) - (parseFloat(previous_paid_amount) - parseFloat(total_pg_amount)) - parseFloat(current_bill_paid_amount);\n    var remaining_balance_status = Math.sign(eVal);\n    if (remaining_balance_status == 1) {\n      var payment_status = 'DUE';\n      $('.payment_nodue').removeAttr('disabled');\n    } else if (remaining_balance_status == -1) {\n      var payment_status = 'ADVANCE';\n      $('.payment_nodue').removeAttr('disabled');\n    } else if (remaining_balance_status == 0) {\n      var payment_status = 'NO DUE';\n      $('.payment_nodue').attr('disabled', 'disabled');\n    }\n    return payment_status;\n  });\n});","define(\"clinic-dev/helpers/billed-sum\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billedSum(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var PGAmount = hash.PGAmount;\n    // console.log('medicine_amount='+medicine_amount);\n    // console.log('medicine_category_discount='+medicine_category_discount);\n    // console.log('consultancy_fees='+consultancy_fees);\n    // console.log('consultancy_category_discount='+consultancy_category_discount);\n    // console.log('medicine_onthefly_check='+medicine_onthefly_check);\n    // console.log('medicine_onthefly_discount='+medicine_onthefly_discount);\n    // console.log('consultancy_waive_type='+consultancy_waive_type);\n    // console.log('consultancy_waived_amount='+consultancy_waived_amount);\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // PG Amount\n    if (PGAmount != '') {\n      var pg_amount = parseFloat(PGAmount).toFixed(2);\n    } else {\n      var pg_amount = 0;\n    }\n\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge) + parseFloat(pg_amount);\n    //var dec = (gatewayCharge / 100).toFixed(2); //its convert 10 into 0.10\n    //var mult = total * dec; // gives the value for subtract from main value\n    //var pg_with_total = parseFloat(total + mult).toFixed(2);\n    var eVal = isNaN(total) ? 0.0 : total;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/billed-total-dues-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billedTotalDuesAmount(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var PGAmount = hash.PGAmount;\n    var previous_bill_paid_amount = hash.previous_bill_paid_amount;\n    var visitTotalReceived = hash.visitTotalReceived;\n    var refund = hash.refund;\n    //console.log(refund);\n    // console.log('medicine_amount='+medicine_amount);\n    // console.log('medicine_category_discount='+medicine_category_discount);\n    // console.log('consultancy_fees='+consultancy_fees);\n    // console.log('consultancy_category_discount='+consultancy_category_discount);\n    // console.log('medicine_onthefly_check='+medicine_onthefly_check);\n    // console.log('medicine_onthefly_discount='+medicine_onthefly_discount);\n    // console.log('consultancy_waive_type='+consultancy_waive_type);\n    // console.log('consultancy_waived_amount='+consultancy_waived_amount);\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // PG Amount\n    if (PGAmount != '') {\n      var pg_amount = parseFloat(PGAmount).toFixed(2);\n    } else {\n      var pg_amount = 0;\n    }\n    console.log(pg_amount);\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge) + parseFloat(pg_amount);\n    console.log(refund + 'refund');\n    //var dec = (gatewayCharge / 100).toFixed(2); //its convert 10 into 0.10\n    //var mult = total * dec; // gives the value for subtract from main value\n    var pg_with_total = parseFloat(total).toFixed(2);\n    if (previous_bill_paid_amount != undefined && refund == '0') {\n      var total_due_amount = parseFloat(pg_with_total) - parseFloat(previous_bill_paid_amount);\n      var eVal = isNaN(total_due_amount) ? 0.0 : total_due_amount;\n      console.log('else-a' + eVal);\n    } else if (previous_bill_paid_amount != undefined && refund == '1') {\n      var total_due_amount = parseFloat(pg_with_total) - parseFloat(previous_bill_paid_amount);\n      var eVal = isNaN(total_due_amount) ? 0.0 : total_due_amount;\n      console.log('else-aaa' + eVal);\n    } else {\n      //console.log('else-b');\n      var eVal = isNaN(pg_with_total) ? 0.0 : pg_with_total;\n    }\n    //var eVal = isNaN(pg_with_total) ? 0.0 : pg_with_total;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/billpatient-payment-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billpatientPaymentStatus(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    var PreviousPGAmount = hash.PreviousPGAmount;\n    var currentPGAmount = hash.currentPGAmount;\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous PG amount, Written by shubh tiwari as on 22 August 2022\n    if (PreviousPGAmount != '' || PreviousPGAmount != undefined) {\n      var previous_pg_amount = parseFloat(PreviousPGAmount).toFixed(2);\n    } else {\n      var previous_pg_amount = 0;\n    }\n\n    // Previous bill paid  Amount , Written by shubh tiwari as on 22 August 2022\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_bill_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_bill_paid_amount = 0;\n    }\n\n    // Current PG amount, Written by shubh tiwari as on 22 August 2022\n    if (currentPGAmount != '' || currentPGAmount != undefined) {\n      var current_pg_amount = parseFloat(currentPGAmount).toFixed(2);\n    } else {\n      var current_pg_amount = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    } else if (consultancy_waive_type == 'Not Set' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    // here total is as label A, written by shubh tiwari as on 22 August 2022\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    // here previous_bill_amount variable is as label B, written by shubh tiwari as on 22 August 2022\n    // here previous_pg_amount variable is as label C, written by shubh tiwari as on 22 August 2022\n    // here current_pg_amount variable is as label D, written by shubh tiwari as on 22 August 2022\n    // here is total_due variable is as label (A - (B - C) + D)\n    var total_due = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount);\n    var eVal = isNaN(total_due) ? 0.0 : total_due;\n    var remaining_balance_status = Math.sign(eVal);\n    if (remaining_balance_status == 1) {\n      var payment_status = 'DUE';\n    } else if (remaining_balance_status == -1) {\n      var payment_status = 'ADVANCE';\n    } else if (remaining_balance_status == 0) {\n      var payment_status = 'NO DUE';\n    }\n    return payment_status;\n  });\n});","define(\"clinic-dev/helpers/billpatient-sum\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billpatientSum(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    //console.log(PGAmount+'PGAmount');\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    var eVal = isNaN(total) ? 0.0 : total;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/billpatient-total-dues-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function billpatientTotalDuesAmount(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    var PreviousPGAmount = hash.PreviousPGAmount;\n    var currentPGAmount = hash.currentPGAmount;\n    // others charge, Written by shubh tiwari as on 22 August 2022\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous PG amount, Written by shubh tiwari as on 22 August 2022\n    if (PreviousPGAmount != '' || PreviousPGAmount != undefined) {\n      var previous_pg_amount = parseFloat(PreviousPGAmount).toFixed(2);\n    } else {\n      var previous_pg_amount = 0;\n    }\n\n    // Previous bill paid  Amount , Written by shubh tiwari as on 22 August 2022\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_bill_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_bill_paid_amount = 0;\n    }\n\n    // Current PG amount, Written by shubh tiwari as on 22 August 2022\n    if (currentPGAmount != '' || currentPGAmount != undefined) {\n      var current_pg_amount = parseFloat(currentPGAmount).toFixed(2);\n    } else {\n      var current_pg_amount = 0;\n    }\n    //medicine discount, Written by shubh tiwari as on 22 August 2022\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // Consultancy Discount, Written by shubh tiwari as on 22 August 2022\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    // here total is as label A, written by shubh tiwari as on 22 August 2022\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    // here previous_bill_amount variable is as label B, written by shubh tiwari as on 22 August 2022\n    // here previous_pg_amount variable is as label C, written by shubh tiwari as on 22 August 2022\n    // here current_pg_amount variable is as label D, written by shubh tiwari as on 22 August 2022\n    // here is total_due variable is as label (A - (B - C) + D)\n    var total_due = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount);\n    var eVal = isNaN(total_due) ? 0.0 : total_due;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/blood-type\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function bloodType(params) {\n    var options = {\n      'A+': 'A+',\n      'A-': 'A-',\n      'B+': 'B+',\n      'B-': 'B-',\n      'O+': 'O+',\n      'O-': 'O-',\n      'AB+': 'AB+',\n      'AB-': 'AB-'\n    };\n    var augustKeys = Object.keys(options);\n    return augustKeys;\n  });\n});","define(\"clinic-dev/helpers/bmi-conversion\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function bmiConversion(params) {\n    var height_inches = params[1];\n    var height_unit = params[0];\n    var weight_kgs = params[3];\n    var weight_unit = params[2];\n    if (height_unit == 'feet' && weight_unit == 'pound') {\n      // convert feet to meter\n      if (height_inches != '') {\n        var foot_in_meter = height_inches / 3.281;\n      } else {\n        var foot_in_meter = 0;\n      }\n      // convert inches to meter\n      // if(height_inches1!=''){\n      //     var inches_in_meter = height_inches1/39.37;                ;\n      // }else{\n      //     var inches_in_meter = 0;\n      // }\n      //console.log(foot_in_meter);\n      //console.log(inches_in_meter);\n      var total_meter = parseFloat(foot_in_meter).toFixed(2);\n      //console.log(total_meter);\n      // convert Pound to Kg\n      if (weight_kgs != '') {\n        var pound_in_kg = weight_kgs / 2.205;\n      } else {\n        var pound_in_kg = 0;\n      }\n      //console.log(pound_in_kg);\n      var BMI = pound_in_kg / Math.pow(total_meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      return output;\n    } else if (height_unit == 'inch' && weight_unit == 'pound') {\n      // convert inches to meter\n      if (height_inches != '') {\n        var inches_in_meter = height_inches / 39.37;\n      } else {\n        var inches_in_meter = 0;\n      }\n\n      //console.log(inches_in_meter);\n      var meter = parseFloat(inches_in_meter).toFixed(2);\n      //console.log(meter);\n      // convert Pound to Kg\n      if (weight_kgs != '') {\n        var pound_in_kg = weight_kgs / 2.205;\n      } else {\n        var pound_in_kg = 0;\n      }\n      //console.log(pound_in_kg);\n      var BMI = pound_in_kg / Math.pow(meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      return output;\n    } else if (height_unit == 'm' && weight_unit == 'pound') {\n      if (height_inches != '') {\n        var meter = height_inches;\n      } else {\n        var meter = 0;\n      }\n      // convert Pound to Kg\n      if (weight_kgs != '') {\n        var pound_in_kg = weight_kgs / 2.205;\n      } else {\n        var pound_in_kg = 0;\n      }\n      //console.log(meter);\n      //console.log(pound_in_kg);\n      var BMI = pound_in_kg / Math.pow(meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      //console.log(output);\n      return output;\n    } else if (height_unit == 'cm' && weight_unit == 'pound') {\n      // convert centimeter to meter\n      if (height_inches != '') {\n        var centimeter_in_meter = height_inches / 100;\n      } else {\n        var centimeter_in_meter = 0;\n      }\n\n      //console.log(centimeter_in_meter);\n      var meter = parseFloat(centimeter_in_meter).toFixed(2);\n      //console.log(meter);\n      // convert Pound to Kg\n      if (weight_kgs != '') {\n        var pound_in_kg = weight_kgs / 2.205;\n      } else {\n        var pound_in_kg = 0;\n      }\n      //console.log(pound_in_kg);\n      var BMI = pound_in_kg / Math.pow(meter, 2);\n      if (BMI != 'Infinity') {\n        var bmi_value = pound_in_kg / Math.pow(meter, 2);\n      } else {\n        var bmi_value = 0;\n      }\n      var output = Math.round(bmi_value * 100) / 100;\n      return output;\n    } else if (height_unit == 'feet' && weight_unit == 'kg') {\n      // convert feet to meter\n      if (height_inches != '') {\n        var foot_in_meter = height_inches / 39.37;\n      } else {\n        var foot_in_meter = 0;\n      }\n      var total_meter = parseFloat(foot_in_meter).toFixed(2);\n      if (weight_kgs != '') {\n        var kg = weight_kgs;\n      } else {\n        var kg = 0;\n      }\n      var BMI = kg / Math.pow(total_meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      return output;\n    } else if (height_unit == 'inch' && weight_unit == 'kg') {\n      // convert inches to meter\n      if (height_inches != '') {\n        var inches_in_meter = height_inches / 39.37;\n      } else {\n        var inches_in_meter = 0;\n      }\n      var meter = parseFloat(inches_in_meter).toFixed(2);\n      if (weight_kgs != '') {\n        var kg = weight_kgs;\n      } else {\n        var kg = 0;\n      }\n      //console.log(pound_in_kg);\n      var BMI = kg / Math.pow(meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      return output;\n    } else if (height_unit == 'm' && weight_unit == 'kg') {\n      if (height_inches != '') {\n        var meter = height_inches;\n      } else {\n        var meter = 0;\n      }\n      if (weight_kgs != '') {\n        var kg = weight_kgs;\n      } else {\n        var kg = 0;\n      }\n      var BMI = kg / Math.pow(meter, 2);\n      var output = Math.round(BMI * 100) / 100;\n      return output;\n    } else if (height_unit == 'cm' && weight_unit == 'kg') {\n      // convert centimeter to meter\n      if (height_inches != '') {\n        var centimeter_in_meter = height_inches / 100;\n      } else {\n        var centimeter_in_meter = 0;\n      }\n      var meter = parseFloat(centimeter_in_meter).toFixed(2);\n      if (weight_kgs != '') {\n        var kg = weight_kgs;\n      } else {\n        var kg = 0;\n      }\n      //console.log(pound_in_kg);\n\n      var BMI = kg / Math.pow(meter, 2);\n      if (BMI != 'Infinity') {\n        var bmi_value = kg / Math.pow(meter, 2);\n      } else {\n        var bmi_value = 0;\n      }\n      var output = Math.round(bmi_value * 100) / 100;\n      return output;\n    }\n  });\n});","define(\"clinic-dev/helpers/body-temp-conversion\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function bodyTempConversion(params) {\n    if (params[1] == '°C') {\n      var celsius = params[0];\n      var value = celsius;\n      return value;\n    } else if (params[1] == '°F') {\n      var fahrenheit_to_celsius = params[0] * 9 / 5 + 32;\n      var two_decimal_places = fahrenheit_to_celsius.toFixed(1);\n      var value = two_decimal_places;\n      return value;\n    }\n    return value;\n  });\n});","define(\"clinic-dev/helpers/body-temp\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function bodyTemp(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/can-access-route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function canAccessRoute(params /*, hash*/) {\n    console.log(params);\n    return params;\n  });\n});","define(\"clinic-dev/helpers/capitalize\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.capitalize = capitalize;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function capitalize([string]) {\n    if (!string) return '';\n    return string.charAt(0).toUpperCase() + string.slice(1);\n  }\n  var _default = _exports.default = Ember.Helper.helper(capitalize);\n});","define(\"clinic-dev/helpers/case-taken-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.caseTakenList = caseTakenList;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function caseTakenList(params) {\n    if (params[0] != undefined) {\n      //console.log(params[0]);\n      $('#tbodyid').empty();\n      $.each(params[0], function (index, val) {\n        var html = '';\n        var action = '';\n        var id = val.id;\n        var DKBC_disease_id = val.DKBC_disease_id;\n        var appointment_id = val.appointment_id;\n        var DKBC_organ_id = val.DKBC_organ_id;\n        var DKBC_system_id = val.DKBC_system_id;\n        var DKBC_disease_others = val.DKBC_disease_others;\n        var major_condition = val.major_condition;\n        var DKBC_organ_others = val.DKBC_organ_others;\n        var DKBC_system_others = val.DKBC_system_others;\n        var ICD_disease_name = val.ICD_disease_name;\n        var disease = val.disease;\n        var organ = val.organ;\n        var system = val.system;\n        if (disease != undefined) {\n          var disease_name = disease.name;\n        }\n        if (organ != undefined) {\n          var organ_name = organ.name;\n        }\n        if (system != undefined) {\n          var system_name = system.name;\n        }\n        if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n          //console.log('case-taken-a');\n          var table_diesase_name = disease_name + ' ,' + organ_name + ' ,' + system_name;\n        } else if (DKBC_disease_id != 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n          //console.log('case-taken-b');\n          var table_diesase_name = disease_name + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id == 0) {\n          //console.log('case-taken-c');\n          var table_diesase_name = disease_name + ' ,' + organ_name + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_id == 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n          //console.log('case-taken-d');\n          var table_diesase_name = DKBC_disease_others + ' ,' + organ_name + ' ,' + system_name;\n        } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others == null && DKBC_system_id != 0 && DKBC_system_others == null) {\n          //console.log('case-taken-e-1');\n          var table_diesase_name = DKBC_disease_others + ' ,' + system_name;\n        } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id != 0) {\n          //console.log('case-taken-e');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + system_name;\n        } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0 && DKBC_disease_others == null && DKBC_organ_others == null && DKBC_system_others == null) {\n          //console.log('case-taken-f');\n          var table_diesase_name = ICD_disease_name;\n        } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others !== null && DKBC_system_id == 0 && DKBC_system_others !== null) {\n          //console.log('case-taken-g');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others !== null && DKBC_system_id == 0 && DKBC_system_others == null) {\n          //console.log('case-taken-h');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others;\n        } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others == null && DKBC_system_id == 0 && DKBC_system_others == null) {\n          //console.log('case-taken-i');\n          var table_diesase_name = DKBC_disease_others;\n        } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && DKBC_system_others !== null && DKBC_system_others !== '' && DKBC_organ_others !== null && DKBC_organ_others !== '') {\n          //console.log('case-taken-j');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && DKBC_system_others !== null && DKBC_system_others !== '' && (DKBC_organ_others == null || DKBC_organ_others == '')) {\n          //console.log('case-taken-k');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && (DKBC_system_others == null || DKBC_system_others == '') && DKBC_organ_others !== null && DKBC_organ_others !== '') {\n          //console.log('case-taken-l');\n          var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_system_others;\n        } else if (DKBC_disease_others !== null && DKBC_disease_id == 0 && DKBC_organ_id !== 0 && DKBC_organ_others == null && DKBC_system_id == 0 && DKBC_organ_others == null) {\n          //console.log('case-taken-l-1');\n          var table_diesase_name = DKBC_disease_others + ' ,' + organ_name;\n        } else {\n          //console.log('case-taken-m');\n          var table_diesase_name = '';\n        }\n        // for case taken remove button\n        var value = params[2];\n        var arr = params[1].split(',');\n        var remove_case_taken_status = false;\n        for (var i = 0; i < arr.length; i++) {\n          var name = arr[i];\n          if (name == value) {\n            remove_case_taken_status = true;\n            break;\n          }\n        }\n        // for case taken edit button\n        var value1 = params[3];\n        var arr1 = params[1].split(',');\n        var edit_case_taken_status = false;\n        for (var i = 0; i < arr.length; i++) {\n          var name1 = arr1[i];\n          if (name1 == value1) {\n            edit_case_taken_status = true;\n            break;\n          }\n        }\n        if (remove_case_taken_status == true) {\n          action += '<button class=\"btn btn-danger btn-sm float-right\" title=\"Remove Case Taken\" id=\"caseTakenDetails\" data-takenid=\"' + id + '\" data-disease_name=\"' + table_diesase_name + '\" data-appointment_id=\"' + appointment_id + '\"><i class=\"fas fa-times\" aria-hidden=\"true\"></i></button>';\n        } else {\n          action += ' ';\n        }\n        if (edit_case_taken_status == true) {\n          action += '<button class=\"btn btn-default btn-sm float-left ml-2\" title=\"Edit\" id=\"editCaseTakingData\" data-takenid=\"' + id + '\"><i class=\"fas fa-edit\" aria-hidden=\"true\"></i></button>';\n        } else {\n          action += ' ';\n        }\n        var singular_day, singular_month, singular_year;\n        var symptom_event_date;\n        var day = val.symptom_duration_day;\n        if (day != '' && day != null && day == 1) {\n          singular_day = ' Day ';\n        } else {\n          singular_day = ' Days ';\n        }\n        var month = val.symptom_duration_month;\n        if (month != '' && month != null && month == 1) {\n          singular_month = ' Month ';\n        } else {\n          singular_month = ' Months ';\n        }\n        var year = val.symptom_duration_year;\n        if (year != '' && year != null && year == 1) {\n          singular_year = ' Year';\n        } else {\n          singular_year = ' Years';\n        }\n        if (day != '' && day != null && month != '' && month != null && year != '' && year != null) {\n          symptom_event_date = day + singular_day + month + singular_month + year + singular_year;\n        } else if (day != '' && day != null && month != '' && month != null) {\n          symptom_event_date = day + singular_day + month + singular_month;\n        } else if (month != '' && month != null && year != '' && year != null) {\n          symptom_event_date = month + singular_month + year + singular_year;\n        } else if (day != '' && day != null) {\n          symptom_event_date = day + singular_day;\n        } else if (month != '' && month != null) {\n          symptom_event_date = month + singular_month;\n        } else if (year != '' && year != null) {\n          symptom_event_date = year + singular_year;\n        } else {\n          var event_date = val.symptom_event_date;\n          if (event_date != '') {\n            symptom_event_date = event_date;\n          } else {\n            symptom_event_date = '';\n          }\n        }\n        // Clear previous content\n        //$('#tbodyid').empty();\n        //var symptom_event_date = val.symptom_event_date;\n        var details_notes = val.details_notes;\n        var patient_status = val.patient_status;\n        let rowClass = 'caseorder'; // default class\n        if (val.is_modified === 1) {\n          rowClass += ' changeCaseTaken';\n        } else {\n          rowClass += ' noChangeCaseTaken';\n        }\n        html += '<tr data-order=\"' + val.order + '\" class=\"' + rowClass + '\">';\n        html += '<td class=\"capitalize major_condition' + major_condition + '\">' + table_diesase_name + '</td>';\n        html += '<td>' + symptom_event_date + '</td>';\n        html += '<td>' + details_notes + '</td>';\n        html += '<td>' + patient_status + '</td>';\n        html += '<td>' + action + '</td>';\n        html += '</tr>';\n        $('#casetakenlist').append(html);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(caseTakenList);\n});","define(\"clinic-dev/helpers/case-taken-preview-helper\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.caseTakenPreviewHelper = caseTakenPreviewHelper;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function caseTakenPreviewHelper(params) {\n    if (params[0] != undefined) {\n      //console.log(params[0]);\n      $('#casetakenPreview').empty();\n      if (params[0].length > 0) {\n        $.each(params[0], function (index, val) {\n          var html = '';\n          var DKBC_disease_id = val.DKBC_disease_id;\n          var DKBC_organ_id = val.DKBC_organ_id;\n          var DKBC_system_id = val.DKBC_system_id;\n          var DKBC_disease_others = val.DKBC_disease_others;\n          var major_condition = val.major_condition;\n          var DKBC_organ_others = val.DKBC_organ_others;\n          var DKBC_system_others = val.DKBC_system_others;\n          var ICD_disease_name = val.ICD_disease_name;\n          var disease = val.disease;\n          var organ = val.organ;\n          var system = val.system;\n          if (disease != undefined) {\n            var disease_name = disease.name;\n          }\n          if (organ != undefined) {\n            var organ_name = organ.name;\n          }\n          if (system != undefined) {\n            var system_name = system.name;\n          }\n          if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n            //console.log('case-taken-a');\n            var table_diesase_name = disease_name + ' ,' + organ_name + ' ,' + system_name;\n          } else if (DKBC_disease_id != 0 && DKBC_organ_id == 0 && DKBC_system_id == 0) {\n            //console.log('case-taken-b');\n            var table_diesase_name = disease_name + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_id != 0 && DKBC_organ_id != 0 && DKBC_system_id == 0) {\n            //console.log('case-taken-c');\n            var table_diesase_name = disease_name + ' ,' + organ_name + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_id == 0 && DKBC_organ_id != 0 && DKBC_system_id != 0) {\n            //console.log('case-taken-d');\n            var table_diesase_name = DKBC_disease_others + ' ,' + organ_name + ' ,' + system_name;\n          } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others == null && DKBC_system_id != 0 && DKBC_system_others == null) {\n            //console.log('case-taken-e-1');\n            var table_diesase_name = DKBC_disease_others + ' ,' + system_name;\n          } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id != 0) {\n            //console.log('case-taken-e');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + system_name;\n          } else if (DKBC_disease_id == 0 && DKBC_organ_id == 0 && DKBC_system_id == 0 && DKBC_disease_others == null && DKBC_organ_others == null && DKBC_system_others == null) {\n            //console.log('case-taken-f');\n            var table_diesase_name = ICD_disease_name;\n          } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others !== null && DKBC_system_id == 0 && DKBC_system_others !== null) {\n            //console.log('case-taken-g');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others !== null && DKBC_system_id == 0 && DKBC_system_others == null) {\n            //console.log('case-taken-h');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others;\n          } else if (DKBC_disease_id == 0 && DKBC_disease_others !== null && DKBC_organ_id == 0 && DKBC_organ_others == null && DKBC_system_id == 0 && DKBC_system_others == null) {\n            //console.log('case-taken-i');\n            var table_diesase_name = DKBC_disease_others;\n          } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && DKBC_system_others !== null && DKBC_system_others !== '' && DKBC_organ_others !== null && DKBC_organ_others !== '') {\n            //console.log('case-taken-j');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_organ_others + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && DKBC_system_others !== null && DKBC_system_others !== '' && (DKBC_organ_others == null || DKBC_organ_others == '')) {\n            //console.log('case-taken-k');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_others !== null && DKBC_disease_others !== '' && (DKBC_system_others == null || DKBC_system_others == '') && DKBC_organ_others !== null && DKBC_organ_others !== '') {\n            //console.log('case-taken-l');\n            var table_diesase_name = DKBC_disease_others + ' ,' + DKBC_system_others;\n          } else if (DKBC_disease_others !== null && DKBC_disease_id == 0 && DKBC_organ_id !== 0 && DKBC_organ_others == null && DKBC_system_id == 0 && DKBC_organ_others == null) {\n            //console.log('case-taken-l-1');\n            var table_diesase_name = DKBC_disease_others + ' ,' + organ_name;\n          } else {\n            //console.log('case-taken-m');\n            var table_diesase_name = '';\n          }\n\n          //var symptom_event_date = val.symptom_event_date;\n          var singular_day, singular_month, singular_year;\n          var symptom_event_date;\n          var day = val.symptom_duration_day;\n          if (day != '' && day != null && day == 1) {\n            singular_day = ' Day ';\n          } else {\n            singular_day = ' Days ';\n          }\n          var month = val.symptom_duration_month;\n          if (month != '' && month != null && month == 1) {\n            singular_month = ' Month ';\n          } else {\n            singular_month = ' Months ';\n          }\n          var year = val.symptom_duration_year;\n          if (year != '' && year != null && year == 1) {\n            singular_year = ' Year';\n          } else {\n            singular_year = ' Years';\n          }\n          if (day != '' && day != null && month != '' && month != null && year != '' && year != null) {\n            symptom_event_date = day + singular_day + month + singular_month + year + singular_year;\n          } else if (day != '' && day != null && month != '' && month != null) {\n            symptom_event_date = day + singular_day + month + singular_month;\n          } else if (month != '' && month != null && year != '' && year != null) {\n            symptom_event_date = month + singular_month + year + singular_year;\n          } else if (day != '' && day != null) {\n            symptom_event_date = day + singular_day;\n          } else if (month != '' && month != null) {\n            symptom_event_date = month + singular_month;\n          } else if (year != '' && year != null) {\n            symptom_event_date = year + singular_year;\n          } else {\n            var event_date = val.symptom_event_date;\n            if (event_date != '') {\n              symptom_event_date = event_date;\n            } else {\n              symptom_event_date = '';\n            }\n          }\n          var details_notes = val.details_notes;\n          var patient_status = val.patient_status;\n          var hemeopatichdrug = val.hemeopatichdrug;\n          var nonhemeopatichdrug = val.nonhemeopatichdrug;\n          html += '<div class=\"row\" id=\"mainDiv' + index + '\">';\n          html += '<div class=\"col-md-6 lefttable\">';\n          html += '<h5 class=\"popup-sub-title\" style=\"margin-top: -4px;\">Disease</h5>';\n          html += '<div class=\"table-responsive\">';\n          html += '<table class=\"table table-bordered disease\">';\n          html += '<thead>';\n          html += '<tr>';\n          html += '<th class=\"absorbing-column\">DISEASE NAME</th>';\n          html += '<th style=\"width:25%;color: black;\">SYMPTOM DURATION</th>';\n          html += '<th style=\"width: 20%;color: black;\">SYMPTOM STATUS</th>';\n          html += '</tr>';\n          html += '</thead>';\n          html += '<tbody id=\"Diseasetbodyid\">';\n          html += '<tr>';\n          html += '<td class=\"capitalize major_condition' + major_condition + '\">' + table_diesase_name + '</td>';\n          html += '<td>' + symptom_event_date + '</td>';\n          html += '<td>' + patient_status + '</td>';\n          html += '</tr>';\n          html += '</tbody>';\n          html += '</table>';\n          html += '</div>';\n          html += '<div class=\"details_notes\">';\n          html += '<p>' + details_notes + '</p>';\n          html += '</div>';\n          html += '</div>';\n          html += '<div class=\"col-md-6 righttable\">';\n          html += '<h5 class=\"popup-sub-title\" style=\"margin-top: -4px;\">Homeopathic Drugs</h5>';\n          html += '<div class=\"table-responsive\">';\n          html += '<table class=\"table table-bordered homopathic_drugd\">';\n          html += '<thead>';\n          html += '<tr>';\n          html += '<th style=\"width:41%;color: black;\">DRUG NAME & DOSAGE</th>';\n          html += '<th style=\"width:25%;color: black;\">FREQUENCY</th>';\n          html += '<th style=\"width:17%;color: black;\">START DT</th>';\n          html += '<th style=\"width:17%;color: black;\">STOPPED DT</th>';\n          html += '</tr>';\n          html += '</thead>';\n          html += '<tbody id=\"Homeopathictbodyid\">';\n          if (hemeopatichdrug.length > 0) {\n            $.each(hemeopatichdrug, function (index3, homopathic_val) {\n              var dateFormat = 'DD/MM/YYYY';\n              var start_date = moment(homopathic_val.start_date).format('DD/MM/YYYY');\n              var h_check_start_date = moment(start_date, dateFormat, true).isValid(); // return true\n              if (h_check_start_date == true) {\n                var h_start_date = start_date;\n              } else {\n                var h_start_date = 'NA';\n              }\n              var stopped_date = moment(homopathic_val.stopped_date).format('DD/MM/YYYY');\n              var h_check_stopped_date = moment(stopped_date, dateFormat, true).isValid(); // return true\n              if (h_check_stopped_date == true) {\n                var h_stopped_date = stopped_date;\n              } else {\n                var h_stopped_date = 'NA';\n              }\n              html += '<tr>';\n              html += '<td>' + homopathic_val.drug_name + '</td>';\n              html += '<td>' + homopathic_val.drug_intruction + '</td>';\n              html += '<td>' + h_start_date + '</td>';\n              html += '<td>' + h_stopped_date + '</td>';\n              html += '</tr>';\n            });\n          } else {\n            html += '<tr>';\n            html += '<td colspan=\"4\" class=\"norecord\">No data provided</td>';\n            html += '</tr>';\n          }\n          html += '</tbody>';\n          html += '</table>';\n          html += '</div>';\n          html += '<h5 class=\"popup-sub-title\">Non Homeopathic Drugs</h5>';\n          html += '<div class=\"table-responsive\">';\n          html += '<table class=\"table table-bordered allopathic_drugs\">';\n          html += '<thead>';\n          html += '<tr>';\n          html += '<th style=\"width:41%;color: black;\">DRUG NAME</th>';\n          html += '<th style=\"width:25%;color: black;\">FREQUENCY</th>';\n          html += '<th style=\"width:17%;color: black;\">START DT</th>';\n          html += '<th style=\"width:17%;color: black;\">STOPPED DT</th>';\n          html += '</tr>';\n          html += '</thead>';\n          html += '<tbody id=\"nonHomeopathictbodyid\">';\n          if (nonhemeopatichdrug.length > 0) {\n            $.each(nonhemeopatichdrug, function (index4, non_homopathic_val) {\n              var dateFormat = 'DD/MM/YYYY';\n              var start_date = moment(non_homopathic_val.start_date).format('DD/MM/YYYY');\n              var nh_check_start_date = moment(start_date, dateFormat, true).isValid(); // return true\n              if (nh_check_start_date == true) {\n                var nh_start_date = start_date;\n              } else {\n                var nh_start_date = 'NA';\n              }\n              var stopped_date = moment(non_homopathic_val.stopped_date).format('DD/MM/YYYY');\n              var nh_check_stopped_date = moment(stopped_date, dateFormat, true).isValid(); // return true\n              if (nh_check_stopped_date == true) {\n                var nh_stopped_date = stopped_date;\n              } else {\n                var nh_stopped_date = 'NA';\n              }\n              html += '<tr>';\n              html += '<td>' + non_homopathic_val.drug_name + '</td>';\n              html += '<td>' + non_homopathic_val.drug_intruction + '</td>';\n              html += '<td>' + nh_start_date + '</td>';\n              html += '<td>' + nh_stopped_date + '</td>';\n              html += '</tr>';\n            });\n          } else {\n            html += '<tr>';\n            html += '<td colspan=\"4\" class=\"norecord\">No data provided</td>';\n            html += '</tr>';\n          }\n          html += '</tbody>';\n          html += '</table>';\n          html += '</div>';\n          html += '</div>';\n          html += '</div>';\n          html += '<div id=\"preview-case-bottom1\"></div>';\n          $('#casetakenPreview').append(html);\n        });\n      }\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(caseTakenPreviewHelper);\n});","define(\"clinic-dev/helpers/case-visit-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function caseVisitHistory(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/check-equal-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.checkEqualDate = checkEqualDate;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function checkEqualDate(params) {\n    var what = moment(params[0]).format('YYYY-MM-DD');\n    var val = params[1];\n    if (params[4] == 'debug') {\n      console.log(params);\n    }\n    if (what == val) {\n      return params[2] || true;\n    } else {\n      return params[3] || false;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(checkEqualDate);\n});","define(\"clinic-dev/helpers/check-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkEqual(params) {\n    if (params[0] == params[1]) {\n      var equal = true;\n    } else {\n      var equal = false;\n    }\n    return equal;\n  });\n});","define(\"clinic-dev/helpers/check-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.checkId = checkId;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function checkId(params) {\n    var id = params[0];\n    var idArray = params[1];\n    var status = false;\n    if (idArray != undefined) {\n      for (var i = 0; i < idArray.length; i++) {\n        var item_id = idArray[i];\n        if (item_id === id) {\n          status = true;\n          break;\n        }\n      }\n    }\n    //console.log(status);\n    return status;\n  }\n  var _default = _exports.default = Ember.Helper.helper(checkId);\n});","define(\"clinic-dev/helpers/check-permission\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.checkPermission = checkPermission;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function checkPermission(params) {\n    var value = params[0];\n    var arr = params[1].split(',');\n    var status = false;\n    for (var i = 0; i < arr.length; i++) {\n      var name = arr[i];\n      if (name == value) {\n        status = true;\n        break;\n      }\n    }\n    //console.log(status);\n    return status;\n  }\n  var _default = _exports.default = Ember.Helper.helper(checkPermission);\n});","define(\"clinic-dev/helpers/checklenght\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.checklenght = checklenght;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function checklenght(params) {\n    var text = params[0];\n    var text_length = text.length;\n    var limit = params[1];\n    return text_length > limit ? true : false;\n  }\n  var _default = _exports.default = Ember.Helper.helper(checklenght);\n});","define(\"clinic-dev/helpers/checkout-case-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.checkoutCaseHistory = checkoutCaseHistory;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function checkoutCaseHistory(params) {\n    if (params[0] != undefined) {\n      //console.log(params[0]);\n      $('#checkoutcasehistorytbodyid').empty();\n      $.each(params[0].history, function (index, val_array) {\n        //console.log(val_array[0]);\n        var html = '';\n        var table_diesase_name = '';\n        var drugs_name = '';\n        var homopathic_drug_name = '';\n        var nonhemeopatichdrug_drug_name = '';\n        var disease = '';\n        var drug = '';\n        var three_line_text_disease = '';\n        var disease_size = 440;\n        if (params[0].appt_type[index][0] != null) {\n          var appointment_type = params[0].appt_type[index][0].appointment_type;\n        } else {\n          var appointment_type = 'RM';\n        }\n        if (params[0].proxy_reported[index][0] != null) {\n          var proxy_report = params[0].proxy_reported[index][0].proxy_status;\n        } else {\n          var proxy_report = 0;\n        }\n        if (proxy_report == 1) {\n          var proxy_reported = '(P)';\n        } else {\n          var proxy_reported = '';\n        }\n        $.each(val_array, function (index2, val) {\n          var DKBC_disease_id = val.DKBC_disease_id;\n          var DKBC_disease_others = val.DKBC_disease_others;\n          var ICD_disease_name = val.ICD_disease_name;\n          var patient_status = val.patient_status;\n          var disease = val.disease;\n          var details = val.details_notes;\n          //console.log(disease);\n          if (disease != null) {\n            var disease_name = '<strong>' + disease.name + '</strong>';\n          }\n          if (DKBC_disease_others != null) {\n            var disease_name = '<strong>' + DKBC_disease_others + '</strong>';\n          }\n          if (ICD_disease_name != '') {\n            var disease_name = '<strong>' + ICD_disease_name + '</strong>';\n          }\n          if (patient_status != '') {\n            var status = '(' + patient_status + ')';\n          }\n          if (details != '') {\n            var details_notes = details;\n          } else {\n            var details_notes = '';\n          }\n          if (DKBC_disease_id != 0) {\n            table_diesase_name += disease_name + ' ' + status + ' - ' + details_notes + ', ';\n          } else if (DKBC_disease_others != null) {\n            table_diesase_name += disease_name + ' ' + status + ' - ' + details_notes + ', ';\n          } else {\n            table_diesase_name += disease_name + ' ' + status + ' - ' + details_notes + ', ';\n          }\n          var hemeopatichdrug = val.hemeopatichdrug;\n          var nonhemeopatichdrug = val.nonhemeopatichdrug;\n          if (hemeopatichdrug.length > 0) {\n            $.each(hemeopatichdrug, function (index3, homopathic_val) {\n              if (homopathic_val.drug_name != '') {\n                homopathic_drug_name += homopathic_val.drug_name + ', ';\n              }\n            });\n          }\n          if (nonhemeopatichdrug.length > 0) {\n            $.each(nonhemeopatichdrug, function (index4, non_homopathic_val) {\n              if (non_homopathic_val.drug_name != '') {\n                nonhemeopatichdrug_drug_name += non_homopathic_val.drug_name + ', ';\n              }\n            });\n          }\n        });\n        drugs_name += homopathic_drug_name + nonhemeopatichdrug_drug_name;\n        disease = table_diesase_name.slice(0, -2);\n        three_line_text_disease = disease.length > disease_size ? disease.slice(0, disease_size - 1) + '...' : disease;\n        drug = drugs_name.slice(0, -2);\n        html += '<tr>';\n        html += '<td>' + index + ' <span class=\"proxy-highlighted highlight-text\" data-toggle=\"tooltip\" title=\"Reported by Proxy\">' + proxy_reported + '</span></td>';\n        html += '<td class=\"capitalize\">' + three_line_text_disease + '</td>';\n        html += '<td class=\"text-uppercase highlight-text\">' + appointment_type + '</td>';\n        html += '</tr>';\n        $('#checkoutcasehistorylist').append(html);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(checkoutCaseHistory);\n});","define(\"clinic-dev/helpers/checkout-consultancy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutConsultancy(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/checkout-date-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutDateFormat(params, hash) {\n    var patient_dob = params[0];\n    var visit_date = hash.visit_date;\n    var years = hash.years;\n    var months = hash.months;\n    var days = hash.days;\n    if (patient_dob !== '0000-00-00' && patient_dob !== null) {\n      //console.log('a');\n      var patient_dob_format = '';\n      // var current_date = moment().format(\"YYYY-MM-DD\");\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      //console.log(visit_date);\n      //console.log(past);\n\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (years != 0 && years != null && months != 0 && months != null && days != 0 && days != null) {\n      //console.log('b');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (years != 0 && years != null && months != 0 && months != null && days == 0) {\n      //console.log('c');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (years != 0 && years != null && months == 0 && days == 0) {\n      //console.log('d');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (years == 0 && months != 0 && months != null && days != 0 && days != null) {\n      //console.log('e');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (years == 0 && months == 0 && days != 0 && days != null) {\n      //console.log('f');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = monthss + '' + 'M';\n      }\n      return \" - \" + patient_dob_format;\n    } else if (patient_dob == '0000-00-00' && years == 0 && months == 0 && days == 0) {\n      //console.log('g');\n      return patient_dob_format = '';\n    }\n    //This function get Year Month and Days form data of birth of patient\n    function dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    }\n  });\n});","define(\"clinic-dev/helpers/checkout-medicine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutMedicine(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/checkout-payment-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutPaymentStatus(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    var PGAmount = hash.PGamount;\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // PG amount\n    if (PGAmount != '' || PGAmount != undefined) {\n      var pg_amount = parseFloat(PGAmount).toFixed(2);\n    } else {\n      var pg_amount = 0;\n    }\n    // Previous bill paid amount\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_bill_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_bill_paid_amount = 0;\n    }\n\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      console.log('b' + med_eVal);\n    }\n\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    // here total is as label A written by shubh tiwari as on 22 August 2022\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    // here previous_bill_paid_amount variable is as label B, written by shubh tiwari as on 22 August 2022\n    // here pg_amount variable is as label C, written by shubh tiwari as on 22 August 2022\n    // here is total_bill variable is as label A - (B - C)\n    var total_bill = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(pg_amount));\n    var eVal = isNaN(total_bill) ? 0.0 : total_bill;\n    var remaining_balance_status = Math.sign(eVal);\n    if (remaining_balance_status == 1) {\n      var payment_status = 'DUE';\n    } else if (remaining_balance_status == -1) {\n      var payment_status = 'ADVANCE';\n    } else if (remaining_balance_status == 0) {\n      var payment_status = 'NO DUE';\n    }\n    return payment_status;\n  });\n});","define(\"clinic-dev/helpers/checkout-prescribe-medicine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutPrescribeMedicine(params, billpatientdetails) {\n    if (billpatientdetails != undefined) {\n      $('.tbody').empty();\n      $('#prescribeDetails').removeClass('singletemplate');\n      $.each(billpatientdetails, function (index, val_array) {\n        $.each(val_array, function (index, val) {\n          var html = '';\n          var subhtml = '';\n          var arr = [];\n          if (val.mix.length > 0) {\n            if (val.data.midicine_type == 'mix') {\n              var title = 'Mix medicine';\n            } else {\n              var title = 'On the fly mix medicine';\n            }\n            var fact = parseInt(val.data.factor);\n            /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n            if (fact < 1) {\n              var Zerofactor = 'zerofactor';\n              $('.' + Zerofactor).attr('title', 'Non billing medicine');\n            } else {\n              var Zerofactor = '';\n            }\n            html += '<tr title=\"' + title + '\" id=\"' + index + '\" class=\"' + val.data.midicine_type + ' ' + Zerofactor + '\">';\n            html += '<td>' + val.data.medicine_serial_no + '</td>';\n            subhtml += '<table id=\"mixtale\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"62.3%\">' + val.data.medicine_name + '</th><th width=\"20%\"></th><th width=\"20.7%\"></th></tr>';\n            for (var i = 0; i < val.mix.length; i++) {\n              subhtml += '<tr>';\n              subhtml += '<td>' + val.mix[i].medicine_name + '</td>';\n              subhtml += '<td>' + val.mix[i].potency_name + '</td>';\n              subhtml += '<td>' + val.mix[i].dilution_name + '</td>';\n              /*  subhtml+='<td><select disabled=\"disabled\" class=\"form-control\"><option value=\"'+val.mix[i].group_id+'-'+val.mix[i].form_code+'-'+val.mix[i].form_name+'\">'+val.mix[i].form_code+'</option></select></td>'; */\n              subhtml += '</tr>';\n              arr.push(val.mix[i].form_rate);\n            }\n            //var fact =  parseInt(val.data.factor);\n            var ins_id = val.data.instruction_id;\n            var ins_name = val.data.instruction_name;\n            if (ins_name != '') {\n              var instruction_name = val.data.instruction_name;\n            } else {\n              var instruction_name = val.data.instruction_other_value;\n            }\n            var price = parseFloat(Math.max.apply(Math, arr)).toFixed(2);\n            if (parseFloat(val.data.medicine_amount) != '0.00') {\n              var amount = parseFloat(val.data.medicine_amount).toFixed(2);\n            } else {\n              var amount = parseFloat(Math.max.apply(Math, arr) * fact).toFixed(2);\n            }\n            subhtml += '</table>';\n            html += '<td colspan=\"3\">' + subhtml + '</td>';\n            html += '<td><select id=\"prescribeform-' + val.data.medicine_serial_no + '\" readonly=\"readonly\" class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n            html += '<td><input name=\"qty\" id=\"qty-' + val.data.medicine_serial_no + '\" class=\"form-control onlynumeric qty\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + price + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n            html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + parseInt(val.data.vial) + '\"/></td>';\n            html += '<td>' + instruction_name + '</td>';\n            html += '<td><span><i class=\"fa fa-inr\"></i> ' + price + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + price + '\"/></td>';\n            html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + parseFloat(amount).toFixed(2) + '\"/></td>';\n            html += '</tr>';\n          } else {\n            /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n            if (val.data.factor < 1) {\n              var Zerofactor = 'zerofactor';\n              $('.' + Zerofactor).attr('title', 'Non billing medicine');\n            } else {\n              var Zerofactor = '';\n            }\n            html += '<tr id=\"' + index + '\" class=\"single ' + Zerofactor + '\">';\n            var ins_name = val.data.instruction_name;\n            if (ins_name != '') {\n              var instruction_name = val.data.instruction_name;\n            } else {\n              var instruction_name = val.data.instruction_other_value;\n            }\n            html += '<td>' + val.data.medicine_serial_no + '</td>';\n            html += '<td>' + val.data.medicine_name + '</td>';\n            html += '<td>' + val.data.potency_name + '</td>';\n            html += '<td>' + val.data.dilution_name + '</td>';\n            html += '<td><select readonly=\"readonly\" id=\"prescribeform-' + val.data.medicine_serial_no + '\" class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n            html += '<td><input name=\"qty\" class=\"form-control onlynumeric qty\" id=\"qty-' + val.data.medicine_serial_no + '\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\" type=\"text\" value=\"' + parseInt(val.data.factor) + '\"/></td>';\n            html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + parseInt(val.data.vial) + '\"/></td>';\n            html += '<td>' + instruction_name + '</td>';\n            html += '<td><span><i class=\"fa fa-inr\"></i> ' + parseFloat(val.data.form_rate).toFixed(2) + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\"/></td>';\n            html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + parseFloat(val.data.medicine_amount).toFixed(2) + '\"/></td>';\n            html += '</tr>';\n            $('#prescribeDetails').addClass('singletemplate');\n          }\n          $('table#prescribeDetails').append(html);\n        });\n      });\n    }\n  });\n});","define(\"clinic-dev/helpers/checkout-preview-date-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutPreviewDateFormat(params, hash) {\n    var patient_dob = params[0];\n    var visit_date = hash.visit_date;\n    var years = hash.years;\n    var months = hash.months;\n    var days = hash.days;\n    if (patient_dob != '0000-00-00' && patient_dob !== null) {\n      console.log('a');\n      var patient_dob_format = '';\n      // var current_date = moment().format(\"YYYY-MM-DD\");\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (years != 0 && years != null && months != 0 && months != null && days != 0 && days != null) {\n      console.log('b');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (years != 0 && years != null && months != 0 && months != null && days == 0) {\n      console.log('c');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (years != 0 && years != null && months == 0 && days == 0) {\n      console.log('d');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (years == 0 && months != 0 && months != null && days != 0 && days != null) {\n      console.log('e');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (years == 0 && months == 0 && days != 0 && days != null) {\n      console.log('f');\n      var patient_dob_format = '';\n      var cntOfYears = years;\n      var cntOfMonths = months;\n      var cntOfDays = days;\n      var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n      var today = new Date(visit_date);\n      var past = new Date(patient_dob);\n      var patient_age = dateDiff(today, past);\n      var age = patient_age.years;\n      var monthss = patient_age.months;\n      var dayss = patient_age.days;\n      if (age != 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age != 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n      } else if (age != 0 && monthss == 0 && dayss == 0) {\n        var patient_dob_format = '-' + age + '' + 'Y';\n      } else if (age == 0 && monthss != 0 && dayss != 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + dayss + '' + 'D';\n      } else if (age != 0 && monthss == 0 && dayss != 0) {\n        var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n      } else if (age == 0 && monthss != 0 && dayss == 0) {\n        var patient_dob_format = '-' + monthss + '' + 'M';\n      }\n      return patient_dob_format;\n    } else if (patient_dob == '0000-00-00' && years == 0 && months == 0 && days == 0) {\n      console.log('g');\n      return patient_dob_format = '';\n    }\n    //This function get Year Month and Days form data of birth of patient\n    function dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    }\n  });\n});","define(\"clinic-dev/helpers/checkout-total-dues-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutTotalDuesAmount(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    var PGAmount = hash.PGamount;\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // PG amount\n    if (PGAmount != '' || PGAmount != undefined) {\n      var pg_amount = parseFloat(PGAmount).toFixed(2);\n    } else {\n      var pg_amount = 0;\n    }\n\n    // Previous bill paid amount\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_bill_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_bill_paid_amount = 0;\n    }\n\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    // here total is as label A, written by shubh tiwari as on 22 August 2022\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    // here previous_bill_amount is as label B, written by shubh tiwari as on 22 August 2022\n    // here pg_amount is as label C, written by shubh tiwari as on 22 August 2022\n    // here is total_bill is as label A - (B - C)\n    var total_bill = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(pg_amount));\n    var eVal = isNaN(total_bill) ? 0.0 : total_bill;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/checkout-total-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutTotalStatus(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    // console.log('medicine_amount='+medicine_amount);\n    // console.log('medicine_category_discount='+medicine_category_discount);\n    // console.log('consultancy_fees='+consultancy_fees);\n    // console.log('consultancy_category_discount='+consultancy_category_discount);\n    // console.log('medicine_onthefly_check='+medicine_onthefly_check);\n    // console.log('medicine_onthefly_discount='+medicine_onthefly_discount);\n    // console.log('consultancy_waive_type='+consultancy_waive_type);\n    // console.log('consultancy_waived_amount='+consultancy_waived_amount);\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    var eVal = isNaN(total) ? 0.0 : total;\n    var remaining_balance_status = Math.sign(eVal);\n    if (remaining_balance_status == 1) {\n      var payment_status = 'DUE';\n    } else if (remaining_balance_status == -1) {\n      var payment_status = 'ADVANCE';\n    } else if (remaining_balance_status == 0) {\n      var payment_status = 'NO DUE';\n    }\n    return `${payment_status}`;\n  });\n});","define(\"clinic-dev/helpers/checkout-total\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function checkoutTotal(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    // console.log('medicine_amount='+medicine_amount);\n    // console.log('medicine_category_discount='+medicine_category_discount);\n    // console.log('consultancy_fees='+consultancy_fees);\n    // console.log('consultancy_category_discount='+consultancy_category_discount);\n    // console.log('medicine_onthefly_check='+medicine_onthefly_check);\n    // console.log('medicine_onthefly_discount='+medicine_onthefly_discount);\n    // console.log('consultancy_waive_type='+consultancy_waive_type);\n    // console.log('consultancy_waived_amount='+consultancy_waived_amount);\n    // others charge\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    //medicine discount\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // consultancy discount\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    var eVal = isNaN(total) ? 0.0 : total;\n    let total_amount = parseFloat(Math.abs(eVal)).toFixed(2);\n    return `${total_amount}`;\n  });\n});","define(\"clinic-dev/helpers/chunked-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function chunkedArray([array, size]) {\n    if (!Array.isArray(array)) {\n      return [];\n    }\n    let chunkedArray = [];\n    for (let i = 0; i < array.length; i += size) {\n      chunkedArray.push(array.slice(i, i + size));\n    }\n    return chunkedArray;\n  });\n});","define(\"clinic-dev/helpers/class-name-change\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.classNameChange = classNameChange;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function classNameChange(params) {\n    var what = params[0];\n    var val = params[1];\n    var two = params[2];\n    var three = params[3];\n    var four = params[4];\n    if (what == val) {\n      if (two == four) {\n        return 'green';\n      } else if (three == four) {\n        return 'red';\n      }\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(classNameChange);\n});","define(\"clinic-dev/helpers/common-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.commonDate = commonDate;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function commonDate(params) {\n    var dates = '';\n    var date_value = moment(new Date(params)).format('DD/MM/YYYY');\n    if (date_value != 'Invalid date') {\n      dates = date_value;\n    }\n    return dates;\n  }\n  var _default = _exports.default = Ember.Helper.helper(commonDate);\n});","define(\"clinic-dev/helpers/common-payment-calculation\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function commonPaymentCalculation(params, hash) {\n    var medicine_amount = params[0];\n    var medicine_category_discount = hash.medd_discount;\n    var consultancy_fees = hash.doctor_fees;\n    var consultancy_category_discount = hash.consult_dicount;\n    var previous_due = hash.ped_amount;\n    var total_other_charge = hash.previous_total_charge;\n    var medicine_onthefly_check = hash.remove_discount_button;\n    var medicine_onthefly_discount = hash.onthefly_discount;\n    var consultancy_waive_type = hash.consultancy_waive_type;\n    var consultancy_waived_amount = hash.consultancy_waived_amount;\n    var previous_bill_amount = hash.previous_bill_amount;\n    //console.log('medicine_amount=' + medicine_amount);\n    //console.log('medicine_category_discount=' + medicine_category_discount);\n    //console.log('consultancy_fees=' + consultancy_fees);\n    //console.log('consultancy_category_discount=' + consultancy_category_discount);\n    //console.log('previous_due=' + previous_due);\n    //console.log('total_other_charge=' + total_other_charge);\n    //console.log('medicine_onthefly_check=' + medicine_onthefly_check);\n    //console.log('medicine_onthefly_discount=' + medicine_onthefly_discount);\n    //console.log('consultancy_waive_type=' + consultancy_waive_type);\n    //console.log('consultancy_waived_amount=' + consultancy_waived_amount);\n    //console.log('previous_bill_amount='+previous_bill_amount);\n    //console.log(previous_bill_amount);\n    var PreviousPGAmount = hash.PreviousPGAmount;\n    //console.log(PreviousPGAmount);\n    var currentPGAmount = hash.currentPGAmount;\n    //console.log(currentPGAmount);\n    var lastPaidAmount = hash.lastPaidAmount;\n    // others charge, Written by shubh tiwari as on 22 August 2022\n    if (total_other_charge != '') {\n      var other_charge = parseFloat(total_other_charge).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    // Previous PG amount, Written by shubh tiwari as on 22 August 2022\n    if (PreviousPGAmount != '' || PreviousPGAmount != undefined) {\n      var previous_pg_amount = parseFloat(PreviousPGAmount).toFixed(2);\n    } else {\n      var previous_pg_amount = 0;\n    }\n\n    // Previous bill paid  Amount , Written by shubh tiwari as on 22 August 2022\n    if (previous_bill_amount != '' || previous_bill_amount != undefined) {\n      var previous_bill_paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n    } else {\n      var previous_bill_paid_amount = 0;\n    }\n\n    // Curent bill paid  Amount , Written by shubh tiwari as on 25 August 2022\n    if (lastPaidAmount != '' || lastPaidAmount != undefined) {\n      var current_total_received = parseFloat(lastPaidAmount).toFixed(2);\n    } else {\n      var current_total_received = 0;\n    }\n\n    // Current PG amount, Written by shubh tiwari as on 22 August 2022\n    if (currentPGAmount != '' || currentPGAmount != undefined) {\n      var current_pg_amount = parseFloat(currentPGAmount).toFixed(2);\n    } else {\n      var current_pg_amount = 0;\n    }\n    //medicine discount, Written by shubh tiwari as on 22 August 2022\n    if (medicine_onthefly_check != '' && medicine_onthefly_discount != '' && (medicine_category_discount != 0 || medicine_category_discount != 100)) {\n      var med_main = medicine_amount;\n      var decou = (medicine_onthefly_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('a' + med_eVal);\n    } else if (medicine_category_discount == 0 || medicine_category_discount == 100) {\n      var med_main = medicine_amount;\n      var decou = (medicine_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var med_mult = med_main * decou; // gives the value for subtract from main value\n      var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n      var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n      //console.log('b' + med_eVal);\n    }\n\n    // Consultancy Discount, Written by shubh tiwari as on 22 August 2022\n    if (consultancy_waive_type != '' && consultancy_waive_type == 'Waived' && consultancy_waived_amount == 0) {\n      var consult_eVal = isNaN(consultancy_waived_amount) ? 0.0 : consultancy_waived_amount;\n      //console.log('con-a' + consult_eVal);\n    } else if (consultancy_waive_type == '' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    } else if (consultancy_waive_type == 'Not Set' && (consultancy_category_discount == 0 || consultancy_category_discount == 100)) {\n      var main = consultancy_fees;\n      var dec = (consultancy_category_discount / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var consultancy_discount = parseFloat(main - mult).toFixed(2);\n      //console.log(consultancy_discount);\n      var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n      //console.log('con-b' + consult_eVal);\n    }\n    var pending_amount = previous_due;\n    // here total is as label A, written by shubh tiwari as on 22 August 2022\n    //console.log(med_eVal);\n    //console.log(consult_eVal);\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending_amount) + parseFloat(other_charge);\n    //console.log('total='+total);\n    // here previous_bill_amount variable is as label B, written by shubh tiwari as on 22 August 2022\n    // here previous_pg_amount variable is as label C, written by shubh tiwari as on 22 August 2022\n    // here current_pg_amount variable is as label D, written by shubh tiwari as on 22 August 2022\n    // here is total_due variable is as label (A - (B - C) + D)\n    var total_due = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount) - parseFloat(current_total_received);\n    var eVal = isNaN(total_due) ? 0.0 : total_due;\n    //console.log(eVal);\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/convert-to-12-hour\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertTo12Hour = convertTo12Hour;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertTo12Hour([time24]) {\n    if (!time24) return '';\n    let [hours, minutes] = time24.split(':');\n    hours = parseInt(hours, 10);\n    const ampm = hours >= 12 ? 'PM' : 'AM';\n    hours = hours % 12;\n    if (hours === 0) hours = 12; // Midnight or Noon adjustment\n\n    // Pad minutes if needed\n    minutes = minutes.padStart(2, '0');\n    return `${hours}:${minutes} ${ampm}`;\n  }\n  var _default = _exports.default = Ember.Helper.helper(convertTo12Hour);\n});","define(\"clinic-dev/helpers/convert-to-24-hour\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertTo24Hour = convertTo24Hour;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertTo24Hour([time12h]) {\n    const [time, modifier] = time12h.split(' ');\n    let [hours, minutes] = time.split(':');\n    if (modifier === 'PM' && hours !== '12') {\n      hours = (parseInt(hours) + 12).toString(); // Convert PM to 24-hour format\n    }\n    if (modifier === 'AM' && hours === '12') {\n      hours = '00'; // Convert 12 AM to 00:00\n    }\n    return `${hours}:${minutes}`;\n  }\n  var _default = _exports.default = Ember.Helper.helper(convertTo24Hour);\n});","define(\"clinic-dev/helpers/count\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.count = count;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function count(params) {\n    return params[0].length;\n  }\n  var _default = _exports.default = Ember.Helper.helper(count);\n});","define(\"clinic-dev/helpers/date-format\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dateFormat = dateFormat;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment\"eaimeta@70e063a35619d71f\n  function dateFormat([date]) {\n    if (!date) {\n      return '';\n    }\n    let m;\n\n    // First try the existing supported formats\n    m = (0, _moment.default)(date, ['DD/MM/YYYY HH:mm:ss', 'DD/MM/YYYY HH:mm', 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm'], true);\n\n    // If the existing formats don't match, try ISO 8601 format\n    if (!m.isValid()) {\n      m = (0, _moment.default)(date, _moment.default.ISO_8601, true);\n    }\n    return m.isValid() ? m.format('D MMMM, YYYY, HH:mm') : date;\n  }\n  var _default = _exports.default = Ember.Helper.helper(dateFormat);\n});","define(\"clinic-dev/helpers/discount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.discount = discount;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function discount(params) {\n    var first_parameter = params[0];\n    var second_parameter = params[1];\n    if (second_parameter != undefined) {\n      var main = first_parameter;\n      var disc = second_parameter;\n      var dec = (disc / 100).toFixed(2); //its convert 10 into 0.10\n      var mult = main * dec; // gives the value for subtract from main value\n      var total_discount = parseFloat(main - mult).toFixed(2);\n      var eVal = isNaN(total_discount) ? 0.0 : total_discount;\n      return parseFloat(eVal).toFixed(2);\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(discount);\n});","define(\"clinic-dev/helpers/due-advance-flag\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function dueAdvanceFlag([balance]) {\n    let amount = Math.abs(Number(balance)).toFixed(2);\n    let status = '';\n    if (balance > 0) {\n      status = '(D)'; // Due\n    } else if (balance < 0) {\n      status = '(A)'; // Advance / Credit\n    } else {\n      status = '(D)'; // or empty ''\n    }\n    return `${amount} ${status}`;\n  });\n});","define(\"clinic-dev/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/eq\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.eq = eq;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function eq(params) {\n    var what = params[0];\n    var val = params[1];\n    if (params[4] == 'debug') {\n      console.log(params);\n    }\n    if (what == val) {\n      return params[2] || true;\n    } else {\n      return params[3] || false;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(eq);\n});","define(\"clinic-dev/helpers/fetch-presigned-url\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.FetchPresignedUrl = FetchPresignedUrl;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function FetchPresignedUrl(params) {\n    let filePath = params[0];\n    if (!filePath) {\n      console.error('FilePath is missing');\n      return Promise.reject(new Error('Invalid file path'));\n    }\n    const baseUrl = `${_environment.default.APP.lumen_api_url}presignedurl`;\n    const param = '?filePath=' + filePath;\n    return new Promise((resolve, reject) => {\n      $.ajax({\n        url: baseUrl + param,\n        method: 'GET',\n        success: function (response) {\n          console.log('Response Data:', response); // Check what the API sends back\n          resolve(response.presignedUrl); // This should be a valid URL string\n        },\n        error: function (xhr) {\n          console.error('AJAX Error:', xhr.responseJSON || xhr.responseText);\n          const errorMessage = xhr.responseJSON?.message || 'Failed to fetch presigned URL';\n          reject(new Error(errorMessage));\n        }\n      });\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(FetchPresignedUrl);\n});","define(\"clinic-dev/helpers/file-queue\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function fileQueue(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/filter-by-day\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function filterByDay([schedules, dayIndex]) {\n    // Grace‑fully handle “schedules” not ready yet\n    if (!Ember.isArray(schedules)) {\n      return []; // template gets an empty list instead of crashing\n    }\n\n    // Make sure we’re comparing numbers, not strings\n    let dayNum = Number(dayIndex);\n    return schedules.filter(s => Number(s.DayOfWeek) === dayNum);\n  });\n});","define(\"clinic-dev/helpers/find-array-value\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.findArrayValue = findArrayValue;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function findArrayValue(params) {\n    var value = params[1];\n    var arr = params[0] || 0;\n    var status = false;\n    for (var i = 0; i < arr.length; i++) {\n      var name = arr[i].appointment_id;\n      if (parseInt(name) == parseInt(value)) {\n        status = true;\n        break;\n      }\n    }\n    //console.log(status);\n    return status;\n  }\n  var _default = _exports.default = Ember.Helper.helper(findArrayValue);\n});","define(\"clinic-dev/helpers/find-tab-patient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function findTabPatient(params) {\n    var value = params[1];\n    var arr = params[0] || 0;\n    var status = false;\n    for (var i = 0; i < arr.length; i++) {\n      var name = arr[i].patient_id;\n      if (name == value) {\n        status = true;\n        break;\n      }\n    }\n    //console.log(status);\n    return status;\n  });\n});","define(\"clinic-dev/helpers/format-date-range\", [\"exports\", \"ember-intl/helpers/format-date-range\"], function (_exports, _formatDateRange) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatDateRange.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date-range\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/format-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatDate = formatDate;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function formatDate(params, hash) {\n    let date = hash.date;\n    if (!date) {\n      date = new Date();\n    } else {\n      date = new Date(date);\n    }\n    let year = date.getFullYear(),\n      month = ('0' + (date.getMonth() + 1)).slice(-2),\n      day = ('0' + date.getDate()).slice(-2),\n      hour = ('0' + date.getHours()).slice(-2),\n      min = ('0' + date.getMinutes()).slice(-2),\n      sec = ('0' + date.getSeconds()).slice(-2),\n      formatted = `${day}-${month}-${year}`;\n    return formatted;\n  }\n  var _default = _exports.default = Ember.Helper.helper(formatDate);\n});","define(\"clinic-dev/helpers/format-datetime\", [\"exports\", \"moment-timezone\"], function (_exports, _momentTimezone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment-timezone\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function formatDatetime([date], {\n    format = 'DD-MMM-YYYY hh:mm A',\n    tz = 'Asia/Kolkata'\n  } = {}) {\n    if (!date) {\n      return '';\n    }\n    if (!(0, _momentTimezone.default)(date).isValid()) {\n      return '-';\n    }\n\n    // Parse UTC and convert to desired timezone\n    return _momentTimezone.default.utc(date).format(format);\n  });\n});","define(\"clinic-dev/helpers/format-list\", [\"exports\", \"ember-intl/helpers/format-list\"], function (_exports, _formatList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatList.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-list\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-message\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/format-number\", [\"exports\", \"ember-intl/helpers/format-number\"], function (_exports, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatNumber.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-number\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-relative\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/format-slot\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatSlot = formatSlot;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  function formatSlot([slot]) {\n    if (!slot || slot === '00:00 - 00:00') {\n      return '—';\n    }\n    let [start, end] = slot.split(' - ');\n    return `${formatTime(start)} - ${formatTime(end)}`;\n  }\n  function formatTime(timeStr) {\n    let [hour, minute] = timeStr.split(':').map(Number);\n    let ampm = hour >= 12 ? 'PM' : 'AM';\n    hour = hour % 12 || 12; // 0 becomes 12\n    return `${hour}:${String(minute).padStart(2, '0')} ${ampm}`;\n  }\n  var _default = _exports.default = Ember.Helper.helper(formatSlot);\n});","define(\"clinic-dev/helpers/format-time\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function formatTime([time]) {\n    if (!time) return '';\n    let [h, m] = time.split(':');\n    h = parseInt(h, 10);\n    const suffix = h >= 12 ? 'PM' : 'AM';\n    h = h % 12 || 12;\n    return `${h}:${m} ${suffix}`;\n  });\n});","define(\"clinic-dev/helpers/get-age\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function getAge(params) {\n    var today = new Date();\n    var birthDate = new Date(params[0]);\n    var age = today.getFullYear() - birthDate.getFullYear();\n    var m = today.getMonth() - birthDate.getMonth();\n    if (m < 0 || m === 0 && today.getDate() < birthDate.getDate()) {\n      age--;\n    }\n    if (!isNaN(age)) {\n      var age_value = 'NP';\n    } else {\n      var age_value = age;\n    }\n    return age_value;\n  });\n});","define(\"clinic-dev/helpers/get-availability\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function getAvailability([availability, day]) {\n    return availability?.[day] || 'Select Schedule';\n  });\n});","define(\"clinic-dev/helpers/get-error\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function getError([errors, key]) {\n    return errors?.[key];\n  });\n});","define(\"clinic-dev/helpers/group-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function groupList(params, hash) {\n    console.log(hash.group_name);\n    try {\n      return hash.group_name.join(' | ');\n    } catch (e) {\n      throw e; // re-throw the error unchange\n    }\n  });\n});","define(\"clinic-dev/helpers/gt\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function gt([value1, value2]) {\n    return value1 > value2;\n  });\n});","define(\"clinic-dev/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"gte\", {\n    enumerable: true,\n    get: function () {\n      return _gte.gte;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gte\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/has-casetaken\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function hasCasetaken([historyObj]) {\n    if (!historyObj) return false;\n    return Object.values(historyObj).some(entry => {\n      return entry.casetaken && Object.keys(entry.casetaken).length > 0;\n    });\n  });\n});","define(\"clinic-dev/helpers/height-conversion\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function heightConversion(params) {\n    if (params[1] == 'feet') {\n      var feet = params[0] / 12;\n      if (typeof feet === 'number') {\n        if (feet % 1 === 0) {\n          var value = feet;\n        } else {\n          var float_val = feet.toFixed(2);\n          var substr = float_val.toString().split('.');\n          var intger = substr[0];\n          var decimals = substr[1];\n          if (decimals >= 0 && decimals <= 9) {\n            var decimal = decimals;\n            //console.log('a');\n          } else if (decimals >= 10 && decimals <= 11) {\n            var decimal = decimals;\n            // console.log('b');\n          } else {\n            var decimal = decimals.slice(0, 1);\n          }\n          //console.log(feet);\n          //console.log(decimals);\n          //console.log(decimal);\n          var value = intger + \"'\" + ' ' + decimal + '\"';\n        }\n      }\n      return value;\n    } else if (params[1] == 'inch') {\n      var inch = params[0];\n      var value = inch;\n      return value;\n    } else if (params[1] == 'm') {\n      var meter = params[0] / 39.37;\n      var value = meter.toFixed(2);\n      return Math.round(value);\n    } else if (params[1] == 'cm') {\n      var centimeter = params[0] * 2.54;\n      var value = centimeter.toFixed(2);\n      return Math.round(value);\n    }\n    return value;\n  });\n});","define(\"clinic-dev/helpers/height\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function height(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/highlight\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatCurrency = formatCurrency;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function formatCurrency([value, ...rest]) {\n    let dollars = Math.floor(value / 100);\n    let cents = value % 100;\n    let sign = '$';\n    if (cents.toString().length === 1) {\n      cents = '0' + cents;\n    }\n    return `${sign}${dollars}.${cents}`;\n  }\n  var _default = _exports.default = Ember.Helper.helper(formatCurrency);\n  Ember.Handlebars.helper('highlight', function (q, str) {\n    if (q == '' || q == null) {\n      return new Ember.Handlebars.SafeString(str);\n    } else {\n      var rgxp = new RegExp(q, 'gi');\n      // var escaped = Handlebars.Utils.escapeExpression(value);\n      var repl = '<span class=\"highlight\">' + q + '</span>';\n      if (str == null) {\n        str = '';\n      }\n      return new Ember.Handlebars.SafeString(str.replace(rgxp, repl));\n    }\n  });\n});","define(\"clinic-dev/helpers/htmlspecialchars-decode\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.htmlspecialcharsDecode = htmlspecialcharsDecode;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function htmlspecialcharsDecode(params) {\n    var string = params[0];\n    console.log(string);\n    var quoteStyle = params[1];\n    //      discuss at: https://locutus.io/php/htmlspecialchars_decode/\n    //      original by: Mirek Slugen\n    //      improved by: Kevin van Zonneveld (https://kvz.io)\n    //      bugfixed by: Mateusz \"loonquawl\" Zalega\n    //      bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n    //      bugfixed by: Brett Zamir (https://brett-zamir.me)\n    //      bugfixed by: Brett Zamir (https://brett-zamir.me)\n    //         input by: ReverseSyntax\n    //         input by: Slawomir Kaniecki\n    //         input by: Scott Cariss\n    //         input by: Francois\n    //         input by: Ratheous\n    //         input by: Mailfaker (https://www.weedem.fr/)\n    //       revised by: Kevin van Zonneveld (https://kvz.io)\n    // reimplemented by: Brett Zamir (https://brett-zamir.me)\n    //        example 1: htmlspecialchars_decode(\"<p>this -&gt; &quot;</p>\", 'ENT_NOQUOTES')\n    //        returns 1: '<p>this -> &quot;</p>'\n    //        example 2: htmlspecialchars_decode(\"&amp;quot;\")\n    //        returns 2: '&quot;'\n    let optTemp = 0;\n    let i = 0;\n    let noquotes = false;\n    if (typeof quoteStyle === 'undefined') {\n      quoteStyle = 2;\n    }\n    string = string.toString().replace(/&lt;/g, '<').replace(/&gt;/g, '>');\n    const OPTS = {\n      ENT_NOQUOTES: 0,\n      ENT_HTML_QUOTE_SINGLE: 1,\n      ENT_HTML_QUOTE_DOUBLE: 2,\n      ENT_COMPAT: 2,\n      ENT_QUOTES: 3,\n      ENT_IGNORE: 4\n    };\n    if (quoteStyle === 0) {\n      noquotes = true;\n    }\n    if (typeof quoteStyle !== 'number') {\n      // Allow for a single string or an array of string flags\n      quoteStyle = [].concat(quoteStyle);\n      for (i = 0; i < quoteStyle.length; i++) {\n        // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n        if (OPTS[quoteStyle[i]] === 0) {\n          noquotes = true;\n        } else if (OPTS[quoteStyle[i]]) {\n          optTemp = optTemp | OPTS[quoteStyle[i]];\n        }\n      }\n      quoteStyle = optTemp;\n    }\n    if (quoteStyle & OPTS.ENT_HTML_QUOTE_SINGLE) {\n      // PHP doesn't currently escape if more than one 0, but it should:\n      string = string.replace(/&#0*39;/g, \"'\");\n      // This would also be useful here, but not a part of PHP:\n      // string = string.replace(/&apos;|&#x0*27;/g, \"'\");\n    }\n    if (!noquotes) {\n      string = string.replace(/&quot;/g, '\"');\n    }\n    // Put this in last place to avoid escape being double-decoded\n    string = string.replace(/&amp;/g, '&');\n    return string;\n  }\n  var _default = _exports.default = Ember.Helper.helper(htmlspecialcharsDecode);\n});","define(\"clinic-dev/helpers/icp-case-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.icpCaseHistory = icpCaseHistory;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function icpCaseHistory(params) {\n    //console.log(params[0].history);\n    if (params[0] != undefined) {\n      //console.log(params[1]+'gggg');\n      $('#casehistorytbodyid').empty();\n      $.each(params[0].history, function (index, val_array) {\n        //console.log(params[0].proxy_reported[index][0]);\n        var html = '';\n        var action = '';\n        var table_diesase_name = '';\n        var drugs_name = '';\n        var homopathic_drug_name = '';\n        var nonhemeopatichdrug_drug_name = '';\n        var disease = '';\n        var drug = '';\n        var three_line_text_disease = '';\n        var three_line_text_drug_name = '';\n        var disease_size = 440;\n        var drug_name_size = 171;\n        var appointment_id = val_array[0].appointment_id;\n        if (params[0].appt_type[index][0] != null) {\n          var appointment_typess = params[0].appt_type[index][0].appointment_type;\n        } else {\n          var appointment_typess = 'RM';\n        }\n        if (params[0].proxy_reported[index][0] != null) {\n          var proxy_report = params[0].proxy_reported[index][0].proxy_status;\n        } else {\n          var proxy_report = 0;\n        }\n        if (proxy_report == 1) {\n          var proxy_reported = ' <span class=\"proxy-highlighted highlight-text\" data-toggle=\"tooltip\" title=\"Reported by Proxy\">(P)</span>';\n        } else {\n          var proxy_reported = '';\n        }\n        // Last Case Taken By Doctor name, Written by shubh Tiwari as on 05-05-2023\n\n        if (params[0].last_case_taken[index][0] != null) {\n          var last_case_taken_doctor = ' <span>(' + params[0].last_case_taken[index][0].created_by + ')</span>';\n          var doc_name = params[0].last_case_taken[index][0].created_by;\n        } else {\n          var last_case_taken_doctor = '';\n          var doc_name = '';\n        }\n        $.each(val_array, function (index2, val) {\n          var DKBC_disease_id = val.DKBC_disease_id;\n          var DKBC_disease_others = val.DKBC_disease_others;\n          var ICD_disease_name = val.ICD_disease_name;\n          var major_condition = val.major_condition;\n          var patient_status = val.patient_status;\n          var disease = val.disease;\n          var details = val.details_notes;\n          if (major_condition != null) {\n            if (major_condition == 1) {\n              var icd_major_condition = 1;\n            } else if (major_condition == 2) {\n              var icd_major_condition = 2;\n            } else {\n              var icd_major_condition = 0;\n            }\n          }\n          if (disease != null) {\n            var disease_name = '<strong><span class=\"major_condition' + icd_major_condition + '\">' + disease.name + '</span></strong>';\n          }\n          if (DKBC_disease_others != null) {\n            var disease_name = '<strong><span class=\"major_condition' + icd_major_condition + '\">' + DKBC_disease_others + '</span></strong>';\n          }\n          if (ICD_disease_name != '') {\n            var disease_name = '<strong><span class=\"major_condition' + icd_major_condition + '\">' + ICD_disease_name + '</span></strong>';\n          }\n          if (patient_status != '') {\n            var status = '(' + patient_status + ')';\n          }\n          if (details != '') {\n            var details_notes = ' - ' + details;\n          } else {\n            var details_notes = '';\n          }\n          if (DKBC_disease_id != 0) {\n            table_diesase_name += disease_name + ' ' + status + details_notes + ', ';\n          } else if (DKBC_disease_others != null) {\n            table_diesase_name += disease_name + ' ' + status + details_notes + ', ';\n          } else {\n            table_diesase_name += disease_name + ' ' + status + details_notes + ', ';\n          }\n          var hemeopatichdrug = val.hemeopatichdrug;\n          var nonhemeopatichdrug = val.nonhemeopatichdrug;\n          if (hemeopatichdrug.length > 0) {\n            $.each(hemeopatichdrug, function (index3, homopathic_val) {\n              if (homopathic_val.drug_name != '') {\n                homopathic_drug_name += homopathic_val.drug_name + ', ';\n              }\n            });\n          }\n          if (nonhemeopatichdrug.length > 0) {\n            $.each(nonhemeopatichdrug, function (index4, non_homopathic_val) {\n              if (non_homopathic_val.drug_name != '') {\n                nonhemeopatichdrug_drug_name += non_homopathic_val.drug_name + ', ';\n              }\n            });\n          }\n        });\n        drugs_name += homopathic_drug_name + nonhemeopatichdrug_drug_name;\n        disease = table_diesase_name.slice(0, -2);\n        three_line_text_disease = disease.length > disease_size ? disease.slice(0, disease_size - 1) + '...' : disease;\n        drug = drugs_name.slice(0, -2);\n        three_line_text_drug_name = drug.length > drug_name_size ? drug.slice(0, drug_name_size - 1) + '...' : drug;\n        var value = params[2];\n        var arr = params[1].split(',');\n        var status = false;\n        for (var i = 0; i < arr.length; i++) {\n          var name = arr[i];\n          if (name == value) {\n            status = true;\n            break;\n          }\n        }\n        if (status == true) {\n          action += '<button class=\"btn btn-default btn-sm float-right\" title=\"View Deails\" id=\"caseHistoryDetails\" data-visitid=\"' + appointment_id + '\" data-docname=\"' + doc_name + '\" data-visit_date=\"' + index + '\"><i class=\"fas fa-eye\" aria-hidden=\"true\"></i></button>';\n        } else {\n          action = '';\n        }\n        html += '<tr>';\n        html += '<td>' + index + proxy_reported + last_case_taken_doctor + '</td>';\n        html += '<td class=\"capitalize\">' + three_line_text_disease + '</td>';\n        html += '<td class=\"text-uppercase highlight-text\">' + appointment_typess + '</td>';\n        html += '<td>' + action + '</td>';\n        html += '</tr>';\n        $('#casehistorylist').append(html);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(icpCaseHistory);\n});","define(\"clinic-dev/helpers/icpattend-prescribe-medicine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.icpattendPrescribeMedicine = icpattendPrescribeMedicine;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function icpattendPrescribeMedicine(params) {\n    if (params[0] != undefined && params[1] != undefined) {\n      let isOutside = params[2] === 'Outside';\n      $('#prescriptionmedicine tbody').empty();\n      $.each(params[0], function (index, val) {\n        var html = '';\n        var subhtml = '';\n        var serial_no = val.data.medicine_serial_no.toUpperCase();\n        var medicine_serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var pharmacy_name = val.pharmacy;\n        var appointment_id = val.appointment_id;\n        if (val.mix.length > 0 && val.mix_form.length > 0) {\n          var fact = parseInt(val.data.factor);\n          var vial_value = parseInt(val.data.vial);\n          // only for outside patient prescription set factor and vial zero, 15 January 2025\n          if (isOutside) {\n            fact = 0;\n            vial = 0;\n          }\n          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n          if (fact == 0) {\n            var vial = 0;\n          } else if (fact == 1) {\n            var vial = 1;\n          } else {\n            var vial = vial_check_value;\n          }\n          //console.log(fact);\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n          } else {\n            var Zerofactor = '';\n          }\n          var form_array = val.mix_form;\n          var instructionselectss = '';\n          var edit_instructionselectss = '';\n          var mix_forms_selectss = '';\n          var instruction_id = val.data.instruction_id;\n          if (val.data.instruction_name != '') {\n            var mix_instruction_name = val.data.instruction_name;\n          } else {\n            var mix_instruction_name = val.data.instruction_other_value;\n          }\n          //var mix_instruction_name = val.data.instruction_name;\n          //var mix_instruction_other = val.data.instruction_other_value;\n          var mix_form = val.data.form_code;\n          var mix_forms = val.mix_form;\n          var instruction_array = params[1];\n          if (val.data.midicine_type == 'mix') {\n            var title = 'Mix medicine';\n            var common_id = val.data.medicine_id;\n            var medform = parseInt(common_id) + mix_form;\n          } else {\n            var title = 'On the fly mix medicine';\n            var common_id = val.data.id;\n            var medform = parseInt(common_id) + mix_form;\n          }\n          //This below code is used for Set a drop-down for mix forms, Rahul Khan 09 Sept 2019\n          // instruction selected html code\n          mix_forms_selectss += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control formItem prescribeform-' + medicine_serial_no + '\" id=\"prescribeform-' + medicine_serial_no + '\">';\n          mix_forms.forEach(function (form) {\n            // console.log(form.form_code);\n            if (mix_form == form.form_code) {\n              mix_forms_selectss += '<option selected=\"selected\" value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n            } else {\n              mix_forms_selectss += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n            }\n            /*  var form_code = form.form_code;\n                    var group = form.group;\n                    var name = form.name;\n                if(mix_form == form_code){\n                  }else{\n                  mix_forms_selectss +='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n                }*/\n          });\n\n          //for(var i=0; i<mix_forms.length; i++){\n\n          /*var form_code = mix_forms[i].form_code;\n            var group = mix_forms[i].group;\n            var name = mix_forms[i].name;\n          if(mix_form==mix_form){\n              mix_forms_selectss+='<option selected=\"selected\" value=\" stet\">stt</option>';\n            }else{\n              mix_forms_selectss+='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n            }*/\n          //   }\n          mix_forms_selectss += '</select>';\n\n          // instruction selected html code\n          instructionselectss += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n          for (var i = 0; i < instruction_array.length; i++) {\n            //var instruc_id = instruction_array[i].id;\n            var instruc_name = instruction_array[i].instruction_name.trim();\n            if (mix_instruction_name == instruc_name) {\n              instructionselectss += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            } else {\n              instructionselectss += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n          }\n          // if(mix_instruction_other!=''){\n          //   instructionselectss+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+mix_instruction_other+'\">'+mix_instruction_other+'</option>';\n          // }\n          instructionselectss += '</select>';\n          if (mix_instruction_name != '') {\n            edit_instructionselectss += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\"  class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + mix_instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n          }\n          // if(mix_instruction_other!=''){\n          //   edit_instructionselectss += '<input  name=\"instruction[' + val.data.medicine_serial_no + ']\" class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+mix_instruction_other+'\">';\n          // }\n          instructionselectss += edit_instructionselectss;\n          html += '<tr title=\"' + title + '\" id=\"id-' + medicine_serial_no + '\" class=\"cw-mix-medicine-' + medicine_serial_no + ' ' + val.data.midicine_type + ' cw_mix_row tableRow previousRow ' + Zerofactor + '\" data-mixid=\"' + val.data.medicine_id + '\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n          html += '<td><input name=\"srnoItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + medicine_serial_no + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n          subhtml += '<table id=\"mixtale-' + medicine_serial_no + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control dosage-' + medicine_serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.medicine_name + '\" data-med=\"' + common_id + '\"/> <input name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.midicine_type + '\"/>  <input name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + val.data.midicine_type + ']\"  id=\"medicine_id-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n          var j = 0;\n          for (var i = 0; i < val.mix.length; i++) {\n            var select = '';\n            var serial_no = parseInt(i + 1);\n            /* select+='<select name=\"formItem['+val.data.medicine_serial_no+']['+val.data.medicine_name+']['+serial_no+']\" class=\"form-control prescribeform-'+val.data.medicine_serial_no+serial_no+'\" id=\"prescribeform-'+val.data.medicine_serial_no+serial_no+'\" readonly=\"true\">';\n               for(var j=0; j<form_array[i].length;j++){\n                   if(val.mix[i].form_code==form_array[i][j].fcode){\n                   select+='<option selected=\"selected\" value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }else{\n                     select+='<option value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }\n               }\n             select+='</select>';*/\n\n            subhtml += '<tr data-ontheflyrow=\"' + serial_no + '\" data-mixrowid=\"' + medicine_serial_no + serial_no + '\" class=' + val.data.midicine_type + '-' + medicine_serial_no + '>';\n            subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + medicine_serial_no + serial_no + '\" type=\"text\" name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" data-ontheflyId=\"' + serial_no + '\" id=\"medicine_name-' + medicine_serial_no + serial_no + '\" placeholder=\"Med ' + serial_no + ' in mix\" value=\"' + val.mix[i].medicine_name + '\" data-med=\"' + common_id + '\" readonly=\"true\"/><input type=\"hidden\" class=\"medicine_id-' + medicine_serial_no + serial_no + '\" id=\"medicine_id-' + medicine_serial_no + serial_no + '\"  name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].medicine_id + '\"></td>';\n            subhtml += '<td><input name=\"potencyItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" id=\"potency-' + medicine_serial_no + serial_no + '\" class=\"form-control potency-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].potency_name + '\" readonly=\"true\"/> <input type=\"hidden\" class=\"potency_id-' + medicine_serial_no + serial_no + '\" id=\"potency_id-' + medicine_serial_no + serial_no + '\" name=\"potency_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].potency_id + '\"></td>';\n            subhtml += '<td><input name=\"dilutionItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" class=\"form-control dilution-' + medicine_serial_no + serial_no + '\" id=\"dilution-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\" readonly=\"true\"/></td>';\n            // subhtml+='<td>'+select+'</td>';\n            subhtml += '</tr>';\n            j++;\n          }\n          subhtml += '</table>';\n          html += '<td colspan=\"3\">' + subhtml + '</td>';\n          html += '<td >' + mix_forms_selectss + '</td>';\n          html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + medicine_serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control medicinevialItem  medicinevial-' + medicine_serial_no + ' onlynumeric\" id=\"medicinevial-' + medicine_serial_no + '\" type=\"text\" value=\"' + vial + '\"/></td>';\n          html += '<td>' + instructionselectss + '</td>';\n          html += '</tr>';\n        } else {\n          var fact = parseInt(val.data.factor);\n          var vial_value = parseInt(val.data.vial);\n          // only for outside patient prescription set factor and vial zero, 15 January 2025\n          if (isOutside) {\n            fact = 0;\n            vial = 0;\n          }\n          //console.log(vial_value);\n          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n          if (fact == 0) {\n            var vial = 0;\n          } else if (fact == 1) {\n            var vial = 1;\n          } else {\n            var vial = vial_check_value;\n          }\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n          } else {\n            var Zerofactor = '';\n          }\n          // instruction selected html code\n          var instructionselect = '';\n          var edit_instructionselect = '';\n          var instruction_id = val.data.instruction_id;\n\n          // var instruction_name = val.data.instruction_name;\n          // var instruction_other = val.data.instruction_other_value;\n          if (val.data.instruction_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          var midicine_type = val.data.midicine_type;\n          var medicine_id = val.data.medicine_id;\n          var potency_id = val.data.potency_id;\n          var single_form_array = val.single_form;\n          var instruction_array = params[1];\n          var medform = parseInt(medicine_id) + val.data.form_code;\n          var single_select = '';\n          single_select += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control slectform-' + medicine_serial_no + ' formItem\" id=\"prescribeform-' + medicine_serial_no + '\">';\n          for (var i = 0; i < single_form_array.length; i++) {\n            if (val.data.form_code == single_form_array[i].form_code) {\n              single_select += '<option selected=\"selected\" value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n            } else {\n              single_select += '<option value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n            }\n          }\n          single_select += '</select>';\n          instructionselect += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n          for (var i = 0; i < instruction_array.length; i++) {\n            //var instruc_id = instruction_array[i].id;\n            var instruc_name = instruction_array[i].instruction_name.trim();\n            if (instruction_name != '' && instruction_name == instruc_name) {\n              instructionselect += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            } else {\n              instructionselect += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n          }\n          //  if(instruction_other!=''){\n          //    instructionselect+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+instruction_other+'\">'+instruction_other+'</option>';\n          //  }\n          instructionselect += '</select>';\n          if (instruction_name != '') {\n            edit_instructionselect += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\" class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n          }\n          // if(instruction_other!=''){\n          //   edit_instructionselect += '<input class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+instruction_other+'\">';\n          // }\n          instructionselect += edit_instructionselect;\n          var instruction_name = '';\n          html += '<tr id=\"id-' + medicine_serial_no + '\" class=\"' + Zerofactor + ' tableRow previousRow single\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n          html += '<td><input class=\"form-control garlic-auto-save srno-' + medicine_serial_no + ' srnoItem\" id=\"srno-' + medicine_serial_no + '\" name=\"srnoItem[' + medicine_serial_no + ']\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n          html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + medicine_serial_no + ']\" value=\"' + val.data.medicine_name + '\" class=\"form-control prescribeinput dosage-' + medicine_serial_no + ' medicineItem\" id=\"medicine_name-' + medicine_serial_no + '\" type=\"text\" autocomplete=\"off\" medicine_status=\"set\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + val.data.medicine_name + ', ' + val.data.potency_name + ' (' + val.data.dilution_name + ')\" data-type=\"' + midicine_type + '\" placeholder=\"Type min 3 char to search\"/> <input type=\"hidden\" name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" value=\"' + val.data.midicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + medicine_serial_no + ']\" id=\"medicine_id-' + medicine_serial_no + '\" value=\"' + val.data.medicine_id + '\"><p id=\"results' + medicine_serial_no + '\" class=\"prescribe-medicine-search-result\"></p></td>';\n          html += '<td><input name=\"potencyItem[' + medicine_serial_no + ']\" class=\"form-control potency-' + medicine_serial_no + ' potencyItem\"  id=\"potency-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.potency_name + '\" readonly=\"true\" /> <input type=\"hidden\" name=\"potency_id[' + medicine_serial_no + ']\" id=\"potency_id-' + medicine_serial_no + '\" value=\"' + val.data.potency_id + '\"> </td>';\n          html += '<td><input class=\"form-control dilution-' + medicine_serial_no + ' dilutionItem\" name=\"dilutionItem[' + medicine_serial_no + ']\" id=\"dilution-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.dilution_name + '\" readonly=\"true\"/></td>';\n          html += '<td>' + single_select + '</td>';\n          html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control onlynumeric factor-' + medicine_serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + medicine_serial_no + '\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control onlynumeric medicinevial-' + medicine_serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + medicine_serial_no + '\" value=\"' + vial + '\"/></td>';\n          html += '<td>' + instructionselect + '</select></td>';\n          html += '</tr>';\n        }\n        $('table#prescriptionmedicine').append(html);\n        $('#importvisitid').val(appointment_id);\n        //console.log('current import');\n        $('textarea#precribe_pharmacy_instruction').val(pharmacy_name);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(icpattendPrescribeMedicine);\n});","define(\"clinic-dev/helpers/icpattend-prescribed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function icpattendPrescribed(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/icpattend-tempprescribe-medicine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.icpattendTempprescribeMedicine = icpattendTempprescribeMedicine;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function icpattendTempprescribeMedicine(params) {\n    if (params[0] != undefined && params[1] != undefined) {\n      let isOutside = params[2] === 'Outside';\n      $('#prescriptionmedicine tbody').empty();\n      $.each(params[0], function (index, val) {\n        var html = '';\n        var subhtml = '';\n        var serial_no = val.data.medicine_serial_no;\n        var medicine_serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var pharmacy_name = val.pharmacy;\n        var appointment_id = val.appointment_id;\n        if (val.mix.length > 0 && val.mix_form.length > 0) {\n          var fact = parseInt(val.data.factor);\n          var vial_value = parseInt(val.data.vial);\n          // only for outside patient prescription set factor and vial zero, 15 January 2025\n          if (isOutside) {\n            fact = 0;\n            vial = 0;\n          }\n          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n          if (fact == 0) {\n            var vial = 0;\n          } else if (fact == 1) {\n            var vial = 1;\n          } else {\n            var vial = vial_check_value;\n          }\n          //console.log(fact);\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n          } else {\n            var Zerofactor = '';\n          }\n          var form_array = val.mix_form;\n          var instructionselectss = '';\n          var edit_instructionselectss = '';\n          var mix_forms_selectss = '';\n          var instruction_id = val.data.instruction_id;\n          if (val.data.instruction_name != '') {\n            var mix_instruction_name = val.data.instruction_name;\n          } else {\n            var mix_instruction_name = val.data.instruction_other_value;\n          }\n          //var mix_instruction_name = val.data.instruction_name;\n          //var mix_instruction_other = val.data.instruction_other_value;\n          var mix_form = val.data.form_code;\n          var mix_forms = val.mix_form;\n          var instruction_array = params[1];\n          if (val.data.midicine_type == 'mix') {\n            var title = 'Mix medicine';\n            var common_id = val.data.medicine_id;\n            var medform = parseInt(common_id) + mix_form;\n          } else {\n            var title = 'On the fly mix medicine';\n            var common_id = val.data.id;\n            var medform = parseInt(common_id) + mix_form;\n          }\n          //This below code is used for Set a drop-down for mix forms, Rahul Khan 09 Sept 2019\n          // instruction selected html code\n          mix_forms_selectss += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control formItem prescribeform-' + medicine_serial_no + '\" id=\"prescribeform-' + medicine_serial_no + '\">';\n          mix_forms.forEach(function (form) {\n            // console.log(form.form_code);\n            if (mix_form == form.form_code) {\n              mix_forms_selectss += '<option selected=\"selected\" value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n            } else {\n              mix_forms_selectss += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n            }\n            /*  var form_code = form.form_code;\n                    var group = form.group;\n                    var name = form.name;\n                if(mix_form == form_code){\n                  }else{\n                  mix_forms_selectss +='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n                }*/\n          });\n\n          //for(var i=0; i<mix_forms.length; i++){\n\n          /*var form_code = mix_forms[i].form_code;\n            var group = mix_forms[i].group;\n            var name = mix_forms[i].name;\n          if(mix_form==mix_form){\n              mix_forms_selectss+='<option selected=\"selected\" value=\" stet\">stt</option>';\n            }else{\n              mix_forms_selectss+='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n            }*/\n          //   }\n          mix_forms_selectss += '</select>';\n\n          // instruction selected html code\n          instructionselectss += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n          for (var i = 0; i < instruction_array.length; i++) {\n            //var instruc_id = instruction_array[i].id;\n            var instruc_name = instruction_array[i].instruction_name.trim();\n            if (mix_instruction_name == instruc_name) {\n              instructionselectss += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            } else {\n              instructionselectss += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n          }\n          // if(mix_instruction_other!=''){\n          //   instructionselectss+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+mix_instruction_other+'\">'+mix_instruction_other+'</option>';\n          // }\n          instructionselectss += '</select>';\n          if (mix_instruction_name != '') {\n            edit_instructionselectss += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\"  class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + mix_instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + mix_instruction_name + '\">';\n          }\n          // if(mix_instruction_other!=''){\n          //   edit_instructionselectss += '<input  name=\"instruction[' + val.data.medicine_serial_no + ']\" class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+mix_instruction_other+'\">';\n          // }\n          instructionselectss += edit_instructionselectss;\n          html += '<tr title=\"' + title + '\" id=\"id-' + medicine_serial_no + '\" class=\"cw-mix-medicine-' + medicine_serial_no + ' ' + val.data.midicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + val.data.medicine_id + '\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n          html += '<td><input name=\"srnoItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + medicine_serial_no + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n          subhtml += '<table id=\"mixtale-' + medicine_serial_no + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control dosage-' + medicine_serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.medicine_name + '\" data-med=\"' + common_id + '\"/> <input name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.midicine_type + '\"/>  <input name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + val.data.midicine_type + ']\"  id=\"medicine_id-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n          var j = 0;\n          for (var i = 0; i < val.mix.length; i++) {\n            var select = '';\n            var serial_no = parseInt(i + 1);\n            /* select+='<select name=\"formItem['+val.data.medicine_serial_no+']['+val.data.medicine_name+']['+serial_no+']\" class=\"form-control prescribeform-'+val.data.medicine_serial_no+serial_no+'\" id=\"prescribeform-'+val.data.medicine_serial_no+serial_no+'\" readonly=\"true\">';\n               for(var j=0; j<form_array[i].length;j++){\n                   if(val.mix[i].form_code==form_array[i][j].fcode){\n                   select+='<option selected=\"selected\" value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }else{\n                     select+='<option value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }\n               }\n             select+='</select>';*/\n\n            subhtml += '<tr data-ontheflyrow=\"' + serial_no + '\" data-mixrowid=\"' + medicine_serial_no + serial_no + '\" class=' + val.data.midicine_type + '-' + medicine_serial_no + '>';\n            subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + medicine_serial_no + serial_no + '\" type=\"text\" name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" data-ontheflyId=\"' + serial_no + '\" id=\"medicine_name-' + medicine_serial_no + serial_no + '\" placeholder=\"Med ' + serial_no + ' in mix\" value=\"' + val.mix[i].medicine_name + '\" data-med=\"' + common_id + '\" readonly=\"true\"/><input type=\"hidden\" class=\"medicine_id-' + medicine_serial_no + serial_no + '\" id=\"medicine_id-' + medicine_serial_no + serial_no + '\"  name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].medicine_id + '\"></td>';\n            subhtml += '<td><input name=\"potencyItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" id=\"potency-' + medicine_serial_no + serial_no + '\" class=\"form-control potency-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].potency_name + '\" readonly=\"true\"/> <input type=\"hidden\" class=\"potency_id-' + medicine_serial_no + serial_no + '\" id=\"potency_id-' + medicine_serial_no + serial_no + '\" name=\"potency_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].potency_id + '\"></td>';\n            subhtml += '<td><input name=\"dilutionItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" class=\"form-control dilution-' + medicine_serial_no + serial_no + '\" id=\"dilution-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\" readonly=\"true\"/></td>';\n            // subhtml+='<td>'+select+'</td>';\n            subhtml += '</tr>';\n            j++;\n          }\n          subhtml += '</table>';\n          html += '<td colspan=\"3\">' + subhtml + '</td>';\n          html += '<td >' + mix_forms_selectss + '</td>';\n          html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + medicine_serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control medicinevialItem  medicinevial-' + medicine_serial_no + ' onlynumeric\" id=\"medicinevial-' + medicine_serial_no + '\" type=\"text\" value=\"' + vial + '\"/></td>';\n          html += '<td>' + instructionselectss + '</td>';\n          html += '</tr>';\n        } else {\n          var fact = parseInt(val.data.factor);\n          var vial_value = parseInt(val.data.vial);\n          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n          // only for outside patient prescription set factor and vial zero, 15 January 2025\n          if (isOutside) {\n            fact = 0;\n            vial = 0;\n          }\n          if (fact == 0) {\n            var vial = 0;\n          } else if (fact == 1) {\n            var vial = 1;\n          } else {\n            var vial = vial_check_value;\n          }\n          //console.log(fact);\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n          } else {\n            var Zerofactor = '';\n          }\n          // instruction selected html code\n          var instructionselect = '';\n          var edit_instructionselect = '';\n          var instruction_id = val.data.instruction_id;\n\n          // var instruction_name = val.data.instruction_name;\n          // var instruction_other = val.data.instruction_other_value;\n          if (val.data.instruction_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          var midicine_type = val.data.midicine_type;\n          var medicine_id = val.data.medicine_id;\n          var potency_id = val.data.potency_id;\n          var single_form_array = val.single_form;\n          var instruction_array = params[1];\n          var medform = parseInt(medicine_id) + val.data.form_code;\n          var single_select = '';\n          single_select += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control slectform-' + medicine_serial_no + ' formItem\" id=\"prescribeform-' + medicine_serial_no + '\">';\n          for (var i = 0; i < single_form_array.length; i++) {\n            if (val.data.form_code == single_form_array[i].form_code) {\n              single_select += '<option selected=\"selected\" value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n            } else {\n              single_select += '<option value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n            }\n          }\n          single_select += '</select>';\n          instructionselect += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n          for (var i = 0; i < instruction_array.length; i++) {\n            //var instruc_id = instruction_array[i].id;\n            var instruc_name = instruction_array[i].instruction_name.trim();\n            if (instruction_name != '' && instruction_name == instruc_name) {\n              instructionselect += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            } else {\n              instructionselect += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n          }\n          //  if(instruction_other!=''){\n          //    instructionselect+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+instruction_other+'\">'+instruction_other+'</option>';\n          //  }\n          instructionselect += '</select>';\n          if (instruction_name != '') {\n            edit_instructionselect += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\" class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n          }\n          // if(instruction_other!=''){\n          //   edit_instructionselect += '<input class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+instruction_other+'\">';\n          // }\n          instructionselect += edit_instructionselect;\n          var instruction_name = '';\n          html += '<tr id=\"id-' + medicine_serial_no + '\" class=\"' + Zerofactor + ' tableRow previousRow single\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n          html += '<td><input class=\"form-control garlic-auto-save srno-' + medicine_serial_no + ' srnoItem\" id=\"srno-' + medicine_serial_no + '\" name=\"srnoItem[' + medicine_serial_no + ']\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n          html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + medicine_serial_no + ']\" value=\"' + val.data.medicine_name + '\" class=\"form-control prescribeinput dosage-' + medicine_serial_no + ' medicineItem\" id=\"medicine_name-' + medicine_serial_no + '\" type=\"text\" autocomplete=\"off\" medicine_status=\"set\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + val.data.medicine_name + ', ' + val.data.potency_name + ' (' + val.data.dilution_name + ')\" data-type=\"' + midicine_type + '\" placeholder=\"Type min 3 char to search\"/> <input type=\"hidden\" name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" value=\"' + val.data.midicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + medicine_serial_no + ']\" id=\"medicine_id-' + medicine_serial_no + '\" value=\"' + val.data.medicine_id + '\"><p id=\"results' + medicine_serial_no + '\" class=\"prescribe-medicine-search-result\"></p></td>';\n          html += '<td><input name=\"potencyItem[' + medicine_serial_no + ']\" class=\"form-control potency-' + medicine_serial_no + ' potencyItem\"  id=\"potency-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.potency_name + '\" readonly=\"true\" /> <input type=\"hidden\" name=\"potency_id[' + medicine_serial_no + ']\" id=\"potency_id-' + medicine_serial_no + '\" value=\"' + val.data.potency_id + '\"> </td>';\n          html += '<td><input class=\"form-control dilution-' + medicine_serial_no + ' dilutionItem\" name=\"dilutionItem[' + medicine_serial_no + ']\" id=\"dilution-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.dilution_name + '\" readonly=\"true\"/></td>';\n          html += '<td>' + single_select + '</td>';\n          html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control onlynumeric factor-' + medicine_serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + medicine_serial_no + '\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control onlynumeric medicinevial-' + medicine_serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + medicine_serial_no + '\" value=\"' + vial + '\"/></td>';\n          html += '<td>' + instructionselect + '</select></td>';\n          html += '</tr>';\n        }\n        $('table#prescriptionmedicine').append(html);\n        $('#importvisitid').val(appointment_id);\n        //console.log('current import');\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(icpattendTempprescribeMedicine);\n});","define(\"clinic-dev/helpers/ifeg\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ifeg = ifeg;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ifeg(params) {\n    if (params[0] == params[1]) {\n      return true;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(ifeg);\n});","define(\"clinic-dev/helpers/ifnoteq\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ifnoteq = ifnoteq;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ifnoteq(params /*, hash*/) {\n    if (params[0] != params[1]) {\n      return true;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(ifnoteq);\n});","define(\"clinic-dev/helpers/implode-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.implodeArray = implodeArray;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function implodeArray(params) {\n    var what = params[0];\n    var val = params[1] + 1;\n    if (what != val) {\n      return true;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(implodeArray);\n});","define(\"clinic-dev/helpers/increase-tab-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.increaseTabNumber = increaseTabNumber;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function increaseTabNumber(params) {\n    var what = params[0];\n    var inc = params[2] || 2;\n    return what + inc;\n  }\n  var _default = _exports.default = Ember.Helper.helper(increaseTabNumber);\n});","define(\"clinic-dev/helpers/increment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.increment = increment;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function increment(params) {\n    var what = params[0];\n    var inc = params[1] || 1;\n    return what + inc;\n  }\n  var _default = _exports.default = Ember.Helper.helper(increment);\n});","define(\"clinic-dev/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isArray\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.isArray;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-array\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-empty\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isEqual\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.isEqual;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-equal\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/is-last\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function isLast([index, length]) {\n    return index === length - 1;\n  });\n});","define(\"clinic-dev/helpers/is-not\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isNot = isNot;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  function isNot([value]) {\n    return !value;\n  }\n  var _default = _exports.default = Ember.Helper.helper(isNot);\n});","define(\"clinic-dev/helpers/is-pdf\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function isPdf([url]) {\n    return url.toLowerCase().endsWith('.pdf');\n  });\n});","define(\"clinic-dev/helpers/last-visit-date-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lastVisitDateFormat = lastVisitDateFormat;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function lastVisitDateFormat(params) {\n    return moment(new Date(params)).format('D MMMM YYYY');\n  }\n  var _default = _exports.default = Ember.Helper.helper(lastVisitDateFormat);\n});","define(\"clinic-dev/helpers/last-visit-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lastVisitList = lastVisitList;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function lastVisitList(params) {\n    if (params[0] != undefined) {\n      var instruction_array = params[1];\n      let isOutside = params[2] === 'Outside';\n      $('#prescriptionmedicine tbody').empty();\n      $.each(params[0], function (index, val) {\n        var html = '';\n        var subhtml = '';\n        var formselect = '';\n        var instructionselect = '';\n        var edit_instructionselect = '';\n        //var serial_no = Date.now().toString().substr(6);\n        var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var medicine_type = val.midicine_type;\n        var medicine_id = val.medicine_id;\n        var potency_id = val.potency_id;\n        var single_serial_no = val.medicine_serial_no.toUpperCase();\n        var potency = val.potency_name;\n        var medicine = val.medicine_name;\n        var dilution = val.dilution_name;\n        var f_code = val.form_code;\n        var medform = parseInt(medicine_id) + f_code;\n        if (val.instruction_name != '') {\n          var instruction_name = val.instruction_name;\n        } else {\n          var instruction_name = val.instruction_other_value;\n        }\n        var factor = val.factor;\n        var fact = parseInt(factor);\n        var vial_value = val.vial;\n        // only for outside patient prescription set factor and vial zero, 15 January 2025\n        if (isOutside) {\n          fact = 0;\n          vial = 0;\n        }\n        var appointment_id = val.appointment_id;\n        var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n        if (fact == 0) {\n          var vial = 0;\n        } else if (fact == 1) {\n          var vial = 1;\n        } else {\n          var vial = vial_check_value;\n        }\n        var mix_name = medicine;\n        // form selected html code\n        formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n        for (var i = 0; i < val.form.length; i++) {\n          var form_name = val.form[i].form_name;\n          var group_id = val.form[i].group_id;\n          var form_code = val.form[i].form_code;\n          var form_unique = parseInt(medicine_id, 10) + parseInt(potency_id, 10) + dilution;\n          if (form_code == f_code) {\n            formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n          } else {\n            formselect += '<option value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n          }\n        }\n        formselect += '</select>';\n        // instruction selected html code\n        instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n        for (var i = 0; i < instruction_array.length; i++) {\n          //var instruc_id = instruction_array[i].id;\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          if (instruction_name != '' && instruction_name == instruc_name) {\n            instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n          } else {\n            instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n          }\n        }\n        // if (instruction_other != '') {\n        //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n        // }\n        instructionselect += '</select>';\n        if (instruction_name != '') {\n          edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n        }\n        // if (instruction_other != '') {\n        //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n        // }\n        instructionselect += edit_instructionselect;\n        if (val.midicine_type == 'mix') {\n          var title = 'Mix medicine';\n          var common_id = medicine_id;\n        } else {\n          var title = 'On the fly mix medicine';\n          var common_id = val.id;\n        }\n\n        /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n        if (fact < 1) {\n          var Zerofactor = 'zerofactor';\n          $('.' + Zerofactor).attr('title', 'Non billing medicine');\n        } else {\n          var Zerofactor = '';\n        }\n        var j = 0;\n        if (val.mix.length > 0) {\n          subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + common_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n          for (var i = 0; i < val.mix.length; i++) {\n            j++;\n            var mix_potency = val.mix[i].potency_name;\n            var mix_medicine = val.mix[i].medicine_name;\n            var mix_medicine_id = val.mix[i].medicine_id;\n            var mix_potency_id = val.mix[i].potency_id;\n            var mix_dilution = val.mix[i].dilution_name;\n            subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=\"' + medicine_type + '-' + serial_no + '\">';\n            subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n            subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n            subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n            subhtml += '</tr>';\n          }\n          subhtml += '</table>';\n          html += '<tr data-order=\"' + single_serial_no + '\" title=\"' + title + '\" id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow previousRow\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n          html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" data-uniqueserial=\"' + single_serial_no + '\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + single_serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n          html += '<td colspan=\"3\">' + subhtml + '</td>';\n          html += '<td>' + formselect + '</td>';\n          html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n          html += '<td>' + instructionselect + '</td>';\n          html += '</tr>';\n        } else {\n          html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow single\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n          html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" data-uniqueserial=\"' + single_serial_no + '\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + single_serial_no + '\" minlength=\"1\" maxlength=\"4\"></td>';\n          html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" medicine_status=\"set\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n          html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n          html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n          html += '<td>' + formselect + '</td>';\n          html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n          html += '<td>' + instructionselect + '</td>';\n          html += '</tr>';\n        }\n        $('#prescriptionmedicine').append(html);\n        $('#importvisitid').val(appointment_id);\n        console.log('last import');\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(lastVisitList);\n});","define(\"clinic-dev/helpers/lessthen\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lessthen = lessthen;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function lessthen(params) {\n    if (params[0] < params[1]) {\n      return true;\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(lessthen);\n});","define(\"clinic-dev/helpers/line-break\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function lineBreak(params) {\n    let brokenString = '';\n    var str = params[0];\n    console.log(str);\n    var limit = 20;\n    for (let i = 0, count = 0; i < str.length; i++) {\n      if (count >= limit && str[i] === ' ') {\n        count = 0;\n        brokenString += '\\n';\n      } else {\n        count++;\n        brokenString += str[i];\n      }\n    }\n    return brokenString;\n  });\n});","define(\"clinic-dev/helpers/logical-or\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.logicalOr = logicalOr;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  function logicalOr(params) {\n    var result = false;\n    for (var i = 0; i < params.length; i++) {\n      result = result || !!params[i];\n    }\n    return result;\n  }\n  var _default = _exports.default = Ember.Helper.helper(logicalOr);\n});","define(\"clinic-dev/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lt\", {\n    enumerable: true,\n    get: function () {\n      return _lt.lt;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lt\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lte\", {\n    enumerable: true,\n    get: function () {\n      return _lte.lte;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lte\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/menu\", [\"exports\", \"clinic-dev/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MenuHelper = _exports.default = (_dec = Ember.inject.service, _class = class MenuHelper extends Ember.Helper {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    compute(params) {\n      const utoken = this.session.getToken();\n      const arr = params[0].split(',');\n      (0, _jquery.default)('.mainnav').empty();\n      _jquery.default.ajax({\n        method: 'GET',\n        url: `${_environment.default.APP.lumen_api_url}mainmenu`,\n        headers: {\n          Authorization: `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _jquery.default.each(res, function (key, valS) {\n            for (let name of arr) {\n              if (name === valS.permissionName) {\n                let html = '';\n\n                // 🟢 Only one submenu under Doctor Schedule\n                if (valS.full_name === 'Doctor Schedule') {\n                  html += `\n                  <li class=\"menu-item has-sub\">\n                    <a href=\"${_environment.default.crossOriginWhitelist}/${valS.action_name}\">\n                      <i class=\"${valS.icon}\"></i>\n                      <span>${valS.full_name}</span>\n                    </a>\n                    <ul class=\"sub-menu\">\n                      <li>\n                        <a href=\"${_environment.default.crossOriginWhitelist}/schedule/max-slots\">\n                          <i class=\"fa fa-clock\"></i> Online Appointment Limit\n                        </a>\n                      </li>\n                    </ul>\n                  </li>\n                `;\n                } else {\n                  // 🔹 Other normal menus\n                  html += `\n                  <li class=\"menu-item\">\n                    <a href=\"${_environment.default.crossOriginWhitelist}/${valS.action_name}\">\n                      <i class=\"${valS.icon}\"></i>\n                      <span>${valS.full_name}</span>\n                    </a>\n                  </li>\n                `;\n                }\n                (0, _jquery.default)('.mainnav').append(html);\n              }\n            }\n          });\n\n          // 🟣 Toggle submenu on hover\n          (0, _jquery.default)('.has-sub').hover(function () {\n            (0, _jquery.default)(this).find('.sub-menu').stop(true, true).slideDown(200);\n          }, function () {\n            (0, _jquery.default)(this).find('.sub-menu').stop(true, true).slideUp(200);\n          });\n\n          // 🟡 Highlight active menu based on current path\n          const currentPath = window.location.pathname;\n          (0, _jquery.default)('.mainnav a').each(function () {\n            const link = (0, _jquery.default)(this).attr('href');\n            if (currentPath === new URL(link, window.location.origin).pathname) {\n              (0, _jquery.default)(this).addClass('active');\n              (0, _jquery.default)(this).closest('.menu-item').addClass('active');\n              // If submenu item is active, also highlight parent\n              (0, _jquery.default)(this).closest('.has-sub').addClass('active');\n            }\n          });\n        },\n        error: function (res) {\n          console.error('Menu load error:', res);\n        }\n      });\n      return ''; // helpers must return something\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/helpers/message-log-date\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.messageLogDate = messageLogDate;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function messageLogDate(params) {\n    return moment(new Date(params)).format(' HH:mm a, D MMMM, YYYY');\n  }\n  var _default = _exports.default = Ember.Helper.helper(messageLogDate);\n});","define(\"clinic-dev/helpers/message-turncate\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function messageTurncate(params) {\n    var text_size = 36;\n    var text = params[0];\n    var text_name = text;\n    //console.log(text_name.length);\n    return text_name.length > text_size ? text_name.slice(0, text_size - 1) + '...' : text_name;\n  });\n});","define(\"clinic-dev/helpers/not-empty\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function notEmpty([array]) {\n    return Array.isArray(array) && array.length > 0;\n  });\n});","define(\"clinic-dev/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.default;\n    }\n  });\n  Object.defineProperty(_exports, \"notEqualHelper\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.notEqualHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not-eq\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  Object.defineProperty(_exports, \"not\", {\n    enumerable: true,\n    get: function () {\n      return _not.not;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/number-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function numberFormat(params, hash) {\n    console.log(params[1]);\n    //var decimals = params[1] ? params[1] : 2;\n    return params[0]?.toFixed(params[1]);\n  });\n});","define(\"clinic-dev/helpers/ocp-slots\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ocpSlots = ocpSlots;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/config/environment\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ocpSlots(time_slot_array, appointments) {\n    //$('table.appointments tr.slot_detail').remove();\n    var appointment_date = '';\n    if ($('#appointment_date').val() != '') {\n      appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n    } else {\n      var fullDate = new Date();\n      var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n      var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n      appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n    }\n    $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.api_url + 'appointments/ocpschedule/all',\n      data: {},\n      dataType: 'json',\n      success: function (resData) {\n        //$('table.appointments tr.slot_detail').remove();\n        //console.log(resData);\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/ocpscheduleadjustment/all',\n          data: {},\n          dataType: 'json',\n          success: function (resDataAjs) {\n            //console.log(resDataAjs);\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'getsetting/ocp_slots',\n              method: 'GET',\n              data: '',\n              success: function (res) {\n                var ocpslots = JSON.parse(res);\n                //_this.set('appointment_types', JSON.parse(res));\n                var total_doctors = appointments.result.length;\n                var total_table_width = 90;\n                var td_width = parseInt(total_table_width, 10) / total_doctors;\n                var check_doctor_schedule_taken = 0;\n                $('table.ocp_appointments tr.slot_detail').remove();\n                var table_content = '';\n                $.each(ocpslots, function (keys, vals) {\n                  table_content += '<tr class=\"slot_detail\">';\n                  table_content += '<td class=\"\" style=\"width:10%\">' + vals.name + '</td>';\n                  $.each(appointments.result, function (keyD, valD) {\n                    var doctorid = valD.user_id;\n                    var day = moment(appointment_date).day() + 1;\n                    if (resData[doctorid] != undefined) {\n                      var doctorSchedule = resData[doctorid][day];\n                    }\n                    if (resDataAjs[doctorid] != undefined && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid].dateTo).format('YYYY-MM-DD')) {\n                      var doctorSchedule = resDataAjs[doctorid][day];\n                    }\n                    var check_status = 0;\n                    if (doctorSchedule != undefined && (vals.code == 'bm' && parseInt(doctorSchedule.before_morning) == 1 || vals.code == 'am' && parseInt(doctorSchedule.after_morning) == 1 || vals.code == 'ae' && parseInt(doctorSchedule.after_evening) == 1)) {\n                      //console.log(appointments.appointments.length);\n                      //console.log(appointments.appointments);\n                      if (appointments.appointments.length > 0) {\n                        console.log('1');\n                        $.each(appointments.appointments, function (keyA, valA) {\n                          console.log(valA);\n                          console.log('doctorid=>' + doctorid + 'appointment_date=>' + appointment_date + 'data' + valA.current_appointment_date);\n                          if (doctorid == valA.doctor_id && vals.code == valA.ocp_slot && valA.appointment_type == 'ocp' && appointment_date == valA.current_appointment_date) {\n                            table_content += '<td class=\"booked\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + '\" data-content=\"\">Booked</td>';\n                            check_status = 1;\n                          }\n                        });\n                        if (check_status == 0) {\n                          table_content += '<td class=\"available ocp_available_slot\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + vals.name + '\" data-content=\"' + appointment_date + ' ' + vals.code + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                        }\n                      } else {\n                        table_content += '<td class=\"available ocp_available_slot\" style=\"width:' + td_width + '%\"  data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor:  Slot: ' + vals.name + '\" data-content=\"' + appointment_date + ' ' + vals.code + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                      }\n                    } else {\n                      //console.log(doctorSchedule.before_morning);\n                      table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                    }\n                  });\n                  table_content += '</tr>';\n                });\n                $('table.ocp_appointments').append(table_content);\n              }\n            });\n          }\n        });\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(ocpSlots);\n});","define(\"clinic-dev/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  Object.defineProperty(_exports, \"or\", {\n    enumerable: true,\n    get: function () {\n      return _or.or;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/or\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/other-charge\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function otherCharge(params, hash) {\n    var master_charge = params[0];\n    var apply_charge = hash.charge;\n    if (apply_charge != undefined) {\n      console.log(master_charge);\n      var html = '';\n      $.each(apply_charge, function (index, val) {\n        //console.log(apply_charge[index].charge_code);\n        $.each(apply_charge, function (index2, val2) {\n          if (val.charge_code != undefined && val.charge_code != val2.charge_code) {\n            html += '<option data-cid=\"' + val.charge_code + '\" class=\"1\" disabled=\"disabled\" data-shipping-related=\"' + val.shipping_related + '\" value=\"' + val.charge_cost + '\">' + val.charge_type + '</option>';\n          } else {\n            html += '<option data-cid=\"' + val.charge_code + '\" class=\"2\" data-shipping-related=\"' + val.shipping_related + '\" value=\"' + val.charge_cost + '\">' + val.charge_type + '</option>';\n          }\n        });\n        html += '<option value=\"Other\">Other</option>';\n        $('#medicine_charge').append(html);\n      });\n    }\n  });\n});","define(\"clinic-dev/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _pageTitle.default;\n});","define(\"clinic-dev/helpers/pagination-component\", [], function () {\n  \"use strict\";\n\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  Ember.Handlebars.registerBoundHelper('iterate', function (start, end, inc, url) {\n    var str = '';\n    for (var i = start; i <= end; i += inc) {\n      str += \"<li><a href='\" + url + '?p=' + i + \"' > <span aria-hidden='true'>\" + i + '</span> </a></li>';\n    }\n    return new Ember.Handlebars.SafeString(str);\n  });\n});","define(\"clinic-dev/helpers/pagination-pages\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function paginationPages(params) {\n    let [current, last] = params;\n    current = parseInt(current);\n    last = parseInt(last);\n    let pages = [];\n    for (let i = 1; i <= last; i++) {\n      if (i <= 3 ||\n      // first pages\n      i > last - 3 ||\n      // last pages\n      i >= current - 2 && i <= current + 2 // around current\n      ) {\n        pages.push(i);\n      } else {\n        if (pages[pages.length - 1] !== '...') {\n          pages.push('...');\n        }\n      }\n    }\n    return pages;\n  });\n});","define(\"clinic-dev/helpers/patient-pending-list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.patientPendingList = patientPendingList;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function patientPendingList(params) {\n    var base_url = _environment.default.APP.lumen_api_url + 'billing/pending/' + params[0];\n    $.ajax({\n      url: base_url,\n      method: 'GET',\n      success: function (res) {\n        var html = '';\n        html += '<table class=\"table table-bordered\" id=\"previous_pending\"><thead><tr><th scope=\"col\">Date</th><th scope=\"col\">Amount Due</th><th scope=\"col\">Comments</th></tr></thead><tbody>';\n        if (res.data != null) {\n          html += '<tr>';\n          html += '<td>' + res.data.time + '</td>';\n          html += '<td> <strong><i class=\"fas fa-rupee-sign\"></i> ' + parseFloat(res.data.due_amount).toFixed(2) + '</strong></td>';\n          html += '<td>' + res.data.comment + '</td>';\n          html += '</tr>';\n        } else {\n          html += '<tr><td colspan=\"3\" align=\"center\">No Previous pending record </td></tr>';\n        }\n        html += '</tbody>';\n        html += '</table>';\n        $('#pending').append(html);\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(patientPendingList);\n});","define(\"clinic-dev/helpers/payment-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.paymentStatus = paymentStatus;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function paymentStatus(params) {\n    var first_parameter = params[0];\n    var second_parameter = params[1];\n    var third_parameter = params[2];\n    var fourth_parameter = params[3];\n    var fifth_parameter = params[4];\n    var six_parameter = params[5];\n    var seven_parameter = params[6];\n    var eight_parameter = params[7];\n    // medicine discount\n    if (second_parameter != undefined) {\n      var med_disc = second_parameter;\n    } else {\n      var med_disc = 0;\n    }\n    if (fourth_parameter != undefined) {\n      var disc = fourth_parameter;\n    } else {\n      var disc = 0;\n    }\n    if (first_parameter != undefined) {\n      var first = first_parameter;\n    } else {\n      var first = 0;\n    }\n    if (third_parameter != undefined) {\n      var third = third_parameter;\n    } else {\n      var third = 0;\n    }\n    if (six_parameter != undefined) {\n      var other_charge = six_parameter;\n    } else {\n      var other_charge = 0;\n    }\n    if (eight_parameter != undefined) {\n      var eight = eight_parameter;\n    } else {\n      var eight = 0;\n    }\n    var med_main = first;\n    var decou = (med_disc / 100).toFixed(2); //its convert 10 into 0.10\n    var med_mult = med_main * decou; // gives the value for subtract from main value\n    var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n    var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n    // consultancy discount\n    var main = third;\n    var dec = (disc / 100).toFixed(2); //its convert 10 into 0.10\n    var mult = main * dec; // gives the value for subtract from main value\n    var consultancy_discount = parseFloat(main - mult).toFixed(2);\n    //console.log(consultancy_discount);\n    var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n    var pending = parseFloat(fifth_parameter).toFixed(2);\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending) + parseFloat(other_charge);\n    //console.log(total);\n    //var eVal = (isNaN(total)) ? 0.00 : total;\n    if (seven_parameter != undefined) {\n      var total_bill = parseFloat(total) - parseFloat(seven_parameter);\n      var total_bill_upto_two_decimal = total_bill.toFixed(2);\n      var total_bill_plus_pg_amount = parseFloat(total_bill_upto_two_decimal) + parseFloat(eight);\n      var total_bill_plus_pg_amount_upto_two_decimal = total_bill_plus_pg_amount.toFixed(2);\n      var eVal = isNaN(total_bill_plus_pg_amount_upto_two_decimal) ? 0.0 : total_bill_plus_pg_amount_upto_two_decimal;\n      var total_amount = parseFloat(eVal).toFixed(2);\n      var remaining_balance_status = Math.sign(total_amount);\n      if (remaining_balance_status == 1) {\n        var payment_status = 'DUE';\n      } else if (remaining_balance_status == -1) {\n        var payment_status = 'ADVANCE';\n      } else if (remaining_balance_status == 0) {\n        var payment_status = 'NO DUE';\n      }\n      if (payment_status == 'ADVANCE') {\n        $('.due_advance').html('Refund Amount ₹ A-(B-C)');\n        $('.total_due_refund').html('Refund Amount ₹ ');\n        $('#recieved').attr('placeholder', 'Refund');\n        $('.total_recieved_refund').text('Refund ₹ :');\n        $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n      } else {\n        $('.refund_class').html('');\n        //$('.due_advance').html('Total Due ₹  A-(B-C)');\n        $('.due_advance').html('Total Due ₹');\n        $('.total_due_refund').html('Total Due ₹');\n        $('.total_recieved_refund').text('Received ₹:');\n        $('#recieved').attr('placeholder', 'Received...');\n        $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"0\">');\n      }\n    }\n    return payment_status;\n  }\n  var _default = _exports.default = Ember.Helper.helper(paymentStatus);\n});","define(\"clinic-dev/helpers/pending-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function pendingAmount(params, hash) {\n    //console.log(params[0]);\n    console.log(params[2]);\n    var total_received = Math.abs(parseFloat(params[1]) - parseFloat(params[2]));\n    var total = Math.abs(parseFloat(params[0]) - parseFloat(total_received));\n    return total.toFixed(2);\n  });\n});","define(\"clinic-dev/helpers/pluralize\", [\"exports\", \"ember-inflector/lib/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/lib/helpers/pluralize\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _pluralize.default;\n});","define(\"clinic-dev/helpers/prescribe-medicine-edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.prescribeMedicineEdit = prescribeMedicineEdit;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function prescribeMedicineEdit(params) {\n    if (params[0] != undefined && params[1] != undefined) {\n      $('.tbody').empty();\n      $.each(params[0], function (index, val_array) {\n        $.each(val_array, function (index, val) {\n          var html = '';\n          var subhtml = '';\n          var serial_no = val.data.medicine_serial_no.toUpperCase();\n          var medicine_serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n          var pharmacy_name = val.pharmacy;\n          if (val.mix.length > 0 && val.mix_form.length > 0) {\n            var fact = parseInt(val.data.factor);\n            var vial = parseInt(val.data.vial);\n            //console.log(fact);\n            /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n            if (fact < 1) {\n              var Zerofactor = 'zerofactor';\n            } else {\n              var Zerofactor = '';\n            }\n            var form_array = val.mix_form;\n            var instructionselectss = '';\n            var edit_instructionselectss = '';\n            var mix_forms_selectss = '';\n            var instruction_id = val.data.instruction_id;\n            if (val.data.instruction_name != '') {\n              var mix_instruction_name = val.data.instruction_name;\n            } else {\n              var mix_instruction_name = val.data.instruction_other_value;\n            }\n            //var mix_instruction_name = val.data.instruction_name;\n            //var mix_instruction_other = val.data.instruction_other_value;\n            var mix_form = val.data.form_code;\n            var mix_forms = val.mix_form;\n            var instruction_array = params[1];\n            if (val.data.midicine_type == 'mix') {\n              var title = 'Mix medicine';\n              var common_id = val.data.medicine_id;\n              var medform = parseInt(common_id) + mix_form;\n            } else {\n              var title = 'On the fly mix medicine';\n              var common_id = val.data.id;\n              var medform = parseInt(common_id) + mix_form;\n            }\n            //This below code is used for Set a drop-down for mix forms, Rahul Khan 09 Sept 2019\n            // instruction selected html code\n            mix_forms_selectss += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control formItem prescribeform-' + medicine_serial_no + '\" id=\"prescribeform-' + medicine_serial_no + '\">';\n            mix_forms.forEach(function (form) {\n              // console.log(form.form_code);\n              if (mix_form == form.form_code) {\n                mix_forms_selectss += '<option selected=\"selected\" value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n              } else {\n                mix_forms_selectss += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\">' + form.form_code + '</option>';\n              }\n              /*  var form_code = form.form_code;\n                    var group = form.group;\n                    var name = form.name;\n                if(mix_form == form_code){\n                  }else{\n                  mix_forms_selectss +='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n                }*/\n            });\n\n            //for(var i=0; i<mix_forms.length; i++){\n\n            /*var form_code = mix_forms[i].form_code;\n            var group = mix_forms[i].group;\n            var name = mix_forms[i].name;\n            if(mix_form==mix_form){\n              mix_forms_selectss+='<option selected=\"selected\" value=\" stet\">stt</option>';\n            }else{\n              mix_forms_selectss+='<option value=\"'+group+'-'+form_code+'-'+name+'\"'>+form_code+'</option>';\n            }*/\n            //   }\n            mix_forms_selectss += '</select>';\n\n            // instruction selected html code\n            instructionselectss += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n            for (var i = 0; i < instruction_array.length; i++) {\n              //var instruc_id = instruction_array[i].id;\n              var instruc_name = instruction_array[i].instruction_name.trim();\n              if (mix_instruction_name == instruc_name) {\n                instructionselectss += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n              } else {\n                instructionselectss += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n              }\n            }\n            // if(mix_instruction_other!=''){\n            //   instructionselectss+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+mix_instruction_other+'\">'+mix_instruction_other+'</option>';\n            // }\n            instructionselectss += '</select>';\n            if (mix_instruction_name != '') {\n              edit_instructionselectss += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\"  class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + mix_instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + mix_instruction_name + '\">';\n            }\n            // if(mix_instruction_other!=''){\n            //   edit_instructionselectss += '<input  name=\"instruction[' + val.data.medicine_serial_no + ']\" class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+mix_instruction_other+'\">';\n            // }\n            instructionselectss += edit_instructionselectss;\n            html += '<tr title=\"' + title + '\" id=\"id-' + medicine_serial_no + '\" class=\"cw-mix-medicine-' + medicine_serial_no + ' ' + val.data.midicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + val.data.medicine_id + '\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n            html += '<td><input name=\"srnoItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + medicine_serial_no + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n            subhtml += '<table id=\"mixtale-' + medicine_serial_no + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + ']\" class=\"form-control dosage-' + medicine_serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.medicine_name + '\" data-med=\"' + common_id + '\"/> <input name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.midicine_type + '\"/>  <input name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + val.data.midicine_type + ']\"  id=\"medicine_id-' + medicine_serial_no + '\" type=\"hidden\" value=\"' + val.data.medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n            var j = 0;\n            for (var i = 0; i < val.mix.length; i++) {\n              var select = '';\n              var serial_no = parseInt(i + 1);\n              /* select+='<select name=\"formItem['+val.data.medicine_serial_no+']['+val.data.medicine_name+']['+serial_no+']\" class=\"form-control prescribeform-'+val.data.medicine_serial_no+serial_no+'\" id=\"prescribeform-'+val.data.medicine_serial_no+serial_no+'\" readonly=\"true\">';\n               for(var j=0; j<form_array[i].length;j++){\n                   if(val.mix[i].form_code==form_array[i][j].fcode){\n                   select+='<option selected=\"selected\" value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }else{\n                     select+='<option value=\"'+form_array[i][j].gId+'-'+form_array[i][j].fcode+'-'+form_array[i][j].fName+'\">'+form_array[i][j].fcode+'</option>';\n                   }\n               }\n              select+='</select>';*/\n\n              subhtml += '<tr data-ontheflyrow=\"' + serial_no + '\" data-mixrowid=\"' + medicine_serial_no + serial_no + '\" class=' + val.data.midicine_type + '-' + medicine_serial_no + '>';\n              subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + medicine_serial_no + serial_no + '\" type=\"text\" name=\"medicineItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" data-ontheflyId=\"' + serial_no + '\" id=\"medicine_name-' + medicine_serial_no + serial_no + '\" placeholder=\"Med ' + serial_no + ' in mix\" value=\"' + val.mix[i].medicine_name + '\" data-med=\"' + common_id + '\" readonly=\"true\"/><input type=\"hidden\" class=\"medicine_id-' + medicine_serial_no + serial_no + '\" id=\"medicine_id-' + medicine_serial_no + serial_no + '\"  name=\"medicine_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].medicine_id + '\"></td>';\n              subhtml += '<td><input name=\"potencyItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" id=\"potency-' + medicine_serial_no + serial_no + '\" class=\"form-control potency-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].potency_name + '\" readonly=\"true\"/> <input type=\"hidden\" class=\"potency_id-' + medicine_serial_no + serial_no + '\" id=\"potency_id-' + medicine_serial_no + serial_no + '\" name=\"potency_id[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" value=\"' + val.mix[i].potency_id + '\"></td>';\n              subhtml += '<td><input name=\"dilutionItem[' + medicine_serial_no + '][' + val.data.medicine_name + '][' + serial_no + ']\" class=\"form-control dilution-' + medicine_serial_no + serial_no + '\" id=\"dilution-' + medicine_serial_no + serial_no + '\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\" readonly=\"true\"/></td>';\n              // subhtml+='<td>'+select+'</td>';\n              subhtml += '</tr>';\n              j++;\n            }\n            subhtml += '</table>';\n            html += '<td colspan=\"3\">' + subhtml + '</td>';\n            html += '<td >' + mix_forms_selectss + '</td>';\n            html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + medicine_serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n            html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control medicinevialItem  medicinevial-' + medicine_serial_no + ' onlynumeric\" id=\"medicinevial-' + medicine_serial_no + '\" type=\"text\" value=\"' + vial + '\"/></td>';\n            html += '<td>' + instructionselectss + '</td>';\n            html += '</tr>';\n          } else {\n            var fact = parseInt(val.data.factor);\n            var vial = parseInt(val.data.vial);\n            //console.log(fact);\n            /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n            if (fact < 1) {\n              var Zerofactor = 'zerofactor';\n            } else {\n              var Zerofactor = '';\n            }\n            // instruction selected html code\n            var instructionselect = '';\n            var edit_instructionselect = '';\n            var instruction_id = val.data.instruction_id;\n\n            // var instruction_name = val.data.instruction_name;\n            // var instruction_other = val.data.instruction_other_value;\n            if (val.data.instruction_name != '') {\n              var instruction_name = val.data.instruction_name;\n            } else {\n              var instruction_name = val.data.instruction_other_value;\n            }\n            var midicine_type = val.data.midicine_type;\n            var medicine_id = val.data.medicine_id;\n            var potency_id = val.data.potency_id;\n            var single_form_array = val.single_form;\n            var instruction_array = params[1];\n            var medform = parseInt(medicine_id) + val.data.form_code;\n            var single_select = '';\n            single_select += '<select name=\"formItem[' + medicine_serial_no + ']\" class=\"form-control slectform-' + medicine_serial_no + ' formItem\" id=\"prescribeform-' + medicine_serial_no + '\">';\n            for (var i = 0; i < single_form_array.length; i++) {\n              if (val.data.form_code == single_form_array[i].form_code) {\n                single_select += '<option selected=\"selected\" value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n              } else {\n                single_select += '<option value=\"' + single_form_array[i].group_id + '-' + single_form_array[i].form_code + '-' + single_form_array[i].form_name + '\">' + single_form_array[i].form_code + '</option>';\n              }\n            }\n            single_select += '</select>';\n            instructionselect += '<select name=\"instructionItem[' + medicine_serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + medicine_serial_no + ' iother-' + medicine_serial_no + '\" id=\"instruction-' + medicine_serial_no + '\">';\n            for (var i = 0; i < instruction_array.length; i++) {\n              //var instruc_id = instruction_array[i].id;\n              var instruc_name = instruction_array[i].instruction_name.trim();\n              if (instruction_name != '' && instruction_name == instruc_name) {\n                instructionselect += '<option selected=\"selected\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n              } else {\n                instructionselect += '<option class=\"editable-' + medicine_serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n              }\n            }\n            //  if(instruction_other!=''){\n            //    instructionselect+='<option class=\"editable-'+val.data.medicine_serial_no+'\" selected=\"selected\" value=\"'+instruction_other+'\">'+instruction_other+'</option>';\n            //  }\n            instructionselect += '</select>';\n            if (instruction_name != '') {\n              edit_instructionselect += '<input id=\"edit_instruction-' + medicine_serial_no + '\" name=\"instruction[' + medicine_serial_no + ']\" class=\"editOption-' + medicine_serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n            }\n            // if(instruction_other!=''){\n            //   edit_instructionselect += '<input class=\"editOption-'+val.data.medicine_serial_no+'\" value=\"'+instruction_other+'\">';\n            // }\n            instructionselect += edit_instructionselect;\n            var instruction_name = '';\n            html += '<tr id=\"id-' + medicine_serial_no + '\" class=\"' + Zerofactor + ' tableRow previousRow\" data-order=\"' + serial_no + '\" data-medform=\"' + medform + '\">';\n            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + medicine_serial_no + '\" class=\"geometry\" data-id=\"' + medicine_serial_no + '\" name=\"check\" value=\"' + medicine_serial_no + '\"/></td>';\n            html += '<td><input class=\"form-control srno-' + medicine_serial_no + ' srnoItem\" id=\"srno-' + medicine_serial_no + '\" name=\"srnoItem[' + medicine_serial_no + ']\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\"/></td>';\n            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + medicine_serial_no + ']\" value=\"' + val.data.medicine_name + '\" class=\"form-control prescribeinput dosage-' + medicine_serial_no + ' medicineItem\" id=\"medicine_name-' + medicine_serial_no + '\" type=\"text\" placeholder=\"Type min 3 char to search\" autocomplete=\"off\" medicine_status=\"set\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + val.data.medicine_name + ', ' + val.data.potency_name + ' (' + val.data.dilution_name + ')\" data-type=\"' + midicine_type + '\" /> <input type=\"hidden\" name=\"medicine_type[' + medicine_serial_no + ']\"  id=\"medicine_type-' + medicine_serial_no + '\" value=\"' + val.data.midicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + medicine_serial_no + ']\" id=\"medicine_id-' + medicine_serial_no + '\" value=\"' + val.data.medicine_id + '\"><p id=\"results' + medicine_serial_no + '\" class=\"prescribe-medicine-search-result\"></p></td>';\n            html += '<td><input name=\"potencyItem[' + medicine_serial_no + ']\" class=\"form-control potency-' + medicine_serial_no + ' potencyItem\"  id=\"potency-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.potency_name + '\" readonly=\"true\" /> <input type=\"hidden\" name=\"potency_id[' + medicine_serial_no + ']\" id=\"potency_id-' + medicine_serial_no + '\" value=\"' + val.data.potency_id + '\"> </td>';\n            html += '<td><input class=\"form-control dilution-' + medicine_serial_no + ' dilutionItem\" name=\"dilutionItem[' + medicine_serial_no + ']\" id=\"dilution-' + medicine_serial_no + '\" type=\"text\" value=\"' + val.data.dilution_name + '\" readonly=\"true\"/></td>';\n            html += '<td>' + single_select + '</td>';\n            html += '<td><input name=\"factorItem[' + medicine_serial_no + ']\" class=\"form-control onlynumeric factor-' + medicine_serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + medicine_serial_no + '\" value=\"' + fact + '\"/></td>';\n            html += '<td><input name=\"medicineVial[' + medicine_serial_no + ']\" class=\"form-control onlynumeric medicinevial-' + medicine_serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + medicine_serial_no + '\" value=\"' + vial + '\"/></td>';\n            html += '<td>' + instructionselect + '</select></td>';\n            html += '</tr>';\n          }\n          $('table#prescriptionmedicine').append(html);\n          $('textarea#precribe_pharmacy_instruction').val(pharmacy_name);\n        });\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(prescribeMedicineEdit);\n});","define(\"clinic-dev/helpers/prescribe-medicine-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.prescribeMedicineView = prescribeMedicineView;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  function prescribeMedicineView(params, billpatientdetails) {\n    $('.inner_table tbody').empty();\n    // console.log(\"functiobn caleed\");\n    if (billpatientdetails != undefined) {\n      $('#prescribeDetails').removeClass('singletemplate');\n      $.each(billpatientdetails, function (index, val_array) {\n        $.each(val_array, function (index, val) {\n          var html = '';\n          var subhtml = '';\n          var arr = [];\n          if (val.mix.length > 0) {\n            var fact = parseInt(val.data.factor);\n            /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n            if (fact < 1) {\n              var Zerofactor = 'zerofactor';\n            } else {\n              var Zerofactor = '';\n            }\n            html += '<tr id=\"' + index + '\" class=\"mix ' + Zerofactor + '\">';\n            html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n            subhtml += '<table id=\"mixtale\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"69.5%\"><input disabled=\"disabled\" class=\"form-control\" type=\"text\" style=\"text-transform:capitalize;\" value=\"' + val.data.medicine_name + '\"/></th><th width=\"15.9%\"></th><th width=\"14.6%\"></th></tr>';\n            for (var i = 0; i < val.mix.length; i++) {\n              subhtml += '<tr>';\n              subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].medicine_name + '\"/></td>';\n              subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].potency_name + '\"/></td>';\n              subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\"/></td>';\n              subhtml += '</tr>';\n              arr.push(val.mix[i].form_rate);\n            }\n            //  var fact =  parseInt(val.data.factor);\n            var ins_id = val.data.instruction_id;\n            var ins_name = val.data.instruction_name;\n            if (ins_name != '') {\n              var instruction_name = val.data.instruction_name;\n            } else {\n              var instruction_name = val.data.instruction_other_value;\n            }\n            subhtml += '</table>';\n            var form_code = val.data.form_code;\n            if (form_code == 'G') {\n              var select_class = 'light_green';\n            } else if (form_code == 'L') {\n              var select_class = 'light_blue';\n            } else if (form_code == 'O') {\n              var select_class = 'light_orange';\n            } else if (form_code == 'P') {\n              var select_class = 'White';\n            }\n            html += '<td colspan=\"3\">' + subhtml + '</td>';\n            html += '<td><select readonly=\"readonly\" id=\"prescribeform-' + val.data.medicine_serial_no + '\" class=\"form-control ' + select_class + '\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n            html += '<td><input name=\"qty\" class=\"form-control onlynumeric qty\" id=\"qty-' + val.data.medicine_serial_no + '\" type=\"text\" disabled=\"disabled\" value=\"' + fact + '\"/></td>';\n            html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + parseInt(val.data.vial) + '\"/></td>';\n            html += '<td>' + instruction_name + '</td>';\n            html += '</tr>';\n          } else {\n            var form_code = val.data.form_code;\n            if (form_code == 'G') {\n              var select_class = 'light_green';\n            } else if (form_code == 'L') {\n              var select_class = 'light_blue';\n            } else if (form_code == 'O') {\n              var select_class = 'light_orange';\n            } else if (form_code == 'P') {\n              var select_class = 'White';\n            }\n            /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n            if (val.data.factor < 1) {\n              var Zerofactor = 'zerofactor';\n            } else {\n              var Zerofactor = '';\n            }\n            html += '<tr id=\"' + index + '\" class=\"single  ' + Zerofactor + '\">';\n            var ins_name = val.data.instruction_name;\n            if (ins_name != '') {\n              var instruction_name = val.data.instruction_name;\n            } else {\n              var instruction_name = val.data.instruction_other_value;\n            }\n            html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n            html += '<td><input disabled=\"disabled\" value=\"' + val.data.medicine_name + '\" class=\"form-control\" type=\"text\" /></td>';\n            html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.potency_name + '\"/></td>';\n            html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.dilution_name + '\"/></td>';\n            html += '<td><select disabled=\"disabled\" id=\"prescribeform-' + val.data.medicine_serial_no + '\" class=\"form-control ' + select_class + '\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n            html += '<td><input name=\"qty\" class=\"form-control onlynumeric qty\"  id=\"qty-' + val.data.medicine_serial_no + '\" disabled=\"disabled\"  type=\"text\" value=\"' + parseInt(val.data.factor) + '\"/></td>';\n            html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + parseInt(val.data.vial) + '\"/></td>';\n            html += '<td>' + instruction_name + '</td>';\n            html += '</tr>';\n            $('#prescribeDetails').addClass('singletemplate');\n          }\n          $('table#prescribeDetails').append(html);\n        });\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(prescribeMedicineView);\n});","define(\"clinic-dev/helpers/prescribe-medicine\", [\"exports\", \"qunit\"], function (_exports, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.prescribeMedicine = prescribeMedicine;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\",0,\"qunit\"eaimeta@70e063a35619d71f\n  function prescribeMedicine(params, hash) {\n    var billpatientdetails = params[0];\n    var PrescribePatient = hash.PrescribePatient;\n    let isOutside = hash.pe === 'O';\n    if (billpatientdetails != undefined && PrescribePatient != undefined) {\n      $('.tbody').empty();\n      $('#patientobj').val('');\n      $('#medicineobj').val('');\n      $('#prescribeDetails').removeClass('singletemplate');\n      $('#patientobj').val(JSON.stringify(PrescribePatient));\n      $('#medicineobj').val(JSON.stringify(billpatientdetails));\n      $.each(billpatientdetails, function (index, val) {\n        var html = '';\n        var subhtml = '';\n        var arr = [];\n        if (val.mix.length > 0) {\n          if (val.data.midicine_type == 'mix') {\n            var title = 'Mix medicine';\n          } else {\n            var title = 'On the fly mix medicine';\n          }\n          var fact = parseInt(val.data.factor);\n          if (isOutside) {\n            fact = 0;\n          }\n          /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n          } else {\n            var Zerofactor = '';\n          }\n          html += '<tr title=\"' + title + '\" id=\"' + index + '\" class=\"' + val.data.midicine_type + ' ' + Zerofactor + '\">';\n          html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n          subhtml += '<table id=\"mixtale\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"62.2%\"><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_name + '\"/></th><th width=\"20%\"></th><th width=\"20.9%\"></th></tr>';\n          for (var i = 0; i < val.mix.length; i++) {\n            subhtml += '<tr>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].medicine_name + '\"/></td>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].potency_name + '\"/></td>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\"/></td>';\n            /*  subhtml+='<td><select disabled=\"disabled\" class=\"form-control\"><option value=\"'+val.mix[i].group_id+'-'+val.mix[i].form_code+'-'+val.mix[i].form_name+'\">'+val.mix[i].form_code+'</option></select></td>'; */\n            subhtml += '</tr>';\n            arr.push(val.mix[i].form_rate);\n          }\n          //var fact =  parseInt(val.data.factor);\n          var ins_id = val.data.instruction_id;\n          var ins_name = val.data.instruction_name;\n          if (ins_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          var price = parseFloat(Math.max.apply(Math, arr)).toFixed(2);\n          if (parseFloat(val.data.medicine_amount) != '0.00') {\n            var amount = isOutside ? 0 : parseFloat(val.data.medicine_amount).toFixed(2);\n          } else {\n            var amount = parseFloat(Math.max.apply(Math, arr) * fact).toFixed(2);\n          }\n          subhtml += '</table>';\n          html += '<td colspan=\"3\">' + subhtml + '</td>';\n          html += '<td><select id=\"prescribeform-' + val.data.medicine_serial_no + '\" readonly=\"readonly\" class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n          html += '<td><input name=\"qty\" id=\"qty-' + val.data.medicine_serial_no + '\" class=\"form-control onlynumeric qty\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + price + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n          html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.vial)) + '\"/></td>';\n          html += '<td>' + instruction_name + '</td>';\n          html += '<td><span><i class=\"fas fa-rupee-sign\"></i> ' + price + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + price + '\"/></td>';\n          html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + parseFloat(amount).toFixed(2) + '\"/></td>';\n          html += '</tr>';\n        } else {\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (isOutside || val.data.factor < 1) {\n            var Zerofactor = 'zerofactor';\n            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n          } else {\n            var Zerofactor = '';\n          }\n          html += '<tr id=\"' + index + '\" class=\"single ' + Zerofactor + '\">';\n          var ins_name = val.data.instruction_name;\n          if (ins_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n          html += '<td><input disabled=\"disabled\" value=\"' + val.data.medicine_name + '\" class=\"form-control\" type=\"text\" /></td>';\n          html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.potency_name + '\"/></td>';\n          html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.dilution_name + '\"/></td>';\n          html += '<td><select readonly=\"readonly\" id=\"prescribeform-' + val.data.medicine_serial_no + '\" class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n          html += '<td><input name=\"qty\" class=\"form-control onlynumeric qty\" id=\"qty-' + val.data.medicine_serial_no + '\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.factor)) + '\"/></td>';\n          html += '<td><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.vial)) + '\"/></td>';\n          html += '<td>' + instruction_name + '</td>';\n          html += '<td><span><i class=\"fas fa-rupee-sign\"></i> ' + parseFloat(val.data.form_rate).toFixed(2) + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\"/></td>';\n          html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + (isOutside ? 0 : parseFloat(val.data.medicine_amount).toFixed(2)) + '\"/></td>';\n          html += '</tr>';\n          $('#prescribeDetails').addClass('singletemplate');\n        }\n        $('table#prescribeDetails').append(html);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(prescribeMedicine);\n});","define(\"clinic-dev/helpers/prescribed-medicine\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.prescribedMedicine = prescribedMedicine;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function prescribedMedicine(params, hash) {\n    var billpatientdetails = params[0];\n    var PrescribePatient = hash.PrescribePatient;\n    let isOutside = hash.pe === 'O';\n    if (billpatientdetails != undefined && PrescribePatient != undefined) {\n      $('.tbody').empty();\n      $('#patientobj').val('');\n      $('#medicineobj').val('');\n      $('#prescribeDetails').removeClass('singletemplate');\n      $('#patientobj').val(JSON.stringify(PrescribePatient));\n      $('#medicineobj').val(JSON.stringify(billpatientdetails));\n      $.each(billpatientdetails, function (index, val) {\n        var html = '';\n        var subhtml = '';\n        var arr = [];\n        if (val.mix.length > 0) {\n          if (val.data.midicine_type == 'mix') {\n            var title = 'Mix medicine';\n          } else {\n            var title = 'On the fly mix medicine';\n          }\n          var fact = parseInt(val.data.factor);\n          if (isOutside) {\n            fact = 0;\n          }\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (fact < 1) {\n            var Zerofactor = 'zerofactor';\n            $('.' + Zerofactor).attr('title', 'None billing medicine');\n          } else {\n            var Zerofactor = '';\n          }\n          html += '<tr title=\"' + title + '\" id=\"' + index + '\" class=\"mix  ' + Zerofactor + '\">';\n          html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n          subhtml += '<table id=\"mixtale\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"62.2%\"><input disabled=\"disabled\" class=\"form-control\" type=\"text\" style=\"text-transform:capitalize;\" value=\"' + val.data.medicine_name + '\"/></th><th width=\"20%\"></th><th width=\"20.9%\"></th></tr>';\n          for (var i = 0; i < val.mix.length; i++) {\n            subhtml += '<tr>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].medicine_name + '\"/></td>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].potency_name + '\"/></td>';\n            subhtml += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.mix[i].dilution_name + '\"/></td>';\n            /* subhtml+='<td><select disabled=\"disabled\" class=\"form-control\"><option value=\"'+val.mix[i].group_id+'-'+val.mix[i].form_code+'-'+val.mix[i].form_name+'\">'+val.mix[i].form_code+'</option></select></td>';\n             */\n            subhtml += '</tr>';\n            arr.push(val.mix[i].form_rate);\n          }\n          var ins_id = val.data.instruction_id;\n          var ins_name = val.data.instruction_name;\n          if (ins_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          var price = parseFloat(Math.max.apply(Math, arr)).toFixed(2);\n          if (parseFloat(val.data.medicine_amount) != '0.00') {\n            var amount = isOutside ? 0 : parseFloat(val.data.medicine_amount).toFixed(2);\n          } else {\n            var amount = parseFloat(Math.max.apply(Math, arr) * fact).toFixed(2);\n          }\n          subhtml += '</table>';\n          html += '<td colspan=\"3\">' + subhtml + '</td>';\n          html += '<td><select readonly=\"readonly\" id=\"prescribeform-' + val.data.medicine_serial_no + '\" class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n          html += '<td class=\"cware-disabled\" disabled=\"disabled\"><input name=\"qty\" class=\"form-control onlynumeric qty\" id=\"qty-' + val.data.medicine_serial_no + '\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + price + '\" type=\"text\" value=\"' + fact + '\" disabled=\"disabled\" /></td>';\n          html += '<td class=\"cware-disabled\" disabled=\"disabled\"><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.vial)) + '\" disabled=\"disabled\"/></td>';\n          html += '<td>' + instruction_name + '</td>';\n          html += '<td><span><i class=\"fas fa-rupee-sign\"></i> ' + price + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + price + '\"/></td>';\n          html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + parseFloat(amount).toFixed(2) + '\"/></td>';\n          html += '</tr>';\n        } else {\n          /*This below condition used for highting zero factor medicine, Rahul Khan, 25 July 2019*/\n          if (isOutside || val.data.factor < 1) {\n            var Zerofactor = 'zerofactor';\n            $('.' + Zerofactor).attr('title', 'None billing medicine');\n          } else {\n            var Zerofactor = '';\n          }\n          html += '<tr id=\"' + index + '\" class=\"single  ' + Zerofactor + '\">';\n          var ins_name = val.data.instruction_name;\n          if (ins_name != '') {\n            var instruction_name = val.data.instruction_name;\n          } else {\n            var instruction_name = val.data.instruction_other_value;\n          }\n          html += '<td><input disabled=\"disabled\" class=\"form-control\" type=\"text\" value=\"' + val.data.medicine_serial_no + '\"/></td>';\n          html += '<td><input disabled=\"disabled\" value=\"' + val.data.medicine_name + '\" class=\"form-control\" type=\"text\" /></td>';\n          html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.potency_name + '\"/></td>';\n          html += '<td><input  disabled=\"disabled\" class=\"form-control\"  type=\"text\" value=\"' + val.data.dilution_name + '\"/></td>';\n          html += '<td><select readonly=\"readonly\" id=\"prescribeform-' + val.data.medicine_serial_no + '\"  class=\"form-control\"><option value=\"' + val.data.group_id + '-' + val.data.form_code + '-' + val.data.form_name + '\">' + val.data.form_code + '</option></select></td>';\n          html += '<td class=\"cware-disabled\" disabled=\"disabled\"><input name=\"qty\" class=\"form-control onlynumeric qty\" id=\"qty-' + val.data.medicine_serial_no + '\" data-medid=\"' + val.data.id + '\" data-formrate=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.factor)) + '\" disabled=\"disabled\"/></td>';\n          html += '<td class=\"cware-disabled\" disabled=\"disabled\"><input name=\"vial\" class=\"form-control onlynumeric vial-' + val.data.medicine_serial_no + ' medicineVial\"  id=\"vial-' + val.data.medicine_serial_no + '\" type=\"text\" value=\"' + (isOutside ? 0 : parseInt(val.data.vial)) + '\" disabled=\"disabled\"/></td>';\n          html += '<td>' + instruction_name + '</td>';\n          html += '<td><span><i class=\"fas fa-rupee-sign\"></i> ' + parseFloat(val.data.form_rate).toFixed(2) + '</span><input class=\"form-control price\" name=\"price\" type=\"hidden\" value=\"' + parseFloat(val.data.form_rate).toFixed(2) + '\"/></td>';\n          html += '<td><input class=\"form-control subtot\" disabled=\"disabled\" type=\"text\" value=\"' + (isOutside ? 0 : parseFloat(val.data.medicine_amount).toFixed(2)) + '\"/></td>';\n          html += '</tr>';\n          $('#prescribeDetails').addClass('singletemplate');\n        }\n        $('table#prescribeDetails').append(html);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Helper.helper(prescribedMedicine);\n});","define(\"clinic-dev/helpers/render-appointment-block\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.renderAppointmentBlock = renderAppointmentBlock;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/config/environment\",0,\"@ember/component/helper\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function renderAppointmentBlock(doctors, time_slot_array, appointments, branch_id, shifttiming) {\n    //console.log();\n\n    /*************End branch Timing Ajax******************** */\n\n    //alert(\"ss\")\n\n    //console.log(tst);\n    var table_content = '';\n    $('table.appointments tr.slot_detail').remove();\n    var appointment_date = '';\n    if ($('#appointment_date').val() != '') {\n      appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n    } else {\n      var fullDate = new Date();\n      var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n      var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n      appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n    }\n    /* */\n    $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.api_url + 'appointments/schedule/all/' + time_slot_array.branch_id,\n      data: {},\n      dataType: 'json',\n      success: function (resData) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/scheduleadjustment/all/' + time_slot_array.branch_id,\n          data: {},\n          dataType: 'json',\n          success: function (resDataAjs) {\n            // console.log(tst);\n            $('table.appointments tr.slot_detail').remove();\n            //ADDEDD RAhul khan 05.02.2021\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + time_slot_array.branch_id,\n              data: {},\n              dataType: 'json',\n              success: function (resTimeData) {\n                //\tconsole.log(resTimeData.data[0].morning_shift_start);\n                var temp_array = [];\n                var current_time = '';\n                var current_time_mod = '';\n                if (!(resTimeData.data[0].morning_charity_status > 0)) {\n                  var morning_start_hour = resTimeData.data[0].morning_shift_start.substr(0, 2) * 60;\n                  var morning_stop_hour = resTimeData.data[0].morning_shift_end.substr(0, 2) * 60;\n                  for (var i = morning_start_hour; i <= morning_stop_hour; i += 10) {\n                    current_time = parseInt(i / 60);\n                    current_time_mod = String('0' + i % 60).slice(-2);\n                    temp_array.push({\n                      slot: current_time + ':' + current_time_mod\n                    });\n                  }\n                  if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                    temp_array.push({\n                      slot: '---'\n                    });\n                  }\n                }\n                if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                  var evening_start_hour = resTimeData.data[0].evening_shift_start.substr(0, 2) * 60;\n                  var evening_stop_hour = resTimeData.data[0].evening_shift_end.substr(0, 2) * 60;\n                  for (var i = evening_start_hour; i <= evening_stop_hour; i += 10) {\n                    current_time = parseInt(i / 60);\n                    current_time_mod = String('0' + i % 60).slice(-2);\n                    temp_array.push({\n                      slot: current_time + ':' + current_time_mod\n                    });\n                  }\n                }\n\n                //\treturn temp_array;\n\n                //console.log(time_slot_array);\n\n                $.each(temp_array, function (key, valS) {\n                  /* Table td width calculation on based of total number of doctors as on 14 Aug 2019 Shubh Tiwari*/\n                  table_content = '<tr class=\"slot_detail\">';\n                  table_content += '<td class=\"\" style=\"width:10%\">' + valS.slot + '</td>';\n                  $.each(time_slot_array.result, function (keyD, valD) {\n                    var full_start_time_morning = [];\n                    var full_end_time_morning = [];\n                    var full_start_time_evening = [];\n                    var full_end_time_evening = [];\n                    var total_doctors = time_slot_array.result.length;\n                    var total_table_width = 90;\n                    var td_width = parseInt(total_table_width, 10) / total_doctors;\n                    var check_doctor_schedule_taken = 0;\n                    //console.log(resData.data);\n\n                    //console.log(resDataAjs.data);\n                    if (resData.data.length > 0) {\n                      $.each(resData.data, function (keyResD, valResD) {\n                        //console.log();\n                        if (valResD.doctor_id == valD.user_id && valResD.DayOfWeek - 1 == moment(appointment_date).day()) {\n                          //console.log(\"Doctor Name: \"+valD.Name+\"Start time \"+valResD.StartTime+\"End Time \"+valResD.EndTime+\"Shift \"+valResD.shift_id);\n                          //console.log(valResD.StartTime.split(':'))\n                          if (valResD.shift_id == 1) {\n                            full_start_time_morning = valResD.StartTime.split(':');\n                            full_end_time_morning = valResD.EndTime.split(':');\n                          }\n                          if (valResD.shift_id == 2) {\n                            full_start_time_evening = valResD.StartTime.split(':');\n                            full_end_time_evening = valResD.EndTime.split(':');\n                          }\n\n                          //console.log(\"full_start_time_morning\"+full_start_time_morning);\n                          //console.log(\"full_end_time_morning\"+full_end_time_morning);\n                          //console.log(\"full_start_time_evening\"+full_start_time_evening);\n                          //console.log(\"full_end_time_evening\"+full_end_time_evening);\n                          check_doctor_schedule_taken = 1;\n                        }\n                      });\n                    }\n\n                    /*\tif(resDataAjs.data.length > 0){\n                    $.each(resDataAjs.data, function(keyResAjsD, valResAjsD){\n                    if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek - 1 == moment(appointment_date).day() && moment(appointment_date).format('YYYY-MM-DD') >= moment(valResAjsD.dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(valResAjsD.dateTo).format('YYYY-MM-DD')){\n                    // if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek == moment(appointment_date).day()){\n                    //full_start_time = valResAjsD.StartTime.split(':');\n                    //full_end_time = valResAjsD.EndTime.split(':');\n                    if(valResAjsD.shift_id == 1){\n                    full_start_time_morning = valResAjsD.StartTime.split(':');\n                    full_end_time_morning = valResAjsD.EndTime.split(':');\n                    }\n                    if(valResAjsD.shift_id == 2){\n                    full_start_time_evening = valResAjsD.StartTime.split(':');\n                    full_end_time_evening = valResAjsD.EndTime.split(':');\n                    }\n                    \t\t\t\t\tcheck_doctor_schedule_taken = 2;\n                    }\n                    });\n                    }*/\n\n                    var check_status = 0;\n                    //\tconsole.log(full_start_time_morning);\n\n                    //console.log(full_end_time_morning);\n                    //\tvar start_time_minute_morning;\n                    //\tvar end_time_minute_morning;\n                    //var start_time_minute_evening;\n                    //var end_time_minute_evening;\n\n                    var start_time_minute_morning = full_start_time_morning[0] * 60 + full_start_time_morning[1];\n                    var end_time_minute_morning = full_end_time_morning[0] * 60 + full_end_time_morning[1];\n                    var start_time_minute_evening = full_start_time_evening[0] * 60 + full_start_time_evening[1];\n                    var end_time_minute_evening = full_end_time_evening[0] * 60 + full_end_time_evening[1];\n                    var full_time_slot = valS.slot.split(':');\n                    var time_slot_minute = full_time_slot[0] * 60 + full_time_slot[1];\n\n                    //console.log(\"time_slot_minute =>\"+time_slot_minute+ \" start_time_minute=>\"+start_time_minute+\" end_time_minute =>\"+end_time_minute);\n                    //if(time_slot_minute < start_time_minute || time_slot_minute > end_time_minute || valS.slot ==\"---\"){\n                    //console.log(start_time_minute_morning);\n\n                    //console.log(\"slot\"+valS.slot+\"time_slot_minute \"+time_slot_minute+\"start_time_minute_morning\"+start_time_minute_morning+\"end_time_minute_morning\"+end_time_minute_morning+\"start_time_minute_evening\"+start_time_minute_evening+\"end_time_minute_evening\"+end_time_minute_evening);\n\n                    //66000start_time_minute_morning54000end_time_minute_morning72000start_time_minute_evening108000end_time_minute_evening114000\n\n                    /*\tvar time_slot_minute = 66000;\n                    var start_time_minute_morning = 54000;\n                    var end_time_minute_morning = 72000;\n                    var start_time_minute_evening = 108000;\n                    var end_time_minute_evening = 114000;*/\n                    //|| (time_slot_minute < start_time_minute_morning) || (time_slot_minute > end_time_minute_morning)\n                    //if((time_slot_minute < start_time_minute_morning) || (time_slot_minute > end_time_minute_morning) || (valS.slot ==\"---\")){\n\n                    if (time_slot_minute < start_time_minute_morning || time_slot_minute > end_time_minute_evening || valS.slot == '---') {\n                      console.log('slot' + valS.slot + 'time_slot_minute ' + time_slot_minute + 'start_time_minute_morning' + start_time_minute_morning + 'end_time_minute_morning' + end_time_minute_morning + 'start_time_minute_evening' + start_time_minute_evening + 'end_time_minute_evening' + end_time_minute_evening + 'NA1');\n                      table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A1</td>';\n                    } /*else if((time_slot_minute < start_time_minute_evening) || (time_slot_minute > \t\tend_time_minute_evening) || (valS.slot ==\"---\")){\n                      console.log(\"slot\"+valS.slot+\"time_slot_minute \"+time_slot_minute+\"start_time_minute_morning\"+start_time_minute_morning+\"end_time_minute_morning\"+end_time_minute_morning+\"start_time_minute_evening\"+start_time_minute_evening+\"end_time_minute_evening\"+end_time_minute_evening+\"NA2\");\n                      table_content += '<td class=\"not_available\" style=\"width:'+td_width+'%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"'+valD.Name+' is not available on this time slot.\">N/A2</td>';\n                      }*/else {\n                      var check_status = 0;\n                      $.each(time_slot_array.appointments, function (keyA, valA) {\n                        if (valD.user_id == valA.doctor_id && valS.slot == valA.appointment_time) {\n                          table_content += '<td class=\"booked\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + '\">Booked</td>';\n                          check_status = 1;\n                        }\n                      });\n                      if (check_status == 0) {\n                        table_content += '<td class=\"available available_slot\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + valS.slot + '\" data-content=\"' + appointment_date + ' ' + valS.slot + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                      }\n                    }\n                  });\n                  table_content += '</tr>';\n                  $('table.appointments').append(table_content);\n                });\n\n                ///****** */\n              }\n            });\n          }\n        });\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(renderAppointmentBlock);\n});","define(\"clinic-dev/helpers/render-appointment\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.renderAppointment = renderAppointment;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/config/environment\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  //import { computed } from '@ember/object';\n\n  function renderAppointment(time_slot_array, appointments) {\n    //$('table.appointments tr.slot_detail').remove();\n    let utoken = sessionStorage.getItem('stoken');\n    var appointment_date = '';\n    if ($('#appointment_date').val() != '') {\n      appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n    } else {\n      var fullDate = new Date();\n      var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n      var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n      appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n    }\n    function normalizeSlot(slot) {\n      var parts = slot.split(':');\n      return parts[0].padStart(2, '0') + ':' + parts[1];\n    }\n    $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.api_url + 'appointments/scheduleshift/all/' + appointments.branch_id,\n      data: {},\n      headers: {\n        \"Authorization\": `Bearer ${utoken}`\n      },\n      dataType: 'json',\n      success: function (resData) {\n        $('table.appointments tr.slot_detail').remove();\n        // console.log(resData);\n        /* ================= LOCKED SLOTS (NEW) ================= */\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'appointments/locked-slots/' + appointments.branch_id + '/' + appointment_date,\n          dataType: 'json',\n          headers: {\n            Authorization: `Bearer ${utoken}`\n          },\n          success: function (lockedRes) {\n            var lockedSlots = lockedRes.data || [];\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.api_url + 'appointments/scheduleadjustmentshift/all/' + appointments.branch_id,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              data: {},\n              dataType: 'json',\n              success: function (resDataAjs) {\n                //$('table.appointments tr.slot_detail').remove();\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.api_url + 'appointments/schedule/timing/' + appointments.branch_id,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  data: {},\n                  dataType: 'json',\n                  success: function (resTimeData) {\n                    var temp_array = [];\n                    var current_time = '';\n                    var current_time_mod = '';\n                    if (!(resTimeData.data[0].morning_charity_status > 0)) {\n                      var morning_start_hour = parseInt(resTimeData.data[0].morning_shift_start.substr(0, 2)) * 60 + parseInt(resTimeData.data[0].morning_shift_start.substr(3, 2));\n                      var morning_stop_hour = parseInt(resTimeData.data[0].morning_shift_end.substr(0, 2)) * 60 + parseInt(resTimeData.data[0].morning_shift_end.substr(3, 2));\n                      for (var i = morning_start_hour; i <= morning_stop_hour; i += 10) {\n                        current_time = parseInt(i / 60);\n                        current_time_mod = String('0' + i % 60).slice(-2);\n                        temp_array.push({\n                          slot: current_time + ':' + current_time_mod,\n                          shift: '1'\n                        });\n                      }\n                      if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                        temp_array.push({\n                          slot: '---'\n                        });\n                      }\n                    }\n                    if (!(resTimeData.data[0].evening_charity_status > 0)) {\n                      var evening_start_hour = parseInt(resTimeData.data[0].evening_shift_start.substr(0, 2)) * 60 + parseInt(resTimeData.data[0].evening_shift_start.substr(3, 2));\n                      var evening_stop_hour = parseInt(resTimeData.data[0].evening_shift_end.substr(0, 2)) * 60 + parseInt(resTimeData.data[0].evening_shift_end.substr(3, 2));\n                      for (var i = evening_start_hour; i <= evening_stop_hour; i += 10) {\n                        current_time = parseInt(i / 60);\n                        current_time_mod = String('0' + i % 60).slice(-2);\n                        temp_array.push({\n                          slot: current_time + ':' + current_time_mod,\n                          shift: '2'\n                        });\n                      }\n                    }\n                    //console.log(temp_array);\n                    //$('table.appointments tr.slot_detail').remove();\n                    var table_content = null;\n                    $.each(temp_array, function (key, valS) {\n                      table_content = '<tr class=\"slot_detail\">';\n                      table_content += '<td class=\"\" style=\"width:10%\">' + valS.slot + '</td>';\n                      $.each(appointments.result, function (keyD, valD) {\n                        //table_content += '<td class=\"\" style=\"width:'+td_width+'%\">1</td>';\n                        var full_start_time = [];\n                        var full_end_time = [];\n                        var full_start_time_evening = [];\n                        var full_end_time_evening = [];\n                        var total_doctors = appointments.result.length;\n                        var total_table_width = 90;\n                        var td_width = parseInt(total_table_width, 10) / total_doctors;\n                        var check_doctor_schedule_taken = 0;\n                        //table_content += '<td class=\"\" style=\"width:'+td_width+'%\">'+valD.user_id+'</td>';\n                        //\tif(resData.data.length > 0){\n                        var doctorid = valD.user_id;\n                        var shift = valS.shift;\n                        var day = moment(appointment_date).day() + 1;\n                        //console.log(day);\n                        //console.log(day+1);\n                        //console.log(resData[doctorid]);\n                        // Check adjustment schedule first — it overrides regular schedule\n                        if (resDataAjs[doctorid] != undefined && resDataAjs[doctorid][shift] != undefined && resDataAjs[doctorid][shift][day] != undefined && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs[doctorid][shift][day].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs[doctorid][shift][day].dateTo).format('YYYY-MM-DD')) {\n                          var resObjAjs = resDataAjs[doctorid][shift][day];\n                          full_start_time = resObjAjs.StartTime.split(':');\n                          full_end_time = resObjAjs.EndTime.split(':');\n                        } else if (resData[doctorid] != undefined && resData[doctorid][shift] != undefined && resData[doctorid][shift][day] != undefined) {\n                          var resObj = resData[doctorid][shift][day];\n                          full_start_time = resObj.StartTime.split(':');\n                          full_end_time = resObj.EndTime.split(':');\n                        } else {\n                          table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                          return true;\n                        }\n\n                        //if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek - 1 == moment(appointment_date).day() && moment(appointment_date).format('YYYY-MM-DD') >= moment(valResAjsD.dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(valResAjsD.dateTo).format('YYYY-MM-DD')){\n\n                        /*if(resDataAjs.data.length > 0){\n                          $.each(resDataAjs.data, function(keyResAjsD, valResAjsD){\n                            if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek - 1 == moment(appointment_date).day() && moment(appointment_date).format('YYYY-MM-DD') >= moment(valResAjsD.dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(valResAjsD.dateTo).format('YYYY-MM-DD')){\n                              if(valResAjsD.shift_id == 1){\n                                full_start_time_morning = valResAjsD.StartTime.split(':');\n                                full_end_time_morning = valResAjsD.EndTime.split(':');\n                              }\n                              if(valResAjsD.shift_id == 2){\n                                full_start_time_evening = valResAjsD.StartTime.split(':');\n                                full_end_time_evening = valResAjsD.EndTime.split(':');\n                              }\n                                    check_doctor_schedule_taken = 2;\n                            }\n                          });\n                        }*/\n\n                        var check_status = 0;\n                        var start_time_minute = parseInt(full_start_time[0] * 60) + parseInt(full_start_time[1]);\n                        var end_time_minute = parseInt(full_end_time[0] * 60) + parseInt(full_end_time[1]);\n                        var full_time_slot = valS.slot.split(':');\n                        var time_slot_minute = parseInt(full_time_slot[0] * 60) + parseInt(full_time_slot[1]);\n                        //console.log(\"slot\"+valS.slot+\"time_slot_minute\"+time_slot_minute+\"start_time_minute\"+start_time_minute+\"end_time_minute\"+end_time_minute);\n                        if (time_slot_minute > end_time_minute || time_slot_minute < start_time_minute || valS.slot == '---') {\n                          //console.log('execute block a');\n\n                          table_content += '<td class=\"not_available\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                        } else {\n                          //console.log('execute block b');\n                          var check_status = 0;\n                          $.each(appointments.appointments, function (keyA, valA) {\n                            if (valD.user_id == valA.doctor_id && valS.slot == valA.appointment_time) {\n                              //console.log('execute block 1');\n                              table_content += '<td class=\"booked\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + ',\\n Appointment Type: ' + valA.appointment_type.toUpperCase() + '\">Booked</td>';\n                              check_status = 1;\n                            }\n                          });\n                          /* ============ LOCKED SLOT CHECK (NEW – NO EXISTING LOGIC TOUCHED) ============ */\n                          moment(appointment_date, 'YYYY-M-DD');\n                          if (check_status == 0) {\n                            $.each(lockedSlots, function (lk, lv) {\n                              if (parseInt(lv.doctor_id) === parseInt(valD.user_id) && normalizeSlot(lv.slot) === normalizeSlot(valS.slot)) {\n                                var appointment_date = moment(lv.appointment_date).format('YYYY-MM-DD');\n                                table_content += '<td data-lockedid=\"' + lv.reservation_id + '\" data-doctorname=\"' + lv.doctor_name + '\" data-doctorid=\"' + lv.doctor_id + '\" data-slot=\"' + lv.slot + '\" data-branchid=\"' + lv.branch_id + '\" data-appointmentdate=\"' + appointment_date + '\" class=\"locked unlockedbranch\" ' + 'style=\"width:' + td_width + '%\" ' + 'data-toggle=\"tooltip\" ' + 'data-placement=\"top\" ' + 'data-original-title=\"Slot is locked. Click to unlock\">' + '<i class=\"fa fa-lock\"></i> Locked' + '</td>';\n                                check_status = 1;\n                                return false; // break loop\n                              }\n                            });\n                          }\n                          if (check_status == 0) {\n                            //console.log('execute block 2');\n                            table_content += '<td class=\"available available_slot branchlockedcheck\" style=\"width:' + td_width + '%\" data-toggle=\"tooltip\" data-placement=\"top\" data-doctorname=\"' + valD.Name + '\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + valS.slot + '\" data-content=\"' + appointment_date + ' ' + valS.slot + ':00?' + valD.user_id + '?' + valS.shift + '\" rel=\"\">Available</td>';\n                          }\n                        }\n                      });\n                      table_content += '</tr>';\n                      $('table.appointments').append(table_content);\n                    });\n                  }\n                });\n              }\n            });\n          }\n        });\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(renderAppointment);\n});","define(\"clinic-dev/helpers/round-up\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function roundUp([number]) {\n    if (typeof number === 'number') {\n      console.log(number);\n      return Math.round(number);\n    }\n    return number;\n  });\n});","define(\"clinic-dev/helpers/schedule-date-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function scheduleFormatDate([date]) {\n    if (!date) return '';\n\n    // Handle special case\n    if (date === 'onwards') {\n      return 'Onwards';\n    }\n    let parsedDate = new Date(date);\n\n    // If invalid date, return as-is\n    if (isNaN(parsedDate)) {\n      return date;\n    }\n    return parsedDate.toLocaleDateString('en-US', {\n      month: 'long',\n      day: 'numeric',\n      year: 'numeric'\n    });\n  });\n});","define(\"clinic-dev/helpers/schedule-selected\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function scheduleSelected([selected, from, to, shift]) {\n    return selected && selected.find(item => item.from === from && item.to === to && item.shift === shift);\n  });\n});","define(\"clinic-dev/helpers/searchable-select-get\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.searchableSelectGet = searchableSelectGet;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  function searchableSelectGet([object, path]) {\n    if (!path) {\n      return;\n    }\n    return Ember.get(object, path);\n  }\n  var _default = _exports.default = Ember.Helper.helper(searchableSelectGet);\n});","define(\"clinic-dev/helpers/searchable-select-highlight-match\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.searchableSelectHighlightMatch = searchableSelectHighlightMatch;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  function searchableSelectHighlightMatch([text, matchText]) {\n    if (!matchText || !text) {\n      return text;\n    }\n    let highlightedText = text.replace(new RegExp(`(${matchText})`, 'i'), '<span class=\"Searchable-select__matched-text\">$1</span>');\n    return Ember.String.htmlSafe(highlightedText);\n  }\n  var _default = _exports.default = Ember.Helper.helper(searchableSelectHighlightMatch);\n});","define(\"clinic-dev/helpers/show-billing-pharmacy-name\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.showBillingPharmacyName = showBillingPharmacyName;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function showBillingPharmacyName(params, hash) {\n    var name = '';\n    var booked_branch = params[0];\n    var appointment_billed_branch = params[1];\n    var medicine_prepared_branch = params[2];\n    if (booked_branch != undefined) {\n      var login_branch = booked_branch;\n    } else {\n      var login_branch = '';\n    }\n    if (appointment_billed_branch != undefined) {\n      var billed_branch = appointment_billed_branch;\n    } else {\n      var billed_branch = '';\n    }\n    if (medicine_prepared_branch != undefined) {\n      var med_prepared_branch = medicine_prepared_branch;\n    } else {\n      var med_prepared_branch = '';\n    }\n    if (!(login_branch == billed_branch && billed_branch == med_prepared_branch)) {\n      name = '(B:' + billed_branch + \" / \" + 'P:' + med_prepared_branch + ')';\n    }\n    return name;\n  }\n  var _default = _exports.default = Ember.Helper.helper(showBillingPharmacyName);\n});","define(\"clinic-dev/helpers/singularize\", [\"exports\", \"ember-inflector/lib/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/lib/helpers/singularize\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _singularize.default;\n});","define(\"clinic-dev/helpers/stringify\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function stringify([value]) {\n    return String(value);\n  });\n});","define(\"clinic-dev/helpers/subhtest\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.subhtest = subhtest;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/config/environment\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function subhtest(doctors, slots, appointments, branch_id) {\n    console.log(appointments);\n    var table_content = '';\n    // alert(branch_id);\n\n    $('table.appointments tr.slot_detail').remove();\n    var appointment_date = '';\n    if ($('#appointment_date').val() != '') {\n      appointment_date = moment($('#appointment_date').val()).format('YYYY-MM-DD');\n    } else {\n      var fullDate = new Date();\n      var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n      var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n      appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n    }\n    // alert(moment(appointment_date).day());\n    /* */\n    $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.api_url + 'appointments/schedule/all/' + branch_id + '/1',\n      data: {},\n      dataType: 'json',\n      success: function (resData) {\n        // console.log('abc');\n        // console.log(resData.data);\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/scheduleadjustment/all/' + branch_id + '/1',\n          data: {},\n          dataType: 'json',\n          success: function (resDataAjs) {\n            // console.log('123');\n            // console.log(resDataAjs.data);\n            $('table.appointments tr.slot_detail').remove();\n            $.each(slots, function (key, valS) {\n              table_content = '<tr class=\"slot_detail\">';\n              table_content += '<td class=\"\" style=\"width:14.28%\">' + valS.slot + '</td>';\n              $.each(doctors, function (keyD, valD) {\n                /* */\n                /* var abc = '9:00';\n                var def = '13:00';\n                var full_start_time = abc.split(':');\n                var full_end_time = def.split(':'); */\n                var full_start_time = [];\n                var full_end_time = [];\n                var check_doctor_schedule_taken = 0;\n                if (resData.data.length > 0) {\n                  $.each(resData.data, function (keyResD, valResD) {\n                    if (valResD.doctor_id == valD.user_id && valResD.DayOfWeek - 1 == moment(appointment_date).day()) {\n                      full_start_time = valResD.StartTime.split(':');\n                      full_end_time = valResD.EndTime.split(':');\n                      check_doctor_schedule_taken = 1;\n                      // alert(valResD.doctor_id + ' Test');\n                    }\n                  });\n                }\n                if (resDataAjs.data.length > 0) {\n                  $.each(resDataAjs.data, function (keyResAjsD, valResAjsD) {\n                    if (valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek - 1 == moment(appointment_date).day() && moment(appointment_date).format('YYYY-MM-DD') >= moment(valResAjsD.dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(valResAjsD.dateTo).format('YYYY-MM-DD')) {\n                      // if(valResAjsD.doctor_id == valD.user_id && valResAjsD.DayOfWeek == moment(appointment_date).day()){\n                      full_start_time = valResAjsD.StartTime.split(':');\n                      full_end_time = valResAjsD.EndTime.split(':');\n                      check_doctor_schedule_taken = 2;\n                      // console.log(full_start_time + ' ' + moment(appointment_date).format('YYYY-MM-DD') + ' ' + valResAjsD.doctor_id + ' ' + ' Test123');\n                      // console.log(full_start_time + ' test');\n                    }\n                  });\n                }\n                // console.log(full_start_time + ' test');\n                // alert(check_doctor_schedule_taken);\n\n                /* if(resDataAjs.data.length > 0 && moment(appointment_date).format('YYYY-MM-DD') >= moment(resDataAjs.data[moment(appointment_date).day()].dateFrom).format('YYYY-MM-DD') && moment(appointment_date).format('YYYY-MM-DD') <= moment(resDataAjs.data[moment(appointment_date).day()].dateTo).format('YYYY-MM-DD')){\n                var full_start_time = resDataAjs.data[moment(appointment_date).day()].StartTime.split(':');\n                // alert(moment(appointment_date).day());\n                var full_end_time = resDataAjs.data[moment(appointment_date).day()].EndTime.split(':');\n                } else{\n                var full_start_time = resData.data[moment(appointment_date).day()].StartTime.split(':');\n                var full_end_time = resData.data[moment(appointment_date).day()].EndTime.split(':');\n                } */\n\n                var check_status = 0;\n                var start_time_minute = full_start_time[0] * 60 + full_start_time[1];\n                var end_time_minute = full_end_time[0] * 60 + full_end_time[1];\n                var full_time_slot = valS.slot.split(':');\n                var time_slot_minute = full_time_slot[0] * 60 + full_time_slot[1];\n                if (time_slot_minute < start_time_minute || time_slot_minute > end_time_minute) {\n                  /* if(moment(appointment_date).day() == 4){ */\n                  table_content += '<td class=\"not_available\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" data-content=\"\" title=\"' + valD.Name + ' is not available on this time slot.\">N/A</td>';\n                } else {\n                  if ($(appointments).size() > 0) {\n                    var check_status = 0;\n                    $.each(appointments, function (keyA, valA) {\n                      if (valD.user_id == valA.doctor_id && valS.slot == valA.appointment_time) {\n                        table_content += '<td class=\"booked\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" title=\"Patient Id: ' + valA.OldRegistrationNo + ', \\n Appointment Id: ' + valA.id + ',\\n Patient Name: ' + valA.first_name + ' ' + valA.last_name + ',\\n Doctor: ' + valA.doctor_name + '\">Booked</td>';\n                        check_status = 1;\n                      }\n                    });\n                    if (check_status == 0) {\n                      table_content += '<td class=\"available available_slot\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + valS.slot + '\" data-content=\"' + appointment_date + ' ' + valS.slot + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                    }\n                  } else {\n                    table_content += '<td class=\"available available_slot\" style=\"width:14.28%\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ' + valD.Name + ',\\n Slot: ' + valS.slot + '\" data-content=\"' + appointment_date + ' ' + valS.slot + ':00?' + valD.user_id + '\" rel=\"\">Available</td>';\n                  }\n                }\n              });\n              table_content += '</tr>';\n              $('table.appointments').append(table_content);\n            });\n          }\n        });\n      }\n    });\n  }\n  var _default = _exports.default = Ember.Helper.helper(subhtest);\n});","define(\"clinic-dev/helpers/sum\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.sum = sum;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function sum(params) {\n    var first_parameter = params[0];\n    var second_parameter = params[1];\n    var third_parameter = params[2];\n    var fourth_parameter = params[3];\n    var fifth_parameter = params[4];\n    var six_parameter = params[5];\n    // medicine discount\n    if (second_parameter != undefined) {\n      var med_disc = second_parameter;\n    } else {\n      var med_disc = 0;\n    }\n    if (fourth_parameter != undefined) {\n      var disc = fourth_parameter;\n    } else {\n      var disc = 0;\n    }\n    if (first_parameter != undefined) {\n      var first = first_parameter;\n    } else {\n      var first = 0;\n    }\n    if (third_parameter != undefined) {\n      var third = third_parameter;\n    } else {\n      var third = 0;\n    }\n    if (six_parameter != '') {\n      var other_charge = parseFloat(six_parameter).toFixed(2);\n    } else {\n      var other_charge = 0;\n    }\n    var med_main = first;\n    var decou = (med_disc / 100).toFixed(2); //its convert 10 into 0.10\n    var med_mult = med_main * decou; // gives the value for subtract from main value\n    var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n    var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n    // consultancy discount\n    var main = third;\n    var dec = (disc / 100).toFixed(2); //its convert 10 into 0.10\n    var mult = main * dec; // gives the value for subtract from main value\n    var consultancy_discount = parseFloat(main - mult).toFixed(2);\n    //console.log(consultancy_discount);\n    var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n    var pending = fifth_parameter;\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending) + parseFloat(other_charge);\n    var eVal = isNaN(total) ? 0.0 : total;\n    return parseFloat(Math.abs(eVal)).toFixed(2);\n  }\n  var _default = _exports.default = Ember.Helper.helper(sum);\n});","define(\"clinic-dev/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/text-highlight\", [\"exports\", \"ember-text-highlight/helpers/text-highlight\", \"ember-text-highlight/-private/indices-implementation\", \"ember-text-highlight/-private/regex-implementation\"], function (_exports, _textHighlight, _indicesImplementation, _regexImplementation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _textHighlight.default;\n    }\n  });\n  Object.defineProperty(_exports, \"indicesImplementation\", {\n    enumerable: true,\n    get: function () {\n      return _indicesImplementation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"regexImplementation\", {\n    enumerable: true,\n    get: function () {\n      return _regexImplementation.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-text-highlight/helpers/text-highlight\",0,\"ember-text-highlight/-private/indices-implementation\",0,\"ember-text-highlight/-private/regex-implementation\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/helpers/total-dues-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.totalDuesAmount = totalDuesAmount;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function totalDuesAmount(params) {\n    var first_parameter = params[0];\n    var second_parameter = params[1];\n    var third_parameter = params[2];\n    var fourth_parameter = params[3];\n    var fifth_parameter = params[4];\n    var six_parameter = params[5];\n    var seven_parameter = params[6];\n    var eight_parameter = params[7];\n    // medicine discount\n    if (second_parameter != undefined) {\n      var med_disc = second_parameter;\n    } else {\n      var med_disc = 0;\n    }\n    if (fourth_parameter != undefined) {\n      var disc = fourth_parameter;\n    } else {\n      var disc = 0;\n    }\n    if (first_parameter != undefined) {\n      var first = first_parameter;\n    } else {\n      var first = 0;\n    }\n    if (third_parameter != undefined) {\n      var third = third_parameter;\n    } else {\n      var third = 0;\n    }\n    if (six_parameter != undefined) {\n      var other_charge = six_parameter;\n    } else {\n      var other_charge = 0;\n    }\n    if (eight_parameter != undefined) {\n      var eight = eight_parameter;\n    } else {\n      var eight = 0;\n    }\n    var med_main = first;\n    var decou = (med_disc / 100).toFixed(2); //its convert 10 into 0.10\n    var med_mult = med_main * decou; // gives the value for subtract from main value\n    var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n    var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n    // consultancy discount\n    var main = third;\n    var dec = (disc / 100).toFixed(2); //its convert 10 into 0.10\n    var mult = main * dec; // gives the value for subtract from main value\n    var consultancy_discount = parseFloat(main - mult).toFixed(2);\n    //console.log(consultancy_discount);\n    var consult_eVal = isNaN(consultancy_discount) ? 0.0 : consultancy_discount;\n    var pending = parseFloat(fifth_parameter).toFixed(2);\n    var total = parseFloat(med_eVal) + parseInt(consult_eVal, 10) + parseFloat(pending) + parseFloat(other_charge);\n    if (seven_parameter != undefined) {\n      var total_bill = parseFloat(total) - parseFloat(seven_parameter);\n      var total_bill_upto_two_decimal = total_bill.toFixed(2);\n      var total_bill_plus_pg_amount = parseFloat(total_bill_upto_two_decimal) + parseFloat(eight);\n      var total_bill_plus_pg_amount_upto_two_decimal = total_bill_plus_pg_amount.toFixed(2);\n      var eVal = isNaN(total_bill_plus_pg_amount_upto_two_decimal) ? 0.0 : total_bill_plus_pg_amount_upto_two_decimal;\n      var total_paid = Math.abs(eVal);\n    } else {\n      var total_paid = isNaN(total) ? 0.0 : total;\n    }\n    return parseFloat(total_paid).toFixed(2);\n  }\n  var _default = _exports.default = Ember.Helper.helper(totalDuesAmount);\n});","define(\"clinic-dev/helpers/truncate-text\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function truncateText(params, hash) {\n    var value = params[0];\n    var len = hash.limit;\n    //console.log(len);\n    var out = '';\n    if (value !== undefined) {\n      out = value.substr(0, len);\n      if (value.length > len) {\n        out += '...';\n      }\n    } else {\n      out = '';\n    }\n    return out;\n  });\n});","define(\"clinic-dev/helpers/visit-log\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function visitLog(params) {\n    $('#visitlogbody').empty();\n    if (params[0] != undefined) {\n      $.each(params[0].visit_amt, function (index, val) {\n        var html = '';\n        var visit_charges = [];\n        var visit_date = val.visit_date;\n        var today = moment(visit_date).format('DD-MM-Y');\n        var received_amount = val.recieved_amount;\n        function safe(v) {\n          if (!v || v === 'NULL') return '';\n          return v;\n        }\n        function buildCode(parts) {\n          return parts.filter(p => p && p !== '').join('/');\n        }\n        var branchName = safe(val.branch_name);\n        var consultancy_waived = val.waive_type;\n        var employee_code = val.employee_code;\n        var shift = val.shift;\n        var appointment_type = val.appt_type;\n        var consultancy_print_code = safe(val.consultancy_print_code);\n        var cwp_reason = val.cwp_reason;\n        var consultancy_waived_reason = val.consultancy_waived_reason;\n        var medDiscounts = params[0].med_discount[index].discount_on_med;\n        var reason = params[0].med_discount[index].discount_on_reason;\n        var medicine_print_code = safe(params[0].med_discount[index].medicine_print_code);\n        var visit_charges_data = params[0].charge_code;\n        var visit_charges_array = visit_charges_data[index] || [];\n        visit_charges_array.forEach(element => {\n          let code = element?.charge_code;\n          if (code !== null && code !== undefined && code !== '' && code.toUpperCase() !== 'NULL') {\n            visit_charges.push(code.toUpperCase());\n          }\n        });\n        let r1 = reason ?? '';\n        let r2 = consultancy_waived_reason ?? '';\n        let cwp = cwp_reason ?? '';\n        let reason_note = '';\n        if (cwp !== '') {\n          reason_note = cwp;\n        } else if (r1 !== '' && r2 !== '') {\n          reason_note = r1 + ' / ' + r2;\n        } else if (r1 !== '') {\n          reason_note = r1;\n        } else if (r2 !== '') {\n          reason_note = r2;\n        }\n        var loginshift = shift == 1 ? 'M' : 'E';\n        var d = employee_code ? employee_code : 'NA';\n        var visit_type = employee_code ? appointment_type.toUpperCase() : 'RM';\n        let base_code = buildCode([branchName, d, loginshift, visit_type]);\n        let charge = visit_charges.length ? visit_charges.join('/') : '';\n        let print_code = '';\n        if (medDiscounts > 0) {\n          let med_code = '<strike>' + medicine_print_code + '</strike>';\n          if (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') {\n            let cons_code = '<strike>' + consultancy_print_code + '</strike>';\n            print_code = base_code + '-' + cons_code + '/' + med_code + (charge ? '/' + charge : '');\n          } else {\n            print_code = base_code + '-' + consultancy_print_code + '/' + med_code + (charge ? '/' + charge : '');\n          }\n        } else {\n          if (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') {\n            let cons_code = '<strike>' + consultancy_print_code + '</strike>';\n            print_code = base_code + '-' + cons_code + (charge ? '/' + charge : '');\n          } else if (consultancy_waived == 'Not Set') {\n            if (consultancy_print_code) {\n              print_code = base_code + '-' + consultancy_print_code + (charge ? '/' + charge : '');\n            } else {\n              print_code = base_code + (charge ? '-' + charge : '-');\n            }\n          } else {\n            print_code = base_code + (charge ? '-' + charge : '');\n          }\n        }\n        html += '<tr>';\n        html += '<td>' + today + '</td>';\n        html += '<td>Rs ' + received_amount + '</td>';\n        html += '<td>' + medDiscounts + '%</td>';\n        html += '<td class=\"text-uppercase\">' + print_code + '</td>';\n        html += '<td>' + reason_note + '</td>';\n        html += '</tr>';\n        $('#visitloglist').append(html);\n      });\n    }\n  });\n});","define(\"clinic-dev/helpers/weight-conversion\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function weightConversion(params) {\n    if (params[1] == 'kg') {\n      var kg = params[0];\n      var value = kg;\n      return value;\n    } else if (params[1] == 'pound') {\n      var kg_to_pound = params[0] * 2.205;\n      var two_decimal_places = kg_to_pound.toFixed(2);\n      var value = two_decimal_places;\n      return value;\n    }\n    return value;\n  });\n});","define(\"clinic-dev/helpers/weight\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Helper.helper(function weight(params /*, hash*/) {\n    return params;\n  });\n});","define(\"clinic-dev/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"xor\", {\n    enumerable: true,\n    get: function () {\n      return _xor.xor;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/xor\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/index\", [\"exports\", \"ember-uuid\"], function (_exports, _emberUuid) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"parse\", {\n    enumerable: true,\n    get: function () {\n      return _emberUuid.parse;\n    }\n  });\n  Object.defineProperty(_exports, \"unparse\", {\n    enumerable: true,\n    get: function () {\n      return _emberUuid.unparse;\n    }\n  });\n  Object.defineProperty(_exports, \"v1\", {\n    enumerable: true,\n    get: function () {\n      return _emberUuid.v1;\n    }\n  });\n  Object.defineProperty(_exports, \"v4\", {\n    enumerable: true,\n    get: function () {\n      return _emberUuid.v4;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-uuid\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/initializers/ajax-auth\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    // Inject the ajax-auth service into all controllers and routes\n    application.inject('controller', 'ajaxAuth', 'service:ajax-auth');\n    application.inject('route', 'ajaxAuth', 'service:ajax-auth');\n    application.inject('component', 'ajaxAuth', 'service:ajax-auth');\n\n    // Initialize the service early\n    //let ajaxAuthService = application.lookup('service:ajax-auth');\n    // The constructor will run and set up $.ajaxSetup\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"clinic-dev/initializers/allow-link-action\", [\"exports\", \"clinic-dev/mixins/link-action\"], function (_exports, _linkAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/link-component\",0,\"clinic-dev/mixins/link-action\"eaimeta@70e063a35619d71f\n  function initialize() {\n    Ember.LinkComponent.reopen(_linkAction.default);\n  }\n  var _default = _exports.default = {\n    name: 'allow-link-action',\n    initialize\n  };\n});","define(\"clinic-dev/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"clinic-dev/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"clinic-dev/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-resolver/resolvers/classic/container-debug-adapter\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'container-debug-adapter',\n    initialize() {\n      let app = arguments[1] || arguments[0];\n      app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n    }\n  };\n});","define(\"clinic-dev/initializers/dkbc-print\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'dkbcPrint', 'service:dkbc-print');\n    // if needed\n    application.inject('route', 'dkbcPrint', 'service:dkbc-print');\n    application.inject('component', 'dkbcPrint', 'service:dkbc-print');\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"clinic-dev/initializers/ember-data-data-adapter\", [\"exports\", \"@ember-data/debug/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _setup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/setup\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/initializers/ember-data\", [\"exports\", \"ember-data\", \"ember-data/setup-container\"], function (_exports, _emberData, _setupContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\",0,\"ember-data/setup-container\"eaimeta@70e063a35619d71f\n  /*\n    This code initializes EmberData in an Ember application.\n  \n    It ensures that the `store` service is automatically injected\n    as the `store` property on all routes and controllers.\n  */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize: _setupContainer.default\n  };\n});","define(\"clinic-dev/initializers/ember-i18n\", [\"exports\", \"ember-i18n/initializers/ember-i18n\"], function (_exports, _emberI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-i18n/initializers/ember-i18n\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberI18n.default;\n});","define(\"clinic-dev/initializers/export-application-global\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function initialize() {\n    var application = arguments[1] || arguments[0];\n    if (_environment.default.exportApplicationGlobal !== false) {\n      var theGlobal;\n      if (typeof window !== 'undefined') {\n        theGlobal = window;\n      } else if (typeof global !== 'undefined') {\n        theGlobal = global;\n      } else if (typeof self !== 'undefined') {\n        theGlobal = self;\n      } else {\n        // no reasonable global, just bail\n        return;\n      }\n      var value = _environment.default.exportApplicationGlobal;\n      var globalName;\n      if (typeof value === 'string') {\n        globalName = value;\n      } else {\n        globalName = Ember.String.classify(_environment.default.modulePrefix);\n      }\n      if (!theGlobal[globalName]) {\n        theGlobal[globalName] = application;\n        application.reopen({\n          willDestroy: function () {\n            this._super.apply(this, arguments);\n            delete theGlobal[globalName];\n          }\n        });\n      }\n    }\n  }\n  var _default = _exports.default = {\n    name: 'export-application-global',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/flash-messages\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'flash-messages', 'service:flash-messages');\n    application.inject('route', 'flash-messages', 'service:flash-messages');\n    application.inject('component', 'flash-messages', 'service:flash-messages');\n  }\n  var _default = _exports.default = {\n    name: 'flash-messages',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/has-permissions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'has-permissions', 'service:has-permissions');\n    application.inject('route', 'has-permissions', 'service:has-permissions');\n    application.inject('component', 'has-permissions', 'service:has-permissions');\n  }\n  var _default = _exports.default = {\n    name: 'has-permissions',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/i18n\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'i18n',\n    after: 'ember-i18n',\n    initialize(app) {\n      app.inject('route', 'i18n', 'service:i18n');\n      app.inject('controller', 'i18n', 'service:i18n');\n      app.inject('component', 'i18n', 'service:i18n');\n      app.inject('model', 'i18n', 'service:i18n');\n    }\n  };\n});","define(\"clinic-dev/initializers/inject-service-icpattend\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'serviceIcpattend', 'service:service-icpattend');\n    // if needed\n    application.inject('route', 'serviceIcpattend', 'service:service-icpattend');\n    application.inject('component', 'serviceIcpattend', 'service:service-icpattend');\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"clinic-dev/initializers/recalculate-amount\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'recalculateAmount', 'service:recalculateAmount');\n    application.inject('route', 'recalculateAmount', 'service:recalculateAmount');\n    application.inject('component', 'recalculateAmount', 'service:recalculateAmount');\n  }\n  var _default = _exports.default = {\n    name: 'recalculateAmount',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/remember-scroll\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var rememberScroll = Ember.Mixin.create({\n    scrollSelector: window,\n    activate: function () {\n      this._super.apply(this, arguments);\n      var self = this;\n      //console.log(this.lastScroll);\n      if (this.lastScroll) {\n        Ember.run.next(function () {\n          Ember.$(self.scrollSelector).scrollTop(0);\n        });\n      } else {\n        Ember.$(this.scrollSelector).scrollTop(0);\n      }\n    },\n    deactivate: function () {\n      this._super.apply(this, arguments);\n      this.set('lastScroll', Ember.$(this.scrollSelector).scrollTop(0));\n    }\n  });\n  function initialize(application) {\n    Ember.Route.reopen(rememberScroll);\n  }\n  var _default = _exports.default = {\n    name: 'remember-scroll',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/session-ajax\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"jquery\"eaimeta@70e063a35619d71f\n  function initialize(application) {\n    // Classic Ember: use application.lookup\n    const session = application.lookup ? application.lookup('service:session') : application.__container__.lookup('service:session');\n\n    // Global AJAX complete handler\n    (0, _jquery.default)(document).ajaxComplete((event, jqXHR, ajaxOptions) => {\n      if (session) {\n        session.handleSessionHeaders(jqXHR);\n      }\n    });\n    if (window.fetch) {\n      const originalFetch = window.fetch;\n      window.fetch = function (...args) {\n        return originalFetch.apply(this, args).then(response => {\n          session.handleSessionHeaders(response.headers);\n          return response;\n        });\n      };\n    }\n  }\n  var _default = _exports.default = {\n    name: 'session-ajax',\n    initialize\n  };\n});","define(\"clinic-dev/initializers/session\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'session', 'service:session');\n    application.inject('route', 'session', 'service:session');\n    application.inject('component', 'session', 'service:session');\n  }\n  var _default = _exports.default = {\n    name: 'session',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/setup-pikaday-i18n\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'setup-pikaday-i18n',\n    initialize: function (application) {\n      var i18n = Ember.Object.extend({\n        previousMonth: 'Vorheriger Monat',\n        nextMonth: 'Nächster Monat',\n        months: _moment.default.localeData()._months,\n        weekdays: _moment.default.localeData()._weekdays,\n        weekdaysShort: _moment.default.localeData()._weekdaysShort\n      });\n      application.register('pikaday-i18n:main', i18n, {\n        singleton: true\n      });\n      application.inject('component:pikaday-input', 'i18n', 'pikaday-i18n:main');\n    }\n  };\n});","define(\"clinic-dev/initializers/top-nav-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'topNavService', 'service:topNavService');\n    application.inject('route', 'topNavService', 'service:topNavService');\n    application.inject('component', 'topNavService', 'service:topNavService');\n  }\n  var _default = _exports.default = {\n    name: 'topNavService',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/user-permissions-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'userPermissionsService', 'service:userPermissionsService');\n    application.inject('route', 'userPermissionsService', 'service:userPermissionsService');\n    application.inject('component', 'userPermissionsService', 'service:userPermissionsService');\n  }\n  var _default = _exports.default = {\n    name: 'userPermissionsService',\n    initialize: initialize\n  };\n});","define(\"clinic-dev/initializers/websocket-initializer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    // The WebSocket service will handle Echo initialization\n    // This initializer just ensures the service is available\n    application.inject('route', 'websocket', 'service:websocket');\n    application.inject('controller', 'websocket', 'service:websocket');\n    application.inject('component', 'websocket', 'service:websocket');\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"clinic-dev/initializers/websocket\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function initialize(application) {\n    application.inject('controller', 'websockets', 'service:websockets');\n    application.inject('route', 'websockets', 'service:websockets');\n    application.inject('component', 'websockets', 'service:websockets');\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"clinic-dev/instance-initializers/ember-data\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /* exists only for things that historically used \"after\" or \"before\" */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize() {}\n  };\n});","define(\"clinic-dev/instance-initializers/ember-i18n\", [\"exports\", \"ember-i18n/instance-initializers/ember-i18n\"], function (_exports, _emberI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-i18n/instance-initializers/ember-i18n\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberI18n.default;\n});","define(\"clinic-dev/locales/en/config\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // Ember-I18n includes configuration for common locales. Most users\n  // can safely delete this file. Use it if you need to override behavior\n  // for a locale or define behavior for a locale that Ember-I18n\n  // doesn't know about.\n  var _default = _exports.default = {\n    // rtl: [true|FALSE],\n    //\n    // pluralForm: function(count) {\n    //   if (count === 0) { return 'zero'; }\n    //   if (count === 1) { return 'one'; }\n    //   if (count === 2) { return 'two'; }\n    //   if (count < 5) { return 'few'; }\n    //   if (count >= 5) { return 'many'; }\n    //   return 'other';\n    // }\n\n    // For Color Management\n    colorCode: {\n      medium: '#F1DF89',\n      high: '#ff7151'\n    }\n  };\n});","define(\"clinic-dev/locales/en/translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    // For Menu Management\n    menus: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        menuDeleteMessage: 'Menu deleted successfully.',\n        menuDeleteErrorMessage: 'Error: unable to delete menu Record!',\n        updateMenu: 'Menu updated successfully.',\n        savedMenu: 'Menu added successfully.'\n      },\n      validationErrorMessage: {\n        menu_name: \"Menu name can't be empty\",\n        menu_alias: \"Menu alias can't be empty\",\n        menu_icon: \"icon can't be empty\",\n        menu_ishome: \"Menu is home can't be empty\",\n        menu_status: \"Status can't be empty\"\n      }\n    },\n    // For Branch Management\n    branch: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        branchDeleteMessage: 'The branch deleted successfully.',\n        branchDeleteErrorMessage: 'Error: unable to delete Branch record!',\n        updateBranch: 'The branch updated successfully.',\n        savedBranch: 'The branch added successfully.'\n      },\n      validationErrorMessage: {\n        branch_name: \"The branch name can't be empty\",\n        branch_code: \"The branch code can't be empty\",\n        morning_shift_start_required: 'Morning shift starting time is required with morning shift closing time.',\n        morning_shift_end_required: 'Morning shift closing time is required with morning shift starting time. ',\n        shift_value: 'Shift closing time must be greatet than starting time.',\n        evening_shift_start_required: 'Evening shift starting time is required with morning shift closing time.',\n        evening_shift_end_required: 'Evening shift closing time is required with morning shift starting time.',\n        one_shift_required: 'At-least one shift timing are required.',\n        branch_status: \"Status can't be empty\"\n      }\n    },\n    // For Permission Management\n    permission: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        permissionDeleteMessage: 'Permission deleted successfully.',\n        permissionDeleteErrorMessage: 'Error: unable to delete Permission record!',\n        updatePermission: 'Permission updated successfully.',\n        savedPermission: 'Permission added successfully.'\n      },\n      validationErrorMessage: {\n        permission_name: \"Permission name can't be empty\",\n        full_name: \"Permission full name can't be empty\",\n        permission_status: \"Status can't be empty\"\n      }\n    },\n    // For Role Management\n    role: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        roleDeleteMessage: 'Role deleted successfully.',\n        roleDeleteErrorMessage: 'Error: unable to delete Role record!',\n        updateRole: 'Role updated successfully.',\n        savedRole: 'Role added successfully.'\n      },\n      validationErrorMessage: {\n        role_name: \"Role name can't be empty\",\n        permission: 'Please select atleast one checkbox',\n        role_status: \"Status can't be empty\"\n      }\n    },\n    // For User Management\n    user: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        userDeleteMessage: 'User deleted successfully.',\n        userDeleteErrorMessage: 'Error: unable to delete User Record!',\n        updateUser: 'User updated successfully.',\n        savedUser: 'User added successfully.'\n      },\n      validationErrorMessage: {\n        user_name: \"Name can't be empty\",\n        user_name_min: 'Name must be 3 characters',\n        user_name_alphabate: 'Only alphabetical characters',\n        username: \"Username can't be empty\",\n        username_min: 'Username must be 3 characters',\n        username_alphabate: 'Only alphabetical characters',\n        email_id: \"Email id can't be empty\",\n        invalid_email_id: 'Please enter valid Email id',\n        mobile_no: \"Mobile no can't be empty\",\n        mobile_max_allowed: 'Please enter 10 digit mobile number',\n        mobile_valid: 'Please enter valid mobile number',\n        password: \"Password can't be empty\",\n        password_min: 'Password is too short (minimum is 8 characters)',\n        confirm_password: \"Confirm password can't be empty\",\n        confirm_password_not_match: 'Password do not match',\n        user_status: \"Status can't be empty\",\n        user_branch: \"Branch can't be empty\",\n        user_role: \"Role can't be empty\",\n        user_label: \"User label can't be empty\",\n        user_label_max: 'User label may not be greater than 5 characters.',\n        user_order: \"User order can't be empty\",\n        user_color: \"User color can't be empty\",\n        pres_print: 'Please select Prescription Format',\n        rcp_print: 'Please select Receipt Format',\n        doctor_level: 'Please select Doctor Level',\n        employee_code: \"Employee code can't be empty\",\n        employee_code_min: 'Employee code must be 4 characters',\n        employee_code_max: 'Employee code must be 4 characters',\n        employee_code_alphabate: 'Only alphabetical characters'\n      },\n      login: {\n        messages: {\n          validUser: 'Login successfully!',\n          invalidUser: 'Invalid username/password',\n          noUserRecord: 'User does not exist',\n          nobranch: \"You don't have access for this branch {{object}}\",\n          nouser: 'User does not exist',\n          passwordreset: 'Your password has been reseted recently and mailed to your registed mail id, Please try with new one.'\n        }\n      }\n    },\n    // For Token Management\n    token: {\n      messages: {\n        updateToken: 'Token has been successfully updated.'\n      }\n    },\n    //For forms\n    forms: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        formDeleteMessage: 'Form deleted successfully.',\n        formDeleteErrorMessage: 'Error: unable to delete Form record!',\n        updateForm: 'Form updated successfully.',\n        savedForm: 'Form added successfully.'\n      },\n      validationErrorMessage: {\n        form_name: \"Form name can't be empty\",\n        form_code: \"Form code can't be empty\",\n        form_status: \"Status can't be empty\"\n      }\n    },\n    // For priceGroup\n    pricegroup: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        pricegroupDeleteMessage: 'Price Group deleted successfully.',\n        pricegroupDeleteErrorMessage: 'Error: unable to delete Price Group record!',\n        updatePricegroup: 'Price Group updated successfully.',\n        savedPricegroup: 'Price Group added successfully.'\n      },\n      validationErrorMessage: {\n        group_name: \"Price Group name can't be empty\",\n        ounce: \"Ounce price can't be empty\",\n        ounce_check: 'Please check checkbox first',\n        globule: \"Globule price can't be empty\",\n        globule_check: 'Please check checkbox first',\n        powder: \"Powder price can't be empty\",\n        powder_check: 'Please check checkbox first',\n        liquid: \"Liquid price can't be empty\",\n        liquid_check: 'Please check checkbox first',\n        group_status: \"Status can't be empty\"\n      }\n    },\n    //For Potency\n    potency: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        potencyDeleteMessage: 'Potency deleted successfully.',\n        potencyDeleteErrorMessage: 'Error: unable to delete Potency record!',\n        updatePotency: 'Potency updated successfully.',\n        savedPotency: 'Potency added successfully.'\n      },\n      validationErrorMessage: {\n        potency_name: \"Potency name can't be empty\",\n        dilution: 'Please select dilution',\n        pricegroup: 'Please select atleast one Price group',\n        potencyDilution: 'This dilution is already added for this potency.',\n        potency_status: \"Status can't be empty\"\n      }\n    },\n    //For Medicine\n    medicine: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        medicineDeleteMessage: 'Medicine deleted successfully.',\n        medicineDeleteErrorMessage: 'Error: unable to delete medicine Record!',\n        updateMedicine: 'Medicine updated successfully.',\n        savedMedicine: 'Medicine added successfully.'\n      },\n      validationErrorMessage: {\n        medicine_name: \"Medicine name can't be empty\",\n        pricegroup: 'Please select atleast one Price group',\n        potency: 'Please select atleast one potency and form combination for each selected price group',\n        medicine_status: \"Status can't be empty\",\n        noGroupPotency: 'No Potency found in this group, Please select another Price gruoup',\n        samepotency: 'Same potency name do not allow in any group!',\n        nopotencyingroup: 'Please select atleast one potency within a Price group',\n        samemedicine: 'This medicine name already exists in database. please choose another medicine name',\n        InactiveSameMedicine: 'This medicine name already exists in the table with status {{object}}. Please go to the table and activate the medicine status.'\n      }\n    },\n    //For Mix Medicine\n    mixmedicine: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        mixmedicineDeleteMessage: 'Mix Medicine deleted successfully.',\n        mixmedicineDeleteErrorMessage: 'Error: unable to delete mix medicine Record!',\n        updateMixmedicine: 'Mix Medicine updated successfully.',\n        savedMixmedicine: 'Mix Medicine added successfully.'\n      },\n      validationErrorMessage: {\n        medicine_name: \"Mix Medicine name can't be empty\",\n        pharmacy_instruction: 'Please enter pharmacy instruction',\n        medicine_status: \"Status can't be empty\",\n        medicine_mixture_name: \"Med {{object}} can't be empty\",\n        medicine_select: 'Please select the medicine from the drop down for Med {{object}} ',\n        medicineform_select: 'Please select the form for Med {{object}} ',\n        medicine_duplicate: \"Duplicate medicines can't be added\",\n        atleasttwomedicine: 'At-least two medicines are required for the mix!',\n        mixform: 'Please select atleast one form for mix.'\n      }\n    },\n    //For Medicine Instructions\n    instruction: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        instructionDeleteMessage: 'Instruction deleted successfully.',\n        instructionDeleteErrorMessage: 'Error: unable to delete instruction record!',\n        updateInstruction: 'Instruction updated successfully.',\n        savedInstruction: 'Instruction added successfully.'\n      },\n      validationErrorMessage: {\n        instruction_name: \"Instruction name can't be empty\",\n        instruction_status: \"Status can't be empty\"\n      }\n    },\n    //For Medicine template\n    templatemedicine: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        tempmedicineDeleteMessage: 'Template deleted successfully.',\n        tempmedicineDeleteErrorMessage: 'Error: unable to delete Instruction Record!',\n        updateTempmedicine: 'Template updated successfully.',\n        savedTempmedicine: 'Template added successfully.'\n      },\n      validationErrorMessage: {\n        template_name: \"Template name can't be empty\",\n        template_status: \"Status can't be empty\",\n        template_pharmacy_instruction: \"Pharmacy instruction can't be empty\",\n        atleasttwomedicine: 'Add atleast two medicines are required for the template!'\n      }\n    },\n    //For Medicine template\n    billing: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        tempmedicineDeleteMessage: 'Template deleted successfully.',\n        tempmedicineDeleteErrorMessage: 'Error: Unable to delete Instruction Record!',\n        updateTempmedicine: 'Template updated successfully.',\n        savedBilling: 'Prescribe data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.',\n        applydiscount: 'Discount {{object}} % applied successfully',\n        addothercharge: 'Charge {{object}} added successfully',\n        removeothercharge: 'Charge {{object}} removed successfully',\n        emptyAddedchargeinput: \"{{object}} field can't be empty\",\n        discount_remove: 'Discount {{object}} % removed successfully',\n        notless: 'Sorry, Percentage value must be greater than zero.',\n        notgreater: 'Sorry, Percentage value not greater than 100',\n        selectdiscount: 'Please enter percentage value',\n        selectcharge: 'Please select charge',\n        consultancywaived: 'Consultancy fees {{object}} waived successfully',\n        cwaiveremove: 'Consultancy fees {{object}} removed successfully',\n        pendingwaived: 'Pending amount {{object}} waived successfully',\n        savedPayment: 'Payment received successfully',\n        duplicatedata: 'Sorry, In this table Medicine, Potency, Dilution, and Form are equal. Please select/enter another Form or Medicine Name.',\n        BillingComplete: 'Billing marked completed successfully.',\n        Prescription: 'Prescription completed successfully.',\n        checkPatientInDoctorQueue: 'Patient opened by {{object}} for {{page}} in {{branch_name}} ({{shift_name}})',\n        checkPatientDispatch: 'Cannot Edit: Medicines already dispatched by {{object}} on {{date}}'\n      },\n      validationErrorMessage: {\n        template_name: \"Template name can't be empty\",\n        template_status: \"Status can't be empty\",\n        atleasttwomedicine: 'Add atleast two medicines are required for the template!',\n        payment_gateway_charge: 'Please enter payment gateway charge'\n      }\n    },\n    // For Charges Master\n    charges: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete this {{object}}?',\n        chargeDeleteMessage: 'Charge deleted successfully.',\n        chargeDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" system. Because this is associated with other records.',\n        updateCharge: 'Charge updated successfully.',\n        savedCharge: 'Charge data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        charge_type: \"Charge type name can't be empty\",\n        charge_cost: 'Cost must be a number',\n        charge_code: \"Charge code can't be empty\",\n        Charge_status: \"Status can't be empty\",\n        charge_code_min: 'Charge code : min 2 character allowed',\n        charge_code_max: 'The charge code may not be greater than 3 characters',\n        charge_code_alphabate: 'Please input alphabet characters only',\n        print_code: \"Print code can't be empty\",\n        print_code_min: 'Print code : min 2 character allowed',\n        print_code_max: 'The print code may not be greater than 3 characters',\n        print_code_alphabate: 'Please input alphabet characters only'\n      }\n    },\n    // For System Master\n    system: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" system?',\n        systemDeleteMessage: 'System deleted successfully.',\n        systemDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" system. Because this is associated with other records.',\n        systemDeleteErrorUsedMessage: 'Error: unable to delete \"{{object}}\" system. Because it\\'s in associated with other records.',\n        updateSystem: 'System updated successfully.',\n        savedSystem: 'System data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: \"System name can't be empty\",\n        status: \"Status can't be empty\"\n      }\n    },\n    // For Organ Master\n    organ: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" organ?',\n        organDeleteMessage: 'Organ deleted successfully.',\n        organDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" organ. Because this is associated with other records.',\n        updateOrgan: 'Organ updated successfully.',\n        savedOrgan: 'Organ data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: \"Organ name can't be empty\",\n        system_required: 'Please select atleast one system',\n        status: \"Status can't be empty\"\n      }\n    },\n    // For Organ Master\n    disease: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" disease ?',\n        diseaseDeleteMessage: 'Disease deleted successfully.',\n        diseaseDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" disease. Because this is associated with other records.',\n        updateDisease: 'Disease updated successfully.',\n        savedDisease: 'Disease data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: 'Please enter atleast one disease name',\n        system_required: 'Please select atleast one system',\n        organ_required: 'Please select atleast one organ',\n        status: \"Status can't be empty\"\n      }\n    },\n    diagnostic: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" diagnostic tests / outcomes ?',\n        diagnoticDeleteMessage: 'Diagnostic Tests / Outcomes deleted successfully.',\n        diagnoticDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" diagnostic tests / outcomes. Because this is associated with other records.',\n        updateDiagnotic: 'Diagnostic Tests / Outcomes updated successfully.',\n        savedDiagnotic: 'Diagnostic Tests / Outcomes data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        taxonomy: 'Please select atleast one taxonomy.',\n        test_name: \"Test Name can't be empty.\",\n        unit_name: 'Please select unit name.',\n        range_type: 'Please choose one option.',\n        range: \"Upper and Lower can't be empty.\",\n        threshold_numeric: 'Threshold value should be numeric.',\n        status: \"Status can't be empty.\"\n      }\n    },\n    // For Pharmacy\n    pharmacy: {\n      messages: {\n        pharmacyComplete: 'Pharmacy marked completed successfully.'\n      },\n      validationErrorMessage: {}\n    },\n    // For Dispatch\n    dispatch: {\n      messages: {\n        dispatchComplete: 'Package is ready for pick up',\n        dispatchEditComplete: 'Dispatched order edited',\n        dispatchEditArchiveComplete: 'Dispatched archive order edited',\n        readyforCancel: 'Ready for Pickup cancel completed successfully.',\n        readyareYouSureDelete: 'Are you sure you want to cancel this record?',\n        readyDeleteErrorMessage: 'Error: unable to delete this record!',\n        markDispatchMessage: 'Dispatched Orders completed successfully for selected patient',\n        markDispatchedYouSureDelete: 'Are you sure you want to mark selected as dispatched?',\n        nonMarkDispatchMessage: 'Error: unable to Dispatched Orders for selected patient!',\n        searchArchiveErrorMessage: 'Sorry, Something went wrong, Please try again.',\n        markAtleastOne: 'Please select at least one checkbox of ready for pickup'\n      },\n      validationErrorMessage: {}\n    },\n    // For Doctor level Master\n    doctorLevel: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" level?',\n        doctorLevelDeleteMessage: 'Doctor Level deleted successfully.',\n        doctorLevelDeleteErrorUsedMessage: 'Error: unable to delete \"{{object}}\" doctor level. Because it\\'s in associated with other records.',\n        updateDoctorLevel: 'Doctor level updated successfully.',\n        savedDoctorLevel: 'Doctor level data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: \"Doctor level name can't be empty\",\n        seniority_level: \"Seniority level can't be empty\",\n        status: \"Status can't be empty\",\n        charges: \"Charges can't be empty\"\n      }\n    },\n    // For icpattend page\n    icpattend: {\n      messages: {\n        caseTakenMessage: 'Case Taken Successfully!',\n        filetRecordMessage: 'No record found.',\n        caseTaken: 'Case taking successfully done.',\n        clearCaseTaken: 'Case taking successfully clear.'\n      },\n      validationErrorMessage: {\n        diagnostiFilterFromdate: 'Please select from date.',\n        diagnostiFilterTodate: 'Please select to date.',\n        compareTwoDate: 'To Date is greater than From Date.',\n        atleastonereportSelect: 'Please select atleast one group.'\n      }\n    },\n    dtg: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" dtg ?',\n        dtgDeleteMessage: 'DTG deleted successfully.',\n        dtgDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" dtg. Because this is associated with other records.',\n        updateDTG: 'DTG updated successfully.',\n        savedDTG: 'DTG data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: 'Please select parent group name',\n        name_unique: 'Report name should be unique.',\n        group_all_required: 'Please enter group name',\n        status: \"Status can't be empty\",\n        group_color: 'Please enter group color'\n      }\n    },\n    outcomesuom: {\n      messages: {\n        areYouSureDelete: 'Are you sure you want to delete \"{{object}}\" unit ?',\n        unitDeleteMessage: 'Unit deleted successfully.',\n        unitDeleteErrorMessage: 'Error: unable to delete \"{{object}}\" unit. Because this is associated with other records.',\n        updateUnit: 'Unit updated successfully.',\n        savedUnit: 'Unit data added successfully.',\n        datainsufficient: 'Sorry, Something went wrong, Please try again.'\n      },\n      validationErrorMessage: {\n        name: 'Please enter unit name',\n        status: \"Status can't be empty\"\n      }\n    },\n    appcommon: {\n      label: {\n        advanceLabel: 'Receipt (+) / Refund (-)',\n        totalduelabel_with_previous_pg: 'A - (B - C)',\n        totalduelabelwithBothPG: 'A - (B - C) + D',\n        totalduelabel_with_current_pg: '(A - B) + C',\n        detailstotalduelabelwithBothPG: 'A - (B - C) - D',\n        normalcasepg: '(A + B)',\n        normalpgcurentdue: '(A + B) - C',\n        normalAminusB: '(A - B)',\n        normalAminusBminusC: '(A - B) - C'\n      },\n      validationErrorMessage: {\n        //payment_gateway_charge: 'Please enter payment gateway charge',\n      }\n    }\n  };\n});","define(\"clinic-dev/mixins/link-action\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Mixin.create({\n    init() {\n      this._super(...arguments);\n      if (this.invokeAction) {\n        this._attachActionEvent();\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      if (this.invokeAction) {\n        this._detachActionEvent();\n      }\n    },\n    _sendInvokeAction() {\n      if (typeof this.invokeAction === 'function') {\n        this.invokeAction();\n      } else if (typeof this.invokeAction === 'string') {\n        this.sendAction('invokeAction');\n      }\n    },\n    _attachActionEvent() {\n      this.on(this.eventName, this, this._sendInvokeAction);\n    },\n    _detachActionEvent() {\n      this.off(this.eventName, this, this._sendInvokeAction);\n    }\n  });\n});","define(\"clinic-dev/models/appointment\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/models/doctor\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/models/login\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/models/patient\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/models/pricegroup\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({\n    name: _emberData.default.attr('string'),\n    ounce: _emberData.default.attr('number'),\n    globule: _emberData.default.attr('number'),\n    powder: _emberData.default.attr('number'),\n    liquid: _emberData.default.attr('number'),\n    ounce_check: _emberData.default.attr(),\n    globule_check: _emberData.default.attr(),\n    powder_check: _emberData.default.attr(),\n    liquid_check: _emberData.default.attr(),\n    error: _emberData.default.attr(),\n    message: _emberData.default.attr(),\n    meta: _emberData.default.attr()\n  });\n});","define(\"clinic-dev/models/schedule\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/models/users\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.Model.extend({});\n});","define(\"clinic-dev/modifiers/did-insert\", [\"exports\", \"@ember/render-modifiers/modifiers/did-insert\"], function (_exports, _didInsert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didInsert.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-insert\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/modifiers/did-update\", [\"exports\", \"@ember/render-modifiers/modifiers/did-update\"], function (_exports, _didUpdate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didUpdate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-update\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/modifiers/will-destroy\", [\"exports\", \"@ember/render-modifiers/modifiers/will-destroy\"], function (_exports, _willDestroy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _willDestroy.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/will-destroy\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-resolver\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberResolver.default;\n});","define(\"clinic-dev/router\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  const Router = Ember.Router.extend({\n    location: _environment.default.locationType\n  });\n  Router.map(function () {\n    this.route('login');\n    this.route('mfa-setup');\n    this.route('dashboard');\n    this.route('appointment', function () {\n      this.route('new');\n      this.route('edit', {\n        path: '/edit/:appointment_id'\n      });\n    });\n    this.route('users', function () {\n      this.route('new');\n      this.route('edit');\n      // this.route('profile');\n    });\n    this.route('forgot-password');\n    this.route('schedule', function () {\n      this.route('upload', {\n        path: '/upload/:id'\n      });\n      this.route('max-slots', function () {\n        this.route('edit', {\n          path: '/edit/:doctor_id'\n        });\n      });\n    });\n    this.route('logout');\n    this.route('patient', function () {\n      this.route('register');\n      this.route('edit', {\n        path: '/edit/:id'\n      });\n      this.route('details', {\n        path: '/details/:id'\n      });\n    });\n    this.route('cancel-appointment', function () {\n      this.route('patient');\n      this.route('doctor');\n      this.route('reschedule', {\n        path: '/reschedule/:id'\n      });\n    });\n    this.route('appointment-detail', function () {\n      this.route('appointment');\n    });\n    this.route('reports', function () {\n      this.route('reports-list');\n      this.route('transactional-report');\n    });\n    this.route('settings', function () {\n      this.route('branch', function () {\n        this.route('list');\n        this.route('add');\n        this.route('edit', {\n          path: '/edit/:id'\n        });\n      });\n      this.route('masters', function () {\n        //in this below line of code we changed the router prfic \"form\" to \"forms\" to this.\n        this.route('forms', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('system', function () {\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('list');\n        });\n        this.route('organ', function () {\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('list');\n        });\n        this.route('disease', function () {\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('list');\n        });\n        this.route('pricegroup', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('permissions', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('role', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('menu', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('potency', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('users', function () {\n          this.route('add');\n          this.route('list');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('profile');\n        });\n        this.route('medicines', function () {\n          this.route('medicine', function () {\n            this.route('add');\n            this.route('list');\n            this.route('edit', {\n              path: '/edit/:id'\n            });\n          });\n          this.route('mix', function () {\n            this.route('add');\n            this.route('list');\n            this.route('edit', {\n              path: '/edit/:id'\n            });\n          });\n          this.route('template', function () {\n            this.route('list');\n            this.route('add');\n            this.route('edit', {\n              path: '/edit/:id'\n            });\n          });\n          this.route('instruction', function () {\n            this.route('add');\n            this.route('list');\n            this.route('edit', {\n              path: '/edit/:id'\n            });\n          });\n        });\n        this.route('show');\n        this.route('token', function () {\n          this.route('list');\n        });\n        this.route('charges', function () {\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('list');\n        });\n        this.route('discount_category', function () {\n          this.route('list');\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('diagnostic', function () {\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n          this.route('list');\n        });\n        this.route('doctor-level', function () {\n          this.route('list');\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('doctor-management', function () {\n          this.route('list');\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n        this.route('dgt', function () {\n          this.route('list');\n        });\n        this.route('dtg', function () {\n          this.route('list');\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id/:page'\n          });\n        });\n        this.route('outcomesuom', function () {\n          this.route('list');\n          this.route('add');\n          this.route('edit', {\n            path: '/edit/:id'\n          });\n        });\n      });\n      this.route('doctors');\n      this.route('maximum-token');\n      this.route('print-token');\n    });\n    this.route('billing', function () {\n      this.route('add');\n      this.route('list');\n      this.route('prescribe', {\n        path: '/prescribe/:id/:patient_id'\n      });\n      this.route('prescribeedit', {\n        path: '/prescribeedit/:appointment_id/:billing_id/:patient_id'\n      });\n      this.route('prescribeedit', {\n        path: '/prescribeedit/:appointment_id/:billing_id/:patient_id/:visit_id'\n      });\n      this.route('pastprescribeedit', {\n        path: '/pastprescribeedit/:appointment_id/:billing_id/:patient_id/:visit_id'\n      });\n      this.route('billpatient', {\n        path: '/billpatient/:appointment_id/:billing_id/:patient_id'\n      });\n      this.route('billedpatient', {\n        path: '/billedpatient/:appointment_id/:billing_id/:patient_id'\n      });\n      this.route('billedpatient', {\n        path: '/billedpatient/:appointment_id/:billing_id/:patient_id/:visit_id'\n      });\n      this.route('billeddetails', {\n        path: '/billeddetails/:appointment_id/:billing_id/:patient_id/:visit_id'\n      });\n      this.route('history');\n      this.route('correctbill', {\n        path: '/correctbill/:appointment_id/:billing_id/:patient_id'\n      });\n    });\n    this.route('pharmacy', function () {\n      this.route('add');\n      this.route('list');\n      this.route('view', {\n        path: '/view/:appointment_id/:billing_id/:patient_id'\n      });\n      this.route('details', {\n        path: '/details/:appointment_id/:billing_id'\n      });\n      //  this.route('prescribe',{path:'/prescribe/:id'});\n      // this.route('billing',{path:'/billing/:id'});\n      //this.route('view');\n      this.route('history');\n    });\n    // this.route('pharmacy');\n    this.route('home');\n    this.route('transactional-report');\n    this.route('reports-list');\n    this.route('doctor-dashboard', function () {\n      this.route('list');\n      //this.route('icpattend', { path: '/icpattend/:id/:patient_id'});\n      this.route('icpattend', {\n        path: '/icpattend/:id/:patient_id/:read_message'\n      });\n      this.route('checkout', {\n        path: '/checkout/:appointment_id/:billing_id/:patient_id/:read_message'\n      });\n      this.route('checkoutdetail', {\n        path: '/checkoutdetail/:appointment_id/:billing_id/:patient_id/:read_message/:preview'\n      });\n      this.route('edit-icpattend', {\n        path: '/edit-icpattend/:id/:patient_id/:read_message'\n      });\n    });\n    this.route('dispatch', function () {\n      this.route('list');\n      this.route('archive');\n      this.route('order', {\n        path: '/order/:id/:patient_id/:status'\n      });\n      this.route('edit', {\n        path: '/edit/:id/:patient_id/:status'\n      });\n      this.route('editarchive', {\n        path: '/editarchive/:id/:patient_id/:status/:archive_status'\n      });\n    });\n    this.route('manage-transaction', function () {\n      this.route('list');\n    });\n    this.route('manage-appointment', function () {});\n    this.route('shift-report');\n    this.route('cancel-report');\n    this.route('case-report', function () {\n      this.route('list');\n      this.route('case-report');\n    });\n    this.route('otp-verification');\n    this.route('doctor-activity-report');\n    this.route('refund-dashboard', function () {\n      this.route('batch', {\n        path: '/batch/:batch_id'\n      });\n    });\n  });\n  var _default = _exports.default = Router;\n});","define(\"clinic-dev/routes/appointment-detail\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('appointment-detail').set('page', 'Appointment History');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment-detail').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      this.controllerFor('appointment-detail').set('user_branch_id', branch_id);\n      this.controllerFor('appointment-detail').set('user_type', this.session.getLoggedInUserType());\n      this.controllerFor('appointment-detail').set('user_id', this.session.getLoggedInUserId());\n      this.controllerFor('appointment-detail').set('username', this.session.getLoggedInUserDetails());\n      this.controllerFor('appointment-detail').set('user_name', this.session.getLoggedInUserName());\n      this.controllerFor('appointment-detail').set('user_label', this.session.getLoggedInUserLabel());\n      this.controllerFor('appointment-detail').set('user_shift_id', this.session.getLoggedInUserShift());\n      /* This function is used for getting all the active branches*/\n      var status = 1;\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('branches', res);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('branches', y);\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('appointment-detail', role_route_permission);\n      this.controllerFor('appointment-detail').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('appointment-detail', {\n        controller: 'appointment-detail'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/appointment\", [\"exports\", \"clinic-dev/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    session: Ember.inject.service(),\n    ajaxAuth: Ember.inject.service(),\n    websocket: Ember.inject.service(),\n    slotLock: Ember.inject.service(),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel(transition) {\n      let headers = {};\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      if (utoken) {\n        headers[\"Authorization\"] = `Bearer ${utoken}`;\n      }\n      this.controllerFor('appointment').set('is_rescheduled', '0');\n      this.controllerFor('appointment').set('date_time_doctor', '');\n      this.controllerFor('appointment').set('patient_id', '');\n      this.controllerFor('appointment').set('mode', '');\n      this.controllerFor('appointment').set('priority', 'normal');\n      this.controllerFor('appointment').set('category', '');\n      this.controllerFor('appointment').set('first_name', '');\n      this.controllerFor('appointment').set('middle_name', '');\n      this.controllerFor('appointment').set('last_name', '');\n      this.controllerFor('appointment').set('gender', '');\n      this.controllerFor('appointment').set('phone_1', '');\n      this.controllerFor('appointment').set('phone_2', '');\n      this.controllerFor('appointment').set('address_1', '');\n      this.controllerFor('appointment').set('address_2', '');\n      this.controllerFor('appointment').set('selected_country', '');\n      this.controllerFor('appointment').set('selected_state', '');\n      this.controllerFor('appointment').set('selected_city', '');\n      this.controllerFor('appointment').set('editPage', false);\n      this.controllerFor('appointment').set('zip', '');\n      this.controllerFor('appointment').set('note', '');\n      this.controllerFor('appointment').set('date_of_birth', '');\n      this.controllerFor('appointment').set('age_years', '');\n      this.controllerFor('appointment').set('age_months', '');\n      this.controllerFor('appointment').set('age_days', '');\n      this.controllerFor('appointment').set('slotLockedId', null);\n      var _this = this;\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      //resolved bug number DKBC22-I674 due to comment below this code , By Shubh Tiwari 30 Jan 2023\n      //_this.recalculateAmount.calculatePGChargeOnClick();\n\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      (0, _jquery.default)(document).ready(function () {\n        var currentDate = new Date();\n        (0, _jquery.default)('#appointment_date').datepicker({\n          //yearRange: '-20:+0',\n          dateFormat: 'mm/dd/yy',\n          //numberOfMonths: 2,\n          //showButtonPanel: true,\n          autoclose: true,\n          // changeMonth: true,\n          // changeYear: true,\n          // endDate: 'currentDate',\n          minDate: 0\n        }).on('changeDate', function (ev) {\n          (0, _jquery.default)(this).datepicker('hide');\n        });\n        (0, _jquery.default)('#appointment_date').keyup(function () {\n          if (this.value.match(/[^0-9]/g)) {\n            this.value = this.value.replace(/[^0-9^-]/g, '');\n          }\n        });\n      });\n\n      //date of birth select action\n      (0, _jquery.default)('body').on('change', 'input[name=date_of_birth]', function () {\n        //console.log('DOB change event fired');\n        let controller = _this.controllerFor('appointment');\n        if (controller.get('isUpdatingDob')) {\n          return;\n        }\n        controller.send('setDateOfBirth');\n      });\n      (0, _jquery.default)('body').on('keyup', 'input[name=date_of_birth]', function () {\n        //console.log('DOB keyup event fired');\n        _this.controllerFor('appointment').send('setDateOfBirth');\n      });\n      (0, _jquery.default)('body').on('keyup', '.patient_age', function () {\n        //console.log('patient age keyup');\n        var years = parseInt((0, _jquery.default)('#age_years').val(), 10) || 0;\n        var months = parseInt((0, _jquery.default)('#age_months').val(), 10) || 0;\n        var days = parseInt((0, _jquery.default)('#age_days').val(), 10) || 0;\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          month: months,\n          day: days\n        };\n        _this.controllerFor('appointment').send('getDateofBirth', date);\n      });\n      //This below conkdition is used for getting the current date selected, Rahul Khan 03/aug/2019\n      this.controllerFor('appointment').set('appointment_date', moment().format('MM/DD/YYYY'));\n      if ((0, _jquery.default)('#appointment_date').length > 0 && (0, _jquery.default)('#appointment_date').val() != '') {\n        var appointment_date = (0, _jquery.default)('#appointment_date').val();\n      } else {\n        var fullDate = new Date();\n        var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n        var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n        // alert(fullDate.getMonth().toString().length+1);\n        var appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n      }\n      //\tconsole.log( );\n\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_name = branch_detail[1];\n      this.controllerFor('appointment').set('appointment_heading', branch_name + ' ' + moment(appointment_date, 'YYYY-M-DD').format('ddd DD-MMM-YYYY'));\n      /* AJAX call */\n      var _this = this;\n      this.set('patients', '');\n      var page = 1;\n      var sort = 'registration_number';\n      var order = 'DESC';\n      var q = '';\n      _jquery.default.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'patients/stats',\n        data: {\n          q: q\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('stats', res);\n        },\n        error: function (res) {\n          // console.error(res);\n        }\n      });\n      _jquery.default.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('result', res);\n          _this.controller.set('resultD', res);\n          var total_doctors = res.data.length;\n          var total_table_width = 90;\n          var width = parseInt(total_table_width, 10) / total_doctors;\n          var td_width = 'width:' + width + '%';\n          _this.controllerFor('appointment').set('td_width', td_width);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('result', y);\n        }\n      });\n      _jquery.default.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'branches',\n        data: {},\n        dataType: 'json',\n        headers: headers,\n        success: function (res) {\n          _this.controller.set('branches', res);\n          _this.controller.set('branchesD', res);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('branches', y);\n        }\n      });\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      this.controllerFor('appointment').set('branch_id', branch_id);\n      this.controllerFor('appointment').set('button_clicked', 'branch_' + branch_id);\n      _jquery.default.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/' + branch_id,\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('appointments', res);\n          _this.controller.set('appointmentsD', res);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('appointments', y);\n        }\n      });\n      /* END AJAX call */\n    },\n    init() {\n      this._super(...arguments);\n      this.set('activePage', 'appointment');\n    },\n    // async initializeWebSocketHandler() {\n    //   const branchId = this.session.getLocation().split('-')[0];\n\n    //   // Subscribe to slot updates using WebSocket service\n    //   this.slotChannel = await this.websocket.subscribeToSlotUpdates(branchId, {\n    //     onSlotLocked: (data) => this.handleSlotLockedEvent(data),\n    //     onSlotUnlocked: (data) => this.handleSlotUnlockedEvent(data)\n    //   });\n\n    //   // Add unlock click handler\n    //   $(document).on('click', '.unlockedbranch', (event) => {\n    //     this.handleUnlockClick(event);\n    //   });\n    // },\n\n    // handleSlotLockedEvent(data) {\n    //   const { branch_id, doctor_id, appointment_date, slot, locked_by, user_id, reservation_id } = data;\n\n    //   // Find matching slot element\n    //   $('.available_slot').each(function() {\n    //     const $slot = $(this);\n    //     const dataContent = $slot.attr('data-content');\n    //     if (!dataContent) return;\n\n    //     const [dateTime, docId] = dataContent.split('?');\n    //     const [date, time] = dateTime.split(' ');\n    //     const [hour, minute] = time.split(':');\n    //     const slotTime = `${parseInt(hour)}:${minute}`;\n\n    //     if (date === appointment_date && parseInt(docId) === doctor_id && slotTime === slot) {\n    //       // Transform to locked slot\n    //       const lockedTd = `<td data-lockedid=\"${reservation_id}\" data-doctorname=\"${data.doctor_name || ''}\" data-doctorid=\"${doctor_id}\" data-slot=\"${slot}\" data-branchid=\"${branch_id}\" data-appointmentdate=\"${appointment_date}\" class=\"locked unlockedbranch\" style=\"${$slot.attr('style') || ''}\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Slot locked by ${locked_by}. Click to unlock\"><i class=\"fa fa-lock\"></i> Locked</td>`;\n    //       $slot.replaceWith(lockedTd);\n    //     }\n    //   });\n    // },\n\n    // handleSlotUnlockedEvent(data) {\n    //   const { branch_id, doctor_id, appointment_date, slot } = data;\n\n    //   // Find matching locked slot and convert back to available\n    //   $('.locked').each(function() {\n    //     const $locked = $(this);\n    //     const lockedSlot = $locked.attr('data-slot');\n    //     const lockedDoctor = parseInt($locked.attr('data-doctorid'));\n    //     const lockedDate = $locked.attr('data-appointmentdate');\n\n    //     if (lockedDate === appointment_date && lockedDoctor === doctor_id && lockedSlot === slot) {\n    //       // Convert back to available slot\n    //       const availableTd = `<td class=\"available available_slot branchlockedcheck\" style=\"${$locked.attr('style') || ''}\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Doctor: ${$locked.attr('data-doctorname')}, Slot: ${slot}\" data-content=\"${appointment_date} ${slot}:00?${doctor_id}\" rel=\"\">Available</td>`;\n    //       $locked.replaceWith(availableTd);\n    //     }\n    //   });\n    // },\n\n    // handleUnlockClick(event) {\n    //   event.preventDefault();\n    //   const $el = $(event.currentTarget);\n    //   const reservationId = $el.attr('data-lockedid');\n    //   const branchId = $el.attr('data-branchid');\n    //   const doctorId = $el.attr('data-doctorid');\n    //   const slot = $el.attr('data-slot');\n    //   const appointmentDate = $el.attr('data-appointmentdate');\n\n    //   if (!confirm('Do you want to unlock this slot?')) {\n    //     return;\n    //   }\n\n    //   // Call unlock API\n    //   this.ajaxAuth.delete(`v1/appointments/reserve/${reservationId}`)\n    //     .then(async () => {\n    //       // Broadcast unlock event\n    //       await this.broadcastSlotUnlocked({\n    //         branch_id: parseInt(branchId),\n    //         doctor_id: parseInt(doctorId),\n    //         appointment_date: appointmentDate,\n    //         slot: slot\n    //       });\n    //     })\n    //     .catch((error) => {\n    //       console.error('Unlock failed:', error);\n    //       alert('Failed to unlock slot');\n    //     });\n    // },\n\n    // async broadcastSlotLocked(data) {\n    //   const branchId = this.session.getLocation().split('-')[0];\n    //   const channelName = `appointments.branch.${branchId}`;\n    //   await this.websocket.broadcastSlotUpdate(channelName, 'slot-locked', data);\n    // },\n\n    // async broadcastSlotUnlocked(data) {\n    //   const branchId = this.session.getLocation().split('-')[0];\n    //   const channelName = `appointments.branch.${branchId}`;\n    //   await this.websocket.broadcastSlotUpdate(channelName, 'slot-unlocked', data);\n    // },\n\n    // async willDestroy() {\n    //   // Cleanup WebSocket connections\n    //   const branchId = this.session.getLocation().split('-')[0];\n    //   await this.websocket.unsubscribe(`appointments.branch.${branchId}`);\n    //   this._super(...arguments);\n    // },\n    afterModel() {\n      let route = this;\n\n      // Initialize WebSocket handler for real-time slot updates\n      //this.initializeWebSocketHandler();\n\n      (0, _jquery.default)(document).on('click', '.branchlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = (0, _jquery.default)(this);\n        const safeVal = v => v && v.toString().trim();\n        let branchRaw = safeVal((0, _jquery.default)('#appointment_branch_id').val()) || safeVal((0, _jquery.default)('#branch_id').val()) || route.session.getLocation();\n        let branchId = branchRaw.split('-')[0];\n        let dateTimeDoctor = $el.attr('data-content'); // \"2025-12-16 9:10:00?6?1\"\n        if (!dateTimeDoctor) {\n          alert('Please select doctor or related slot.');\n          return;\n        }\n        let resArr = dateTimeDoctor.split('?');\n        let dateTimePart = resArr[0];\n        let appointmentDate = dateTimePart.split(' ')[0];\n        let timePart = dateTimePart.split(' ')[1];\n        let [hour, minute] = timePart.split(':');\n        hour = parseInt(hour, 10);\n        let slotTime = `${hour}:${minute}`;\n        let userId = route.session.getLoggedInUserId();\n        let doctorId = resArr[1];\n        let shift = resArr[2] || '';\n        let doctorName = $el.attr('data-doctorname');\n        const reservationData = {\n          slot_id: slotTime,\n          doctor_id: parseInt(doctorId),\n          branch_id: parseInt(branchId),\n          appointment_date: appointmentDate,\n          patient_id: userId,\n          mobile: null,\n          email: null,\n          doctor_name: doctorName\n        };\n        function applyBranchLockUI(newReservationId) {\n          // Step 1: revert ALL existing unlockedbranch cells to available FIRST\n          (0, _jquery.default)('.unlockedbranch').each(function () {\n            let $old = (0, _jquery.default)(this);\n            let oldDoctorName = $old.attr('data-doctorname') || '';\n            let oldSlot = $old.attr('data-slot');\n            let oldDoctorId = $old.attr('data-doctorid');\n            let oldBranchId = $old.attr('data-branchid');\n            let oldDate = $old.attr('data-appointmentdate');\n            let oldShift = $old.attr('data-shift') || '';\n            let oldStyle = $old.attr('style') || '';\n            $old.replaceWith('<td class=\"available available_slot branchlockedcheck\"' + ' style=\"' + oldStyle + '\"' + ' data-toggle=\"tooltip\" data-placement=\"top\"' + ' data-doctorname=\"' + oldDoctorName + '\"' + ' data-content=\"' + oldDate + ' ' + oldSlot + ':00?' + oldDoctorId + '?' + oldShift + '\"' + ' rel=\"' + oldBranchId + '\"' + ' data-original-title=\"Doctor: ' + oldDoctorName + ',&#10;Slot: ' + oldSlot + '\">Available</td>');\n          });\n\n          // Step 2: lock the clicked slot\n          $el.removeClass('available available_slot branchlockedcheck').addClass('locked unlockedbranch').attr('data-lockedid', newReservationId).attr('data-doctorid', doctorId).attr('data-doctorname', doctorName).attr('data-slot', slotTime).attr('data-branchid', branchId).attr('data-appointmentdate', appointmentDate).attr('data-shift', shift).attr('data-toggle', 'tooltip').attr('data-placement', 'top').attr('data-original-title', 'Slot is locked. Click to unlock').html('<i class=\"fa fa-lock\"></i> Locked');\n          route.get('slotLock').setLockedSlot(newReservationId);\n          route.controllerFor('appointment').set('slotLockedId', newReservationId);\n          (0, _jquery.default)('.patient_registration_form').show();\n          (0, _jquery.default)(\".patient_registration_form select:disabled\").prop(\"disabled\", false);\n          (0, _jquery.default)(\".patient_registration_form input,textarea\").prop(\"readonly\", false);\n          (0, _jquery.default)(window).scrollTop((0, _jquery.default)('#patient_registration_form').offset().top);\n          (0, _jquery.default)('div.patient_list').hide();\n          (0, _jquery.default)('.available_slot').removeClass('available_selected');\n          (0, _jquery.default)('#date_time_doctor').val(dateTimeDoctor);\n          (0, _jquery.default)('.appointment_doctor_id').val(doctorId);\n          if ($el.attr('rel')) {\n            (0, _jquery.default)('#branch_id').val($el.attr('rel'));\n            (0, _jquery.default)('.appointment_branch_id').val($el.attr('rel'));\n          }\n        }\n        function doReserve() {\n          return route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData);\n        }\n        let existingLockedId = route.get('slotLock').getLockedSlot();\n        (existingLockedId ? route.ajaxAuth.delete('v1/appointments/release/' + existingLockedId).catch(function () {/* stale id, ignore */}).then(function () {\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n        }).then(doReserve) : doReserve()).then(function (res) {\n          if (res && !res.success && res.action_required === 'unlock_first') {\n            let existingRes = res.existing_reservation;\n            return route.ajaxAuth.delete('v1/appointments/release/' + existingRes.reservation_id).then(function () {\n              route.get('slotLock').clearLockedSlot();\n              route.controllerFor('appointment').set('slotLockedId', null);\n              return doReserve();\n            }).then(function (retryRes) {\n              if (retryRes && !retryRes.success && retryRes.action_required === 'unlock_first') {\n                alert('You already have a slot reserved. Please unlock it first.');\n                return Promise.reject('unlock_required');\n              }\n              return retryRes;\n            });\n          }\n          return res;\n        }).then(function (res) {\n          if (!res || !res.success) {\n            if (res && res.message && res.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n            } else {\n              alert(res && res.message || 'Unable to reserve slot');\n            }\n            return;\n          }\n          applyBranchLockUI(res.data.reservation_id);\n        }).catch(function (err) {\n          if (err === 'unlock_required') return;\n          if (err && err.responseJSON) {\n            const errorData = err.responseJSON;\n            if (err.status === 409 && errorData.message && errorData.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n            } else if (errorData.message) {\n              alert(errorData.message);\n            } else {\n              alert('This time slot was just booked by another patient. Please select a different time.');\n            }\n          } else {\n            alert('Failed to lock slot. Please try again.');\n          }\n        });\n      });\n      (0, _jquery.default)(document).on('click', '.unlockedbranch', function (event) {\n        event.preventDefault();\n        let $lockedTd = (0, _jquery.default)(this);\n        let reservationId = $lockedTd.attr('data-lockedid');\n        let doctorName = $lockedTd.attr('data-doctorname');\n        let slotTime = $lockedTd.attr('data-slot');\n        let doctorId = $lockedTd.attr('data-doctorid');\n        let appointmentDate = $lockedTd.attr('data-appointmentdate');\n        let branchId = $lockedTd.attr('data-branchid');\n        let shift = $lockedTd.attr('data-shift') || '';\n        let style = $lockedTd.attr('style') || '';\n        if (!reservationId) {\n          alert('Unable to unlock: reservation ID missing. Please refresh and try again.');\n          return;\n        }\n        if (!confirm('This slot will be unlocked and made available. Proceed?')) {\n          return;\n        }\n        route.ajaxAuth.delete('v1/appointments/release/' + reservationId).then(function () {\n          let dateTime = appointmentDate + ' ' + slotTime + ':00';\n          $lockedTd.replaceWith('<td class=\"available available_slot branchlockedcheck\"' + ' style=\"' + style + '\"' + ' data-toggle=\"tooltip\" data-placement=\"top\"' + ' data-doctorname=\"' + doctorName + '\"' + ' data-content=\"' + dateTime + '?' + doctorId + '?' + shift + '\"' + ' rel=\"' + branchId + '\"' + ' data-original-title=\"Doctor: ' + doctorName + ',&#10;Slot: ' + slotTime + '\">Available</td>');\n          (0, _jquery.default)('.available_slot').removeClass('available_selected');\n          (0, _jquery.default)('#date_time_doctor').val('');\n          (0, _jquery.default)('.appointment_doctor_id').val('');\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n        }).catch(function (err) {\n          let msg = err && err.responseJSON && err.responseJSON.message || 'Failed to unlock slot. Please try again.';\n          alert(msg);\n        });\n      });\n      (0, _jquery.default)(document).on('click', '.doctorlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = (0, _jquery.default)(this);\n        let branchId = parseInt($el.attr('data-branchid'));\n        let doctorId = parseInt($el.attr('data-doctorid'));\n        let slot = $el.attr('data-slot'); // \"10:00\"\n        let date = $el.attr('data-date'); // \"2025-12-17\"\n        let shift = $el.attr('data-shift') || '';\n        let userId = route.session.getLoggedInUserId();\n        let branchTitle = $el.attr('data-branchtitle') || $el.text().trim();\n        let dataContent = $el.attr('data-content');\n        if (!confirm('Do you want to lock this slot?')) return;\n        const reservationData = {\n          slot_id: slot,\n          doctor_id: doctorId,\n          branch_id: branchId,\n          appointment_date: date,\n          patient_id: userId,\n          mobile: null,\n          email: null\n        };\n        function applyLockUI(newReservationId) {\n          // Step 1: revert ALL existing doctorunlockedcheck cells to available FIRST\n          (0, _jquery.default)('.doctorunlockedcheck').each(function () {\n            let $old = (0, _jquery.default)(this);\n            let oldBranchTitle = $old.attr('data-branchtitle') || 'Available';\n            let oldDate = $old.attr('data-date');\n            let oldSlot = $old.attr('data-slot');\n            let oldDoctorId = $old.attr('data-doctorid');\n            let oldShift = $old.attr('data-shift') || '';\n            $old.removeClass('locked doctorunlockedcheck').addClass('available available_slot doctorlockedcheck').removeAttr('data-lockedid').attr('data-content', oldDate + ' ' + oldSlot + ':00?' + oldDoctorId + '?' + oldShift).html(oldBranchTitle);\n          });\n\n          // Step 2: lock the clicked slot\n          $el.removeClass('available available_slot doctorlockedcheck').addClass('locked doctorunlockedcheck').attr('data-lockedid', newReservationId).attr('data-branchid', branchId).attr('data-doctorid', doctorId).attr('data-date', date).attr('data-slot', slot).attr('data-shift', shift).attr('data-branchtitle', branchTitle).attr('data-toggle', 'tooltip').attr('data-placement', 'top').attr('title', '🔒 Slot is locked. Click to unlock').html('<i class=\"fa fa-lock\"></i> Locked');\n          route.get('slotLock').setLockedSlot(newReservationId);\n          route.controllerFor('appointment').set('slotLockedId', newReservationId);\n\n          // Form logic\n          (0, _jquery.default)('.patient_registration_form').show();\n          (0, _jquery.default)(\".patient_registration_form select:disabled\").prop(\"disabled\", false);\n          (0, _jquery.default)(\".patient_registration_form input,textarea\").prop(\"readonly\", false);\n          (0, _jquery.default)(window).scrollTop((0, _jquery.default)('#patient_registration_form').offset().top);\n          (0, _jquery.default)('div.patient_list').hide();\n          (0, _jquery.default)('#date_time_doctor').val(dataContent);\n          var resArr = (dataContent || '').split('?');\n          (0, _jquery.default)('.appointment_doctor_id').val(resArr[1] || doctorId);\n          if ($el.attr('rel')) {\n            (0, _jquery.default)('#branch_id').val($el.attr('rel'));\n            (0, _jquery.default)('.appointment_branch_id').val($el.attr('rel'));\n          }\n        }\n        function doReserve() {\n          return route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData);\n        }\n\n        // Clear stale localStorage lock before attempting reserve\n        let existingLockedId = route.get('slotLock').getLockedSlot();\n        (existingLockedId ? route.ajaxAuth.delete('v1/appointments/release/' + existingLockedId).catch(function () {/* stale id, ignore */}).then(function () {\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n        }).then(doReserve) : doReserve()).then(function (res) {\n          // Server says user already has a reservation — auto-release and retry once\n          if (res && !res.success && res.action_required === 'unlock_first') {\n            let existingRes = res.existing_reservation;\n            return route.ajaxAuth.delete('v1/appointments/release/' + existingRes.reservation_id).then(function () {\n              route.get('slotLock').clearLockedSlot();\n              route.controllerFor('appointment').set('slotLockedId', null);\n              return doReserve();\n            }).then(function (retryRes) {\n              if (retryRes && !retryRes.success && retryRes.action_required === 'unlock_first') {\n                alert('You already have a slot reserved. Please unlock it first.');\n                return Promise.reject('unlock_required');\n              }\n              return retryRes;\n            });\n          }\n          return res;\n        }).then(function (res) {\n          if (!res || !res.success) {\n            if (res && res.message && res.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n            } else {\n              alert(res && res.message || 'Unable to reserve slot');\n            }\n            return;\n          }\n          applyLockUI(res.data.reservation_id);\n        }).catch(function (err) {\n          if (err === 'unlock_required') return;\n          if (err && err.responseJSON) {\n            const errorData = err.responseJSON;\n            if (err.status === 409 && errorData.message && errorData.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n            } else if (errorData.message) {\n              alert(errorData.message);\n            } else {\n              alert('This time slot was just booked by another patient. Please select a different time.');\n            }\n          } else {\n            alert('Failed to lock slot. Please try again.');\n          }\n        });\n      });\n      (0, _jquery.default)(document).on('click', '.doctorunlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = (0, _jquery.default)(this);\n        // ✅ Always use .attr() — .data() reads stale jQuery internal cache\n        let reservationId = $el.attr('data-lockedid');\n        let branchId = parseInt($el.attr('data-branchid'));\n        let doctorId = parseInt($el.attr('data-doctorid'));\n        let slot = $el.attr('data-slot');\n        let date = $el.attr('data-date');\n        let shift = $el.attr('data-shift') || '';\n        let branchTitle = $el.attr('data-branchtitle') || $el.text().trim();\n        if (!reservationId) {\n          alert('Unable to unlock: reservation ID missing. Please refresh and try again.');\n          return;\n        }\n        if (!confirm('Slot is locked. Click OK to unlock.')) return;\n        route.ajaxAuth.delete('v1/appointments/release/' + reservationId).then(function () {\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n          // ✅ LOCKED → AVAILABLE\n          $el.removeClass('locked doctorunlockedcheck').addClass('available available_slot doctorlockedcheck').removeAttr('data-lockedid').attr('data-toggle', 'tooltip').attr('data-placement', 'top').attr('data-content', date + ' ' + slot + ':00?' + doctorId + '?' + shift).html(branchTitle).attr('data-original-title', 'Date: ' + moment(date).format('DD-MM-YYYY') + ',<br> Slot: ' + slot + ',<br> Branch: ' + branchTitle);\n        }).catch(function (err) {\n          let msg = err && err.responseJSON && err.responseJSON.message || 'Failed to unlock slot. Please try again.';\n          alert(msg);\n        });\n      });\n    },\n    setupController(controller, model) {\n      this._super(controller, model);\n      let lockedId = this.get('slotLock').getLockedSlot();\n      console.log('Locked Slot ID from Service:', lockedId);\n      controller.set('slotLockedId', lockedId);\n    }\n  });\n});","define(\"clinic-dev/routes/appointment/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/appointment/new\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      //date of birth select action\n      $('body').on('change', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('appointment').send('setDateOfBirth');\n      });\n      $('body').on('keyup', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('appointment').send('setDateOfBirth');\n      });\n      $('body').on('keyup', '.patient_age', function () {\n        var years = $('#age_years').val();\n        var months = $('#age_months').val();\n        var days = $('#age_days').val();\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          months: months,\n          day: days\n        };\n        _this.controllerFor('appointment').send('getDateofBirth', date);\n      });\n      //$(window).on('click', 'input[name=\"urgent_status\"]', function () {\n      $(document).on('click', 'input[name=\"urgent_status\"]', function (event) {\n        if ($(this).is(':checked')) $(\"[name='urgenttagnote']\").css('display', 'block');else $(\"[name='urgenttagnote']\").css('display', 'none');\n      });\n    },\n    model: function () {\n      // the model for this route is a new empty Ember.Object\n      return Em.Object.create({});\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('appointment/new', role_route_permission);\n      this.controllerFor('appointment').set('route_access', route_access);\n      /*var numbers = [\n      \"icp\"=>'ICP',\n      \"phone\":'Phone',\n      \"email\":'Email',\n      \"ocp\":'OCP Visit',\n      \"vc\":'VC'\n      ];*/\n      //this.controllerFor('appointment').set('appointment_types', appointment_types);\n    },\n    renderTemplate: function () {\n      this.render('appointment.edit', {\n        controller: 'appointment'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/billing/billeddetails\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var utoken = _this.get('session').getToken();\n      var permission = _this.session.getPermissionList();\n      controller.set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      _this.set('Payment_mode', '');\n      controller.set('print_domestic', true);\n      controller.set('page', 'Prescribed Billing Details');\n      controller.send('getPaymentMode');\n      controller.send('getPreviousPendingAmount');\n      controller.send('getPreviousVisitPendingAmount');\n      controller.send('getPatientVisitComment');\n      //_this.controllerFor('billing').send('getPrescribeDetail');\n      controller.send('getBilledPrescribeDetail');\n      controller.send('getChargeList');\n      //controller.send('getBilledPreviousPaymentCharge');\n      //controller.send('getTotalTransaction');\n      controller.send('getVisitCharges'); //This function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      controller.send('getApplyMedicineDiscount');\n      controller.send('getApplyConsultancyWaived');\n      //controller.send('getCurrentPaymentCharge');\n\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n    },\n    model(param) {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      controller.send('getPBSLocation', param.billing_id, param.appointment_id);\n      controller.send('getPrintoption', param.appointment_id);\n      controller.send('getLastEditBy', param.appointment_id, param.billing_id);\n      controller.send('checkBilling', param.appointment_id, param.billing_id);\n      controller.send('getLastPaidAmount', param.appointment_id, param.billing_id);\n      controller.send('getTotalTransaction', param.appointment_id, param.billing_id);\n      controller.send('getRecords', param.appointment_id, param.billing_id);\n      controller.send('getPGCharge', param.appointment_id, param.billing_id);\n      controller.send('getVisitBillingList', param.appointment_id, param.billing_id);\n      controller.send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      controller.send('getPreviousVisitPendingAmount', param.patient_id, param.appointment_id);\n      controller.send('getPatientVisitComment', param.patient_id, param.appointment_id);\n      controller.send('getBilledPrescribeDetail', param.appointment_id, param.billing_id);\n      controller.send('getVisitCharges', param.appointment_id, param.billing_id); //This function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      controller.send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      controller.send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      controller.send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      //controller.send('getCurrentPaymentCharge',param.appointment_id, param.billing_id);\n      controller.send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    afterModel() {\n      var _this = this;\n      _this.recalculateAmount.checkAjaxRequest();\n    },\n    renderTemplate: function () {\n      this.render('billing.billeddetails', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing/billedpatient\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var utoken = _this.get('session').getToken();\n      var permission = _this.session.getPermissionList();\n      controller.set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      // $('#patient_options tbody tr td input[type=\"checkbox\"]').each(function () {\n      //   $(this).prop('checked', false);\n      // });\n      _this.set('Payment_mode', '');\n      //this.selectedPaymentOptions = [];\n      //this.selectedPaymentName = [];\n      //$('.payment-option-list').html('');\n      controller.set('print_domestic', true);\n      controller.set('page', 'Billed Patient Details');\n      //controller.send('getRecords');\n      controller.send('getPaymentMode');\n      controller.send('getPreviousPendingAmount');\n      controller.send('getPreviousVisitPendingAmount');\n      controller.send('getPatientVisitComment');\n      controller.send('getBilledPrescribeDetail');\n      controller.send('getChargeList');\n      //controller.send('getBilledPreviousPaymentCharge');\n      controller.send('getApplyMedicineDiscount');\n      controller.send('getApplyConsultancyWaived');\n      //controller.send('getTotalTransaction');\n      controller.send('getVisitCharges'); //This function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      //controller.send('getCurrentPaymentCharge');\n      //controller.send('getPreviousBillAmount');\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      _this.recalculateAmount.toolTip();\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 });\n        }, 1000);\n      });\n    },\n    model(param) {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      controller.send('getVisitBilledDate', param.patient_id);\n      controller.send('getPBSLocation', param.billing_id, param.appointment_id);\n      controller.send('getLastEditBy', param.appointment_id, param.billing_id);\n      controller.send('visitEditCheck', param.appointment_id, param.billing_id, param.patient_id);\n      controller.send('checkBilling', param.appointment_id, param.billing_id);\n      controller.send('checkVisiting', param.appointment_id, param.patient_id);\n      controller.send('getPrintoption', param.appointment_id);\n      //controller.send('getPreviousBillAmount', param.appointment_id);\n      controller.send('getLastPaidAmount', param.appointment_id, param.billing_id);\n      controller.send('getTotalTransaction', param.appointment_id, param.billing_id);\n      controller.send('getRecords', param.appointment_id, param.billing_id);\n      controller.send('getPreviousPGCharge', param.appointment_id);\n      controller.send('getVisitBillingList', param.appointment_id, param.billing_id);\n      controller.send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      controller.send('getPreviousVisitPendingAmount', param.patient_id, param.appointment_id);\n      controller.send('getPatientVisitComment', param.patient_id, param.appointment_id);\n      controller.send('getBilledPrescribeDetail', param.appointment_id, param.billing_id);\n      controller.send('getVisitCharges', param.appointment_id, param.billing_id); //This function is used getting patient all added charges, Rahul Khan, 12 July 2019\n      controller.send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      controller.send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      controller.send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      //controller.send('getBilledPreviousPaymentCharge',param.appointment_id,param.billing_id);\n      //controller.send('getCurrentPaymentCharge',param.appointment_id,param.billing_id);\n      controller.send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    afterModel() {\n      this.recalculateAmount.checkAjaxRequest();\n    },\n    renderTemplate: function () {\n      this.render('billing.billedpatient', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing/billing\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('billing.billing', {\n        controller: 'billing'\n      });\n    },\n    beforeModel() {\n      this.controllerFor('billing').set('page', 'Billed Patient Details');\n    }\n  });\n});","define(\"clinic-dev/routes/billing/billpatient\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      var permission = _this.get('session').getPermissionList();\n      controller.set('permission_arr', permission);\n      controller.set('print_domestic', true);\n      controller.set('page', 'Bill Patient');\n      controller.set('print_domestic', true);\n      controller.send('getRecords');\n      controller.send('getPaymentMode');\n      controller.send('getPreviousPendingAmount');\n      controller.send('getPreviousBillAmount');\n      controller.send('getPrescribeDetail');\n      controller.send('getChargeList');\n      controller.send('getPreviousVisitCharges');\n      controller.send('getApplyMedicineDiscount');\n      controller.send('getApplyConsultancyWaived');\n      //controller.send('getAfterVisitPendingAmount');\n      //controller.send('getPreviousPaymentCharge');\n      controller.send('getCurrentPaymentCharge');\n      // calculate total after add different-2 payment mode\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      // allow enter only numbers Shubh Tiwari 28 Nov 2022\n      _this.recalculateAmount.allowOnlyNumber();\n      _this.recalculateAmount.childModalClose();\n      $(document).on('click', '.const_remove', function (event) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var grandTotal = 0;\n        var bill_id = $('#billing_id').val();\n        var visit_id = $('#visiting_id').val();\n        var consultancy_value = parseInt($('.cons_dis').text());\n        swal({\n          title: 'Are you sure you want to remove consultancy discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/consultanyremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                bill_id: bill_id,\n                visit_id: visit_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'cwaiveremove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Consultancy fees ' + consultancy_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  $('.const_remove').remove();\n                  $('.cons_waived').text('');\n                  $('.cons_dis').removeClass('discount');\n                  $('.consultancy').removeAttr('data-consultancy_reason');\n                  $('#visit_due').removeAttr('data-consultancy_reason');\n                  $('.consdisable').attr('disabled', false);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                $('.box-charge').each(function () {\n                  var stval = parseFloat($(this).val());\n                  grandTotal += isNaN(stval) ? 0 : stval;\n                });\n                var grand_total = $('.grdtot').val();\n                $('.consultancy').val(consultancy_value);\n                var pending = $('.pending').val();\n                var charge = parseInt(consultancy_value, 10) + parseFloat(pending);\n                var total = parseFloat(charge) + parseFloat(grand_total) + grandTotal;\n                var eVal = isNaN(total) ? 0.0 : total;\n                var med_totals = parseFloat(eVal).toFixed(2);\n                var med_amount = isNaN(med_totals) ? 0.0 : med_totals;\n                //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n                var previous_bill_amount = $('.paid_amount').val();\n                var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n                var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n                /******************************************************************** */\n                // this code below added for add other charge and on which apply pg charge also add by shubh tiwari as on 16-09-2021\n                var payment_gateway_charge = $('.gateway_charge').val();\n                var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n                var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n                var total_pg_percentage = $('.total_pg_percentage').val();\n                var paid_consultancy = $('.paid_consultancy').attr('data-paid_consultancy_amount');\n                var waive_consultancy = parseInt(consultancy_value);\n                //console.log(total_pg_percentage);\n                //console.log(waive_consultancy);\n                //console.log(paid_consultancy);\n                if (total_pg_percentage != undefined && paid_consultancy != undefined && paid_consultancy == waive_consultancy) {\n                  var consultancy_remove_amount = paid_consultancy * total_pg_percentage / 100;\n                  var consultancy_remove_amount_check_null = isNaN(consultancy_remove_amount) ? 0.0 : consultancy_remove_amount;\n                  var paid_pg_amount = Math.abs(parseFloat(pg_charge) + parseFloat(consultancy_remove_amount_check_null));\n                  var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n                  $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n                  $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n                  //console.log('consultancy-waived-removed-a');\n                } else {\n                  var paid_pg_amount_upto_two_decimal = pg_amount;\n                  $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n                  $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n                  //console.log('consultancy-waived-removed-b');\n                }\n                var original_gateway_charge = $('.original_gateway_charge').val();\n                var removed_gt_amount = Math.abs(original_gateway_charge - paid_pg_amount_upto_two_decimal).toFixed(2);\n                $('.remove_pg_amount').val(removed_gt_amount);\n                /******************************************************************** */\n                if (bill_paid_amount == 0) {\n                  //console.log('Not Include Previous Bill Amount');\n                  var total_med_amount = parseFloat(med_amount).toFixed(2);\n                  $('.total').val(total_med_amount);\n                  $('.total').attr('data-original_amount', total_med_amount);\n                  var total_due1 = parseFloat(total_med_amount - bill_paid_amount);\n                  var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n                  var total_due = Math.abs(total_due_amount).toFixed(2);\n                  $('.total_dues').val(total_due);\n                  $('.total_dues').attr('data-total-dues', total_due);\n                  /* payment gatway charge calculation charge */\n                  if ($('.payment_gateway_checkbox').is(':checked')) {\n                    var percentage = $('.payment_gateway_charge').val();\n                    if (percentage != '') {\n                      var paid_amounts = bill_paid_amount;\n                      var total_amounts = total_med_amount;\n                      if (paid_amounts != 0 && total_amounts != '') {\n                        //console.log('a');\n                        var total_due_amount = parseFloat(total_amounts) - parseFloat(paid_amounts);\n                        var calcPrice = total_due_amount * percentage / 100;\n                        var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                        $('.total_dues').val(add_percentage_price.toFixed(2));\n                      } else if (paid_amounts == 0 && total_amounts != '') {\n                        //console.log('b');\n                        var calcPrice = total_amounts * percentage / 100;\n                        var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                        $('.total').val(add_percentage_price.toFixed(2));\n                      }\n                    } else {\n                      var total_amounts = $('.total').attr('data-original_amount');\n                      var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                      var paid_amounts = $('.total_dues').attr('data-total-dues');\n                      $('.total').val(total_amounts);\n                      $('.paid_amount').val(paid_amounts);\n                      $('.total_dues').val(paid_amounts);\n                    }\n                  }\n                  /* payment gatway charge calculation charge end */\n                  var remaining_balance_status = Math.sign(total_due_amount);\n                  if (remaining_balance_status == 1) {\n                    var payment_status = 'DUE';\n                  } else if (remaining_balance_status == -1) {\n                    var payment_status = 'ADVANCE';\n                  } else if (remaining_balance_status == 0) {\n                    var payment_status = 'NO DUE';\n                  }\n                  $('.payment_status').text('(' + payment_status + ')');\n                  if (total_due == 0.0) {\n                    $('.cashpopup').attr('disabled', true);\n                  } else {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                  /* Payment button enable when apply patient category discount will be 100 */\n                  var factor_perce_value = parseInt($('.onthefly_per').text());\n                  var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n                  if (factor_perce_value2 > 0) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                } else {\n                  //console.log('Include Previous Bill Amount');\n                  var total_med_amount = parseFloat(med_amount).toFixed(2);\n                  var total_due_amount = parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n                  var total_due_amount_upto_two_decimal = total_due_amount.toFixed(2);\n                  var total_due_amount_plus_pg_amount = parseFloat(total_due_amount_upto_two_decimal) + parseFloat(paid_pg_amount_upto_two_decimal);\n                  var total_amount = Math.abs(total_due_amount_plus_pg_amount).toFixed(2);\n                  var remaining_balance_status = Math.sign(total_due_amount_plus_pg_amount);\n                  if (remaining_balance_status == 1) {\n                    var payment_status = 'DUE';\n                  } else if (remaining_balance_status == -1) {\n                    var payment_status = 'ADVANCE';\n                  } else if (remaining_balance_status == 0) {\n                    var payment_status = 'NO DUE';\n                  }\n                  $('.total').val(total_med_amount);\n                  $('.total').attr('data-original_amount', total_med_amount);\n                  $('.total_dues').val(total_amount);\n                  $('.total_dues').attr('data-total-dues', total_amount);\n                  /* payment gatway charge calculation charge */\n                  if ($('.payment_gateway_checkbox').is(':checked')) {\n                    var percentage = $('.payment_gateway_charge').val();\n                    if (percentage != '') {\n                      var paid_amounts = bill_paid_amount;\n                      var total_amounts = total_med_amount;\n                      if (paid_amounts != 0 && total_amounts != '') {\n                        //console.log('a');\n                        var total_due_amount = parseFloat(total_amounts - paid_amounts) + parseFloat(pg_amount);\n                        var calcPrice = total_due_amount * percentage / 100;\n                        var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                        $('.total_dues').val(add_percentage_price.toFixed(2));\n                        $('.current_gateway_charge').val(Math.abs(calcPrice).toFixed(2));\n                      } else if (paid_amounts == 0 && total_amounts != '') {\n                        //console.log('b');\n                        var calcPrice = total_amounts * percentage / 100;\n                        var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                        $('.total').val(add_percentage_price.toFixed(2));\n                      }\n                    } else {\n                      var total_amounts = $('.total').attr('data-original_amount');\n                      var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                      var paid_amounts = $('.total_dues').attr('data-total-dues');\n                      $('.total').val(total_amounts);\n                      $('.paid_amount').val(paid_amounts);\n                      $('.total_dues').val(paid_amounts);\n                    }\n                  }\n                  /* payment gatway charge calculation charge end */\n                  $('.payment_status').text('(' + payment_status + ')');\n                  // for refund cases added by shubh Tiwari 9 April 2020\n                  if (payment_status == 'ADVANCE') {\n                    $('.total_due_refund').html('Refund Amount 1₹ :');\n                    $('#recieved').attr('placeholder', 'Refund');\n                    $('.total_recieved_refund').text('Refund ₹ :');\n                    $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n                  }\n                  if (total_amount == 0.0) {\n                    $('.cashpopup').attr('disabled', true);\n                  } else {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n\n                  /* Payment button enable when paid amount and total amount are equal*/\n                  if (total_med_amount == paid_amount) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n\n                  /* Payment button enable when apply patient category discount will be 100 */\n                  var factor_perce_value = parseInt($('.onthefly_per').text());\n                  var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n                  if (factor_perce_value2 > 0) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                }\n              }\n            });\n          }\n        });\n      });\n      $(document).on('click', '.edit_discount_remove', function (event) {\n        var percentage_value = $('.onthefly_per').text();\n        //var discount_value = parseFloat($('.onthemed').text()).toFixed(2);\n        swal({\n          title: 'Are you sure you want to remove ' + percentage_value + ' discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $('.edit_discount_remove').remove();\n            $('.onthefly_per').text('0.00%');\n            $('.onthemed').removeClass('discount');\n            $('.discount_percentage').attr('disabled', false);\n            $('.grdtot').removeAttr('data-reason');\n            $('#visit_due').removeAttr('data-reason');\n            $('.disdisable').attr('disabled', false);\n            var subTotal = 0;\n            var grandTotal = 0;\n            $('.subtot').each(function () {\n              var stval = parseFloat($(this).val());\n              subTotal += isNaN(stval) ? 0 : stval;\n            });\n            $('.box-charge').each(function () {\n              var stval = parseFloat($(this).val());\n              grandTotal += isNaN(stval) ? 0 : stval;\n            });\n            $('.grdtot').val(subTotal);\n            var consultancy = $('.consultancy').val();\n            var pending = $('.pending').val();\n            var charge = parseInt(consultancy, 10) + parseFloat(pending);\n            var total = parseFloat(charge) + parseFloat(subTotal) + grandTotal;\n            var eVal = isNaN(total) ? 0.0 : total;\n            var med_totals = parseFloat(eVal).toFixed(2);\n            var med_amount = isNaN(med_totals) ? 0.0 : med_totals;\n            //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n            var previous_bill_amount = $('.paid_amount').val();\n            var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n            var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n            if (bill_paid_amount == 0) {\n              //console.log('Not Include Previous Bill Amount');\n              var total_med_amount = parseFloat(med_amount).toFixed(2);\n              $('.total').val(total_med_amount);\n              $('.total').attr('data-original_amount', total_med_amount);\n              var total_due1 = parseFloat(total_med_amount - bill_paid_amount);\n              var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n              var total_due = Math.abs(total_due_amount).toFixed(2);\n              $('.total_dues').val(total_due);\n              $('.total_dues').attr('data-total-dues', total_due);\n              /* payment gatway charge calculation charge */\n              if ($('.payment_gateway_checkbox').is(':checked')) {\n                var percentage = $('.payment_gateway_charge').val();\n                if (percentage != '') {\n                  var paid_amounts = bill_paid_amount;\n                  var total_amounts = total_med_amount;\n                  if (paid_amounts != 0 && total_amounts != '') {\n                    //console.log('a');\n                    var total_due_amount = parseFloat(total_amounts) - parseFloat(paid_amounts);\n                    var calcPrice = total_due_amount * percentage / 100;\n                    var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                    $('.total_dues').val(add_percentage_price.toFixed(2));\n                  } else if (paid_amounts == 0 && total_amounts != '') {\n                    //console.log('b');\n                    var calcPrice = total_amounts * percentage / 100;\n                    var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                    $('.total').val(add_percentage_price.toFixed(2));\n                  }\n                } else {\n                  var total_amounts = $('.total').attr('data-original_amount');\n                  var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                  var paid_amounts = $('.total_dues').attr('data-total-dues');\n                  $('.total').val(total_amounts);\n                  $('.paid_amount').val(paid_amounts);\n                  $('.total_dues').val(paid_amounts);\n                }\n              }\n              /* payment gatway charge calculation charge end */\n              var remaining_balance_status = Math.sign(total_due_amount);\n              if (remaining_balance_status == 1) {\n                var payment_status = 'DUE';\n              } else if (remaining_balance_status == -1) {\n                var payment_status = 'ADVANCE';\n              } else if (remaining_balance_status == 0) {\n                var payment_status = 'NO DUE';\n              }\n              $('.payment_status').text('(' + payment_status + ')');\n              if (total_due == 0.0) {\n                $('.cashpopup').attr('disabled', true);\n              } else {\n                $('.cashpopup').removeAttr('disabled');\n              }\n              /* Payment button enable when apply patient category discount will be 100 */\n              var factor_perce_value = parseInt($('.onthefly_per').text());\n              var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n              if (factor_perce_value2 > 0) {\n                $('.cashpopup').removeAttr('disabled');\n              }\n            } else {\n              //console.log('Include Previous Bill Amount');\n              var total_med_amount = parseFloat(med_amount).toFixed(2);\n              var payment_gateway_charge = $('.gateway_charge').val();\n              var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n              var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n              var total_due_amount = parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n              var total_due_amount_upto_two_decimal = total_due_amount.toFixed(2);\n              var total_due_amount_plus_pg_amount = parseFloat(total_due_amount_upto_two_decimal) + parseFloat(pg_amount);\n              var total_amount = Math.abs(total_due_amount_plus_pg_amount).toFixed(2);\n              var remaining_balance_status = Math.sign(total_due_amount_plus_pg_amount);\n              if (remaining_balance_status == 1) {\n                var payment_status = 'DUE';\n              } else if (remaining_balance_status == -1) {\n                var payment_status = 'ADVANCE';\n              } else if (remaining_balance_status == 0) {\n                var payment_status = 'NO DUE';\n              }\n              $('.total').val(total_med_amount);\n              $('.total').attr('data-original_amount', total_med_amount);\n              $('.total_dues').val(total_amount);\n              $('.total_dues').attr('data-total-dues', total_amount);\n              /* payment gatway charge calculation charge */\n              if ($('.payment_gateway_checkbox').is(':checked')) {\n                var percentage = $('.payment_gateway_charge').val();\n                if (percentage != '') {\n                  var paid_amounts = bill_paid_amount;\n                  var total_amounts = total_med_amount;\n                  if (paid_amounts != 0 && total_amounts != '') {\n                    //console.log('a');\n                    var total_due_amount = parseFloat(total_amounts - paid_amounts) + parseFloat(pg_amount);\n                    var calcPrice = total_due_amount * percentage / 100;\n                    var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                    $('.total_dues').val(add_percentage_price.toFixed(2));\n                  } else if (paid_amounts == 0 && total_amounts != '') {\n                    //console.log('b');\n                    var calcPrice = total_amounts * percentage / 100;\n                    var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                    $('.total').val(add_percentage_price.toFixed(2));\n                  }\n                } else {\n                  var total_amounts = $('.total').attr('data-original_amount');\n                  var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                  var paid_amounts = $('.total_dues').attr('data-total-dues');\n                  $('.total').val(total_amounts);\n                  $('.paid_amount').val(paid_amounts);\n                  $('.total_dues').val(paid_amounts);\n                }\n              }\n              /* payment gatway charge calculation charge end */\n              $('.payment_status').text('(' + payment_status + ')');\n              // for refund cases added by shubh Tiwari 9 April 2020\n              if (payment_status == 'ADVANCE') {\n                $('.total_due_refund').html('Refund Amount ₹ ');\n                $('#recieved').attr('placeholder', 'Refund');\n                $('.total_recieved_refund').text('Refund ₹ :');\n                $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n              }\n              if (total_amount == 0.0) {\n                $('.cashpopup').attr('disabled', true);\n              } else {\n                $('.cashpopup').removeAttr('disabled');\n              }\n              /* Payment button enable when paid amount and total amount are equal*/\n              if (total_med_amount == paid_amount) {\n                $('.cashpopup').removeAttr('disabled');\n              }\n              /* Payment button enable when apply patient category discount will be 100 */\n              var factor_perce_value = parseInt($('.onthefly_per').text());\n              var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n              if (factor_perce_value2 > 0) {\n                $('.cashpopup').removeAttr('disabled');\n              }\n            }\n          }\n        });\n      });\n      $(document).on('click', '.discount_remove', function (event) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var grandTotal = 0;\n        var discount = $(this).data('discount');\n        var percentage_value = $('.onthefly_per').text();\n        var discount_value = parseFloat($('.onthemed').text()).toFixed(2);\n        var garndt_value = $(this).data('discount-amount');\n        swal({\n          title: 'Are you sure you want to remove ' + percentage_value + ' discount?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var base_url = _environment.default.APP.lumen_api_url + 'billing/discoutremove';\n            $.ajax({\n              url: base_url,\n              method: 'POST',\n              data: {\n                discount: discount\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.message == 'discount_remove') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-success\">Discount ' + percentage_value + ' removed successfully</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                  $('.discount_remove').remove();\n                  $('.onthefly_per').text('0.00%');\n                  $('.onthemed').removeClass('discount');\n                  $('.discount_percentage').attr('disabled', false);\n                  $('.grdtot').removeAttr('data-reason');\n                  $('#visit_due').removeAttr('data-reason');\n                  $('.disdisable').attr('disabled', false);\n                } else if (res.error == true && res.message == 'datainsufficient') {\n                  $('#dicoundisplayerror').html('<div class=\"alert alert-danger\">Sorry, Something went wrong, Please try again.</div>');\n                  $('#dicoundisplayerror .alert').fadeToggle(10000);\n                }\n              },\n              complete: function () {\n                $('.box-charge').each(function () {\n                  var stval = parseFloat($(this).val());\n                  grandTotal += isNaN(stval) ? 0 : stval;\n                });\n                $('.grdtot').val(discount_value);\n                var consultancy = $('.consultancy').val();\n                var pending = $('.pending').val();\n                var charge = parseInt(consultancy, 10) + parseFloat(pending);\n                var total = parseFloat(charge) + parseFloat(discount_value) + grandTotal;\n                var eVal = isNaN(total) ? 0.0 : total;\n                var med_totals = parseFloat(eVal).toFixed(2);\n                var med_amount = isNaN(med_totals) ? 0.0 : med_totals;\n                //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n                var previous_bill_amount = $('.paid_amount').val();\n                var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n                var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n                /******************************************************************** */\n                // this code below added for add other charge and on which apply pg charge also add by shubh tiwari as on 16-09-2021\n                var payment_gateway_charge = $('.gateway_charge').val();\n                var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n                var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n                var total_pg_percentage = $('.total_pg_percentage').val();\n                var paid_med_medicine = $('.paid_med_medicine').val();\n                var medicine_total_amount = parseFloat(paid_med_medicine);\n                //console.log(total_pg_percentage);\n                //console.log(medicine_total_amount);\n                //console.log(garndt_value);\n                if (total_pg_percentage != undefined && medicine_total_amount != undefined && medicine_total_amount == garndt_value) {\n                  var original_gateway_charge = $('.original_gateway_charge').val();\n                  var original_gateway_charge_amnt = parseFloat(original_gateway_charge).toFixed(2);\n                  var paid_pg_amount_upto_two_decimal = original_gateway_charge_amnt;\n                  $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n                  $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n                  //console.log('medicine-discount-add-a-2');\n                } else {\n                  var paid_pg_amount_upto_two_decimal = pg_charge;\n                  $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n                  $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n                  //console.log('consultancy-waived-add-b');\n                }\n                var original_gateway_charge = $('.original_gateway_charge').val();\n                var removed_gt_amount = Math.abs(original_gateway_charge - paid_pg_amount_upto_two_decimal).toFixed(2);\n                $('.remove_pg_amount').val(removed_gt_amount);\n                /******************************************************************** */\n                if (bill_paid_amount == 0) {\n                  //console.log('Not Include Previous Bill Amount');\n                  var total_med_amount = parseFloat(med_amount).toFixed(2);\n                  $('.total').val(total_med_amount);\n                  $('.total').attr('data-original_amount', total_med_amount);\n                  var total_due1 = parseFloat(total_med_amount - bill_paid_amount);\n                  var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n                  var total_due = Math.abs(total_due_amount).toFixed(2);\n                  $('.total_dues').val(total_due);\n                  $('.total_dues').attr('data-total-dues', total_due);\n                  /* payment gatway charge calculation charge */\n                  if ($('.payment_gateway_checkbox').is(':checked')) {\n                    var percentage = $('.payment_gateway_charge').val();\n                    if (percentage != '') {\n                      var paid_amounts = bill_paid_amount;\n                      var total_amounts = total_med_amount;\n                      if (paid_amounts != 0 && total_amounts != '') {\n                        //console.log('a');\n                        var total_due_amount = parseFloat(total_amounts) - parseFloat(paid_amounts);\n                        var calcPrice = total_due_amount * percentage / 100;\n                        var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                        $('.total_dues').val(add_percentage_price.toFixed(2));\n                      } else if (paid_amounts == 0 && total_amounts != '') {\n                        //console.log('b');\n                        var calcPrice = total_amounts * percentage / 100;\n                        var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                        $('.total').val(add_percentage_price.toFixed(2));\n                      }\n                    } else {\n                      var total_amounts = $('.total').attr('data-original_amount');\n                      var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                      var paid_amounts = $('.total_dues').attr('data-total-dues');\n                      $('.total').val(total_amounts);\n                      $('.paid_amount').val(paid_amounts);\n                      $('.total_dues').val(paid_amounts);\n                    }\n                  }\n                  /* payment gatway charge calculation charge end */\n                  var remaining_balance_status = Math.sign(total_due_amount);\n                  if (remaining_balance_status == 1) {\n                    var payment_status = 'DUE';\n                  } else if (remaining_balance_status == -1) {\n                    var payment_status = 'ADVANCE';\n                  } else if (remaining_balance_status == 0) {\n                    var payment_status = 'NO DUE';\n                  }\n                  $('.payment_status').text('(' + payment_status + ')');\n                  if (total_due == 0.0) {\n                    $('.cashpopup').attr('disabled', true);\n                  } else {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                  /* Payment button enable when apply patient category discount will be 100 */\n                  var factor_perce_value = parseInt($('.onthefly_per').text());\n                  var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n                  if (factor_perce_value2 > 0) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                } else {\n                  //console.log('Include Previous Bill Amount');\n                  var total_med_amount = parseFloat(med_amount).toFixed(2);\n                  var total_due_amount = parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n                  var total_due_amount_upto_two_decimal = total_due_amount.toFixed(2);\n                  var total_due_amount_plus_pg_amount = parseFloat(total_due_amount_upto_two_decimal) + parseFloat(paid_pg_amount_upto_two_decimal);\n                  var total_amount = Math.abs(total_due_amount_plus_pg_amount).toFixed(2);\n                  var remaining_balance_status = Math.sign(total_due_amount_plus_pg_amount);\n                  if (remaining_balance_status == 1) {\n                    var payment_status = 'DUE';\n                  } else if (remaining_balance_status == -1) {\n                    var payment_status = 'ADVANCE';\n                  } else if (remaining_balance_status == 0) {\n                    var payment_status = 'NO DUE';\n                  }\n                  $('.total').val(total_med_amount);\n                  $('.total').attr('data-original_amount', total_med_amount);\n                  $('.total_dues').val(total_amount);\n                  $('.total_dues').attr('data-total-dues', total_amount);\n                  /* payment gatway charge calculation charge */\n                  if ($('.payment_gateway_checkbox').is(':checked')) {\n                    var percentage = $('.payment_gateway_charge').val();\n                    if (percentage != '') {\n                      var paid_amounts = bill_paid_amount;\n                      var total_amounts = total_med_amount;\n                      if (paid_amounts != 0 && total_amounts != '') {\n                        //console.log('a');\n                        var total_due_amount = parseFloat(total_amounts - paid_amounts) + parseFloat(paid_pg_amount_upto_two_decimal);\n                        var calcPrice = total_due_amount * percentage / 100;\n                        var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n                        $('.total_dues').val(add_percentage_price.toFixed(2));\n                        $('.current_gateway_charge').val(Math.abs(calcPrice).toFixed(2));\n                      } else if (paid_amounts == 0 && total_amounts != '') {\n                        //console.log('b');\n                        var calcPrice = total_amounts * percentage / 100;\n                        var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n                        $('.total').val(add_percentage_price.toFixed(2));\n                      }\n                    } else {\n                      var total_amounts = $('.total').attr('data-original_amount');\n                      var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n                      var total_dues = $('.total_dues').attr('data-total-dues');\n                      $('.total').val(total_amounts);\n                      $('.paid_amount').val(paid_amounts);\n                      $('.total_dues').val(total_dues);\n                    }\n                  }\n                  /* payment gatway charge calculation charge end */\n                  $('.payment_status').text('(' + payment_status + ')');\n                  // for refund cases added by shubh Tiwari 9 April 2020\n                  if (payment_status == 'ADVANCE') {\n                    $('.total_due_refund').html('Refund Amount ₹ ');\n                    $('#recieved').attr('placeholder', 'Refund');\n                    $('.total_recieved_refund').text('Refund ₹ :');\n                    $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n                  }\n\n                  // if(total_amount ==0.00){\n                  //     $('.cashpopup').attr(\"disabled\", true);\n                  // }else{\n                  //     $('.cashpopup').removeAttr('disabled');\n                  // }\n                  /* Payment button enable when paid amount and total amount are equal*/\n                  if (total_med_amount == paid_amount) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                  /* Payment button enable when apply patient category discount will be 100 */\n                  var factor_perce_value = parseInt($('.onthefly_per').text());\n                  var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n                  if (factor_perce_value2 > 0) {\n                    $('.cashpopup').removeAttr('disabled');\n                  }\n                }\n              }\n            });\n          }\n        });\n      });\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n    },\n    model(param) {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      controller.send('getRecords', param.appointment_id, param.billing_id);\n      controller.send('getLastEditBy', param.appointment_id, param.billing_id);\n      controller.send('getBPLocation', param.billing_id);\n      controller.send('getPBSLocation', param.billing_id, param.appointment_id);\n      controller.send('getPreviousPGCharge', param.appointment_id);\n      controller.send('getPrintoption', param.appointment_id);\n      controller.send('getMedicinePrepared', param.appointment_id);\n      controller.send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      controller.send('getPreviousBillAmount', param.appointment_id);\n      //controller.send('getPreviousBillConsultancyAmount', param.appointment_id, param.billing_id);\n      controller.send('getPrescribeDetail', param.appointment_id, param.billing_id);\n      controller.send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      controller.send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      controller.send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      controller.send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      //controller.send('getAfterVisitPendingAmount', param.appointment_id,param.billing_id);\n      //controller.send('getPreviousPaymentCharge',param.appointment_id,param.billing_id);\n      controller.send('getCurrentPaymentCharge', param.appointment_id, param.billing_id);\n      controller.send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    afterModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      _this.recalculateAmount.checkAjaxRequest();\n      $(document).on('keyup keypress change paste', '.qty', function () {\n        var $tblrows = $('#prescribeDetails tbody tr');\n        $tblrows.each(function (index) {\n          var $tblrow = $(this);\n          $tblrow.find('.qty').on('keyup keypress change paste', function () {\n            var qty = $tblrow.find('[name=qty]').val();\n            //This below condition is used to highlighted the zero factor medicine, Rahul khan, 25 july 2019\n            //var factor_input_id = $(this).attr('id').replace ( /[^\\d.]/g, '');\n            //console.log(qty);\n            var get_input_id = $(this).attr('id');\n            var factor_input_id_array = get_input_id.split('-');\n            var factor_input_id = factor_input_id_array[1];\n            //console.log(factor_input_id);\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            //console.log(selectedForm);\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            //console.log(selectedOptionText);\n            if (selectedOptionText != '') {\n              if (selectedOptionText == 'L') {\n                var fvalue = qty;\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('.vial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = qty;\n                var v1 = Math.ceil(fvalue / 4);\n                $('.vial-' + factor_input_id).val(v1);\n              }\n            }\n            if (qty > 300) {\n              alert('Factor value cannot exceed 300.');\n              //  /var test = qty.substr(1);\n              $tblrow.find('[name=qty]').val(1);\n              $tblrow.find('[name=vial]').val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $tblrow.find('[name=qty]').val(0);\n              $tblrow.find('[name=vial]').val(0);\n              var qty = 0;\n              $($tblrow).addClass('zerofactor');\n              $($tblrow).attr('title', 'None billing medicine');\n            } else {\n              $($tblrow).removeClass('zerofactor');\n              $($tblrow).removeAttr('title');\n            }\n            var price = $tblrow.find('[name=price]').val();\n            //console.log(original_price);\n            var subTotal = parseInt(qty, 10) * parseFloat(price);\n            if (!isNaN(subTotal)) {\n              $tblrow.find('.subtot').val(subTotal.toFixed(2));\n              var grandTotal = 0;\n              var chargeTotal = 0;\n              $('.subtot').each(function () {\n                var stval = parseFloat($(this).val());\n                grandTotal += isNaN(stval) ? 0 : stval;\n              });\n              $('.box-charge').each(function () {\n                var chargeval = parseFloat($(this).val());\n                chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n              });\n              controller.set('total_charge', parseFloat(chargeTotal).toFixed(2));\n              $('.onthemed').text(grandTotal.toFixed(2));\n              /* if factor change then on the fly percentage chnage*/\n              var discount = parseInt($('.percentage').text());\n              var discount_id = $('.med_remove_button').attr('data-discountid');\n              var med_main = parseFloat(grandTotal).toFixed(2);\n              controller.set('medicine_amount', med_main);\n              if (discount != 0 && discount != 100) {\n                controller.set('remove_discount_button', discount_id);\n                controller.set('onthefly_discount', discount);\n              } else {\n                controller.set('remove_discount_button', '');\n                controller.set('medicine_discount', discount);\n              }\n              var consultancy_fees = parseInt($('.cons_dis').text());\n              var consultancy_waive_type = $('.cons_waived').text();\n              var consultancy_discount = parseInt($('.cons_amount').text());\n              var billing_id = $('.cons_remove_button').attr('data-billingid');\n              if (consultancy_waive_type == 'Waived') {\n                controller.set('consultancy_fees', parseFloat(consultancy_fees));\n                controller.set('consultancy_discount', 0);\n                controller.set('consultancy_waive_type', consultancy_waive_type);\n                controller.set('consultancy_remove_button', billing_id);\n                controller.set('consultancy_waived_amount', 0);\n              } else if (consultancy_discount == 0 || consultancy_discount == 100) {\n                controller.set('consultancy_fees', parseFloat(consultancy_fees));\n                controller.set('consultancy_discount', consultancy_discount);\n                controller.set('consultancy_waive_type', '');\n                controller.set('consultancy_remove_button', '');\n                controller.set('consultancy_waived_amount', '');\n              }\n              var pending = $('.pending').val();\n              controller.set('pending_amount', pending);\n              //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n              var previous_bill_amount = $('.paid_amount').val();\n              var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n              var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n              controller.set('previous_bill_amount', bill_paid_amount);\n              //controller.send('onChangesPGCalculation');\n              // for pg amount\n              var consultancy = $('.consultancy').val();\n              var charge = parseInt(consultancy, 10) + parseFloat(pending);\n              var total = parseFloat(med_main) + parseFloat(charge) + parseFloat(chargeTotal);\n              var paidamount = $('.paid_amount').attr('data-paid-amount');\n              var previous_bill_paid_amount = isNaN(paidamount) ? 0.0 : paidamount;\n              var pg_amount = $('.pg_amount').attr('data-pg-amount');\n              var previous_pg_amount = isNaN(pg_amount) ? 0.0 : pg_amount;\n              var total_due = parseFloat(total) - (parseFloat(previous_bill_paid_amount) - parseFloat(previous_pg_amount));\n              var eVal = isNaN(total_due) ? 0.0 : total_due;\n              var pg_charge = $('input[name=pagepayment_gateway_charge]').val();\n              var ischecked = $('input[name=pagepayment_gateway_checkbox]').is(':checked');\n              if (ischecked == true) {\n                var total_amount = eVal;\n                var decou = (pg_charge / 100).toFixed(2); //its convert 10 into 0.10\n                var med_mult = total_amount * decou; // gives the value for subtract from main value\n                var pg_charge_amount = parseFloat(med_mult).toFixed(2);\n                var pg_eVal = isNaN(pg_charge_amount) ? 0.0 : pg_charge_amount;\n                controller.set('pgAmountText', pg_eVal);\n              } else {\n                controller.set('pgAmountText', 0);\n              }\n            }\n          });\n        });\n      });\n      $(document).on('keyup keypress change paste', '.medicineVial', function () {\n        $('.medicineVial').each(function () {\n          var vial = $(this).val();\n          var vaial_id = $(this).attr('id');\n          if (vial > 100) {\n            swal({\n              text: 'Vial value cannot exceed 100.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            $('#' + vaial_id).val(1);\n            var vial = 1;\n          }\n          if (vial < 1) {\n            $('#' + vaial_id).val(0);\n            var vial = 0;\n          }\n        });\n      });\n      // calculate total after add different-2 payment mode\n      $(document).on('change paste keyup', '.payment-method', function (event) {\n        var totalReceivedAmount = 0;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        $('#recieved').val(totalModeAmount);\n      });\n    },\n    renderTemplate: function () {\n      this.render('billing.billpatient', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing/correctbill\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      var permission = _this.get('session').getPermissionList();\n      controller.set('permission_arr', permission);\n      controller.set('print_domestic', true);\n      controller.set('page', 'Correct Bill');\n      controller.set('print_domestic', true);\n      controller.send('getRecords');\n      controller.send('getPaymentMode');\n      controller.send('getPreviousPendingAmount');\n      controller.send('getPreviousBillAmount');\n      controller.send('getPrescribeDetail');\n      controller.send('getChargeList');\n      controller.send('getPreviousVisitCharges');\n      controller.send('getApplyMedicineDiscount');\n      controller.send('getApplyConsultancyWaived');\n      //controller.send('getAfterVisitPendingAmount');\n      //controller.send('getPreviousPaymentCharge');\n      controller.send('getCurrentPaymentCharge');\n      // calculate total after add different-2 payment mode\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n    },\n    model(param) {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      controller.send('getBPLocation', param.billing_id);\n      controller.send('getPBSLocation', param.billing_id, param.appointment_id);\n      controller.send('getVisitBilledDate', param.patient_id);\n      controller.send('getRecords', param.appointment_id, param.billing_id);\n      controller.send('getPreviousPGCharge', param.appointment_id, \"1\"); //Nishant 30-Dec-2022 - Pass correctbill = 1 also\n      controller.send('getPrintoption', param.appointment_id);\n      controller.send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      controller.send('getPreviousBillAmount', param.appointment_id);\n      //controller.send('getPreviousBillConsultancyAmount', param.appointment_id, param.billing_id);\n      controller.send('getPrescribeDetail', param.appointment_id);\n      controller.send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      controller.send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      controller.send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      controller.send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      //controller.send('getAfterVisitPendingAmount', param.appointment_id,param.billing_id);\n      //controller.send('getPreviousPaymentCharge',param.appointment_id,param.billing_id);\n      controller.send('getCurrentPaymentCharge', param.appointment_id, param.billing_id);\n      controller.send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    afterModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing'); //Nishant 9 Jan-2023: fix error in controller not defined and used in code below\n      $(document).on('keyup keypress change paste', '.qty', function () {\n        var $tblrows = $('#prescribeDetails tbody tr');\n        $tblrows.each(function (index) {\n          var $tblrow = $(this);\n          $tblrow.find('.qty').on('keyup keypress change paste', function () {\n            var qty = $tblrow.find('[name=qty]').val();\n            //This below condition is used to highlighted the zero factor medicine, Rahul khan, 25 july 2019\n            //var factor_input_id = $(this).attr('id').replace ( /[^\\d.]/g, '');\n            //console.log(qty);\n            var get_input_id = $(this).attr('id');\n            var factor_input_id_array = get_input_id.split('-');\n            var factor_input_id = factor_input_id_array[1];\n            //console.log(factor_input_id);\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            //console.log(selectedForm);\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            //console.log(selectedOptionText);\n            if (selectedOptionText != '') {\n              if (selectedOptionText == 'L') {\n                var fvalue = qty;\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('.vial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = qty;\n                var v1 = Math.ceil(fvalue / 4);\n                $('.vial-' + factor_input_id).val(v1);\n              }\n            }\n            if (qty > 300) {\n              alert('Factor value cannot exceed 300.');\n              //  /var test = qty.substr(1);\n              $tblrow.find('[name=qty]').val(1);\n              $tblrow.find('[name=vial]').val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $tblrow.find('[name=qty]').val(0);\n              $tblrow.find('[name=vial]').val(0);\n              var qty = 0;\n              $($tblrow).addClass('zerofactor');\n              $($tblrow).attr('title', 'None billing medicine');\n            } else {\n              $($tblrow).removeClass('zerofactor');\n              $($tblrow).removeAttr('title');\n            }\n            var price = $tblrow.find('[name=price]').val();\n            var original_qty = $tblrow.find('[name=qty]').attr('value');\n            var original_price = $tblrow.find('[name=qty]').attr('data-formrate');\n            var change_qty = parseInt(qty, 10);\n            //console.log(original_price);\n            var subTotal = parseInt(qty, 10) * parseFloat(price);\n            /******************************************************************** */\n            // this code below added for add other charge and on which apply pg charge also add by shubh tiwari as on 16-09-2021\n            var payment_gateway_charge = $('.gateway_charge').val();\n            var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n            var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n            var total_pg_percentage = $('.total_pg_percentage').val();\n            if (total_pg_percentage != undefined && original_price == price && original_qty != undefined && change_qty > original_qty) {\n              var medicine_remove_amount = original_price * total_pg_percentage / 100;\n              var medicine_remove_amount_check_null = isNaN(medicine_remove_amount) ? 0.0 : medicine_remove_amount;\n              var paid_pg_amount = Math.abs(parseFloat(pg_amount) + parseFloat(medicine_remove_amount_check_null));\n              var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n              $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n              $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n              console.log('medicine-price-change-a');\n            } else if (total_pg_percentage != undefined && original_price == price && original_qty != undefined && change_qty < original_qty) {\n              var medicine_remove_amount = original_price * total_pg_percentage / 100;\n              var medicine_remove_amount_check_null = isNaN(medicine_remove_amount) ? 0.0 : medicine_remove_amount;\n              var paid_pg_amount = Math.abs(parseFloat(pg_amount) - parseFloat(medicine_remove_amount_check_null));\n              var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n              $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n              $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n              console.log('medicine-price-change-b');\n            } else if (total_pg_percentage != undefined && original_price == price && original_qty != undefined && change_qty == original_qty) {\n              var paid_pg_amount_upto_two_decimal = pg_amount;\n              $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n              $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n              console.log('medicine-price-change-c');\n            }\n            var original_gateway_charge = $('.original_gateway_charge').val();\n            var removed_gt_amount = Math.abs(original_gateway_charge - paid_pg_amount_upto_two_decimal).toFixed(2);\n            $('.remove_pg_amount').val(removed_gt_amount);\n            /******************************************************************** */\n            console.log(paid_pg_amount_upto_two_decimal);\n            if (!isNaN(subTotal)) {\n              $tblrow.find('.subtot').val(subTotal.toFixed(2));\n              var grandTotal = 0;\n              var chargeTotal = 0;\n              $('.subtot').each(function () {\n                var stval = parseFloat($(this).val());\n                grandTotal += isNaN(stval) ? 0 : stval;\n              });\n              $('.box-charge').each(function () {\n                var chargeval = parseFloat($(this).val());\n                chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n              });\n              _this.controllerFor('billing').set('total_charge', parseFloat(chargeTotal));\n              $('.onthemed').text(grandTotal.toFixed(2));\n              /* if factor change then on the fly percentage chnage*/\n              var discount = parseInt($('.percentage').text());\n              var discount_id = $('.med_remove_button').attr('data-discountid');\n              var med_main = parseFloat(grandTotal).toFixed(2);\n              controller.set('medicine_amount', med_main);\n              //var decou = (discount / 100).toFixed(2); //its convert 10 into 0.10\n              //var med_mult = med_main * decou; // gives the value for subtract from main value\n              //var medicine_discount = parseFloat(med_main - med_mult).toFixed(2);\n              //var med_eVal = isNaN(medicine_discount) ? 0.0 : medicine_discount;\n              // if (discount != '0') {\n              //   $('.onthefly_per').text(discount + '%');\n              // }\n              if (discount != 0 && discount != 100) {\n                _this.controllerFor('billing').set('remove_discount_button', discount_id);\n                controller.set('onthefly_discount', discount);\n              } else {\n                controller.set('remove_discount_button', '');\n                controller.set('medicine_discount', discount);\n              }\n              //$('.grdtot').val(med_eVal);\n              //var consultancy = $('.consultancy').val();\n              var consultancy_fees = parseInt($('.cons_dis').text());\n              var consultancy_waive_type = $('.cons_waived').text();\n              var consultancy_discount = parseInt($('.cons_amount').text());\n              var billing_id = $('.cons_remove_button').attr('data-billingid');\n              //console.log(consultancy_fees);\n              //console.log(consultancy_waive_type);\n              //console.log(consultancy_discount);\n\n              if (consultancy_waive_type == 'Waived') {\n                _this.controllerFor('billing').set('consultancy_fees', parseFloat(consultancy_fees));\n                controller.set('consultancy_discount', 0);\n                _this.controllerFor('billing').set('consultancy_waive_type', consultancy_waive_type);\n                _this.controllerFor('billing').set('consultancy_remove_button', billing_id);\n                _this.controllerFor('billing').set('consultancy_waived_amount', 0);\n              } else if (consultancy_discount == 0 || consultancy_discount == 100) {\n                _this.controllerFor('billing').set('consultancy_fees', parseFloat(consultancy_fees));\n                _this.controllerFor('billing').set('consultancy_discount', consultancy_discount);\n                controller.set('consultancy_waive_type', '');\n                _this.controllerFor('billing').set('consultancy_remove_button', '');\n                _this.controllerFor('billing').set('consultancy_waived_amount', '');\n              }\n              var pending = $('.pending').val();\n              controller.set('pending_amount', pending);\n              //var charge = parseInt(consultancy, 10) + parseFloat(pending);\n              //var total =parseFloat(charge) +parseFloat(med_eVal) +parseFloat(chargeTotal);\n              //var med_amount = isNaN(total) ? 0.0 : total;\n              //Previous Billing History substract from total amount of visit 07 Feb 2020 Shubh Tiwari\n              var previous_bill_amount = $('.paid_amount').val();\n              var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n              var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n              _this.controllerFor('billing').set('previous_bill_amount', bill_paid_amount);\n            }\n          });\n        });\n      });\n      $(document).on('keyup keypress change paste', '.medicineVial', function () {\n        $('.medicineVial').each(function () {\n          var vial = $(this).val();\n          var vaial_id = $(this).attr('id');\n          if (vial > 100) {\n            swal({\n              text: 'Vial value cannot exceed 100.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            $('#' + vaial_id).val(1);\n            var vial = 1;\n          }\n          if (vial < 1) {\n            $('#' + vaial_id).val(0);\n            var vial = 0;\n          }\n        });\n      });\n      // calculate total after add different-2 payment mode\n      $(document).on('change paste keyup', '.payment-method', function (event) {\n        var totalReceivedAmount = 0;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        $('#recieved').val(totalModeAmount);\n      });\n    },\n    renderTemplate: function () {\n      this.render('billing.correctbill', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing/history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      var page_route = this.controllerFor('application');\n      this.controllerFor('billing').set('permission_arr', permission);\n      page_route.set('lastRoute', 'billinghistory');\n      var stage_billing = 0;\n      var date = 'All';\n      this.controllerFor('billing').set('page', 'Patient History');\n      let shift_id = this.session.getLoggedInUserShift(); //getIncompleteVisits\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n      this.getClinicPatientsIncomplete(shift_id, branch_id, stage_billing, date);\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    renderTemplate: function () {\n      this.render('billing.history', {\n        controller: 'billing'\n      });\n    },\n    getClinicPatientsIncomplete: function (shift_id, branch_id, stage, date) {\n      this.controllerFor('billing').send('getClinicPatientsIncomplete', shift_id, branch_id, stage, date);\n    }\n  });\n});","define(\"clinic-dev/routes/billing/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('billing.list');\n      var permission = this.session.getPermissionList();\n      this.controllerFor('billing').set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/routes/billing/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    // This below beforeModel block functions run Before Model Loading, Rahul Khan 10_may_2019\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('billing').set('permission_arr', permission);\n      var stage_billing = 0;\n      var stage_billing_complete = 2;\n      this.controllerFor('billing').set('page', 'Billing Dashboard');\n      this.recalculateAmount.alertMessagePopupClose();\n      //This Below code line is used for getting shift id for login user\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      this.getClinicPatientsIncomplete(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which complete billing process\n      this.getClinicPatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n      //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n      this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting Patients in Medicine Queue at Billling Dashboard which complete billing process\n      this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n      //This below code function is used for getting Patients in Email Repeat Medicine Queue at Billing Dashboard which not completed\n      this.getEmailRMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting Patients in Email Repeat Medicine Queue at Billling Dashboard which complete billing process\n      this.getEmailRMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n      $(document).ready(function () {\n        setTimeout(function () {\n          //$('html, body').scrollTop({ top: 200, behavior: 'smooth' });\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n    },\n    //This below Block functions are called when we trigger event in this router, Rahul Khan 10_may_2019\n    actions: {\n      getClinicPatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getClinicPatientsIncomplete(shift_id, branch_id, stage);\n      },\n      getClinicPatientsComplete: function (shift_id, branch_id, stage) {\n        this.getClinicPatientsComplete(shift_id, branch_id, stage);\n      },\n      getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      openBillingList: function (list_name, event) {\n        var i, tabcontent, tablinks;\n        tabcontent = document.getElementsByClassName(\"tabcontent\");\n        for (i = 0; i < tabcontent.length; i++) {\n          tabcontent[i].style.display = \"none\";\n        }\n        tablinks = document.getElementsByClassName(\"tablinks\");\n        for (i = 0; i < tablinks.length; i++) {\n          tablinks[i].className = tablinks[i].className.replace(\" active\", \"\");\n        }\n        document.getElementById(list_name).style.display = \"block\";\n        var x = document.getElementsByClassName(list_name);\n        var i;\n        for (i = 0; i < x.length; i++) {\n          x[i].className += ' active'; // WITH space added\n        }\n      }\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    getClinicPatientsIncomplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getClinicPatientsIncomplete', shift_id, branch_id, stage);\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    getClinicPatientsComplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getClinicPatientsComplete', shift_id, branch_id, stage);\n    },\n    //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n    getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getMedicineQueuePatientsIncomplete', shift_id, branch_id, stage);\n    },\n    getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getMedicineQueuePatientsComplete', shift_id, branch_id, stage);\n    },\n    //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n    getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getEmailRMedicineQueuePatientsIncomplete', shift_id, branch_id, stage);\n    },\n    getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getEmailRMedicineQueuePatientsComplete', shift_id, branch_id, stage);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var route_access = this.route_permission.canRouteAccess('billing/list', role_route_permission);\n      this.controllerFor('billing').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('billing.list', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/billing/pastprescribeedit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel(param) {\n      var para = 'all';\n      var _this = this;\n      var permission = _this.get('session').getPermissionList();\n      _this.controllerFor('billing').set('permission_arr', permission);\n      var utoken = _this.get('session').getToken();\n      _this.controllerFor('billing').send('getPrescribeDetail');\n      _this.controllerFor('billing').send('getPrescribeRecords');\n      _this.controllerFor('billing').send('getPreviousPatientHistory');\n      _this.controllerFor('billing').send('getVisitStatus');\n      _this.controllerFor('billing').send('getApplyMedicineDiscount');\n      _this.controllerFor('billing').send('getApplyConsultancyWaived');\n      _this.controllerFor('billing').send('getPreviousVisitCharges');\n      //_this.controllerFor('billing').send('getLastVisitHistory');\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      _this.controllerFor('billing').set('page', 'Error Correction');\n      $.ajax({\n        type: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (response) {\n          _this.set('instruction', response);\n          _this.controllerFor('billing').set('instruction', response);\n        }\n      });\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('billing').send('getPBSLocation', param.billing_id, param.appointment_id);\n      _this.controllerFor('billing').send('getVisitBilledDate', param.patient_id);\n      _this.controllerFor('billing').send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPrescribeRecords', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getVisitStatus', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').set('billing_id', param.billing_id);\n      _this.controllerFor('billing').set('appointment_id', param.appointment_id);\n      _this.controllerFor('billing').send('getPrescribeDetail', param.appointment_id, param.billing_id);\n      //_this.controllerFor('billing').send('getPreviousPatientHistory',param.appointment_id,param.patient_id,param.visit_id);\n      _this.controllerFor('billing').send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      // _this.controllerFor('billing').send('getLastVisitHistory', param.patient_id);\n      // var base_url = ENV.APP.lumen_api_url + \"billing/last_visit/\" + param.patient_id;\n      // if (param.patient_id != undefined) {\n      //   $.ajax({\n      //     url: base_url,\n      //     method: \"GET\",\n      //     async: true,\n      //     success: function (res) {\n      //       if (res.error == true && res.count == 0) {\n      //         _this.set('retain_visit_history', res.count);\n      //       } else {\n      //         _this.set('retain_visit_history', res);\n      //       }\n      //     },\n      //     complete: function (res) {\n      //       //console.log(\"Execution complete\");\n      //     }\n      //   });\n      // }\n    },\n    actions: {\n      goBack() {\n        history.go(-1);\n      },\n      // Write below this function to factor zero for Specific medicine or all, Shubh Tiwari 16 June 2023\n      factorZero: function () {\n        var checked_checkbox = $('.geometry:checked').length;\n        if (checked_checkbox == 0) {\n          var error = 'Please select atleast one checkbox first';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 450,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          if ($('.geometry').length == $('.geometry:checked').length) {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for all medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                $('.factorItem').each(function () {\n                  var table_row_id = $(this).parent().parent().attr('id');\n                  var factor_input_id = $(this).attr('id');\n                  var factor_id_code = factor_input_id.split('-')[1];\n                  $('#' + factor_input_id).val(0);\n                  $('#medicinevial-' + factor_id_code).val(0);\n                  $('#' + table_row_id).addClass('zerofactor');\n                  $('#' + table_row_id).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('#checkAll').prop('checked', false);\n                });\n              }\n            });\n          } else {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for selected medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                var serial_id_array = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                for (var j = 0; j < serial_id_array.length; j++) {\n                  $('#factor-' + serial_id_array[j]).val(0);\n                  $('#medicinevial-' + serial_id_array[j]).val(0);\n                  $('#id-' + serial_id_array[j]).addClass('zerofactor');\n                  $('#id-' + serial_id_array[j]).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('#checkAll').prop('checked', false);\n                }\n              }\n            });\n          }\n        }\n      },\n      reasonEdit: function () {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('#MedicineEditReasonPopup').modal('show');\n        var reason = $('#medicine_edit_reason').val();\n        $('#edit_reason').val(reason);\n      },\n      /*This script is used for add more prescribe medicine July 24 2019 Shubh Tiwari */\n      addPrescriptionMedicine: function () {\n        var _this = this;\n        var max_no = '';\n        //var max_count = Date.now().toString().substr(6);\n        var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var cnt = max_count;\n        /* This condition is used for auto arrange serial no of prescribe medicine, Shubh Tiwari , 04 Jun 2021 */\n        var max = _this.rowMaxSerialNo();\n        // Checking NA serial number, 18 Nov 2022 Shubh Tiwari\n        if (max == Number.POSITIVE_INFINITY || max == Number.NEGATIVE_INFINITY) {\n          max_no = 0;\n        } else {\n          max_no = max;\n        }\n        //Copy previous row factor and vial value ,Shubh Tiwari 05 July 2023\n        // var factor_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(6).find('.factorItem').val();\n        // var vial_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(7).find('.medicinevialItem').val();\n        // if (factor_value < 1) {\n        //   var factor_class = 'zerofactor';\n        //   $('#factor-' + cnt).removeAttr('value');\n        //   $('#factor-' + cnt).val(factor_value);\n        //   $('#factor-' + cnt).attr('value', factor_value);\n        //   $('#medicinevial-' + cnt).removeAttr('value');\n        //   $('#medicinevial-' + cnt).val(vial_value);\n        //   $('#medicinevial-' + cnt).attr('value', vial_value);\n        // } else {\n        //   var factor_class = '';\n        // }\n        var serial_no = parseInt(max_no) + 1;\n        var instructionselect = '';\n        var instruction_array = _this.get('instruction');\n        instructionselect += '<select name=\"instructionItem[' + cnt + ']\" class=\"form-control instructionItem cwareinstruction-' + cnt + ' iother-' + cnt + '\" id=\"instruction-' + cnt + '\">';\n        instructionselect += '<option value=\"\">Select Instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          //var instruc_id = instruction_array[i].id;\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          instructionselect += '<option class=\"editable-' + cnt + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        instructionselect += '</select>';\n        instructionselect += '<input id=\"edit_instruction-' + cnt + '\" name=\"instruction[' + cnt + ']\" class=\"editOption-' + cnt + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n        var html = '';\n        html += '<tr id=\"id-' + cnt + '\" class=\"tableRow previousRow\" data-order=\"' + serial_no + '\">';\n        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + cnt + '\" class=\"geometry\" data-id=\"' + cnt + '\" name=\"check\" value=\"' + cnt + '\"/></td>';\n        html += '<td><input readonly name=\"srnoItem[' + cnt + ']\" class=\"form-control srno-' + cnt + ' srnoItem\" id=\"srno-' + cnt + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\" /></td>';\n        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + cnt + ']\" class=\"form-control prescribeinput dosage-' + cnt + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + cnt + '\" medicine_status=\"notset\" type=\"text\" placeholder=\"Type min 3 char to search\"/><input name=\"medicine_type[' + cnt + ']\" id=\"medicine_type-' + cnt + '\" type=\"hidden\"/> <input type=\"hidden\" name=\"medicine_id[' + cnt + ']\"  id=\"medicine_id-' + cnt + '\"><p id=\"results' + cnt + '\"></p></td>';\n        html += '<td> <input readonly name=\"potencyItem[' + cnt + ']\" class=\"form-control potency-' + cnt + ' potencyItem\" id=\"potency-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[' + cnt + ']\"  id=\"potency_id-' + cnt + '\"></td>';\n        html += '<td> <input readonly name=\"dilutionItem[' + cnt + ']\" class=\"form-control dilution-' + cnt + ' dilutionItem\" id=\"dilution-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[' + cnt + ']\"  id=\"dilution_id-' + cnt + '\"></td>';\n        html += '<td> <select name=\"formItem[' + cnt + ']\" class=\"form-control slectform-' + cnt + ' formItem prescribeform-' + cnt + '\" id=\"prescribeform-' + cnt + '\"><option value=\"\">Select Form</option></select></td>';\n        html += '<td> <input name=\"factorItem[' + cnt + ']\" class=\"form-control factor-' + cnt + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td> <input name=\"medicineVial[' + cnt + ']\" class=\"form-control medicinevial-' + cnt + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td>' + instructionselect + '</td></tr>';\n        $('#prescriptionmedicine').append(html);\n        //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari , 09 July 2019\n        $('#prescriptionmedicine').addClass('singletemplate');\n        _this.checkEnableCheckbox();\n        //This below line of code is used for setting the focus on newly added Medicine Row's Medicine name column, shubh tiwari 27 Aug 2019\n        $('#medicine_name-' + cnt).focus();\n      },\n      sortMedicine: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: 'Do you want to sort medicines by serial number?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, sort it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var tableId = 'prescriptionmedicine tbody.tbody';\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            return _this.sortMedicineRow(tableId);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      /*This function is used for reset serial number of medicine when click on Reset serial number Shubh Tiwari 04 Jan 2021 */\n      ResetSerialNo: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: \"Do you want to reset medicine serial numbers. All Medicines will be re-assigned new serial number starting from top. Medicine order won't be rearranged.\",\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, reset it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var medicineSerialNo = [];\n            $('#prescriptionmedicine > tbody > tr').each(function () {\n              var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n              var dataOrder = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('data-order');\n              var tableRowId = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('id');\n              var jsObjectRefno = {};\n              jsObjectRefno['serialNo'] = parseInt(serialNo.replace(/[^0-9]/g, ''));\n              jsObjectRefno['dataOrder'] = dataOrder.replace(/[^0-9]/g, '');\n              jsObjectRefno['tableRowId'] = tableRowId;\n              medicineSerialNo.push(jsObjectRefno);\n            });\n            _this.duplicateValueCount(medicineSerialNo);\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else {\n            $('#checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      //This function is used for getting the On the fly mix medicine posiibile forms, Rahul; khan 09 sept 2019\n      getForms: function () {\n        var midicinePotencty = [];\n        // var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n        $(\"[id^='medicine_mixture-']\").each(function () {\n          {\n            var id = $(this).attr('id');\n            var potency = $('#' + id).attr('data-poten');\n            var medicine = $('#' + id).attr('data-med');\n            var value = $('#' + id).val();\n            var combination = medicine + '_' + potency;\n            if (potency != undefined && medicine != undefined && value != '') {\n              midicinePotencty.push(combination);\n            }\n          }\n          //return this.val;\n        });\n        var mixture_medicine_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).data('med');\n        }).get();\n        var midicinePotencty = JSON.stringify(midicinePotencty);\n        let utoken = this.session.getToken();\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'mixmedicine/forms',\n          data: {\n            data: midicinePotencty\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            //  $(\"#mixforms\").append(formDiv);\n            $('#mixforms').empty();\n\n            //this.getItems();\n            response.forEach(function (form) {\n              var formDiv = '<div class=\"col-offset-xs-1 col-xs-1\"> <input type=\"checkbox\" class=\"mixform mixform-' + form.form_code + '\" name=\"form\" data-form_code=\"' + form.form_code + '\" value=\"' + form.id + '\"> ' + form.name + ' </div>';\n              $('#mixforms').append(formDiv);\n            });\n            //   _this.set('mixforms', response);\n            //_this.controllerFor('').set('mixforms', response);\n            //  _this.controllerFor('settings.masters.medicines.mix').set('mixforms', \"dd\");\n          }\n        });\n      }\n    },\n    afterModel: function () {\n      var _this = this;\n      let utoken = this.session.getToken();\n      var role_route_permission = _this.get('session').getRoleRouteList();\n      var current_browser_name = _this.get('routeName');\n      //console.log(current_browser_name);\n      var route_access = _this.get('route_permission').canRouteAccess(current_browser_name, role_route_permission);\n      _this.controllerFor('billing').set('route_access', route_access);\n      _this.recalculateAmount.onKeyUpChangeInstructionValue();\n      /* Below this event used for Enable/disable medicine serial number on click checkbox of Sort Medicine by Serial Number when saving 31 Dec 2020*/\n      $(document).on('click', '.sort-serial', function () {\n        var checkedValue = $('#sort-serial').is(':checked');\n        if (checkedValue == true) {\n          $('.srnoItem').attr('readonly', false);\n        } else {\n          $('.srnoItem').attr('readonly', true);\n        }\n        //console.log(checkedValue);\n      });\n      /* Below this event used for change onthefly/mix name 03 Feb 2021 */\n      $(document).on('change paste', '.medicineMixItem', function () {\n        var inputVal = $(this).val().trim();\n        //console.log(inputVal);\n        if (inputVal != '') {\n          var currentRowId = $(this).attr('id');\n          $('#' + currentRowId).attr('value', inputVal);\n          var mix_name = $('#' + currentRowId).val().trim();\n          var mix_id = currentRowId.split('-')[1];\n          //console.log(mix_id);\n          $('#' + currentRowId).attr('name', 'medicineItem[' + mix_id + '][' + inputVal + ']');\n          $('#srno-' + mix_id).attr('name', 'srnoItem[' + mix_id + '][' + inputVal + ']');\n          var mix_type = $('#medicine_type-' + mix_id).val();\n          $('#medicine_id-' + mix_id).attr('name', 'medicine_id[' + mix_id + '][' + inputVal + '][' + mix_type + ']');\n          $('.mixname_change').each(function () {\n            var currentMixRowId = $(this).attr('data-ontheflyId');\n            //console.log(currentMixRowId);\n            $('#medicine_name-' + mix_id + currentMixRowId).attr('name', 'medicineItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#medicine_id-' + mix_id + currentMixRowId).attr('name', 'medicine_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency-' + mix_id + currentMixRowId).attr('name', 'potencyItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency_id-' + mix_id + currentMixRowId).attr('name', 'potency_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#dilution-' + mix_id + currentMixRowId).attr('name', 'dilutionItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n          });\n        } else {\n          Swal.fire({\n            icon: 'warning',\n            html: '<b class=\"pop-message-class\">Please enter mix name. </b>',\n            width: 450,\n            allowOutsideClick: false\n          });\n        }\n      });\n      /* Below this event used for only allow numeric alphabate serial number of medicine 31 Dec 2020 */\n      $(document).on('change paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n            $(this).closest('tr').attr('data-order', inputVal.toUpperCase());\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).attr('value', inputVal.toUpperCase());\n            //$(\"#\"+currentRowId).attr('data-uniqueserial',inputVal.toUpperCase());\n            //var MedcineRowNum = currentRowId.split('-')[1];\n            //$(this).closest(\"tr\").attr('id', MedcineRowNum);\n          }\n        }\n      });\n\n      //make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list\n      $(document).on('change', '[id^=\"instruction-\"]', function () {\n        var intruction_id = $(this).attr('id');\n        var MedcineRowNum = intruction_id.split('-')[1];\n        var initialText = $('#instruction-' + MedcineRowNum + ' option:selected').text().trim();\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 25 March 2021\n        if (initialText != 'Other') {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).removeAttr('placeholder');\n          $('#instruction-' + MedcineRowNum).removeClass('has-error');\n          $('.editable-' + MedcineRowNum).removeAttr('selected');\n          $('.editOption-' + MedcineRowNum).val(initialText);\n          $('.editOption-' + MedcineRowNum).attr('value', initialText);\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', initialText);\n          $('#instruction-' + MedcineRowNum).val(initialText).find('option[value=\"' + initialText + '\"]').attr('selected', true);\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        } else {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).val('');\n          $('.editOption-' + MedcineRowNum).attr('placeholder', 'Please enter other value');\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', '');\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        }\n      });\n      /*This script is used for remove selected table row July 24 2019 Shubh Tiwari */\n      $(document).on('click', '.delete-row', function (event) {\n        var lengthOfUnchecked = $('#prescriptionmedicine tbody td input:checkbox:not(:checked)').length;\n        var checkNum = $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').length;\n        // console.log(checkNum);\n        if (checkNum == 0) {\n          swal({\n            text: 'Please select at-least one row to remove.',\n            icon: 'info',\n            buttons: 'Ok'\n          });\n        } else if (lengthOfUnchecked > 0) {\n          swal({\n            title: 'Are you sure you want to remove selected medicines?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').each(function () {\n                /* Remove duplicate class from mix medicine row shubh tiwari 07 jan 2021*/\n                var p = $(this).closest('tr').attr('data-mixid');\n                $(\"[data-mixid^='\" + p + \"']\").map(function () {\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#' + idNum).removeClass('duplicate');\n                });\n                /* Remove duplicate class from single medicine row shubh tiwari 07 jan 2021*/\n                var serialNo = $(this).closest('tr').attr('data-medform');\n                var tableRow = $('.tableRow').filter(function () {\n                  return $(this).data('medform') == serialNo; // where value == product id to find\n                });\n                tableRow.removeClass('duplicate');\n                $(this).closest('tr').remove();\n              });\n            }\n          });\n        } else {\n          $('#prescriptionmedicine tbody td input[type=\"checkbox\"]').prop('checked', false);\n          $('#checkAll').prop('checked', false);\n          swal({\n            text: \"Sorry!! You can't remove all the rows!\",\n            icon: 'warning',\n            buttons: 'Ok'\n          });\n        }\n      });\n      /*This script is used for checked and unchecked visit history July 20 2019 Shubh Tiwari */\n      $(document).on('click', 'li :checkbox', function (event) {\n        var $chk = $(this),\n          $li = $chk.closest('li'),\n          $ul,\n          $parent;\n        if ($li.has('table-data ul')) {\n          $li.find(':checkbox').not(this).prop('checked', this.checked);\n        }\n        do {\n          $ul = $li.parent();\n          $parent = $ul.siblings(':checkbox');\n          if ($chk.is(':checked')) {\n            $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0);\n          } else {\n            $parent.prop('checked', false);\n          }\n          $chk = $parent;\n          $li = $chk.closest('li');\n        } while ($ul.is(':not(.someclass)'));\n      });\n\n      /*This script is used for import previous visit history on click import button march 05 2020 Shubh Tiwari */\n      $(document).on('click', '.parent_history', function (event) {\n        var appointment = [];\n        var billing = [];\n        var medicine = [];\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n          billing.push($(this).data('billing'));\n          medicine.push($(this).data('medicineid'));\n        });\n        if (appointment.length > 0) {\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              setTimeout(() => {\n                resolve({\n                  1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                  2: 'Retain the serial numbers of these medicines. This will reassign new serial numbers to existing medicines.'\n                });\n              }, 1000);\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 650,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            if (optionValue == 1) {\n              $('#loader').show();\n              let utoken = this.session.getToken();\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  appointment_id: appointment_id,\n                  med_id: med_id,\n                  billing_id: bill\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (history_response) {\n                  $('#loader').hide();\n                  var instruction_array = _this.get('instruction');\n                  var max = _this.rowMaxSerialNo();\n                  var error = '';\n                  var remaining_medicine = '';\n                  var existing_medicine = '';\n                  var history_duplicateMedicineArray = [];\n                  var remaining_name = [];\n                  var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n                    return $(this).data('med');\n                  }).get();\n                  history_response.forEach(function (value) {\n                    if (value.midicine_type == 'ontheflymix') {\n                      var duplicate_id = value.id;\n                    } else {\n                      var duplicate_id = value.medicine_id;\n                    }\n                    if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                      if (value.midicine_type == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.form_name;\n                      }\n                      history_duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(history_duplicateMedicineArray);\n\n                  var j = 0;\n                  for (var i = 0; i < history_response.length; i++) {\n                    var obj_original = history_response[i];\n                    if (obj_original.midicine_type == 'single') {\n                      var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n                    } else {\n                      var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n                    }\n                    if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                      var p = j++;\n                      existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                      //console.log('history-duplicate-message-a'+med_name);\n                    } else {\n                      remaining_name.push(med_name);\n                      //console.log('history-duplicate-message-b'+remaining_name);\n                    }\n                  }\n                  if (history_duplicateMedicineArray.length > 0) {\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                  } else {\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                  }\n                  error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                  Swal.fire({\n                    icon: 'error',\n                    title: 'Oops...',\n                    html: error,\n                    width: 650,\n                    showCancelButton: true,\n                    confirmButtonColor: '#3085d6',\n                    cancelButtonColor: '#d33',\n                    confirmButtonText: 'Ok',\n                    allowOutsideClick: false\n                  }).then(result => {\n                    if (result.isConfirmed) {\n                      for (var i = 0; i < history_response.length; i++) {\n                        var obj = history_response[i];\n                        if (obj.midicine_type == 'ontheflymix') {\n                          var duplicate_id = obj.id;\n                        } else {\n                          var duplicate_id = obj.medicine_id;\n                        }\n                        if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                          history_response.splice(i, 1);\n                          i--;\n                        }\n                      }\n                      $.each(history_response, function (index, val) {\n                        var html = '';\n                        var subhtml = '';\n                        var formselect = '';\n                        var instructionselect = '';\n                        var edit_instructionselect = '';\n                        var number = index + 1;\n                        var common_serial = parseInt(max, 10) + number;\n                        //var serial_no = Date.now().toString().substr(6);\n                        var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                        var medicine_type = val.midicine_type;\n                        var medicine_id = val.medicine_id;\n                        var potency_id = val.potency_id;\n                        var single_serial_no = val.medicine_serial_no;\n                        var potency = val.potency_name;\n                        var medicine = val.medicine_name;\n                        var dilution = val.dilution_name;\n                        var f_code = val.form_code;\n                        if (val.instruction_name != '') {\n                          var instruction_name = val.instruction_name;\n                        } else {\n                          var instruction_name = val.instruction_other_value;\n                        }\n                        var factor = val.factor;\n                        var fact = parseInt(factor);\n                        var vial_value = val.vial;\n                        var appointment_id = val.appointment_id;\n                        var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                        if (vial_check_value == 0) {\n                          var vial = 1;\n                        } else if (vial_check_value == 1) {\n                          var vial = 1;\n                        } else {\n                          var vial = vial_check_value;\n                        }\n                        var mix_name = medicine;\n                        // form selected html code\n                        formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                        for (var i = 0; i < val.form.length; i++) {\n                          var form_name = val.form[i].form_name;\n                          var group_id = val.form[i].group_id;\n                          var form_code = val.form[i].form_code;\n                          if (form_code == f_code) {\n                            formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                          } else {\n                            formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                          }\n                        }\n                        formselect += '</select>';\n                        // instruction selected html code\n                        instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                        for (var i = 0; i < instruction_array.length; i++) {\n                          //var instruc_id = instruction_array[i].id;\n                          var instruc_name = instruction_array[i].instruction_name.trim();\n                          if (instruction_name != '' && instruction_name == instruc_name) {\n                            instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                          } else {\n                            instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                          }\n                        }\n                        // if (instruction_other != '') {\n                        //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n                        // }\n                        instructionselect += '</select>';\n                        if (instruction_name != '') {\n                          edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                        }\n                        // if (instruction_other != '') {\n                        //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n                        // }\n                        instructionselect += edit_instructionselect;\n                        if (val.midicine_type == 'mix') {\n                          var title = 'Mix medicine';\n                        } else {\n                          var title = 'On the fly mix medicine';\n                        }\n                        if (val.midicine_type == 'ontheflymix') {\n                          var common_id = val.id;\n                          var medform = parseInt(common_id) + f_code;\n                        } else {\n                          var common_id = medicine_id;\n                          var medform = parseInt(common_id) + f_code;\n                        }\n\n                        /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                        if (fact < 1) {\n                          var Zerofactor = 'zerofactor';\n                          $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                        } else {\n                          var Zerofactor = '';\n                        }\n                        var j = 0;\n                        if (val.mix.length > 0) {\n                          subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + common_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                          for (var i = 0; i < val.mix.length; i++) {\n                            j++;\n                            var mix_potency = val.mix[i].potency_name;\n                            var mix_medicine = val.mix[i].medicine_name;\n                            var mix_medicine_id = val.mix[i].medicine_id;\n                            var mix_potency_id = val.mix[i].potency_id;\n                            var mix_dilution = val.mix[i].dilution_name;\n                            subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                            subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                            subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                            subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                            subhtml += '</tr>';\n                          }\n                          subhtml += '</table>';\n                          html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                          html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                          html += '<td colspan=\"3\">' + subhtml + '</td>';\n                          html += '<td>' + formselect + '</td>';\n                          html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                          html += '<td>' + instructionselect + '</td>';\n                          html += '</tr>';\n                        } else {\n                          html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                          html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                          html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"></td>';\n                          html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                          html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                          html += '<td>' + formselect + '</td>';\n                          html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                          html += '<td>' + instructionselect + '</td>';\n                          html += '</tr>';\n                        }\n                        $('.clear_prescription').remove();\n                        $('#prescriptionmedicine').last().append(html);\n                        $('#importvisitid').val(appointment_id);\n                        $('.cleartable li :checkbox').prop('checked', false);\n                        $('#visitmessage').html('<div class=\"alert alert-success\"> Visit history imported successfully! </div>');\n                        $('#visitmessage .alert').fadeToggle(10000);\n                        _this.checkEnableCheckbox();\n                      });\n                    }\n                  });\n                }\n              });\n            } else if (optionValue == 2) {\n              $('#loader').show();\n              var p = $(this).closest('tr').attr('data-order');\n              let utoken = this.session.getToken();\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  appointment_id: appointment_id,\n                  med_id: med_id,\n                  billing_id: bill\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (history_response) {\n                  $('#loader').hide();\n                  var instruction_array = _this.get('instruction');\n                  var error = '';\n                  var remaining_medicine = '';\n                  var existing_medicine = '';\n                  var history_duplicateMedicineArray = [];\n                  var remaining_name = [];\n                  var medicineSerialNo = [];\n                  var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n                    return $(this).data('med');\n                  }).get();\n                  //console.log(history_duplicateRow);\n\n                  history_response.forEach(function (value) {\n                    if (value.midicine_type == 'ontheflymix') {\n                      var duplicate_id = value.id;\n                    } else {\n                      var duplicate_id = value.medicine_id;\n                    }\n                    if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                      if (value.midicine_type == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.form_name;\n                      }\n                      history_duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(history_duplicateMedicineArray);\n\n                  var j = 0;\n                  for (var i = 0; i < history_response.length; i++) {\n                    var obj_original = history_response[i];\n                    if (obj_original.midicine_type == 'single') {\n                      var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n                    } else {\n                      var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n                    }\n                    if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                      var p = j++;\n                      existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                      //console.log('history-duplicate-message-a'+med_name);\n                    } else {\n                      remaining_name.push(med_name);\n                      //console.log('history-duplicate-message-b'+remaining_name);\n                    }\n                  }\n                  if (history_duplicateMedicineArray.length > 0) {\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                  } else {\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                  }\n                  error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                  Swal.fire({\n                    icon: 'error',\n                    title: 'Oops...',\n                    html: error,\n                    width: 650,\n                    showCancelButton: true,\n                    confirmButtonColor: '#3085d6',\n                    cancelButtonColor: '#d33',\n                    confirmButtonText: 'Ok',\n                    allowOutsideClick: false\n                  }).then(result => {\n                    if (result.isConfirmed) {\n                      for (var i = 0; i < history_response.length; i++) {\n                        var obj = history_response[i];\n                        if (obj.midicine_type == 'ontheflymix') {\n                          var duplicate_id = obj.id;\n                        } else {\n                          var duplicate_id = obj.medicine_id;\n                        }\n                        if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                          history_response.splice(i, 1);\n                          i--;\n                        }\n                      }\n                      var array_elements = _this.multiSort(history_response, {\n                        id: 'desc'\n                      });\n                      //console.log(array_elements+'shubh');\n                      //console.log(array_elements);\n                      var max = _this.rowMaxSerialNo();\n                      array_elements.forEach(function (val) {\n                        //console.log('a'+val.id);\n                        var html = '';\n                        var subhtml = '';\n                        var formselect = '';\n                        var instructionselect = '';\n                        var edit_instructionselect = '';\n                        var common_serial = val.medicine_serial_no.toUpperCase();\n                        var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                        var medicine_type = val.midicine_type;\n                        var medicine_id = val.medicine_id;\n                        var potency_id = val.potency_id;\n                        var single_serial_no = val.medicine_serial_no;\n                        var potency = val.potency_name;\n                        var medicine = val.medicine_name;\n                        var dilution = val.dilution_name;\n                        var f_code = val.form_code;\n                        if (val.instruction_name != '') {\n                          var instruction_name = val.instruction_name;\n                        } else {\n                          var instruction_name = val.instruction_other_value;\n                        }\n                        var factor = val.factor;\n                        var fact = parseInt(factor);\n                        var vial_value = val.vial;\n                        var appointment_id = val.appointment_id;\n                        var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                        if (vial_check_value == 0) {\n                          var vial = 1;\n                        } else if (vial_check_value == 1) {\n                          var vial = 1;\n                        } else {\n                          var vial = vial_check_value;\n                        }\n                        var mix_name = medicine;\n                        // form selected html code\n                        formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                        for (var i = 0; i < val.form.length; i++) {\n                          var form_name = val.form[i].form_name;\n                          var group_id = val.form[i].group_id;\n                          var form_code = val.form[i].form_code;\n                          if (form_code == f_code) {\n                            formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                          } else {\n                            formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                          }\n                        }\n                        formselect += '</select>';\n                        // instruction selected html code\n                        instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                        for (var i = 0; i < instruction_array.length; i++) {\n                          //var instruc_id = instruction_array[i].id;\n                          var instruc_name = instruction_array[i].instruction_name.trim();\n                          if (instruction_name != '' && instruction_name == instruc_name) {\n                            instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                          } else {\n                            instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                          }\n                        }\n                        instructionselect += '</select>';\n                        if (instruction_name != '') {\n                          edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                        }\n                        instructionselect += edit_instructionselect;\n                        if (val.midicine_type == 'mix') {\n                          var title = 'Mix medicine';\n                        } else {\n                          var title = 'On the fly mix medicine';\n                          var ontheflymix_id = val.id;\n                        }\n                        if (val.midicine_type == 'ontheflymix') {\n                          var ontheflymix_id = val.id;\n                          var medform = parseInt(ontheflymix_id) + f_code;\n                        } else {\n                          var ontheflymix_id = medicine_id;\n                          var medform = parseInt(ontheflymix_id) + f_code;\n                        }\n                        /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                        if (fact < 1) {\n                          var Zerofactor = 'zerofactor';\n                          $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                        } else {\n                          var Zerofactor = '';\n                        }\n                        var j = 0;\n                        if (val.mix.length > 0) {\n                          subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + ontheflymix_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                          for (var i = 0; i < val.mix.length; i++) {\n                            j++;\n                            var mix_potency = val.mix[i].potency_name;\n                            var mix_medicine = val.mix[i].medicine_name;\n                            var mix_medicine_id = val.mix[i].medicine_id;\n                            var mix_potency_id = val.mix[i].potency_id;\n                            var mix_dilution = val.mix[i].dilution_name;\n                            subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                            subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" data-ontheflyId=\"' + j + '\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                            subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                            subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                            subhtml += '</tr>';\n                          }\n                          subhtml += '</table>';\n                          html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                          html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                          html += '<td colspan=\"3\">' + subhtml + '</td>';\n                          html += '<td>' + formselect + '</td>';\n                          html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                          html += '<td>' + instructionselect + '</td>';\n                          html += '</tr>';\n                        } else {\n                          html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                          html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                          html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                          html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"></td>';\n                          html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                          html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                          html += '<td>' + formselect + '</td>';\n                          html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                          html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                          html += '<td>' + instructionselect + '</td>';\n                          html += '</tr>';\n                        }\n                        $('.clear_prescription').remove();\n                        //$('#prescriptionmedicine').prepend(html);\n                        //console.log(html);\n                        //$('#prescriptionmedicine > tbody.tbody > tr:first').before(html);\n                        $(html).prependTo('#prescriptionmedicine > tbody.tbody');\n                        $('.cleartable li :checkbox').prop('checked', false);\n                        _this.checkEnableCheckbox();\n                        $('.importRow').each(function () {\n                          var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n                          medicineSerialNo.push(parseInt(serialNo));\n                        });\n                        //console.log(medicineSerialNo);\n                        var getminimumserialnumber = Math.max.apply(Math, medicineSerialNo);\n                        //console.log(getminimumserialnumber);\n                        var previousTableRowArray = $('.previousRow').map(function () {\n                          return $(this).attr('id');\n                        }).get();\n                        previousTableRowArray.forEach(function (item, index) {\n                          var number = index + 1;\n                          //console.log(common_serial);\n                          //console.log(number);\n                          //console.log(max);\n                          //return parseInt(max, 10)+1;\n                          var previousSerialNo = parseInt(getminimumserialnumber) + parseInt(number);\n                          //console.log(previousSerialNo);\n                          var rowsId = item.split('-')[1];\n                          $('#id-' + rowsId).attr('data-order', previousSerialNo);\n                          $('#srno-' + rowsId).val(previousSerialNo);\n                          $('#srno-' + rowsId).attr('value', previousSerialNo);\n                          $('#srno-' + rowsId).attr('data-uniqueserial', previousSerialNo);\n                        });\n                        //console.log(previousTableRowArray);\n                      });\n                    }\n                  });\n                }\n              });\n            }\n          })();\n        } else {\n          $('#visitmessage').html('<div class=\"alert alert-danger\"> Please select visit history </div>');\n          $('#visitmessage .alert').fadeToggle(10000);\n        }\n      });\n      var stopAjaxSearch = false;\n      /*This script is used for set medicine search data on click July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.formdata', function (event) {\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 6-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        var potency_name = $(this).data('potencyname');\n        var dilution = $(this).data('dilution');\n        var item = item.trim();\n        var medicinename = item.split(',')[0]; //This below line of code  is used for getting the only medicine name, Rahul Khan, 16 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-medicine', item); //This line is used for adding new attribute with value as medicine name in suggestion box, Rahul Khan, 16 aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n        //$(this).closest(\".cw-search-box\").find('medicine_type').val(medicine_type);\n\n        //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 10 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n        var clickedid = $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('id');\n        // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n        if (clickedid !== undefined) {\n          var targetid = clickedid.split('-');\n          var cnt = targetid[1];\n          var next = targetid[1];\n          //console.log(max);\n          //This below code is used for getting the first added medicine form to coping for all added medicine default, Rahul Khan , 27 Aug 2019\n          var firstRowMedicineForm = $('#prescriptionmedicine').find(\"tr[id^='id-']:first\").attr('id');\n          var MedcineRowNum = firstRowMedicineForm.split('-')[1];\n          var selectedForm = $('#prescribeform-' + MedcineRowNum).val();\n          var selectedOptionText = $('#prescribeform-' + MedcineRowNum + \" option[value^='\" + selectedForm + \"']\").text();\n          if (medicine_type == 'single') {\n            var selectedFactor = $('#factor-' + MedcineRowNum).val();\n            var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n            //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n            _this.factorCarryForward(selectedFactor, medicinevial, cnt);\n            $('.potency-' + cnt).val(potency_name);\n            $('.potency-' + cnt).attr('readonly', true); //This line of code is used for setting the potency box disabled, Rahul Khan, 16 Aug 2019\n            $('#potency_id-' + cnt).val(potency_id);\n            $('#medicine_id-' + cnt).val(medicine_id);\n            $('.dilution-' + cnt).val(dilution);\n            $('.dilution-' + cnt).attr('readonly', true); //This line of code is used for setting the dilution box disabled, Rahul Khan, 16 Aug 2019\n            $('#medicine_type-' + cnt).val(medicine_type);\n            //ajax call for get form list\n            var singleformArray = [];\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/formlist',\n              data: {\n                potency: potency_id,\n                medicine: medicine_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('.slectform-' + cnt).empty();\n                //$('.slectform-' + cnt).focus().addClass('has-error');\n                //$('.slectform-' + cnt).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  //var id = response[i]['fId'];\n                  var name = response[i]['fName'];\n                  var fcode = response[i]['fcode'];\n                  var gId = response[i]['gId'];\n                  var serial_no = $('#srno-' + cnt).val();\n                  var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                  var selectedObject = {};\n                  if (selectedOptionText == fcode) {\n                    var selected = 'selected';\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = selectedOptionText;\n                    singleformArray.push(selectedObject);\n                  } else {\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = fcode;\n                    singleformArray.push(selectedObject);\n                  }\n                  $('.slectform-' + cnt).append(\"<option value='\" + gId + '-' + fcode + '-' + name + \"' \" + selected + '>' + fcode + '</option>');\n                  //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari, 09 July 2019\n                  $('#prescriptionmedicine').addClass('singletemplate');\n                }\n                var formCode = _this.multiSort(singleformArray, {\n                  form_code: 'asc'\n                });\n                _this.getSelectedTableRow(formCode, medicine_id, cnt);\n              }\n            });\n            /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n            var error = '';\n            var duplicateMedicineArray = [];\n            //This Row id used for getting the row number\n            var currenyRowidNum = cnt;\n            var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n            //console.log(currenyRowidNum);\n            //console.log(currentMedicneValue);\n            //var currentMedicineForm = $(\"#prescribeform-\" + currenyRowidNum).val();\n            //console.log(currentMedicineForm);\n            var currentMedicineFormValue = selectedOptionText;\n            //console.log(currentMedicineFormValue);\n            var duplicateRow = $('.medicineItem').map(function () {\n              // var medicineName  = $(this).attr('data-medicine').trim();\n              var medicineName = $(this).attr('data-medicine');\n              //console.log(medicineName);\n              var medicineRowId = $(this).attr('id');\n              //console.log(medicineRowId);\n              var MedicinwRowNum = medicineRowId.split('-')[1];\n              var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n              var MedicineRowFormValue = $('#prescribeform-' + MedicinwRowNum + \" option[value^='\" + MedicineRowForm + \"']\").text();\n              //console.log(MedicineRowFormValue);\n              if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n                duplicateMedicineArray.push(currenyRowidNum);\n                duplicateMedicineArray.push(MedicinwRowNum);\n                return MedicinwRowNum;\n              }\n            }).get();\n            duplicateMedicineArray.forEach(function (item) {\n              $('#id-' + item).addClass('duplicate');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              var formName = _this.getFormName(currentMedicineFormValue);\n              //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n              error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n              Swal.fire({\n                icon: 'error',\n                title: 'Oops...',\n                html: error,\n                width: 600,\n                showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              });\n            } else {\n              $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n                //console.log(this.id);\n                var idNum = this.id.replace('medicine_name-', '');\n                $('#id-' + idNum).removeClass('duplicate');\n              });\n            }\n          }\n          if (medicine_type == 'mix') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'mix') {\n              //console.log('mix-a');\n              var common_serial = 1;\n              //ajax call for geting mix medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      $('#id-' + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  let utoken = this.session.getToken();\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  $('#prescriptionmedicine').children('tbody:first').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            } else {\n              //console.log('mix-b');\n              var max = _this.rowMaxSerialNo();\n              var common_serial = parseInt(max, 10);\n              var p = $(this).closest('tr').attr('data-order');\n              //ajax call for geting mix medicine data\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      //$(\"#id-\" + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\"  data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  let utoken = this.session.getToken();\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  //$('#prescriptionmedicine > tbody.tbody > tr').eq(common_serial).after(mix_template);\n                  $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + next).after(mix_template);\n                  $('#id-' + next).attr('data-order', p).remove();\n                  $('#id-' + next).attr('data-order', p);\n                  $('#srno-' + next).val(p);\n                  $('#srno-' + next).attr('value', p);\n                  $('#srno-' + next).attr('data-uniqueserial', p);\n                  var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                  var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                  //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                  _this.factorCarryForward(selectedFactor, medicinevial, next);\n                  //var p =  $('#prescriptionmedicine > tbody.tbody > tr').attr('id');\n                  //console.log(p);\n                  //$('#prescriptionmedicine').children('tbody:last').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            }\n            //console.log(first_table_rows);\n          } //This below condition is used for adding the template Medicine/Mix for prescription, Shubh Tiwari\n          if (medicine_type == 'template') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'template') {\n              //console.log(first_table_rows);\n              //console.log(\"Template-a\");\n              //ajax call for geting template medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var instruction_array = _this.get('instruction');\n                  $.each(template_response, function (index, val) {\n                    var html = '';\n                    var subhtml = '';\n                    var formselect = '';\n                    var instructionselect = '';\n                    var edit_instructionselect = '';\n                    //var serial_no = Date.now().toString().substr(6);\n                    var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                    var medicine_type = val.mtype;\n                    var medicine_id = val.medId;\n                    var template_id = val.tempId;\n                    var potency_id = val.pId;\n                    var single_serial_no = val.mserialNo;\n                    var potency = val.potency_name;\n                    var medicine = val.medicine_name;\n                    var dilution = val.dilution_name;\n                    var f_code = val.f_code;\n                    var medform = parseInt(medicine_id) + f_code;\n                    if (val.Iname != '') {\n                      var instruction_name = val.Iname;\n                    } else {\n                      var instruction_name = val.Oname;\n                    }\n                    var factor = 1;\n                    var fact = parseInt(factor);\n                    var vial_value = 1;\n                    var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                    if (vial_check_value == 0) {\n                      var vial = 1;\n                    } else if (vial_check_value == 1) {\n                      var vial = 1;\n                    } else {\n                      var vial = vial_check_value;\n                    }\n                    var mix_name = medicine;\n\n                    // form selected html code\n                    formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                    for (var i = 0; i < val.form.length; i++) {\n                      var form_name = val.form[i].form_name;\n                      var group_id = val.form[i].group_id;\n                      var form_code = val.form[i].form_code;\n                      if (form_code == f_code) {\n                        formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      } else {\n                        formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      }\n                    }\n                    formselect += '</select>';\n                    // instruction selected html code\n                    instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                    for (var i = 0; i < instruction_array.length; i++) {\n                      //var instruc_id = instruction_array[i].id;\n                      var instruc_name = instruction_array[i].instruction_name.trim();\n                      if (instruction_name != '' && instruction_name == instruc_name) {\n                        instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      } else {\n                        instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      }\n                    }\n                    instructionselect += '</select>';\n                    if (instruction_name != '') {\n                      edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                    }\n                    instructionselect += edit_instructionselect;\n                    if (val.mtype == 'mix') {\n                      var title = 'Mix medicine';\n                    } else {\n                      var title = 'On the fly mix medicine';\n                    }\n                    /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                    if (fact < 1) {\n                      var Zerofactor = 'zerofactor';\n                      $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                    } else {\n                      var Zerofactor = '';\n                    }\n                    var j = 0;\n                    if (val.mix.length > 0) {\n                      subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                      for (var i = 0; i < val.mix.length; i++) {\n                        j++;\n                        var mix_potency = val.mix[i].potencyname;\n                        var mix_medicine = val.mix[i].mixMedicineName;\n                        var mix_medicine_id = val.mix[i].medId;\n                        var mix_potency_id = val.mix[i].pId;\n                        var mix_dilution = val.mix[i].dilution;\n                        subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                        subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                        subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                        subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                        subhtml += '</tr>';\n                      }\n                      subhtml += '</table>';\n                      html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td colspan=\"3\">' + subhtml + '</td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    } else {\n                      html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                      html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                      html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    }\n                    $('#prescriptionmedicine').children('tbody:first').append(html);\n                    _this.checkEnableCheckbox();\n                  });\n                }\n              });\n            } else {\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              var duplicateRow = $('.tableRow').map(function () {\n                return $(this).data('medform');\n              }).get();\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var error = '';\n                  var existing_medicine = '';\n                  var remaining_medicine = '';\n                  var duplicateMedicineArray = [];\n                  var tableRowIdArray = [];\n                  var serialnumberArray = [];\n                  var remaining_name = [];\n                  var dmf_tableRowIdArray = [];\n                  var dmf_serialnumberArray = [];\n                  var instruction_array = _this.get('instruction');\n\n                  //console.log(duplicateRow);\n                  template_response.forEach(function (value) {\n                    var formData = parseInt(value.medId) + value.f_code;\n                    if (duplicateRow.indexOf(formData) != -1) {\n                      if (value.mtype == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.f_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.f_name;\n                      }\n                      duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(duplicateMedicineArray);\n\n                  if (duplicateMedicineArray.length > 0) {\n                    var max = _this.rowMaxSerialNo();\n                    var j = 0;\n                    for (var i = 0; i < template_response.length; i++) {\n                      var obj_original = template_response[i];\n                      if (obj_original.mtype == 'single') {\n                        var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.f_name;\n                      } else {\n                        var med_name = obj_original.medicine_name + ' with form ' + obj_original.f_name;\n                      }\n                      if (duplicateMedicineArray.indexOf(med_name) !== -1) {\n                        var p = j++;\n                        existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                        //console.log('duplicate-message-a'+med_name);\n                      } else {\n                        remaining_name.push(med_name);\n                        //console.log('duplicate-message-b'+remaining_name);\n                      }\n                    }\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                    error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                    Swal.fire({\n                      icon: 'error',\n                      title: 'Oops...',\n                      html: error,\n                      width: 650,\n                      showCancelButton: true,\n                      confirmButtonColor: '#3085d6',\n                      cancelButtonColor: '#d33',\n                      confirmButtonText: 'Ok',\n                      allowOutsideClick: false\n                    }).then(result => {\n                      if (result.isConfirmed) {\n                        for (var i = 0; i < template_response.length; i++) {\n                          var obj = template_response[i];\n                          var formData = parseInt(obj.medId) + obj.f_code;\n                          if (duplicateRow.indexOf(formData) !== -1) {\n                            template_response.splice(i, 1);\n                            i--;\n                          }\n                        }\n                        $.each(template_response, function (index, val) {\n                          //console.log('b-template');\n                          var increase_number = index + 1;\n                          var html = '';\n                          var subhtml = '';\n                          var formselect = '';\n                          var instructionselect = '';\n                          var edit_instructionselect = '';\n                          var common_serial = parseInt(max, 10) + increase_number;\n                          var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                          var medicine_type = val.mtype;\n                          var medicine_id = val.medId;\n                          var template_id = val.tempId;\n                          var potency_id = val.pId;\n                          var single_serial_no = val.mserialNo;\n                          var potency = val.potency_name;\n                          var medicine = val.medicine_name;\n                          var dilution = val.dilution_name;\n                          var f_code = val.f_code;\n                          var medform = parseInt(medicine_id) + f_code;\n                          if (val.Iname != '') {\n                            var instruction_name = val.Iname;\n                          } else {\n                            var instruction_name = val.Oname;\n                          }\n                          var factor = 1;\n                          var fact = parseInt(factor);\n                          var vial_value = 1;\n                          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                          if (vial_check_value == 0) {\n                            var vial = 1;\n                          } else if (vial_check_value == 1) {\n                            var vial = 1;\n                          } else {\n                            var vial = vial_check_value;\n                          }\n                          var mix_name = medicine;\n\n                          // form selected html code\n                          formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                          for (var i = 0; i < val.form.length; i++) {\n                            var form_name = val.form[i].form_name;\n                            var group_id = val.form[i].group_id;\n                            var form_code = val.form[i].form_code;\n                            if (form_code == f_code) {\n                              formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            } else {\n                              formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            }\n                          }\n                          formselect += '</select>';\n                          // instruction selected html code\n                          instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                          for (var i = 0; i < instruction_array.length; i++) {\n                            //var instruc_id = instruction_array[i].id;\n                            var instruc_name = instruction_array[i].instruction_name.trim();\n                            if (instruction_name != '' && instruction_name == instruc_name) {\n                              instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            } else {\n                              instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            }\n                          }\n                          instructionselect += '</select>';\n                          if (instruction_name != '') {\n                            edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                          }\n                          instructionselect += edit_instructionselect;\n                          if (val.mtype == 'mix') {\n                            var title = 'Mix medicine';\n                          } else {\n                            var title = 'On the fly mix medicine';\n                          }\n                          /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                          if (fact < 1) {\n                            var Zerofactor = 'zerofactor';\n                            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                          } else {\n                            var Zerofactor = '';\n                          }\n                          var j = 0;\n                          if (val.mix.length > 0) {\n                            subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                            for (var i = 0; i < val.mix.length; i++) {\n                              j++;\n                              var mix_potency = val.mix[i].potencyname;\n                              var mix_medicine = val.mix[i].mixMedicineName;\n                              var mix_medicine_id = val.mix[i].medId;\n                              var mix_potency_id = val.mix[i].pId;\n                              var mix_dilution = val.mix[i].dilution;\n                              subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                              subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                              subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                              subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                              subhtml += '</tr>';\n                            }\n                            subhtml += '</table>';\n                            html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                            html += '<td colspan=\"3\">' + subhtml + '</td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          } else {\n                            html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                            html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                            html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          }\n                          //$('#prescriptionmedicine').append(html);\n                          $('#prescriptionmedicine').children('tbody:last').append(html);\n                          _this.checkEnableCheckbox();\n                          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                          var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                          var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                          //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                          _this.factorCarryForward(selectedFactor, medicinevial, serial_no);\n                        });\n                      }\n                    });\n                  } else {\n                    var max = _this.rowMaxSerialNo();\n                    $.each(template_response, function (index, val) {\n                      //console.log('c-template');\n                      var increase_number = index + 1;\n                      var html = '';\n                      var subhtml = '';\n                      var formselect = '';\n                      var instructionselect = '';\n                      var edit_instructionselect = '';\n                      var common_serial = parseInt(max, 10) + increase_number;\n                      var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                      var medicine_type = val.mtype;\n                      var medicine_id = val.medId;\n                      var template_id = val.tempId;\n                      var potency_id = val.pId;\n                      var single_serial_no = val.mserialNo;\n                      var potency = val.potency_name;\n                      var medicine = val.medicine_name;\n                      var dilution = val.dilution_name;\n                      var f_code = val.f_code;\n                      var medform = parseInt(medicine_id) + f_code;\n                      if (val.Iname != '') {\n                        var instruction_name = val.Iname;\n                      } else {\n                        var instruction_name = val.Oname;\n                      }\n                      var factor = 1;\n                      var fact = parseInt(factor);\n                      var vial_value = 1;\n                      var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                      if (vial_check_value == 0) {\n                        var vial = 1;\n                      } else if (vial_check_value == 1) {\n                        var vial = 1;\n                      } else {\n                        var vial = vial_check_value;\n                      }\n                      var mix_name = medicine;\n\n                      // form selected html code\n                      formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                      for (var i = 0; i < val.form.length; i++) {\n                        var form_name = val.form[i].form_name;\n                        var group_id = val.form[i].group_id;\n                        var form_code = val.form[i].form_code;\n                        if (form_code == f_code) {\n                          formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        } else {\n                          formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        }\n                      }\n                      formselect += '</select>';\n                      // instruction selected html code\n                      instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                      for (var i = 0; i < instruction_array.length; i++) {\n                        //var instruc_id = instruction_array[i].id;\n                        var instruc_name = instruction_array[i].instruction_name.trim();\n                        if (instruction_name != '' && instruction_name == instruc_name) {\n                          instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        } else {\n                          instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        }\n                      }\n                      instructionselect += '</select>';\n                      if (instruction_name != '') {\n                        edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                      }\n                      instructionselect += edit_instructionselect;\n                      if (val.mtype == 'mix') {\n                        var title = 'Mix medicine';\n                      } else {\n                        var title = 'On the fly mix medicine';\n                      }\n                      /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                      if (fact < 1) {\n                        var Zerofactor = 'zerofactor';\n                        $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                      } else {\n                        var Zerofactor = '';\n                      }\n                      var j = 0;\n                      if (val.mix.length > 0) {\n                        subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                        for (var i = 0; i < val.mix.length; i++) {\n                          j++;\n                          var mix_potency = val.mix[i].potencyname;\n                          var mix_medicine = val.mix[i].mixMedicineName;\n                          var mix_medicine_id = val.mix[i].medId;\n                          var mix_potency_id = val.mix[i].pId;\n                          var mix_dilution = val.mix[i].dilution;\n                          subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                          subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                          subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                          subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                          subhtml += '</tr>';\n                        }\n                        subhtml += '</table>';\n                        html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                        html += '<td colspan=\"3\">' + subhtml + '</td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      } else {\n                        html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                        html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                        html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      }\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      _this.checkEnableCheckbox();\n                      /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                      /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                    });\n                  }\n                }\n              });\n            }\n          }\n          $('#results' + cnt).html('').show().removeClass('searchresult'); //Used to hide the suggstion box\n          // clear form select dropdown list\n          $(document).on('change', '#prescribeform-' + cnt, function () {\n            $('.slectform-' + cnt).removeClass('has-error');\n          });\n        }\n      });\n\n      /*This script is used for search medicine data on keyup event July 20 2019 Shubh Tiwari */\n      $(function () {\n        // Returns a function, that, as long as it continues to be invoked, will not\n        // be triggered. The function will be called after it stops being called for\n        // N milliseconds. If `immediate` is passed, trigger the function on the\n        // leading edge, instead of the trailing.\n        function debounce(func, wait, immediate) {\n          var timeout;\n          return function () {\n            var context = this,\n              args = arguments;\n            var later = function () {\n              timeout = null;\n              if (!immediate) func.apply(context, args);\n            };\n            var callNow = immediate && !timeout;\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n            if (callNow) func.apply(context, args);\n          };\n        }\n        ;\n\n        // keep track latest AJAX call's timestamp\n        var latestAjaxCallDateTime;\n        var ajaxSearch = debounce(function (searchkey, input_id) {\n          if (searchkey === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('prescribe-medicine-search-result');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            // Minimum three character serach, Shubh Tiwari, 16 Nov 2022\n            if (searchkey.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'billing/prescribemedicinesearch',\n                data: {\n                  query: searchkey\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                }\n              }).done(function (data) {\n                // console.log(searchkey + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  // console.log('returned');\n                  return;\n                }\n                $('[id^=\"results\"]').empty();\n                // $('#results'+input_id[1]).empty();\n                $('#results' + input_id[1]).html(data).show().addClass('prescribe-medicine-search-result');\n                var top = $('#results' + input_id[1]).find('ul.medicine-list').position().top;\n                var top = top + 150;\n                //console.log(top);\n                var mix_lenght = $('#prescriptionmedicine > tbody.tbody > tr').find('.mixname_change').length;\n                var single_lenght = $('#prescriptionmedicine > tbody.tbody > tr').length;\n                if (top > 475) {\n                  var p = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').text();\n                  p = $.trim(p);\n                  //console.log(p);\n                  if (p == 'No medicine found' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('b');\n                  } else if (p != '' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '189px');\n                    //console.log('a');\n                  }\n                  // else if (p != '' && mix_lenght == 0 && single_lenght > 8) {\n                  //   $('#results' + input_id[1])\n                  //     .find('ul.medicine-list')\n                  //     .css('bottom', '311px');\n                  //   console.log('d1');\n                  // }\n                  else if (p == 'No medicine found' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('c');\n                  } else if (p != '' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('top', top - 334);\n                    //var pp = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').position.top;\n                    //console.log('d-top=' + top);\n                    //console.log('last-dropdoewn='+pp);\n                  }\n                  //console.log(p);\n                }\n              });\n            }\n          }\n        }, 250); //wait 250ms to ensure user has stopped typing.\n\n        $(document).on('keyup', '.prescribeinput', function (e) {\n          if (e.which == 37 || e.which == 38 || e.which == 39 || e.which == 40) {\n            return false;\n          }\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          //console.log(input_id[2]);\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 10 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          stopAjaxSearch = false; //Nishant 6-mar-2023: re-enable search on keyup.\n          //Nishant 26-Feb-2023: call this function when user has stopped typing instead of doing on every keystroke.\n          ajaxSearch(val, input_id);\n          e.preventDefault();\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          return false;\n        });\n        $(document).on('focusout', '.cw-search-box', function (event) {\n          if (!$(event.target).is('#medicine_name-1')) {\n            //console.log(\"click first medicnie\");\n          } else {\n            $('[id^=\"results\"]').html('');\n          }\n        });\n\n        /*This script is used for Check or Uncheck All checkboxes July 25 2019 Shubh Tiwari */\n        $(document).on('change', '#checkAll', function (event) {\n          var checked = $(this).is(':checked');\n          if (checked) {\n            $('.geometry').each(function () {\n              $(this).prop('checked', true);\n            });\n          } else {\n            $('.geometry').each(function () {\n              $(this).prop('checked', false);\n            });\n          }\n        });\n        /*This script is used for Changing state of checkAll checkbox July 25 2019 Shubh Tiwari */\n        $(document).on('click', '.geometry', function (event) {\n          if ($('.geometry').length == $('.geometry:checked').length) {\n            $('#checkAll').prop('checked', true);\n          } else {\n            $('#checkAll').prop('checked', false);\n          }\n        });\n\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.cw-Medicine', function (event) {\n          $('#prescribe_medmix_name').val('');\n          //This below code is used for prevent the user to mix a medicine with mix, Rahul khan, 12 Sept 2019\n          var medicineMixCheck = [];\n          var medicineSingleCheck = [];\n          var formFind = [];\n          var medicineEmpty = [];\n          var mixMedicineDupli = [];\n          var formArray = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var checkBoxId = $(this).attr('id');\n            var RowidNum = checkBoxId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + RowidNum).val();\n            var medicineName = $('#medicine_name-' + RowidNum).val();\n            var medicineDataValue = $('#medicine_name-' + RowidNum).attr('data-medicine');\n            var medicineData = $('.cw-search-box').find(\"input[data-medicine*='\" + medicineDataValue + \"']\");\n            var med_form = $('#prescribeform-' + RowidNum).val();\n            var from_text = $('#prescribeform-' + RowidNum).find(\"option[value = '\" + med_form + \"']\").text();\n            formArray.push(from_text);\n            if (medicineData.length > 1) {\n              var dupliMedicine = $(medicineData).attr('id');\n              var dupliMedicineId = dupliMedicine.replace('medicine_name-', '');\n              var checkedLenght = $('input#checkboxid-' + dupliMedicineId + ':checked').length;\n              if (checkedLenght > 0) {\n                mixMedicineDupli.push(dupliMedicineId);\n              }\n            }\n            if (medicineName == '') {\n              medicineEmpty.push(RowidNum);\n            } else if (medicineType != 'single') {\n              medicineMixCheck.push(checkBoxId);\n            } else {\n              medicineSingleCheck.push(RowidNum);\n            }\n          });\n          var duplicate_form = formArray.every((val, i, arr) => val === arr[0]);\n          //console.log(duplicate_form);\n          var firstMedicineId = medicineSingleCheck[0];\n          $('#prescribeform-' + firstMedicineId + ' option').each(function () {\n            var formText = $(this).text();\n            medicineSingleCheck.forEach(function (id) {\n              if (id != firstMedicineId) {\n                var form = $('#prescribeform-' + id).find(\"option[value*='-\" + formText + \"-']\");\n                var formCode = form.text();\n                var indexvalue = formFind.indexOf(formCode);\n                //console.log(form.length);\n                if (form.length > 0) {\n                  // console.log(formCode);\n                  if (indexvalue == -1) {\n                    // console.log(\"Tet\");\n                    formFind.push(formCode);\n                    //console.log(formFind);\n                  }\n                } else {\n                  if (formCode != '') {\n                    formFind.splice(formFind.indexOf(formCode), 1);\n                  }\n                }\n              }\n            });\n          });\n          // return false;\n\n          // return false;\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (medicineEmpty.length > 0) {\n            swal({\n              text: 'Please select medicine for all rows, which you want to mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (mixMedicineDupli.length > 1) {\n            swal({\n              text: 'You cannot add same medicine into mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (formFind.length == 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (medicineMixCheck.length > 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix. Kindly unmix first and then select all medicines to add to the mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (duplicate_form == false) {\n            swal({\n              text: 'These medicines cannot be mixed as forms do not match.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to mix these medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, mix it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                _this.mixMedicineRow();\n                $('.geometry').prop('checked', false);\n                $('#checkAll').prop('checked', false);\n              }\n            });\n          }\n        });\n\n        /*This script is used for Expand and Collaps view history and prescribe table both July 20 2019 Shubh Tiwari */\n        $('#btn2').click(function () {\n          $('#cw-details-table').toggleClass('cwtable-expand');\n          $('#ce-History-Import').toggleClass('cwtable-collaps');\n        });\n\n        /*This script is used for Check at least one mix checkbox July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.undo-delete-row', function (event) {\n          var checked = $('#cwPrescribeForm tbody td input:checked').length > 0;\n          var singleMedicine = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var rowId = $(this).attr('id');\n            var rowidNum = rowId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + rowidNum).val();\n            if (medicineType == 'single') {\n              singleMedicine.push(rowidNum);\n            }\n          });\n          if (singleMedicine.length > 0) {\n            swal({\n              text: 'Please select only mix medicine to unmix.',\n              icon: 'info',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            event.preventDefault();\n            swal({\n              text: 'Please check at least one mix checkbox to unmix medicine',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            swal({\n              title: 'Are you sure you want to unmix medicine?',\n              icon: 'warning',\n              buttons: true,\n              dangerMode: true\n            }).then(willDelete => {\n              if (willDelete) {\n                var uniqueserialnumberArray = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).closest('tr').attr('data-order');\n                }).get();\n                //console.log(uniqueserialnumberArray);\n                var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                //console.log(arrays);\n                arrays.forEach(function (index) {\n                  var table1 = $('#mixtale-' + index);\n                  $(table1).find('tr:gt(0)').each(function () {\n                    //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase()\n                    //var serial_no = max_count;\n                    var cnt = $(this).data('mixrowid');\n                    //console.log(cnt);\n                    var table_row_id = $(this).data('ontheflyrow');\n                    var serial_no = table_row_id;\n                    //console.log(table_row_id);\n                    var medicine = $('.medicine_name-' + cnt).val();\n                    var max = _this.rowMaxSerialNo();\n                    var next_serial_no = parseInt(max) + 1;\n                    var original_serial_no = $('.medicine_name-' + cnt).attr('data-uniqueserial');\n                    var singleMedicineform = $('.medicine_name-' + cnt).attr('data-singleMedicineform');\n                    var formcode = singleMedicineform.replace(/\\d+/g, '');\n                    var potency = $('.potency-' + cnt).val();\n                    var potency_id = $('#potency_id-' + cnt).val();\n                    var dilution = $('.dilution-' + cnt).val();\n                    var medicine_id = $('#medicine_id-' + cnt).val();\n                    var prescribeform = $('.prescribeform-' + cnt).clone().attr('id', 'prescribeform-' + cnt);\n                    //console.log(prescribeform);\n                    var instruction = $('.instructionItem').clone().attr('id', 'instruction-' + cnt);\n                    var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + cnt).find('option:selected').val();\n                    //console.log(originalSelects);\n                    var factor = 1;\n                    var html = '';\n                    html += '<tr id=\"id-' + serial_no + '\" class=\"tableRow previousRow\" data-order=\"' + original_serial_no + '\" data-medform=\"' + singleMedicineform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + original_serial_no + '\" data-uniqueserial=\"' + original_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + serial_no + '\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-type=\"single\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" /> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\" id=\"medicine_type-' + serial_no + '\" value=\"single\"/> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"/><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td> <input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" value=\"' + potency + '\" type=\"text\" readonly=\"readonly\" /> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td> <input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" value=\"' + dilution + '\" type=\"text\" readonly=\"readonly\"/></td>';\n                    /**************This below function is used for getting the all form for perticular medicine******************/\n                    $.ajax({\n                      type: 'POST',\n                      url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                      data: {\n                        potency: potency_id,\n                        medicine: medicine_id\n                      },\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (response) {\n                        $('#prescribeform-' + serial_no).empty();\n                        response.forEach(function (form) {\n                          if (form.fcode == formcode) {\n                            var selected = 'selected';\n                          } else {\n                            var selected = '';\n                          }\n                          $('#prescribeform-' + serial_no).append('<option  ' + selected + ' value=\"' + form.gId + '-' + form.fcode + '-' + form.fname + '\">' + form.fcode + '</option>');\n                        });\n                      }\n                    });\n                    /***********End********************/\n                    //This below code line is Responsible for Medicine form listing\n                    // html += '<td> <select name=\"formItem['+serial_no+']\" class=\"form-control formItem\" id=\"prescribeform-'+serial_no+'\">'+prescribeform[0].innerHTML+'</select></td>';\n                    html += '<td> <select name=\"formItem[' + serial_no + ']\" class=\"form-control formItem\" id=\"prescribeform-' + serial_no + '\"><option value=\"10-G-Globule\">G</select></td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td> <input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevialItem\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td><select name=\"instructionItem[' + serial_no + ']\" class=\"form-control cwareinstruction-' + serial_no + ' iother-' + serial_no + ' instructionItem\" id=\"instruction-' + serial_no + '\">' + instruction[0].innerHTML + '</select><input  id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n                    var p = $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + table_row_id).after(html);\n                    if (p.length == 0) {\n                      var max = _this.rowMaxSerialNo();\n                      var next_serial_no = parseInt(max) + 1;\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      $('#srno-' + serial_no).val(next_serial_no);\n                      $('#id-' + serial_no).attr('data-order', next_serial_no);\n                      $('#srno-' + serial_no).attr('value', next_serial_no);\n                      $('#srno-' + serial_no).attr('data-uniqueserial', next_serial_no);\n                    }\n                    _this.checkEnableCheckbox();\n                    // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n                    $('.editOption-' + serial_no).show();\n                    $('.editOption-' + serial_no).attr('placeholder', 'Select Instruction');\n                  });\n                  $('.cw-mix-medicine-' + index).remove();\n                  $('#checkAll').prop('checked', false);\n                });\n              } else {\n                $('#checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        });\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.combo-prescription', function (event) {\n          $('#prescribe_dosage_instruction').val('');\n          $('#selecteddosage').empty();\n          $('.otherOption').hide();\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n              return $(this).val();\n            }).get();\n            _this.controllerFor('billing').send('getCheckedVaue', arrays);\n            $('#cwComboInstruction').modal('show');\n            $('#prescribe_dosage_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit 17 July 2025 Shubh Tiwari */\n        // Create a mapping object for correcting instructions\n        const instructionMapping = {\n          \"1 & 2 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"1, 2 and 3 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"1, 2, 3 & 4 alternately every 1.5 hours\": \"alternately every 1.5 hours\",\n          \"1, 2, 3 and 4 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"2 & 3 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"2, 3, 4 alternately every 2 hours\": \"alternately every 2 hours\"\n        };\n        $('#dosage_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          let serialIdArray = [];\n          let serialNumbers = [];\n          let error = '';\n          const dosageVal = $('#prescribe_dosage_instruction option:selected').text().trim();\n          let instructionName = '';\n\n          // Check if 'Other' is selected or if a custom instruction is given\n          if (dosageVal === 'Other' || dosageVal !== 'Select Instruction') {\n            instructionName = $('.otherOption').val().trim();\n          }\n          console.log('instructionName before correction:', instructionName);\n\n          // Replace the incorrect instruction with the correct one based on the mapping\n          if (instructionMapping[instructionName]) {\n            instructionName = instructionMapping[instructionName];\n          }\n          console.log('instructionName after correction:', instructionName);\n          if (!instructionName) {\n            error = '<p>Enter Pharmacy Instruction</p>';\n            $('#prescribe_dosage_instruction').focus();\n          }\n          if (error) {\n            $('#dosageerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#dosageerror .alert').fadeToggle(5000);\n            return; // Exit early on error\n          }\n          $('#cwComboInstruction').modal('hide');\n          $('.geometry, .checkAll').prop('checked', false);\n\n          // Collect serial numbers from the table\n          $('#cwarecombo td.rowvalue').each(function () {\n            const rowId = this.id;\n            const serialNumber = $(this).text().trim();\n            console.log('Row ID:', rowId, 'Serial Number:', serialNumber);\n            serialIdArray.push(rowId);\n            serialNumbers.push(serialNumber);\n          });\n\n          // Format serial numbers as \"1, 2 & 3\"\n          const formattedSerials = formatSerialNumbers([...serialNumbers]);\n          const fullInstruction = formattedSerials + ' ' + instructionName;\n\n          // Update the instruction for each serial ID\n          serialIdArray.forEach(serialId => {\n            const $instructionSelect = $('#instruction-' + serialId);\n            let $editOption = $('.editOption-' + serialId);\n\n            // Clear current selection\n            $instructionSelect.find('option:selected').removeAttr('selected');\n            if ($editOption.length === 0) {\n              const inputHtml = `<input \n                          id=\"edit_instruction-${serialId}\" \n                          name=\"instruction[${serialId}]\" \n                          class=\"editOption-${serialId} inst_other\"\n                          value=\"${fullInstruction}\" \n                          data-toggle=\"tooltip\" \n                          data-placement=\"bottom\" \n                          data-original-title=\"${fullInstruction}\"\n                      >`;\n              $instructionSelect.closest('td').append(inputHtml);\n            } else {\n              $editOption.val(fullInstruction).attr('value', fullInstruction).attr('data-original-title', fullInstruction).show();\n            }\n\n            // Set the select value\n            $instructionSelect.val(fullInstruction).find('option[value=\"' + fullInstruction + '\"]').attr('selected', true);\n          });\n          $('#prescribe_dosage_instruction').val('');\n          $('#other_combo_prescription').val('');\n          $('.other_combo_prescription').hide(100);\n        });\n\n        // Function to format serial numbers as \"1, 2 & 3\"\n        function formatSerialNumbers(serialNumbers) {\n          if (serialNumbers.length === 1) {\n            return serialNumbers[0];\n          }\n          const last = serialNumbers.pop();\n          return serialNumbers.join(', ') + ' & ' + last;\n        }\n\n        /*This script is used for other instruction popup July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.cware_other', function (event) {\n          $('#other_instruction').val('');\n          $('#otherinstructionid').empty();\n          var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n          var dropdown_id = dropdown_parent_id.split('-');\n          var dropdown_option_id = $(this).val();\n          if (dropdown_id != '' && dropdown_option_id == 1) {\n            event.preventDefault();\n            jQuery.noConflict();\n            _this.controllerFor('billing').send('setDropdownId', dropdown_id[1]);\n            $('#OtherInstruction').modal('show');\n            $('#other_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit July 20 2019 Shubh Tiwari */\n        $('#other_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          $('#other_instruction').empty();\n          var error = '';\n          var other_val = $('#other_instruction').val();\n          var insid = $('#otherinstructionid :input').val();\n          var other_value = $('.iother-' + insid + ' ' + 'option:selected').val();\n          if (other_val == '') {\n            error += '<p>Please enter other instruction</p>';\n            $('#other_instruction').focus();\n          }\n          if (error == '') {\n            $('#OtherInstruction').modal('hide');\n            if (other_value == 1) {\n              $('.iother-' + insid).append(\"<option selected=selected value='\" + other_val + \"' >\" + other_val + '</option>');\n            }\n            $('#other_instruction').val('');\n          } else {\n            $('#othererror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#othererror .alert').fadeToggle(8000);\n          }\n        });\n\n        // This below jquery code is used to predefind instruction edit Shubh Tiwari, 16 June 2023\n        $(document).on('keyup', '.otherOption', function (event) {\n          var initialText = $(this).val();\n          $('.otherOption').removeAttr('value');\n          $('.otherOption').val(initialText);\n          $('.otherOption').attr('value', initialText);\n        });\n\n        //This below Jquery code is used to make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list Shubh Tiwari, 10 Sept 2020\n\n        $(document).on('change', '#prescribe_dosage_instruction', function (event) {\n          var intruction_id = $(this).attr('id');\n          var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n          // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n          if (initialText != 'Other') {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val(initialText);\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          } else {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val('');\n            $('.otherOption').attr('placeholder', 'Please enter other value');\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          }\n        });\n\n        // $(document).on('change', '.comboprescription', function (event) {\n        //   var instruction_id = $('#prescribe_dosage_instruction').val();\n        //   if (instruction_id == 1) {\n        //     $(\".other_combo_prescription\").show(100);\n        //   } else {\n        //     $(\".other_combo_prescription\").hide(100);\n        //   }\n        // });\n\n        /*This script is used for medicine edit reason popup form submit Feb 11 2020 Shubh Tiwari */\n        $('#editReasonForm').on('submit', function (event) {\n          var _this = this;\n          event.preventDefault();\n          $('#edit_reason').empty();\n          var error = '';\n          var edit_reason_val = $.trim($('#edit_reason').val());\n          if (edit_reason_val == '') {\n            error += '<p>Please enter edit reason</p>';\n            $('#edit_reason').focus();\n          } else if (edit_reason_val.length < 5) {\n            error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n            $('#edit_reason').focus();\n          }\n          if (error == '') {\n            $('#MedicineEditReasonPopup').modal('hide');\n            $('#medicine_edit_reason').val(edit_reason_val);\n            $('.reasons_show').html('<b>Edit Reason: </b>' + edit_reason_val);\n            $('.apply_reasons_edit').css('display', 'block');\n            $('#edit_reason').val('');\n          } else {\n            $('#edit_reasonerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#edit_reasonerror .alert').fadeToggle(8000);\n          }\n        });\n        /*This script is used for medicine edit reason resset Feb 27 2020 Shubh Tiwari */\n        $('.resset_data').on('click', function (event) {\n          $('#edit_reason').val('');\n        });\n\n        /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.formItem', function (ele) {\n          var error = '';\n          var duplicateMedicineArray = [];\n          var tableRowIdArray = [];\n          var serialnumberArray = [];\n          var dmf_tableRowIdArray = [];\n          var dmf_serialnumberArray = [];\n          var onspot_mix_duplicateMedicineArray = [];\n          $('.formItem').each(function () {\n            var factor_input_id = $(this).attr('id').split('-')[1];\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            if (selectedOptionText != '') {\n              $('#medicinevial-' + factor_input_id).val('');\n              if (selectedOptionText == 'L') {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('#medicinevial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v1 = Math.ceil(fvalue / 4);\n                $('#medicinevial-' + factor_input_id).val(v1);\n              }\n            }\n          });\n          /* This code is used for changing data of table row medForm */\n          var currentRowId = ele.target.id.replace('prescribeform-', '');\n          var currentMedicineId = $('#medicine_id-' + currentRowId).val();\n          var selectedForm = $('#prescribeform-' + currentRowId).val();\n          var selectedOptionText = $('#prescribeform-' + currentRowId + \" option[value^='\" + selectedForm + \"']\").text();\n          var form_unique = parseInt(currentMedicineId, 10) + selectedOptionText;\n          $('#id-' + currentRowId).attr('data-medForm', form_unique);\n\n          /*Start code for checking single medicine dublicate medicine name, potency, dilution and form 24 Dec 2020 Shubh Tiwari*/\n          //This Row id used for getting the row number\n          var currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          // var currentMedicneValue  = $(\"#medicine_name-\"+currenyRowidNum).attr('data-medicine').trim();\n          var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n          var currentMedicineForm = $('#prescribeform-' + currenyRowidNum).val();\n          var currentMedicineFormValue = currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineItem').map(function () {\n            // var medicineName  = $(this).attr('data-medicine').trim();\n            var medicineName = $(this).attr('data-medicine');\n            var medicineRowId = $(this).attr('id');\n            var MedicinwRowNum = medicineRowId.split('-')[1];\n            var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n            var MedicineRowFormValue = MedicineRowForm.split('-')[1];\n            if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n              duplicateMedicineArray.push(currenyRowidNum);\n              duplicateMedicineArray.push(MedicinwRowNum);\n              return MedicinwRowNum;\n            }\n          }).get();\n          var uniqueduplicateMedicineArray = duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortduplicateMedicineArray = uniqueduplicateMedicineArray.sort();\n          sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (duplicateMedicineArray.length > 0) {\n            var formName = _this.getFormName(currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var d_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n          var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n          var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n          var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n          $('.medicineItem').map(function () {\n            var d_medicineName = $(this).attr('data-medicine');\n            var d_medicineRowId = $(this).attr('id');\n            var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n            var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n            if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n              tableRowIdArray.push(d_currentRowidNum);\n              tableRowIdArray.push(d_MedicinwRowNum);\n              serialnumberArray.push(currentMedicineSerial_no);\n              serialnumberArray.push(previousMedicineSerial_no);\n              return d_MedicinwRowNum;\n            }\n          }).get();\n          var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortserialnumber = uniqueserialnumberArray.sort();\n          var sortTableRowIdArray = uniquetableRowIdArray.sort();\n          // console.log(sortserialnumber);\n          // console.log(sortTableRowIdArray);\n          if (sortserialnumber.length > 0) {\n            var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n            //console.log(getminimumserialnumber);\n            for (var i = 0; i < sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = getminimumserialnumber + getChar;\n              $('#srno-' + sortTableRowIdArray[i]).val(p);\n              $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n\n          /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n          var onspot_mix_currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          var onspot_mix_currentMedicneName = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicneValue = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).attr('data-med');\n          var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicineFormValue = onspot_mix_currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineMixItem').map(function () {\n            var onspot_mix_medicineName = $(this).attr('data-med');\n            var onspot_mix_medicineRowId = $(this).attr('id');\n            var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n            var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n            var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n            if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n              return onspot_mix_MedicinwRowNum;\n            }\n          }).get();\n          var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n          onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (onspot_mix_duplicateMedicineArray.length > 0) {\n            var error = '';\n            var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + onspot_mix_currentMedicneName + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('mix_medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var dmf_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n          var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n          $('.medicineMixItem').map(function () {\n            var dmf_medicineName = $(this).attr('data-med');\n            var dmf_medicineRowId = $(this).attr('id');\n            var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n            var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n            if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n              dmf_tableRowIdArray.push(dmf_currentRowidNum);\n              dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n              dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n              dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n              return dmf_MedicinwRowNum;\n            }\n          }).get();\n          var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n          var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n          // console.log(dmf_sortserialnumber);\n          // console.log(dmf_sortTableRowIdArray);\n          if (dmf_sortserialnumber.length > 0) {\n            var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n            //console.log(dmf_getminimumserialnumber);\n            for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = dmf_getminimumserialnumber + getChar;\n              $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n              $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n          /* End code, Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n        });\n\n        //This below code block is added for prevent duplicate Medicine/Mix serial Number, 08 Aug 2019\n        $(document).on('keyup paste', '.srnoItem', function () {\n          $('.srnoItem').each(function () {\n            var value1 = $(this).val();\n            var id1 = $(this).attr('id');\n            var duplicateRow = $('.srnoItem').map(function () {\n              var value2 = $(this).val();\n              var id2 = $(this).attr('id');\n              if (id1 != id2 && value1 == value2) {\n                return value2;\n              }\n            }).get();\n            if (duplicateRow.length > 0) {\n              swal('Duplicate!', 'This medicine/Mix seriel number is occupied by already added Medcine/Mix.', 'error');\n              $('#' + id1).addClass('duplicate_serial');\n            } else {\n              $('#' + id1).removeClass('duplicate_serial');\n            }\n          });\n        });\n        /*End here duplicate Medicine/Mix serial number code */\n        // allow enter only numbers\n        $(document).on('input', '.onlynumeric', function () {\n          this.value = this.value.replace(/\\D/g, '');\n        });\n\n        /*This below script is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019 */\n        $(document).on('keyup keypress change paste', '.factorItem', function () {\n          $('.factorItem').each(function () {\n            var qty = $(this).val();\n            var table_row_id = $(this).parent().parent().attr('id');\n            var factor_id = $(this).attr('id');\n            // replace(/[^\\d.]/g, '');\n            var factor_input_id = $(this).attr('id');\n            var factor_id_code = factor_input_id.split('-')[1];\n            // Change factor value on change, Shubh Tiwari 05 July 2023\n            $('#factor-' + factor_id_code).removeAttr('value');\n            $('#factor-' + factor_id_code).val(qty);\n            $('#factor-' + factor_id_code).attr('value', qty);\n            $('#medicinevial-' + factor_id_code).removeAttr('value');\n            $('#medicinevial-' + factor_id_code).val(qty);\n            $('#medicinevial-' + factor_id_code).attr('value', qty);\n            var selectedForm = $('#prescribeform-' + factor_id_code).val();\n            var selectedOptionText = $('#prescribeform-' + factor_id_code + \" option[value^='\" + selectedForm + \"']\").text();\n            //This below condition is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019\n            if (qty > 1 || qty < 300) {\n              if (selectedOptionText != '') {\n                $('#medicinevial-' + factor_id_code).val('');\n                if (selectedOptionText == 'L') {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v = fvalue / 2;\n                  var b = Math.ceil(v);\n                  $('#medicinevial-' + factor_id_code).val(b);\n                } else {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v1 = Math.ceil(fvalue / 4);\n                  $('#medicinevial-' + factor_id_code).val(v1);\n                }\n              }\n            }\n            if (qty > 300) {\n              swal({\n                text: 'Factor value cannot exceed 300.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + factor_id).val(1);\n              $('#medicinevial-' + factor_id_code).val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $('#' + factor_id).val(0);\n              $('#medicinevial-' + factor_id_code).val(0);\n              var qty = 0;\n              $('#' + table_row_id).addClass('zerofactor');\n              $('#' + table_row_id).attr('title', 'None billing medicine');\n            } else {\n              $('#' + table_row_id).removeClass('zerofactor');\n              $('#' + table_row_id).removeAttr('title');\n            }\n          });\n        });\n        $(document).on('keyup keypress change paste', '.medicinevialItem ', function () {\n          $('.medicinevialItem ').each(function () {\n            var vial = $(this).val();\n            var vaial_id = $(this).attr('id');\n            if (vial > 100) {\n              swal({\n                text: 'Vial value cannot exceed 100.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + vaial_id).val(1);\n              var vial = 1;\n            }\n            if (vial < 1) {\n              $('#' + vaial_id).val(0);\n              var vial = 0;\n            }\n          });\n        });\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          //This below code is used for avoding the double trigger issue\n          if (e.altKey && e.which == 65) {\n            //This condition is used for add New medicine by shortcut Alt+A\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.add-prescription-medicine').trigger('click');\n          } else if (e.altKey && e.which == 68) {\n            //This condition is used for removing the selected medicines by shortcut Alt+D\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.delete-row').trigger('click');\n          } else if (e.altKey && e.which == 77) {\n            //This condition is used for adding the on the fly Mix medicine by shortcut Alt+M\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.cw-Medicine').trigger('click');\n          } else if (e.altKey && e.which == 78) {\n            //This condition is used for unmixing the selected mix by shortcut Alt+N\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.undo-delete-row').trigger('click');\n          } else if (e.altKey && e.which == 67) {\n            //This condition is used for appling combo prescription mix by shortcut Alt+C\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.combo-prescription').trigger('click');\n          } else if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_name-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              //console.log(\"#results\" + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n      $(document).on('keydown', '#precribe_pharmacy_instruction', function (e) {\n        var INPUT_SELECTOR = ':input:enabled:visible';\n        var inputs = $(INPUT_SELECTOR);\n        //UP\n        var i = 0,\n          inp;\n        if (e.keyCode == 38) {\n          inp = inputs[i > 0 ? parseInt(i) - 1 : inputs.length - 1];\n        }\n        //DOWN\n        if (e.keyCode == 40) {\n          inp = inputs[i < inputs.length - 1 ? parseInt(i) + 1 : 0];\n        }\n        moveFocusTo(inp);\n        e.stopImmediatePropagation();\n        return false;\n      });\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    factorCarryForward(factor, vial, table_row) {\n      //console.log(factor);\n      //console.log(vial);\n      //console.log(table_row);\n      if (factor > 0 || vial > 0) {\n        $('#medicinevial-' + table_row).parent().parent().removeClass('zerofactor');\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n      } else if (factor == 0 || vial == 0) {\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n        $('#medicinevial-' + table_row).parent().parent().addClass('zerofactor');\n      } else if (factor == undefined || vial == undefined) {\n        $('#factor-' + table_row).val(1);\n        $('#medicinevial-' + table_row).val(1);\n      }\n    },\n    sortMedicineRow(tableId) {\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n\n        // if the alphabetic part of a is less than that of b => -1\n\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n        // if the alphabetic part of a is greater than that of b => 1\n\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n        // if the alphabetic parts are equal, check the number parts\n\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n\n        // else, just sort using the numbers parts\n\n        return _n;\n      }).appendTo($tbody);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    /**\n     * Sorts an array of objects by column/property.\n     * @param {Array} array - The array of objects.\n     * @param {object} sortObject - The object that contains the sort order keys with directions (asc/desc). e.g. { age: 'desc', name: 'asc' }\n     * @returns {Array} The sorted array.\n     */\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    },\n    nextChar(check_number) {\n      var u = check_number.toUpperCase();\n      //console.log(check_number);\n      if (this.same(u, 'Z')) {\n        var txt = '';\n        var i = u.length;\n        while (i--) {\n          txt += 'A';\n        }\n        return txt + 'A';\n      } else {\n        var p = '';\n        var q = '';\n        if (u.length > 1) {\n          p = u.substring(0, u.length - 1);\n          q = String.fromCharCode(p.slice(-1).charCodeAt(0));\n        }\n        var l = u.slice(-1).charCodeAt(0);\n        var z = this.nextLetter(l);\n        if (z === 'A') {\n          return p.slice(0, -1) + this.nextLetter(q.slice(-1).charCodeAt(0)) + z;\n        } else {\n          return p + z;\n        }\n      }\n    },\n    nextLetter(l) {\n      if (l < 90) {\n        return String.fromCharCode(l + 1);\n      } else {\n        return 'A';\n      }\n    },\n    same(str, char) {\n      var i = str.length;\n      while (i--) {\n        if (str[i] !== char) {\n          return false;\n        }\n      }\n      return true;\n    },\n    checkEnableCheckbox() {\n      var checkedValue = $('#sort-serial').is(':checked');\n      if (checkedValue == true) {\n        $('.srnoItem').attr('readonly', false);\n      } else {\n        $('.srnoItem').attr('readonly', true);\n      }\n    },\n    arrayToText(a) {\n      if (a.length <= 2) {\n        return a.join(' and ');\n      } else {\n        return a.slice(0, -1).join(', ') + ' and ' + a[a.length - 1];\n      }\n    },\n    getSelectedTableRow(formCode, medicine_id, next) {\n      //console.log(formCode);\n      //console.log(formCode[0]['form_code']);\n      var resultObject = this.search('selected', formCode);\n      //console.log(resultObject);\n      if (resultObject == undefined) {\n        var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      } else if (resultObject.selected == 'selected') {\n        var form_unique = parseInt(medicine_id, 10) + resultObject.form_code;\n      }\n      $('#id-' + next).attr('data-medForm', form_unique);\n      // formCode.forEach(function(item){\n      //   if(item.selected=='selected'){\n      //     var form_unique = parseInt(medicine_id, 10) + item.form_code;\n      //   } else{\n      //     var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      //   }\n      //   $(\"#id-\" + next).attr('data-medForm', form_unique);\n      // });\n    },\n    mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray) {\n      var dmf_currentRowidNum = serial_no;\n      var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n      var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n      $('.medicineMixItem').map(function () {\n        var dmf_medicineName = $(this).attr('data-med');\n        var dmf_medicineRowId = $(this).attr('id');\n        var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n        var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n        if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n          dmf_tableRowIdArray.push(dmf_currentRowidNum);\n          dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n          dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n          dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n          return dmf_MedicinwRowNum;\n        }\n      }).get();\n      var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n      var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n      // console.log(dmf_sortserialnumber);\n      // console.log(dmf_sortTableRowIdArray);\n      if (dmf_sortserialnumber.length > 0) {\n        var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n        //console.log(dmf_getminimumserialnumber);\n        for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = dmf_getminimumserialnumber + getChar;\n          $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n          $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray) {\n      var d_currentRowidNum = serial_no;\n      var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n      var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n      var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n      var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n      $('.medicineItem').map(function () {\n        var d_medicineName = $(this).attr('data-medicine');\n        var d_medicineRowId = $(this).attr('id');\n        var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n        var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n        if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n          tableRowIdArray.push(d_currentRowidNum);\n          tableRowIdArray.push(d_MedicinwRowNum);\n          serialnumberArray.push(currentMedicineSerial_no);\n          serialnumberArray.push(previousMedicineSerial_no);\n          return d_MedicinwRowNum;\n        }\n      }).get();\n      var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var sortTableRowIdArray = uniquetableRowIdArray.sort();\n      //console.log(sortserialnumber);\n      //console.log(sortTableRowIdArray);\n      if (sortserialnumber.length > 0) {\n        var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n        //console.log(getminimumserialnumber);\n        for (var i = 0; i < sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = getminimumserialnumber + getChar;\n          $('#srno-' + sortTableRowIdArray[i]).val(p);\n          $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    //New mixMedicineRow script Shubh Tiwari 29 June 2023\n    mixMedicineRow() {\n      var _this = this;\n      var mix_medicine = '';\n      var mix_val = '';\n      var mix_medicine_val = '';\n      var appointment_id = $('input[name=appointment_id]').val();\n      var checkbox_checked_vaue = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return $(this).val();\n      }).get();\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val().trim();\n        var potency = $('.potency-' + checkbox_checked_vaue[i]).val().trim();\n        mix_medicine += medicine + ' ' + potency + ' ' + '+' + ' ';\n      }\n      mix_medicine_val = mix_medicine.trim();\n      mix_val = mix_medicine_val.slice(0, -2);\n      //console.log(checkbox_checked_vaue[0]);\n      var max = _this.rowMaxSerialNo();\n      var next_serial_no = parseInt(max) + 1;\n      var uniqueserialnumberArray = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return parseInt($(this).closest('tr').attr('data-order'));\n      }).get();\n      //console.log(uniqueserialnumberArray);\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n      //console.log(getminimumserialnumber);\n      // Due to this $(':checkbox:checked:first') script value was getting undefined, Written as on 13 April 2022 by Shubh Tiwari\n      //var checked_last_id = $(':checkbox:checked:first');\n      var checked_last_id = $('#prescriptionmedicine td input[type=checkbox]:checked:first').attr('id');\n      var next_sr_no = checked_last_id.split('-');\n      var next = next_sr_no[1];\n      var medform = $('#id-' + next).attr('data-medform');\n      var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n      var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + next).find('option:selected').val();\n      //console.log(originalSelects);\n      var selectedValue = $('#prescribeform-' + next).val();\n      var prescribeform = $('#prescribeform-' + next).clone().attr('id', 'prescribeform-' + next);\n      prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr('selected', 'selected');\n      var selectedFactor = $('#factor-' + next).val();\n      var medicinevial = $('#medicinevial-' + next).val();\n      //This condition is used for checking factor carry forward Shubh Tiwari 07 July 2023\n      if (selectedFactor > 0 || medicinevial > 0) {\n        var zerofactor = '';\n        var factor = selectedFactor;\n      } else if (selectedFactor == 0 || medicinevial == 0) {\n        var factor = selectedFactor;\n        var zerofactor = 'zerofactor';\n      }\n      //var factor = 1;\n      /********This Array is initaised for stroring the combination of medicineId and potency id********/\n      var midicinePotencty = [];\n      var html = '';\n      var subhtml = '';\n      subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\" id=\"medicine_type-' + next + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n      $('#prescriptionmedicine td input[type=checkbox]:checked').each(function (index) {\n        var row = $(this).closest('tr')[0];\n        var tableDataOrder = $(this).closest('tr').attr('data-order');\n        var table_row_id = row.id.replace('id-', '');\n        var singleMedicineform = $('#id-' + table_row_id).attr('data-medform');\n        var medicine = $('#medicine_name-' + table_row_id).val();\n        var medicine_id = $('#medicine_id-' + table_row_id).val();\n        var medicine_type = $('#medicine_type-' + table_row_id).val();\n        var potency = $('#potency-' + table_row_id).val();\n        var dilution = $('#dilution-' + table_row_id).val();\n        var potency_id = $('#potency_id-' + table_row_id).val();\n        /***********This code is used for storing the medicine and potency in same array*************/\n        //  var id = $(this).attr(\"id\");\n        var potency_mix = $('#medicine_name-' + table_row_id).attr('data-poten');\n        var medicine_mix = $('#medicine_name-' + table_row_id).attr('data-med');\n        var value = $('#medicine_name-' + table_row_id).val();\n        var combination = medicine_mix + '_' + potency_mix;\n        if (potency != undefined && medicine != undefined && value != '') {\n          midicinePotencty.push(combination);\n        }\n        $('#medi_potn_combo').val(midicinePotencty);\n        /*********End*************/\n        //$(\"#id-\" + table_row_id).detach();\n        //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\"  data-ontheflyId=\"' + table_row_id + '\" class=\"form-control medicineItem mixname_change medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"' + tableDataOrder + '\" data-singlemedicineform=\"' + singleMedicineform + '\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + next + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + next + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + next + table_row_id + '\" id=\"potency_id-' + next + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n      });\n      $('#medi_potn_combo').val(midicinePotencty);\n      $('#medi_potn_combo').removeClass();\n      $('#medi_potn_combo').addClass('mix_' + next);\n      subhtml += '</table>';\n      html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow ' + zerofactor + '\" data-order=\"' + getminimumserialnumber + '\" data-form=\"' + medform + '\">';\n      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n      html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"' + getminimumserialnumber + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n      //This line is reposnsible for form dropdown\n      html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" >' + prescribeform[0].innerHTML + '</select></td>';\n      html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n\n      //$('#prescriptionmedicine').children('tbody:last').append(html);\n      //$('#prescriptionmedicine > tbody.tbody > tr').eq(getminimumserialnumber).after(html);\n      $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + checkbox_checked_vaue[0]).after(html);\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        $('#id-' + checkbox_checked_vaue[i]).remove();\n      }\n      // comment below this code by Shubh Tiwari 25 March 2021\n      //   $('td input.srnoItem').val(function (i) {\n      //       return i + 1;\n      //    });\n\n      //    $('td input.srnoItem').closest(\"tr\").attr('data-order', function (i){\n      //       return i + 1;\n      //   });\n\n      //   $('td input.srnoItem').attr('value', function (i) {\n      //       return i + 1;\n      //  });\n\n      //   $('td input.srnoItem').attr('data-uniqueserial', function (i) {\n      //       return i + 1;\n      //   });\n      // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n      $('.editOption-' + next).show();\n      $('.editOption-' + next).attr('placeholder', 'Select Instruction');\n      _this.checkEnableCheckbox();\n      /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n      //$(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n    },\n    getFormName(formCode) {\n      var Formname = function (code, name) {\n        this.code = code;\n        this.name = name;\n      };\n      var formArray = [new Formname('G', 'Globule'), new Formname('L', 'Liquid'), new Formname('O', 'Ounce'), new Formname('P', 'Powder')];\n      var utils = {};\n      // Could create a utility function to do this\n      utils.inArray = function (searchFor, property) {\n        var retVal = -1;\n        var self = this;\n        for (var index = 0; index < self.length; index++) {\n          var item = self[index];\n          if (item.hasOwnProperty(property)) {\n            if (item[property].toLowerCase() === searchFor.toLowerCase()) {\n              retVal = index;\n              return retVal;\n            }\n          }\n        }\n        return retVal;\n      };\n\n      // or we could create a function on the Array prototype indirectly\n      Array.prototype.inArray = utils.inArray;\n\n      // let's use the prototype for now\n      var i = formArray.inArray(formCode, 'code');\n      return formArray[i].name;\n    },\n    search(nameKey, myArray) {\n      for (var i = 0; i < myArray.length; i++) {\n        if (myArray[i].selected === nameKey) {\n          return myArray[i];\n        }\n      }\n    },\n    renderTemplate: function () {\n      this.render('billing.pastprescribeedit', {\n        controller: 'billing'\n      });\n    }\n  });\n  function isDoubleClicked(element) {\n    //if already clicked return TRUE to indicate this click is not allowed\n    if (element.attr(\"isclicked\")) return true;\n\n    //mark as clicked for 1 second\n    element.attr(\"isclicked\", true);\n    setTimeout(function () {\n      element.removeAttr(\"isclicked\");\n    }, 1000);\n\n    //return FALSE to indicate this click was allowed\n    return false;\n  }\n});","define(\"clinic-dev/routes/billing/prescribe\", [\"exports\", \"clinic-dev/config/environment\", \"qunit\"], function (_exports, _environment, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\",0,\"@ember/utils\",0,\"qunit\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var para = 'all';\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      var permission = _this.get('session').getPermissionList();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.controllerFor('billing').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      _this.controllerFor('billing').set('page', 'Prescribe Medicines');\n      _this.controllerFor('billing').set('precribe_pharmacy_instruction', '');\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n      // $.ajax({\n      //   type: \"GET\",\n      //   url:ENV.APP.lumen_api_url + \"billing/getpatientdublicatedata\",\n      //   success: function (response) {\n      //     _this.set('instruction', response);\n      //     _this.controllerFor('billing').set('instruction', response);\n      //   }\n      // });\n      $.ajax({\n        type: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (response) {\n          _this.set('instruction', response);\n          _this.controllerFor('billing').set('instruction', response);\n        }\n      });\n      _this.controllerFor('billing').send('getPrescribeDetail');\n      _this.controllerFor('billing').send('getPatientHistory');\n      _this.controllerFor('billing').send('getLastVisitHistory');\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('billing').send('getPBSLocation', param.billing_id, param.id);\n      _this.controllerFor('billing').send('getPrescribeDetail', param.id);\n      _this.controllerFor('billing').send('getPatientHistory', param.patient_id, 'prescription');\n      _this.controllerFor('billing').send('getLastVisitHistory', param.patient_id);\n      _this.controllerFor('billing').send('getPharmacyHistory', param.patient_id, param.id);\n      _this.controllerFor('billing').send('getPatientAddress', param.patient_id, param.id);\n      // var _this = this;\n      // var base_url = ENV.APP.lumen_api_url + \"billing/last_visit/\" + param.patient_id;\n      // if (param.patient_id != undefined) {\n      //   $.ajax({\n      //     url: base_url,\n      //     method: \"GET\",\n      //     async: true,\n      //     success: function (res) {\n      //       if (res.error == true && res.count == 0) {\n      //         _this.set('retain_visit_history', res.count);\n      //       } else {\n      //         _this.set('retain_visit_history', res);\n      //       }\n      //     },\n      //     complete: function (res) {\n      //       //console.log(\"Execution complete\");\n      //     }\n      //   });\n      // }\n    },\n    actions: {\n      // Write below this function to factor zero for Specific medicine or all, Shubh Tiwari 16 June 2023\n      factorZero: function () {\n        var checked_checkbox = $('.geometry:checked').length;\n        if (checked_checkbox == 0) {\n          var error = 'Please select atleast one checkbox first';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 450,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          if ($('.geometry').length == $('.geometry:checked').length) {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for all medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                $('.factorItem').each(function () {\n                  var table_row_id = $(this).parent().parent().attr('id');\n                  var factor_input_id = $(this).attr('id');\n                  var factor_id_code = factor_input_id.split('-')[1];\n                  $('#' + factor_input_id).val(0);\n                  $('#medicinevial-' + factor_id_code).val(0);\n                  $('#' + table_row_id).addClass('zerofactor');\n                  $('#' + table_row_id).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                });\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              }\n            });\n          } else {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for selected medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                var serial_id_array = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                for (var j = 0; j < serial_id_array.length; j++) {\n                  $('#factor-' + serial_id_array[j]).val(0);\n                  $('#medicinevial-' + serial_id_array[j]).val(0);\n                  $('#id-' + serial_id_array[j]).addClass('zerofactor');\n                  $('#id-' + serial_id_array[j]).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                }\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              }\n            });\n          }\n        }\n      },\n      /*This script is used for add more prescribe medicine July 24 2019 Shubh Tiwari */\n      addPrescriptionMedicine: function () {\n        var _this = this;\n        var max_no = '';\n        //var max_count = Date.now().toString().substr(6);\n        var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var cnt = max_count;\n        /* This condition is used for auto arrange serial no of prescribe medicine, Shubh Tiwari , 04 Jun 2021 */\n        var max = _this.rowMaxSerialNo();\n        // Checking NA serial number, 18 Nov 2022 Shubh Tiwari\n        if (max == Number.POSITIVE_INFINITY || max == Number.NEGATIVE_INFINITY) {\n          max_no = 0;\n        } else {\n          max_no = max;\n        }\n        //Copy previous row factor and vial value ,Shubh Tiwari 05 July 2023\n        // var factor_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(6).find('.factorItem').val();\n        // var vial_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(7).find('.medicinevialItem').val();\n        // if (factor_value < 1) {\n        //   var factor_class = 'zerofactor';\n        //   $('#factor-' + cnt).removeAttr('value');\n        //   $('#factor-' + cnt).val(factor_value);\n        //   $('#factor-' + cnt).attr('value', factor_value);\n        //   $('#medicinevial-' + cnt).removeAttr('value');\n        //   $('#medicinevial-' + cnt).val(vial_value);\n        //   $('#medicinevial-' + cnt).attr('value', vial_value);\n        // } else {\n        //   var factor_class = '';\n        // }\n        var serial_no = parseInt(max_no) + 1;\n        var instructionselect = '';\n        var instruction_array = _this.get('instruction');\n        instructionselect += '<select name=\"instructionItem[' + cnt + ']\" class=\"form-control instructionItem cwareinstruction-' + cnt + ' iother-' + cnt + '\" id=\"instruction-' + cnt + '\">';\n        instructionselect += '<option value=\"\">Select Instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          //var instruc_id = instruction_array[i].id;\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          instructionselect += '<option class=\"editable-' + cnt + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        instructionselect += '</select>';\n        instructionselect += '<input id=\"edit_instruction-' + cnt + '\" name=\"instruction[' + cnt + ']\" class=\"editOption-' + cnt + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n        var html = '';\n        html += '<tr id=\"id-' + cnt + '\" class=\"tableRow previousRow\" data-order=\"' + serial_no + '\" >';\n        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + cnt + '\" class=\"geometry\" data-id=\"' + cnt + '\" name=\"check\" value=\"' + cnt + '\"/></td>';\n        html += '<td><input readonly name=\"srnoItem[' + cnt + ']\" class=\"form-control srno-' + cnt + ' srnoItem\" id=\"srno-' + cnt + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\" /></td>';\n        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + cnt + ']\" class=\"form-control prescribeinput dosage-' + cnt + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + cnt + '\" medicine_status=\"notset\" type=\"text\" placeholder=\"Type min 3 char to search\"/><input name=\"medicine_type[' + cnt + ']\" id=\"medicine_type-' + cnt + '\" type=\"hidden\"/> <input type=\"hidden\" name=\"medicine_id[' + cnt + ']\"  id=\"medicine_id-' + cnt + '\"><p id=\"results' + cnt + '\"></p></td>';\n        html += '<td> <input readonly name=\"potencyItem[' + cnt + ']\" class=\"form-control potency-' + cnt + ' potencyItem\" id=\"potency-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[' + cnt + ']\"  id=\"potency_id-' + cnt + '\"></td>';\n        html += '<td> <input readonly name=\"dilutionItem[' + cnt + ']\" class=\"form-control dilution-' + cnt + ' dilutionItem\" id=\"dilution-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[' + cnt + ']\"  id=\"dilution_id-' + cnt + '\"></td>';\n        html += '<td> <select name=\"formItem[' + cnt + ']\" class=\"form-control slectform-' + cnt + ' formItem prescribeform-' + cnt + '\" id=\"prescribeform-' + cnt + '\"><option value=\"\">Select Form</option></select></td>';\n        html += '<td> <input name=\"factorItem[' + cnt + ']\" class=\"form-control factor-' + cnt + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td> <input name=\"medicineVial[' + cnt + ']\" class=\"form-control medicinevial-' + cnt + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td>' + instructionselect + '</td></tr>';\n        $('#prescriptionmedicine').append(html);\n        //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari , 09 July 2019\n        $('#prescriptionmedicine').addClass('singletemplate');\n        _this.checkEnableCheckbox();\n        //This below line of code is used for setting the focus on newly added Medicine Row's Medicine name column, shubh tiwari 27 Aug 2019\n        $('#medicine_name-' + cnt).focus();\n      },\n      sortMedicine: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: 'Do you want to sort medicines by serial number?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, sort it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var tableId = 'prescriptionmedicine tbody.tbody';\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            return _this.sortMedicineRow(tableId);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      /*This function is used for reset serial number of medicine when click on Reset serial number Shubh Tiwari 04 Jan 2021 */\n      ResetSerialNo: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: \"Do you want to reset medicine serial numbers. All Medicines will be re-assigned new serial number starting from top. Medicine order won't be rearranged.\",\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, reset it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var medicineSerialNo = [];\n            $('#prescriptionmedicine > tbody > tr').each(function () {\n              var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n              var dataOrder = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('data-order');\n              var tableRowId = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('id');\n              var jsObjectRefno = {};\n              jsObjectRefno['serialNo'] = parseInt(serialNo.replace(/[^0-9]/g, ''));\n              jsObjectRefno['dataOrder'] = parseInt(dataOrder.replace(/[^0-9]/g, ''));\n              jsObjectRefno['tableRowId'] = tableRowId;\n              medicineSerialNo.push(jsObjectRefno);\n            });\n            _this.duplicateValueCount(medicineSerialNo);\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      ClearPrescription: function () {\n        Swal.fire({\n          text: 'This will remove all prescribed medicines. Are you sure you want to do this?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, clear it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var table_row = '';\n            var instructionselect = '';\n            $('.tbody').empty();\n            $('#importvisitid').val('');\n            $('textarea#precribe_pharmacy_instruction').val('');\n            $('span.clearpresription_code').remove();\n            var instruction_array = _this.get('instruction');\n            // instruction selected html code\n            instructionselect += '<select name=\"instructionItem[1]\" class=\"form-control instructionItem cwareinstruction-1 iother-1\" id=\"instruction-1\">';\n            instructionselect += '<option value=\"\">Select Instruction</option>';\n            for (var i = 0; i < instruction_array.length; i++) {\n              //var instruc_id = instruction_array[i].id;\n              var instruc_name = instruction_array[i].instruction_name.trim();\n              instructionselect += '<option class=\"editable-1\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n            }\n            instructionselect += '</select>';\n            instructionselect += '<input id=\"edit_instruction-1\" name=\"instruction[1]\" class=\"editOption-1 inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n            table_row += '<tr id=\"id-1\" class=\"tableRow previousRow clear_prescription\" data-order=\"1\">';\n            table_row += '<td><input type=\"checkbox\" id=\"checkboxid-1\" class=\"geometry checkItem\" data-id=\"1\" name=\"check\" value=\"1\"/></td>';\n            table_row += '<td><input class=\"form-control srno-1 srnoItem\" id=\"srno-1\" name=\"srnoItem[1]\" type=\"text\" value=\"1\" data-uniqueserial=\"2\" minlength=\"1\" maxlength=\"4\"/></td>';\n            table_row += '<td class=\"cw-search-box\"><input name=\"medicineItem[1]\" class=\"form-control prescribeinput dosage-1 medicineItem\" id=\"medicine_name-1\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\"/> <input type=\"hidden\" name=\"medicine_type[1]\"  id=\"medicine_type-1\"> <input type=\"hidden\" name=\"medicine_id[1]\" id=\"medicine_id-1\"> <p id=\"results1\"></p></td>';\n            table_row += '<td> <input readonly name=\"potencyItem[1]\" class=\"form-control potency-1 potencyItem\" id=\"potency-1\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[1]\" id=\"potency_id-1\"></td>';\n            table_row += '<td> <input readonly name=\"dilutionItem[1]\" class=\"form-control dilution-1 dilutionItem\" id=\"dilution-1\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[1]\" id=\"dilution_id-1\"></td>';\n            table_row += '<td><select name=\"formItem[1]\"  class=\"form-control slectform-1 formItem\" id=\"prescribeform-1\"><option value=\"\">Select Form</option></select></td>';\n            table_row += '<td> <input name=\"factorItem[1]\" class=\"form-control factor-1 factorItem onlynumeric\" type=\"text\" id=\"factor-1\" value=\"1\"/></td>';\n            table_row += '<td> <input name=\"medicineVial[1]\" class=\"form-control medicinevial-1 medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-1\" value=\"1\"/></td>';\n            table_row += '<td>' + instructionselect + '</td>';\n            table_row += '</tr>';\n            $('#prescriptionmedicine').children('tbody:first').append(table_row);\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      }\n    },\n    afterModel: function () {\n      var _this = this;\n      let utoken = this.session.getToken();\n      /* Below this event used for Enable/disable medicine serial number on click checkbox of Sort Medicine by Serial Number when saving 31 Dec 2020*/\n      $(document).on('click', '.sort-serial', function () {\n        var checkedValue = $('#sort-serial').is(':checked');\n        if (checkedValue == true) {\n          $('.srnoItem').attr('readonly', false);\n        } else {\n          $('.srnoItem').attr('readonly', true);\n        }\n        //console.log(checkedValue);\n      });\n\n      /* Below this event used for change onthefly/mix name 03 Feb 2021 */\n      $(document).on('change paste', '.medicineMixItem', function () {\n        var inputVal = $(this).val().trim();\n        //console.log(inputVal);\n        if (inputVal != '') {\n          var currentRowId = $(this).attr('id');\n          $('#' + currentRowId).attr('value', inputVal);\n          var mix_name = $('#' + currentRowId).val().trim();\n          var mix_id = currentRowId.split('-')[1];\n          //console.log(mix_id);\n          $('#' + currentRowId).attr('name', 'medicineItem[' + mix_id + '][' + inputVal + ']');\n          $('#srno-' + mix_id).attr('name', 'srnoItem[' + mix_id + '][' + inputVal + ']');\n          var mix_type = $('#medicine_type-' + mix_id).val();\n          $('#medicine_id-' + mix_id).attr('name', 'medicine_id[' + mix_id + '][' + inputVal + '][' + mix_type + ']');\n          $('.mixname_change').each(function () {\n            var currentMixRowId = $(this).attr('data-ontheflyId');\n            //console.log(currentMixRowId);\n            $('#medicine_name-' + mix_id + currentMixRowId).attr('name', 'medicineItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#medicine_id-' + mix_id + currentMixRowId).attr('name', 'medicine_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency-' + mix_id + currentMixRowId).attr('name', 'potencyItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency_id-' + mix_id + currentMixRowId).attr('name', 'potency_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#dilution-' + mix_id + currentMixRowId).attr('name', 'dilutionItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n          });\n        } else {\n          Swal.fire({\n            icon: 'warning',\n            html: '<b class=\"pop-message-class\">Please enter mix name. </b>',\n            width: 450,\n            allowOutsideClick: false\n          });\n        }\n      });\n      /* Below this event used for only allow numeric alphabate serial number of medicine 31 Dec 2020 */\n      $(document).on('change paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n            $(this).closest('tr').attr('data-order', inputVal.toUpperCase());\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).attr('value', inputVal.toUpperCase());\n            //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n            $('#' + currentRowId).attr('data-uniqueserial', inputVal.toUpperCase());\n            //$(\"#\"+currentRowId).attr('id', 'id-'+max_count).trigger('change');\n\n            //var MedcineRowNum = currentRowId.split('-')[1];\n            //$(this).closest(\"tr\").attr('id', MedcineRowNum);\n          }\n        }\n      });\n      $(document).on('change', '[id^=\"instruction-\"]', function () {\n        var intruction_id = $(this).attr('id');\n        var MedcineRowNum = intruction_id.split('-')[1];\n        var initialText = $('#instruction-' + MedcineRowNum + ' option:selected').text().trim();\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 25 March 2021\n        if (initialText != 'Other') {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).val(initialText);\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', initialText);\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        } else {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).val('');\n          $('.editOption-' + MedcineRowNum).attr('placeholder', 'Please enter other value');\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', '');\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        }\n      });\n      /*This script is used for remove selected table row July 24 2019 Shubh Tiwari */\n      $(document).on('click', '.delete-row', function (event) {\n        var lengthOfUnchecked = $('#prescriptionmedicine tbody td input:checkbox:not(:checked)').length;\n        var checkNum = $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').length;\n        // console.log(checkNum);\n        if (checkNum == 0) {\n          swal({\n            text: 'Please select at-least one row to remove.',\n            icon: 'info',\n            buttons: 'Ok'\n          });\n        } else if (lengthOfUnchecked > 0) {\n          swal({\n            title: 'Are you sure you want to remove selected medicines?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').each(function () {\n                /* Remove duplicate class from mix medicine row shubh tiwari 07 jan 2021*/\n                var p = $(this).closest('tr').attr('data-mixid');\n                $(\"[data-mixid^='\" + p + \"']\").map(function () {\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#' + idNum).removeClass('duplicate');\n                });\n                /* Remove duplicate class from single medicine row shubh tiwari 07 jan 2021*/\n                var serialNo = $(this).closest('tr').attr('data-medform');\n                var tableRow = $('.tableRow').filter(function () {\n                  return $(this).data('medform') == serialNo; // where value == product id to find\n                });\n                tableRow.removeClass('duplicate');\n                $(this).closest('tr').remove();\n              });\n            } else {\n              $('.checkAll').prop('checked', false);\n              $('.geometry').prop('checked', false);\n            }\n          });\n        } else {\n          $('#prescriptionmedicine input[type=\"checkbox\"]').prop('checked', false);\n          $('.checkAll').prop('checked', false);\n          swal({\n            text: \"Sorry!! You can't remove all the rows!\",\n            icon: 'warning',\n            buttons: 'Ok'\n          });\n        }\n      });\n      /*This script is used for checked and unchecked visit history July 20 2019 Shubh Tiwari */\n      $(document).on('click', 'li :checkbox', function (event) {\n        var $chk = $(this),\n          $li = $chk.closest('li'),\n          $ul,\n          $parent;\n        if ($li.has('table-data ul')) {\n          $li.find(':checkbox').not(this).prop('checked', this.checked);\n        }\n        do {\n          $ul = $li.parent();\n          $parent = $ul.siblings(':checkbox');\n          if ($chk.is(':checked')) {\n            $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0);\n          } else {\n            $parent.prop('checked', false);\n          }\n          $chk = $parent;\n          $li = $chk.closest('li');\n        } while ($ul.is(':not(.someclass)'));\n      });\n      /*This script is used for unchecked visit history on click clear button July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.cleartable', function (event) {\n        var appointment = [];\n        var table_row = '';\n        var instructionselect = '';\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n        });\n      });\n      $(document).on('click', '.parent_history', function (event) {\n        var appointment = [];\n        var billing = [];\n        var medicine = [];\n        var casetakenappointment = [];\n        var casetaken = [];\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n          billing.push($(this).data('billing'));\n          medicine.push($(this).data('medicineid'));\n        });\n        $.each($(\"input[name='casetaken_history']:checked\"), function () {\n          casetakenappointment.push($(this).data('casetakenappointment'));\n          casetaken.push($(this).data('casetakenid'));\n        });\n        if (appointment.length > 0 && casetakenappointment.length > 0) {\n          //Both Medicine and Case taking import\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id1 = $('input[type=hidden][name=appointment_id]').val();\n          var base_url1 = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines.' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            }\n          })();\n        } else if (appointment.length > 0) {\n          //Only medicine import, no case taking\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines.' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            } else {\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n            }\n            //no case taking import in this case.\n          })();\n        } else if (casetakenappointment.length > 0) {\n          //Only Case taking import\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n          var base_url = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          Swal.fire({\n            icon: 'warning',\n            html: 'Are you sure you want import case history?',\n            width: 650,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            confirmButtonText: 'Ok',\n            allowOutsideClick: false\n          }).then(result => {\n            if (result.isConfirmed) {\n              //console.log(casetakenId);\n              let utoken = this.session.getToken();\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  casetakenappointmentId: casetakenappointmentId,\n                  casetakenId: casetakenId,\n                  appointment_id: appointment_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (case_response) {\n                  if (case_response.error == false && case_response.actions == 'imported') {\n                    $('html, body').animate({\n                      scrollTop: $('#casetakenmessage').position().top\n                    }, 1000);\n                    $('#casetakenmessage').html('<div class=\"alert alert-success\">' + case_response.message + '</div>');\n                    $('#casetakenmessage .alert').fadeToggle(10000);\n                    _this.controllerFor('icpattend').send('getCaseTakenList', case_response.appointment_id);\n                    $('li :checkbox').prop('checked', false);\n                    $('.cleartable li :checkbox').prop('checked', false);\n                    $('.clearcheckbox').prop('checked', false);\n                    $('.cleartable').prop('checked', false);\n                  }\n                }\n              });\n            } else if (result.isDenied) {\n              $('#visithistoryPopup').modal('hide');\n              $('#loading').removeClass('in');\n              $('li :checkbox').prop('checked', false);\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n              $('.cleartable li :checkbox').prop('checked', false);\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }\n          });\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please select visit history', 'visitmessage');\n          //$('#visitmessage').html('<div class=\"alert alert-danger\"> Please select visit history </div>');\n          //$('#visitmessage .alert').fadeToggle(10000);\n        }\n      });\n      var stopAjaxSearch = false;\n      /*This script is used for set medicine search data on click July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.formdata', function (event) {\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 6-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        var potency_name = $(this).data('potencyname');\n        var dilution = $(this).data('dilution');\n        var item = item.trim();\n        var medicinename = item.split(',')[0]; //This below line of code  is used for getting the only medicine name, Rahul Khan, 16 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-medicine', item); //This line is used for adding new attribute with value as medicine name in suggestion box, Rahul Khan, 16 aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n        //$(this).closest(\".cw-search-box\").find('medicine_type').val(medicine_type);\n\n        //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 10 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n        var clickedid = $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('id');\n        // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n        if (clickedid !== undefined) {\n          var targetid = clickedid.split('-');\n          var cnt = targetid[1];\n          var next = targetid[1];\n          //console.log(max);\n          //This below code is used for getting the first added medicine form to coping for all added medicine default, Rahul Khan , 27 Aug 2019\n          var firstRowMedicineForm = $('#prescriptionmedicine').find(\"tr[id^='id-']:first\").attr('id');\n          var MedcineRowNum = firstRowMedicineForm.split('-')[1];\n          var selectedForm = $('#prescribeform-' + MedcineRowNum).val();\n          var selectedOptionText = $('#prescribeform-' + MedcineRowNum + \" option[value^='\" + selectedForm + \"']\").text();\n          if (medicine_type == 'single') {\n            var selectedFactor = $('#factor-' + MedcineRowNum).val();\n            var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n            //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n            _this.factorCarryForward(selectedFactor, medicinevial, cnt);\n            $('.potency-' + cnt).val(potency_name);\n            $('.potency-' + cnt).attr('readonly', true); //This line of code is used for setting the potency box disabled, Rahul Khan, 16 Aug 2019\n            $('#potency_id-' + cnt).val(potency_id);\n            $('#medicine_id-' + cnt).val(medicine_id);\n            $('.dilution-' + cnt).val(dilution);\n            $('.dilution-' + cnt).attr('readonly', true); //This line of code is used for setting the dilution box disabled, Rahul Khan, 16 Aug 2019\n            $('#medicine_type-' + cnt).val(medicine_type);\n            //ajax call for get form list\n            var singleformArray = [];\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/formlist',\n              data: {\n                potency: potency_id,\n                medicine: medicine_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('.slectform-' + cnt).empty();\n                //$('.slectform-' + cnt).focus().addClass('has-error');\n                //$('.slectform-' + cnt).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  //var id = response[i]['fId'];\n                  var name = response[i]['fName'];\n                  var fcode = response[i]['fcode'];\n                  var gId = response[i]['gId'];\n                  var serial_no = $('#srno-' + cnt).val();\n                  var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                  var selectedObject = {};\n                  if (selectedOptionText == fcode) {\n                    var selected = 'selected';\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = selectedOptionText;\n                    singleformArray.push(selectedObject);\n                  } else {\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = fcode;\n                    singleformArray.push(selectedObject);\n                  }\n                  $('.slectform-' + cnt).append(\"<option value='\" + gId + '-' + fcode + '-' + name + \"' \" + selected + '>' + fcode + '</option>');\n                  //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari, 09 July 2019\n                  $('#prescriptionmedicine').addClass('singletemplate');\n                }\n                var formCode = _this.multiSort(singleformArray, {\n                  form_code: 'asc'\n                });\n                _this.getSelectedTableRow(formCode, medicine_id, cnt);\n              }\n            });\n            /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n            var error = '';\n            var duplicateMedicineArray = [];\n            //This Row id used for getting the row number\n            var currenyRowidNum = cnt;\n            var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n            //console.log(currenyRowidNum);\n            //console.log(currentMedicneValue);\n            //var currentMedicineForm = $(\"#prescribeform-\" + currenyRowidNum).val();\n            //console.log(currentMedicineForm);\n            var currentMedicineFormValue = selectedOptionText;\n            //console.log(currentMedicineFormValue);\n            var duplicateRow = $('.medicineItem').map(function () {\n              // var medicineName  = $(this).attr('data-medicine').trim();\n              var medicineName = $(this).attr('data-medicine');\n              //console.log(medicineName);\n              var medicineRowId = $(this).attr('id');\n              //console.log(medicineRowId);\n              var MedicinwRowNum = medicineRowId.split('-')[1];\n              var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n              var MedicineRowFormValue = $('#prescribeform-' + MedicinwRowNum + \" option[value^='\" + MedicineRowForm + \"']\").text();\n              //console.log(MedicineRowFormValue);\n              if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n                duplicateMedicineArray.push(currenyRowidNum);\n                duplicateMedicineArray.push(MedicinwRowNum);\n                return MedicinwRowNum;\n              }\n            }).get();\n            duplicateMedicineArray.forEach(function (item) {\n              $('#id-' + item).addClass('duplicate');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              var formName = _this.getFormName(currentMedicineFormValue);\n              //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n              error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n              Swal.fire({\n                icon: 'error',\n                title: 'Oops...',\n                html: error,\n                width: 600,\n                showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              });\n            } else {\n              $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n                //console.log(this.id);\n                var idNum = this.id.replace('medicine_name-', '');\n                $('#id-' + idNum).removeClass('duplicate');\n              });\n            }\n          }\n          if (medicine_type == 'mix') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'mix') {\n              //console.log('mix-a');\n              var common_serial = 1;\n              //ajax call for geting mix medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.5%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      $('#id-' + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  $('#prescriptionmedicine').children('tbody:first').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            } else {\n              //console.log('mix-b');\n              var max = _this.rowMaxSerialNo();\n              var common_serial = parseInt(max, 10);\n              var p = $(this).closest('tr').attr('data-order');\n              //ajax call for geting mix medicine data\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      //$(\"#id-\" + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\"  data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n                  //$('#prescriptionmedicine').append(mix_template);\n                  //$('#prescriptionmedicine > tbody.tbody > tr').eq(common_serial).after(mix_template);\n                  $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + next).after(mix_template);\n                  $('#id-' + next).attr('data-order', p).remove();\n                  $('#id-' + next).attr('data-order', p);\n                  $('#srno-' + next).val(p);\n                  $('#srno-' + next).attr('value', p);\n                  $('#srno-' + next).attr('data-uniqueserial', p);\n                  var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                  var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                  //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                  _this.factorCarryForward(selectedFactor, medicinevial, next);\n                  //var p =  $('#prescriptionmedicine > tbody.tbody > tr').attr('id');\n                  //console.log(p);\n                  //$('#prescriptionmedicine').children('tbody:last').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            }\n            //console.log(first_table_rows);\n          } //This below condition is used for adding the template Medicine/Mix for prescription, Shubh Tiwari\n          if (medicine_type == 'template') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'template') {\n              //console.log(first_table_rows);\n              //console.log(\"Template-a\");\n              //ajax call for geting template medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var instruction_array = _this.get('instruction');\n                  $.each(template_response, function (index, val) {\n                    var html = '';\n                    var subhtml = '';\n                    var formselect = '';\n                    var instructionselect = '';\n                    var edit_instructionselect = '';\n                    //var serial_no = Date.now().toString().substr(6);\n                    var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                    var medicine_type = val.mtype;\n                    var medicine_id = val.medId;\n                    var template_id = val.tempId;\n                    var potency_id = val.pId;\n                    var single_serial_no = val.mserialNo;\n                    var potency = val.potency_name;\n                    var medicine = val.medicine_name;\n                    var dilution = val.dilution_name;\n                    var f_code = val.f_code;\n                    var medform = parseInt(medicine_id) + f_code;\n                    if (val.Iname != '') {\n                      var instruction_name = val.Iname;\n                    } else {\n                      var instruction_name = val.Oname;\n                    }\n                    var factor = 1;\n                    var fact = parseInt(factor);\n                    var vial_value = 1;\n                    var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                    if (vial_check_value == 0) {\n                      var vial = 1;\n                    } else if (vial_check_value == 1) {\n                      var vial = 1;\n                    } else {\n                      var vial = vial_check_value;\n                    }\n                    var mix_name = medicine;\n\n                    // form selected html code\n                    formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                    for (var i = 0; i < val.form.length; i++) {\n                      var form_name = val.form[i].form_name;\n                      var group_id = val.form[i].group_id;\n                      var form_code = val.form[i].form_code;\n                      if (form_code == f_code) {\n                        formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      } else {\n                        formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      }\n                    }\n                    formselect += '</select>';\n                    // instruction selected html code\n                    instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                    for (var i = 0; i < instruction_array.length; i++) {\n                      //var instruc_id = instruction_array[i].id;\n                      var instruc_name = instruction_array[i].instruction_name.trim();\n                      if (instruction_name != '' && instruction_name == instruc_name) {\n                        instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      } else {\n                        instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      }\n                    }\n                    instructionselect += '</select>';\n                    if (instruction_name != '') {\n                      edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                    }\n                    instructionselect += edit_instructionselect;\n                    if (val.mtype == 'mix') {\n                      var title = 'Mix medicine';\n                    } else {\n                      var title = 'On the fly mix medicine';\n                    }\n                    /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                    if (fact < 1) {\n                      var Zerofactor = 'zerofactor';\n                      $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                    } else {\n                      var Zerofactor = '';\n                    }\n                    var j = 0;\n                    if (val.mix.length > 0) {\n                      subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                      for (var i = 0; i < val.mix.length; i++) {\n                        j++;\n                        var mix_potency = val.mix[i].potencyname;\n                        var mix_medicine = val.mix[i].mixMedicineName;\n                        var mix_medicine_id = val.mix[i].medId;\n                        var mix_potency_id = val.mix[i].pId;\n                        var mix_dilution = val.mix[i].dilution;\n                        subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                        subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                        subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                        subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                        subhtml += '</tr>';\n                      }\n                      subhtml += '</table>';\n                      html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td colspan=\"3\">' + subhtml + '</td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    } else {\n                      html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                      html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                      html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    }\n                    $('#prescriptionmedicine').children('tbody:first').append(html);\n                    _this.checkEnableCheckbox();\n                  });\n                }\n              });\n            } else {\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              var duplicateRow = $('.tableRow').map(function () {\n                return $(this).data('medform');\n              }).get();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var error = '';\n                  var existing_medicine = '';\n                  var remaining_medicine = '';\n                  var duplicateMedicineArray = [];\n                  var tableRowIdArray = [];\n                  var serialnumberArray = [];\n                  var remaining_name = [];\n                  var dmf_tableRowIdArray = [];\n                  var dmf_serialnumberArray = [];\n                  var instruction_array = _this.get('instruction');\n\n                  //console.log(duplicateRow);\n                  template_response.forEach(function (value) {\n                    var formData = parseInt(value.medId) + value.f_code;\n                    if (duplicateRow.indexOf(formData) != -1) {\n                      if (value.mtype == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.f_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.f_name;\n                      }\n                      duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(duplicateMedicineArray);\n\n                  if (duplicateMedicineArray.length > 0) {\n                    var max = _this.rowMaxSerialNo();\n                    var j = 0;\n                    for (var i = 0; i < template_response.length; i++) {\n                      var obj_original = template_response[i];\n                      if (obj_original.mtype == 'single') {\n                        var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.f_name;\n                      } else {\n                        var med_name = obj_original.medicine_name + ' with form ' + obj_original.f_name;\n                      }\n                      if (duplicateMedicineArray.indexOf(med_name) !== -1) {\n                        var p = j++;\n                        existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                        //console.log('duplicate-message-a'+med_name);\n                      } else {\n                        remaining_name.push(med_name);\n                        //console.log('duplicate-message-b'+remaining_name);\n                      }\n                    }\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                    error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                    Swal.fire({\n                      icon: 'error',\n                      title: 'Oops...',\n                      html: error,\n                      width: 650,\n                      showCancelButton: true,\n                      confirmButtonColor: '#3085d6',\n                      cancelButtonColor: '#d33',\n                      confirmButtonText: 'Ok',\n                      allowOutsideClick: false\n                    }).then(result => {\n                      if (result.isConfirmed) {\n                        for (var i = 0; i < template_response.length; i++) {\n                          var obj = template_response[i];\n                          var formData = parseInt(obj.medId) + obj.f_code;\n                          if (duplicateRow.indexOf(formData) !== -1) {\n                            template_response.splice(i, 1);\n                            i--;\n                          }\n                        }\n                        $.each(template_response, function (index, val) {\n                          //console.log('b-template');\n                          var increase_number = index + 1;\n                          var html = '';\n                          var subhtml = '';\n                          var formselect = '';\n                          var instructionselect = '';\n                          var edit_instructionselect = '';\n                          var common_serial = parseInt(max, 10) + increase_number;\n                          var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                          var medicine_type = val.mtype;\n                          var medicine_id = val.medId;\n                          var template_id = val.tempId;\n                          var potency_id = val.pId;\n                          var single_serial_no = val.mserialNo;\n                          var potency = val.potency_name;\n                          var medicine = val.medicine_name;\n                          var dilution = val.dilution_name;\n                          var f_code = val.f_code;\n                          var medform = parseInt(medicine_id) + f_code;\n                          if (val.Iname != '') {\n                            var instruction_name = val.Iname;\n                          } else {\n                            var instruction_name = val.Oname;\n                          }\n                          var factor = 1;\n                          var fact = parseInt(factor);\n                          var vial_value = 1;\n                          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                          if (vial_check_value == 0) {\n                            var vial = 1;\n                          } else if (vial_check_value == 1) {\n                            var vial = 1;\n                          } else {\n                            var vial = vial_check_value;\n                          }\n                          var mix_name = medicine;\n\n                          // form selected html code\n                          formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                          for (var i = 0; i < val.form.length; i++) {\n                            var form_name = val.form[i].form_name;\n                            var group_id = val.form[i].group_id;\n                            var form_code = val.form[i].form_code;\n                            if (form_code == f_code) {\n                              formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            } else {\n                              formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            }\n                          }\n                          formselect += '</select>';\n                          // instruction selected html code\n                          instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                          for (var i = 0; i < instruction_array.length; i++) {\n                            //var instruc_id = instruction_array[i].id;\n                            var instruc_name = instruction_array[i].instruction_name.trim();\n                            if (instruction_name != '' && instruction_name == instruc_name) {\n                              instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            } else {\n                              instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            }\n                          }\n                          instructionselect += '</select>';\n                          if (instruction_name != '') {\n                            edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                          }\n                          instructionselect += edit_instructionselect;\n                          if (val.mtype == 'mix') {\n                            var title = 'Mix medicine';\n                          } else {\n                            var title = 'On the fly mix medicine';\n                          }\n                          /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                          if (fact < 1) {\n                            var Zerofactor = 'zerofactor';\n                            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                          } else {\n                            var Zerofactor = '';\n                          }\n                          var j = 0;\n                          if (val.mix.length > 0) {\n                            subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                            for (var i = 0; i < val.mix.length; i++) {\n                              j++;\n                              var mix_potency = val.mix[i].potencyname;\n                              var mix_medicine = val.mix[i].mixMedicineName;\n                              var mix_medicine_id = val.mix[i].medId;\n                              var mix_potency_id = val.mix[i].pId;\n                              var mix_dilution = val.mix[i].dilution;\n                              subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                              subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                              subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                              subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                              subhtml += '</tr>';\n                            }\n                            subhtml += '</table>';\n                            html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                            html += '<td colspan=\"3\">' + subhtml + '</td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          } else {\n                            html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                            html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                            html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          }\n                          //$('#prescriptionmedicine').append(html);\n                          $('#prescriptionmedicine').children('tbody:last').append(html);\n                          _this.checkEnableCheckbox();\n                          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                          var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                          var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                          //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                          _this.factorCarryForward(selectedFactor, medicinevial, serial_no);\n                        });\n                      }\n                    });\n                  } else {\n                    var max = _this.rowMaxSerialNo();\n                    $.each(template_response, function (index, val) {\n                      //console.log('c-template');\n                      var increase_number = index + 1;\n                      var html = '';\n                      var subhtml = '';\n                      var formselect = '';\n                      var instructionselect = '';\n                      var edit_instructionselect = '';\n                      var common_serial = parseInt(max, 10) + increase_number;\n                      var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                      var medicine_type = val.mtype;\n                      var medicine_id = val.medId;\n                      var template_id = val.tempId;\n                      var potency_id = val.pId;\n                      var single_serial_no = val.mserialNo;\n                      var potency = val.potency_name;\n                      var medicine = val.medicine_name;\n                      var dilution = val.dilution_name;\n                      var f_code = val.f_code;\n                      var medform = parseInt(medicine_id) + f_code;\n                      if (val.Iname != '') {\n                        var instruction_name = val.Iname;\n                      } else {\n                        var instruction_name = val.Oname;\n                      }\n                      var factor = 1;\n                      var fact = parseInt(factor);\n                      var vial_value = 1;\n                      var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                      if (vial_check_value == 0) {\n                        var vial = 1;\n                      } else if (vial_check_value == 1) {\n                        var vial = 1;\n                      } else {\n                        var vial = vial_check_value;\n                      }\n                      var mix_name = medicine;\n\n                      // form selected html code\n                      formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                      for (var i = 0; i < val.form.length; i++) {\n                        var form_name = val.form[i].form_name;\n                        var group_id = val.form[i].group_id;\n                        var form_code = val.form[i].form_code;\n                        if (form_code == f_code) {\n                          formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        } else {\n                          formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        }\n                      }\n                      formselect += '</select>';\n                      // instruction selected html code\n                      instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                      for (var i = 0; i < instruction_array.length; i++) {\n                        //var instruc_id = instruction_array[i].id;\n                        var instruc_name = instruction_array[i].instruction_name.trim();\n                        if (instruction_name != '' && instruction_name == instruc_name) {\n                          instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        } else {\n                          instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        }\n                      }\n                      instructionselect += '</select>';\n                      if (instruction_name != '') {\n                        edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                      }\n                      instructionselect += edit_instructionselect;\n                      if (val.mtype == 'mix') {\n                        var title = 'Mix medicine';\n                      } else {\n                        var title = 'On the fly mix medicine';\n                      }\n                      /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                      if (fact < 1) {\n                        var Zerofactor = 'zerofactor';\n                        $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                      } else {\n                        var Zerofactor = '';\n                      }\n                      var j = 0;\n                      if (val.mix.length > 0) {\n                        subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                        for (var i = 0; i < val.mix.length; i++) {\n                          j++;\n                          var mix_potency = val.mix[i].potencyname;\n                          var mix_medicine = val.mix[i].mixMedicineName;\n                          var mix_medicine_id = val.mix[i].medId;\n                          var mix_potency_id = val.mix[i].pId;\n                          var mix_dilution = val.mix[i].dilution;\n                          subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                          subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                          subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                          subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                          subhtml += '</tr>';\n                        }\n                        subhtml += '</table>';\n                        html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                        html += '<td colspan=\"3\">' + subhtml + '</td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      } else {\n                        html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                        html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                        html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      }\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      _this.checkEnableCheckbox();\n                      /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                      /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                    });\n                  }\n                }\n              });\n            }\n          }\n          $('#results' + cnt).html('').show().removeClass('searchresult'); //Used to hide the suggstion box\n          // clear form select dropdown list\n          $(document).on('change', '#prescribeform-' + cnt, function () {\n            $('.slectform-' + cnt).removeClass('has-error');\n          });\n        }\n      });\n\n      /*This script is used for search medicine data on keyup event July 20 2019 Shubh Tiwari */\n      $(function () {\n        // Returns a function, that, as long as it continues to be invoked, will not\n        // be triggered. The function will be called after it stops being called for\n        // N milliseconds. If `immediate` is passed, trigger the function on the\n        // leading edge, instead of the trailing.\n        function debounce(func, wait, immediate) {\n          var timeout;\n          return function () {\n            var context = this,\n              args = arguments;\n            var later = function () {\n              timeout = null;\n              if (!immediate) func.apply(context, args);\n            };\n            var callNow = immediate && !timeout;\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n            if (callNow) func.apply(context, args);\n          };\n        }\n        ;\n\n        // keep track latest AJAX call's timestamp\n        var latestAjaxCallDateTime;\n        var ajaxSearch = debounce(function (searchkey, input_id) {\n          if (searchkey === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('prescribe-medicine-search-result');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            // Minimum three character serach, Shubh Tiwari, 16 Nov 2022\n            if (searchkey.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'billing/prescribemedicinesearch',\n                data: {\n                  query: searchkey\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                }\n              }).done(function (data) {\n                // console.log(searchkey + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  // console.log('returned');\n                  return;\n                }\n                $('[id^=\"results\"]').empty();\n                // $('#results'+input_id[1]).empty();\n                $('#results' + input_id[1]).html(data).show().addClass('prescribe-medicine-search-result');\n                var top = $('#results' + input_id[1]).find('ul.medicine-list').position().top;\n                var top = top + 150;\n                //console.log(top);\n                var mix_lenght = $('#prescriptionmedicine > tbody.tbody > tr').find('.mixname_change').length;\n                var single_lenght = $('#prescriptionmedicine > tbody.tbody > tr').length;\n                if (top > 475) {\n                  var p = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').text();\n                  p = $.trim(p);\n                  //console.log(p);\n                  if (p == 'No medicine found' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('b');\n                  } else if (p != '' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '189px');\n                    //console.log('a');\n                  }\n                  // else if (p != '' && mix_lenght == 0 && single_lenght > 8) {\n                  //   $('#results' + input_id[1])\n                  //     .find('ul.medicine-list')\n                  //     .css('bottom', '311px');\n                  //   console.log('d1');\n                  // }\n                  else if (p == 'No medicine found' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('c');\n                  } else if (p != '' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('top', top - 334);\n                    //var pp = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').position.top;\n                    //console.log('d-top=' + top);\n                    //console.log('last-dropdoewn='+pp);\n                  }\n                  //console.log(p);\n                }\n              });\n            }\n          }\n        }, 250); //wait 250ms to ensure user has stopped typing.\n\n        $(document).on('keyup', '.prescribeinput', function (e) {\n          if (e.which == 37 || e.which == 38 || e.which == 39 || e.which == 40) {\n            return false;\n          }\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          //console.log(input_id[2]);\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 10 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          stopAjaxSearch = false; //Nishant 6-mar-2023: re-enable search on keyup.\n          //Nishant 26-Feb-2023: call this function when user has stopped typing instead of doing on every keystroke.\n          ajaxSearch(val, input_id);\n          e.preventDefault();\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          return false;\n        });\n\n        /*This script is used for Check or Uncheck All checkboxes July 25 2019 Shubh Tiwari */\n        $(document).on('change', '.checkAll', function () {\n          var checked = $(this).is(':checked');\n          $('.geometry').prop('checked', checked);\n          $('.checkAll').prop('checked', checked); // Sync both header and footer checkboxes\n        });\n\n        /*This script is used for Changing state of checkAll checkbox July 25 2019 Shubh Tiwari */\n        $(document).on('click', '.geometry', function () {\n          var allChecked = $('.geometry').length === $('.geometry:checked').length;\n          $('.checkAll').prop('checked', allChecked); // Update both header and footer\n        });\n\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.cw-Medicine', function (event) {\n          $('#prescribe_medmix_name').val('');\n          //This below code is used for prevent the user to mix a medicine with mix, Rahul khan, 12 Sept 2019\n          var medicineMixCheck = [];\n          var medicineSingleCheck = [];\n          var formFind = [];\n          var medicineEmpty = [];\n          var mixMedicineDupli = [];\n          var formArray = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var checkBoxId = $(this).attr('id');\n            var RowidNum = checkBoxId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + RowidNum).val();\n            var medicineName = $('#medicine_name-' + RowidNum).val();\n            var medicineDataValue = $('#medicine_name-' + RowidNum).attr('data-medicine');\n            var medicineData = $('.cw-search-box').find(\"input[data-medicine*='\" + medicineDataValue + \"']\");\n            var med_form = $('#prescribeform-' + RowidNum).val();\n            var from_text = $('#prescribeform-' + RowidNum).find(\"option[value = '\" + med_form + \"']\").text();\n            formArray.push(from_text);\n            if (medicineData.length > 1) {\n              var dupliMedicine = $(medicineData).attr('id');\n              var dupliMedicineId = dupliMedicine.replace('medicine_name-', '');\n              var checkedLenght = $('input#checkboxid-' + dupliMedicineId + ':checked').length;\n              if (checkedLenght > 0) {\n                mixMedicineDupli.push(dupliMedicineId);\n              }\n            }\n            if (medicineName == '') {\n              medicineEmpty.push(RowidNum);\n            } else if (medicineType != 'single') {\n              medicineMixCheck.push(checkBoxId);\n            } else {\n              medicineSingleCheck.push(RowidNum);\n            }\n          });\n          var duplicate_form = formArray.every((val, i, arr) => val === arr[0]);\n          //console.log(duplicate_form);\n          var firstMedicineId = medicineSingleCheck[0];\n          $('#prescribeform-' + firstMedicineId + ' option').each(function () {\n            var formText = $(this).text();\n            medicineSingleCheck.forEach(function (id) {\n              if (id != firstMedicineId) {\n                var form = $('#prescribeform-' + id).find(\"option[value*='-\" + formText + \"-']\");\n                var formCode = form.text();\n                var indexvalue = formFind.indexOf(formCode);\n                //console.log(form.length);\n                if (form.length > 0) {\n                  // console.log(formCode);\n                  if (indexvalue == -1) {\n                    // console.log(\"Tet\");\n                    formFind.push(formCode);\n                    //console.log(formFind);\n                  }\n                } else {\n                  if (formCode != '') {\n                    formFind.splice(formFind.indexOf(formCode), 1);\n                  }\n                }\n              }\n            });\n          });\n          // return false;\n\n          // return false;\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (medicineEmpty.length > 0) {\n            swal({\n              text: 'Please select medicine for all rows, which you want to mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (mixMedicineDupli.length > 1) {\n            swal({\n              text: 'You cannot add same medicine into mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (formFind.length == 0) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            swal({\n              text: 'You cannot add a medicine into a mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (medicineMixCheck.length > 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix. Kindly unmix first and then select all medicines to add to the mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (duplicate_form == false) {\n            swal({\n              text: 'These medicines cannot be mixed as forms do not match.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to mix these medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, mix it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                _this.mixMedicineRow();\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              }\n            });\n          }\n        });\n        // mix medicine popup form submit which used for giving name the On the fly mix.\n        // $('#add_cwMixform').on('submit', function (event) {\n        //   event.preventDefault();\n        //   $('#prescribe_medmix_name').empty();\n        //   var error = '';\n        //   var mix_val = $(\"#prescribe_medmix_name\").val();\n        //   if (mix_val == '') {\n        //     error += \"<p>Enter mix name</p>\";\n        //     $(\"#prescribe_medmix_name\").focus();\n        //   }\n        //   if (error == '') {\n        //     $('#cwMixMedicine').modal('hide');\n        //     var max = _this.rowMaxSerialNo();\n        //     var next_serial_no = parseInt(max)+1;\n        //     var checked_last_id = $(':checkbox:checked:first');\n        //     var next_sr_no = checked_last_id[0]['id'].split('-');\n        //     //Loop through all checked CheckBoxes in GridView\n        //     //var next = parseInt(next_sr_no[1]);\n        //     var next = next_sr_no[1];\n        //     console.log(next);\n        //     var medform = $(\"#id-\" + next).attr('data-medform');\n        //     var ppp = $(\".instructionItem\").clone().attr('id', 'instruction-' + next);\n        //     var originalSelects = $(\".instructionItem\").clone().attr('id', 'instruction-' + next).find('option:selected').val();\n        //     console.log(originalSelects);\n        //     var factor = 1;\n        //     /********This Array is initaised for stroring the combination of medicineId and potency id********/\n        //     var midicinePotencty = [];\n        //     var html = '';\n        //     var subhtml = '';\n        //     subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"40%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\"/></th><th width=\"20%\"></th><th width=\"20%\"></th></tr>';\n        //     $(\"#prescriptionmedicine td input[type=checkbox]:checked\").each(function (index) {\n        //       var row = $(this).closest(\"tr\")[0];\n        //       var tableDataOrder = $(this).closest(\"tr\").attr('data-order');\n        //       var table_row_id = row.id.replace('id-', '');\n        //       var singleMedicineform = $(\"#id-\" + table_row_id).attr('data-medform');\n        //       var medicine = $(\"#medicine_name-\" + table_row_id).val();\n        //       var medicine_id = $(\"#medicine_id-\" + table_row_id).val();\n        //       var medicine_type = $(\"#medicine_type-\" + table_row_id).val();\n        //       var potency = $(\"#potency-\" + table_row_id).val();\n        //       var dilution = $(\"#dilution-\" + table_row_id).val();\n        //       var selectedValue = $(\"#prescribeform-\" + table_row_id).val();\n        //       var prescribeform = $(\"#prescribeform-\" + table_row_id).clone().attr('id', 'prescribeform-' + table_row_id);\n        //       prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr(\"selected\", \"selected\");\n        //       // var medicine_id = $(\"#medicine_id-\"+table_row_id).val();\n        //       var potency_id = $(\"#potency_id-\" + table_row_id).val();\n        //       /***********This code is used for storing the medicine and potency in same array*************/\n        //       //  var id = $(this).attr(\"id\");\n        //       var potency_mix = $(\"#medicine_name-\" + table_row_id).attr('data-poten');\n        //       var medicine_mix = $(\"#medicine_name-\" + table_row_id).attr('data-med');\n        //       var value = $(\"#medicine_name-\" + table_row_id).val();\n        //       var combination = medicine_mix + \"_\" + potency_mix;\n        //       if ((potency != undefined) && (medicine != undefined) && (value != '')) {\n        //         midicinePotencty.push(combination);\n        //       }\n        //       $(\"#medi_potn_combo\").val(midicinePotencty);\n        //       /*********End*************/\n        //       //$(\"#id-\" + table_row_id).detach();\n        //       $(\"#id-\" + table_row_id).detach();\n        //       //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        //       subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control medicineItem medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"'+tableDataOrder+'\" data-singlemedicineform=\"'+singleMedicineform+'\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + table_row_id + '\" id=\"potency_id-' + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n        //     });\n\n        //     $(\"#medi_potn_combo\").val(midicinePotencty);\n        //     $(\"#medi_potn_combo\").removeClass();\n        //     $(\"#medi_potn_combo\").addClass(\"mix_\" + next);\n\n        //     subhtml += '</table>';\n\n        //     html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow\" data-order=\"'+next_serial_no+'\" data-form=\"'+medform+'\">';\n        //     html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n        //     html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"'+next_serial_no+'\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n        //     html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n        //     //This line is reposnsible for form dropdown\n        //     html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" ></select></td>';\n\n        //     html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n        //     html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n\n        //     html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" value=\"'+originalSelects+'\" placeholder=\"Select Instruction\"></td></tr>';\n\n        //     $('#prescriptionmedicine').children('tbody:last').append(html);\n        //     //$('.editOption-'+next).show();\n        //     _this.checkEnableCheckbox();\n        //     //$('#prescriptionmedicine').trigger(\"sortEnd\");\n        //     $('#prescribe_medmix_name').val('');\n        //     /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n        //     $(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n\n        //   }\n        //   else {\n        //     $('#error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n        //     $(\"#error .alert\").fadeToggle(5000);\n        //   }\n        // });\n\n        /*This script is used for Expand and Collaps view history and prescribe table both July 20 2019 Shubh Tiwari */\n        // $('#btn2').click(function () {\n        //   $('#cw-details-table').toggleClass('cwtable-expand');\n        //   $('#ce-History-Import').toggleClass('cwtable-collaps');\n        // });\n        $('.btn2').click(function () {\n          jQuery.noConflict();\n          $('#visithistoryPopup').modal('show');\n        });\n        /*This script is used for Unmix atleast one mix checkbox July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.undo-delete-row', function (event) {\n          var checked = $('#cwPrescribeForm tbody td input:checked').length > 0;\n          var singleMedicine = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var rowId = $(this).attr('id');\n            var rowidNum = rowId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + rowidNum).val();\n            if (medicineType == 'single') {\n              singleMedicine.push(rowidNum);\n            }\n          });\n          if (singleMedicine.length > 0) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            swal({\n              text: 'Please select only mix medicine to unmix.',\n              icon: 'info',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            event.preventDefault();\n            swal({\n              text: 'Please check at least one mix checkbox to unmix medicine',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            swal({\n              title: 'Are you sure you want to unmix medicine?',\n              icon: 'warning',\n              buttons: true,\n              dangerMode: true\n            }).then(willDelete => {\n              if (willDelete) {\n                var uniqueserialnumberArray = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).closest('tr').attr('data-order');\n                }).get();\n                //console.log(uniqueserialnumberArray);\n                var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                //console.log(arrays);\n                arrays.forEach(function (index) {\n                  var table1 = $('#mixtale-' + index);\n                  $(table1).find('tr:gt(0)').each(function () {\n                    //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase()\n                    //var serial_no = max_count;\n                    var cnt = $(this).data('mixrowid');\n                    //console.log(cnt);\n                    var table_row_id = $(this).data('ontheflyrow');\n                    var serial_no = table_row_id;\n                    //console.log(table_row_id);\n                    var medicine = $('.medicine_name-' + cnt).val();\n                    var max = _this.rowMaxSerialNo();\n                    var next_serial_no = parseInt(max) + 1;\n                    var original_serial_no = $('.medicine_name-' + cnt).attr('data-uniqueserial');\n                    var singleMedicineform = $('.medicine_name-' + cnt).attr('data-singleMedicineform');\n                    var formcode = singleMedicineform.replace(/\\d+/g, '');\n                    var potency = $('.potency-' + cnt).val();\n                    var potency_id = $('#potency_id-' + cnt).val();\n                    var dilution = $('.dilution-' + cnt).val();\n                    var medicine_id = $('#medicine_id-' + cnt).val();\n                    var prescribeform = $('.prescribeform-' + cnt).clone().attr('id', 'prescribeform-' + cnt);\n                    //console.log(prescribeform);\n                    var instruction = $('.instructionItem').clone().attr('id', 'instruction-' + cnt);\n                    var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + cnt).find('option:selected').val();\n                    //console.log(originalSelects);\n                    var factor = 1;\n                    var html = '';\n                    html += '<tr id=\"id-' + serial_no + '\" class=\"tableRow previousRow\" data-order=\"' + original_serial_no + '\" data-medform=\"' + singleMedicineform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + original_serial_no + '\" data-uniqueserial=\"' + original_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + serial_no + '\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-type=\"single\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" /> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\" id=\"medicine_type-' + serial_no + '\" value=\"single\"/> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"/><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td> <input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" value=\"' + potency + '\" type=\"text\" readonly=\"readonly\" /> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td> <input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" value=\"' + dilution + '\" type=\"text\" readonly=\"readonly\"/></td>';\n                    /**************This below function is used for getting the all form for perticular medicine******************/\n                    $.ajax({\n                      type: 'POST',\n                      url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                      data: {\n                        potency: potency_id,\n                        medicine: medicine_id\n                      },\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (response) {\n                        $('#prescribeform-' + serial_no).empty();\n                        response.forEach(function (form) {\n                          if (form.fcode == formcode) {\n                            var selected = 'selected';\n                          } else {\n                            var selected = '';\n                          }\n                          $('#prescribeform-' + serial_no).append('<option  ' + selected + ' value=\"' + form.gId + '-' + form.fcode + '-' + form.fname + '\">' + form.fcode + '</option>');\n                        });\n                      }\n                    });\n                    /***********End********************/\n                    //This below code line is Responsible for Medicine form listing\n                    // html += '<td> <select name=\"formItem['+serial_no+']\" class=\"form-control formItem\" id=\"prescribeform-'+serial_no+'\">'+prescribeform[0].innerHTML+'</select></td>';\n                    html += '<td> <select name=\"formItem[' + serial_no + ']\" class=\"form-control formItem\" id=\"prescribeform-' + serial_no + '\"><option value=\"10-G-Globule\">G</select></td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td> <input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevialItem\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td><select name=\"instructionItem[' + serial_no + ']\" class=\"form-control cwareinstruction-' + serial_no + ' iother-' + serial_no + ' instructionItem\" id=\"instruction-' + serial_no + '\">' + instruction[0].innerHTML + '</select><input  id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n                    var p = $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + table_row_id).after(html);\n                    if (p.length == 0) {\n                      var max = _this.rowMaxSerialNo();\n                      var next_serial_no = parseInt(max) + 1;\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      $('#srno-' + serial_no).val(next_serial_no);\n                      $('#id-' + serial_no).attr('data-order', next_serial_no);\n                      $('#srno-' + serial_no).attr('value', next_serial_no);\n                      $('#srno-' + serial_no).attr('data-uniqueserial', next_serial_no);\n                    }\n                    _this.checkEnableCheckbox();\n                    // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n                    $('.editOption-' + serial_no).show();\n                    $('.editOption-' + serial_no).attr('placeholder', 'Select Instruction');\n                  });\n                  $('.cw-mix-medicine-' + index).remove();\n                  $('.checkAll').prop('checked', false);\n                  $('.geometry').prop('checked', false);\n                });\n              } else {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        });\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.combo-prescription', function (event) {\n          $('#prescribe_dosage_instruction').val('');\n          $('#selecteddosage').empty();\n          $('.otherOption').hide();\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n              return $(this).val();\n            }).get();\n            _this.controllerFor('billing').send('getCheckedVaue', arrays);\n            $('#cwComboInstruction').modal('show');\n            $('#prescribe_dosage_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit 17 July 2025 Shubh Tiwari */\n        // Create a mapping object for correcting instructions\n        const instructionMapping = {\n          \"1 & 2 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"1, 2 and 3 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"1, 2, 3 & 4 alternately every 1.5 hours\": \"alternately every 1.5 hours\",\n          \"1, 2, 3 and 4 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"2 & 3 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"2, 3, 4 alternately every 2 hours\": \"alternately every 2 hours\"\n        };\n        $('#dosage_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          let serialIdArray = [];\n          let serialNumbers = [];\n          let error = '';\n          const dosageVal = $('#prescribe_dosage_instruction option:selected').text().trim();\n          let instructionName = '';\n\n          // Check if 'Other' is selected or if a custom instruction is given\n          if (dosageVal === 'Other' || dosageVal !== 'Select Instruction') {\n            instructionName = $('.otherOption').val().trim();\n          }\n          console.log('instructionName before correction:', instructionName);\n\n          // Replace the incorrect instruction with the correct one based on the mapping\n          if (instructionMapping[instructionName]) {\n            instructionName = instructionMapping[instructionName];\n          }\n          console.log('instructionName after correction:', instructionName);\n          if (!instructionName) {\n            error = '<p>Enter Pharmacy Instruction</p>';\n            $('#prescribe_dosage_instruction').focus();\n          }\n          if (error) {\n            $('#dosageerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#dosageerror .alert').fadeToggle(5000);\n            return; // Exit early on error\n          }\n          $('#cwComboInstruction').modal('hide');\n          $('.geometry, .checkAll').prop('checked', false);\n\n          // Collect serial numbers from the table\n          $('#cwarecombo td.rowvalue').each(function () {\n            const rowId = this.id;\n            const serialNumber = $(this).text().trim();\n            console.log('Row ID:', rowId, 'Serial Number:', serialNumber);\n            serialIdArray.push(rowId);\n            serialNumbers.push(serialNumber);\n          });\n\n          // Format serial numbers as \"1, 2 & 3\"\n          const formattedSerials = formatSerialNumbers([...serialNumbers]);\n          const fullInstruction = formattedSerials + ' ' + instructionName;\n\n          // Update the instruction for each serial ID\n          serialIdArray.forEach(serialId => {\n            const $instructionSelect = $('#instruction-' + serialId);\n            let $editOption = $('.editOption-' + serialId);\n\n            // Clear current selection\n            $instructionSelect.find('option:selected').removeAttr('selected');\n            if ($editOption.length === 0) {\n              const inputHtml = `<input \n                            id=\"edit_instruction-${serialId}\" \n                            name=\"instruction[${serialId}]\" \n                            class=\"editOption-${serialId} inst_other\"\n                            value=\"${fullInstruction}\" \n                            data-toggle=\"tooltip\" \n                            data-placement=\"bottom\" \n                            data-original-title=\"${fullInstruction}\"\n                        >`;\n              $instructionSelect.closest('td').append(inputHtml);\n            } else {\n              $editOption.val(fullInstruction).attr('value', fullInstruction).attr('data-original-title', fullInstruction).show();\n            }\n\n            // Set the select value\n            $instructionSelect.val(fullInstruction).find('option[value=\"' + fullInstruction + '\"]').attr('selected', true);\n          });\n          $('#prescribe_dosage_instruction').val('');\n          $('#other_combo_prescription').val('');\n          $('.other_combo_prescription').hide(100);\n        });\n\n        // Function to format serial numbers as \"1, 2 & 3\"\n        function formatSerialNumbers(serialNumbers) {\n          if (serialNumbers.length === 1) {\n            return serialNumbers[0];\n          }\n          const last = serialNumbers.pop();\n          return serialNumbers.join(', ') + ' & ' + last;\n        }\n\n        /*This script is used for other instruction popup July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.cware_other', function (event) {\n          $('#other_instruction').val('');\n          $('#otherinstructionid').empty();\n          var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n          var dropdown_id = dropdown_parent_id.split('-');\n          var dropdown_option_id = $(this).val();\n          if (dropdown_id != '' && dropdown_option_id == 1) {\n            event.preventDefault();\n            jQuery.noConflict();\n            _this.controllerFor('billing').send('setDropdownId', dropdown_id[1]);\n            $('#OtherInstruction').modal('show');\n            $('#other_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit July 20 2019 Shubh Tiwari */\n        $('#other_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          $('#other_instruction').empty();\n          var error = '';\n          var other_val = $('#other_instruction').val();\n          var insid = $('#otherinstructionid :input').val();\n          var other_value = $('.iother-' + insid + ' ' + 'option:selected').val();\n          if (other_val == '') {\n            error += '<p>Please enter other instruction</p>';\n            $('#other_instruction').focus();\n          }\n          if (error == '') {\n            $('#OtherInstruction').modal('hide');\n            if (other_value == 1) {\n              $('.iother-' + insid).append(\"<option selected=selected value='\" + other_val + \"' >\" + other_val + '</option>');\n            }\n            $('#other_instruction').val('');\n          } else {\n            $('#othererror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#othererror .alert').fadeToggle(8000);\n          }\n        });\n\n        // This below jquery code is used to predefind instruction edit Shubh Tiwari, 16 June 2023\n        $(document).on('keyup', '.otherOption', function (event) {\n          var initialText = $(this).val();\n          $('.otherOption').removeAttr('value');\n          $('.otherOption').val(initialText);\n          $('.otherOption').attr('value', initialText);\n        });\n\n        //This below Jquery code is used to make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list Shubh Tiwari, 10 Sept 2020\n\n        $(document).on('change', '#prescribe_dosage_instruction', function (event) {\n          var intruction_id = $(this).attr('id');\n          var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n          // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n          if (initialText != 'Other') {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val(initialText);\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          } else {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val('');\n            $('.otherOption').attr('placeholder', 'Please enter other value');\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          }\n        });\n\n        /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.formItem', function (ele) {\n          var error = '';\n          var duplicateMedicineArray = [];\n          var tableRowIdArray = [];\n          var serialnumberArray = [];\n          var dmf_tableRowIdArray = [];\n          var dmf_serialnumberArray = [];\n          var onspot_mix_duplicateMedicineArray = [];\n          $('.formItem').each(function () {\n            var factor_input_id = $(this).attr('id').split('-')[1];\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            if (selectedOptionText != '') {\n              $('#medicinevial-' + factor_input_id).val('');\n              if (selectedOptionText == 'L') {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('#medicinevial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v1 = Math.ceil(fvalue / 4);\n                $('#medicinevial-' + factor_input_id).val(v1);\n              }\n            }\n          });\n          /* This code is used for changing data of table row medForm */\n          var currentRowId = ele.target.id.replace('prescribeform-', '');\n          var currentMedicineId = $('#medicine_id-' + currentRowId).val();\n          var selectedForm = $('#prescribeform-' + currentRowId).val();\n          var selectedOptionText = $('#prescribeform-' + currentRowId + \" option[value^='\" + selectedForm + \"']\").text();\n          var form_unique = parseInt(currentMedicineId, 10) + selectedOptionText;\n          $('#id-' + currentRowId).attr('data-medForm', form_unique);\n\n          /*Start code for checking single medicine dublicate medicine name, potency, dilution and form 24 Dec 2020 Shubh Tiwari*/\n          //This Row id used for getting the row number\n          var currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          // var currentMedicneValue  = $(\"#medicine_name-\"+currenyRowidNum).attr('data-medicine').trim();\n          var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n          var currentMedicineForm = $('#prescribeform-' + currenyRowidNum).val();\n          var currentMedicineFormValue = currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineItem').map(function () {\n            // var medicineName  = $(this).attr('data-medicine').trim();\n            var medicineName = $(this).attr('data-medicine');\n            var medicineRowId = $(this).attr('id');\n            var MedicinwRowNum = medicineRowId.split('-')[1];\n            var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n            var MedicineRowFormValue = MedicineRowForm.split('-')[1];\n            if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n              duplicateMedicineArray.push(currenyRowidNum);\n              duplicateMedicineArray.push(MedicinwRowNum);\n              return MedicinwRowNum;\n            }\n          }).get();\n          var uniqueduplicateMedicineArray = duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortduplicateMedicineArray = uniqueduplicateMedicineArray.sort();\n          sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (duplicateMedicineArray.length > 0) {\n            var formName = _this.getFormName(currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var d_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n          var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n          var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n          var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n          $('.medicineItem').map(function () {\n            var d_medicineName = $(this).attr('data-medicine');\n            var d_medicineRowId = $(this).attr('id');\n            var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n            var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n            if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n              tableRowIdArray.push(d_currentRowidNum);\n              tableRowIdArray.push(d_MedicinwRowNum);\n              serialnumberArray.push(currentMedicineSerial_no);\n              serialnumberArray.push(previousMedicineSerial_no);\n              return d_MedicinwRowNum;\n            }\n          }).get();\n          var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortserialnumber = uniqueserialnumberArray.sort();\n          var sortTableRowIdArray = uniquetableRowIdArray.sort();\n          // console.log(sortserialnumber);\n          // console.log(sortTableRowIdArray);\n          if (sortserialnumber.length > 0) {\n            var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n            //console.log(getminimumserialnumber);\n            for (var i = 0; i < sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = getminimumserialnumber + getChar;\n              $('#srno-' + sortTableRowIdArray[i]).val(p);\n              $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n\n          /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n          var onspot_mix_currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          var onspot_mix_currentMedicneName = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicneValue = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).attr('data-med');\n          var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicineFormValue = onspot_mix_currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineMixItem').map(function () {\n            var onspot_mix_medicineName = $(this).attr('data-med');\n            var onspot_mix_medicineRowId = $(this).attr('id');\n            var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n            var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n            var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n            if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n              return onspot_mix_MedicinwRowNum;\n            }\n          }).get();\n          var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n          onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (onspot_mix_duplicateMedicineArray.length > 0) {\n            var error = '';\n            var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + onspot_mix_currentMedicneName + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('mix_medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var dmf_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n          var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n          $('.medicineMixItem').map(function () {\n            var dmf_medicineName = $(this).attr('data-med');\n            var dmf_medicineRowId = $(this).attr('id');\n            var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n            var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n            if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n              dmf_tableRowIdArray.push(dmf_currentRowidNum);\n              dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n              dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n              dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n              return dmf_MedicinwRowNum;\n            }\n          }).get();\n          var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n          var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n          // console.log(dmf_sortserialnumber);\n          // console.log(dmf_sortTableRowIdArray);\n          if (dmf_sortserialnumber.length > 0) {\n            var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n            //console.log(dmf_getminimumserialnumber);\n            for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = dmf_getminimumserialnumber + getChar;\n              $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n              $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n          /* End code, Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n        });\n        // allow enter only numbers\n        $(document).on('input', '.onlynumeric', function () {\n          this.value = this.value.replace(/\\D/g, '');\n        });\n\n        //This below code block is added for prevent duplicate Medicine/Mix serial Number, 08 Aug 2019\n        $(document).on('keyup paste', '.srnoItem', function () {\n          $('.srnoItem').each(function () {\n            var value1 = $(this).val();\n            var id1 = $(this).attr('id');\n            var duplicateRow = $('.srnoItem').map(function () {\n              var value2 = $(this).val();\n              var id2 = $(this).attr('id');\n              if (id1 != id2 && value1 == value2) {\n                return value2;\n              }\n            }).get();\n            if (duplicateRow.length > 0) {\n              swal('Duplicate!', 'This medicine/Mix seriel number is occupied by already added Medcine/Mix.', 'error');\n              $('#' + id1).addClass('duplicate_serial');\n            } else {\n              $('#' + id1).removeClass('duplicate_serial');\n            }\n          });\n        });\n        /*This below script is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019 */\n        $(document).on('keyup keypress change paste', '.factorItem', function () {\n          $('.factorItem').each(function () {\n            var qty = $(this).val();\n            var table_row_id = $(this).parent().parent().attr('id');\n            var factor_id = $(this).attr('id');\n            // replace(/[^\\d.]/g, '');\n            var factor_input_id = $(this).attr('id');\n            var factor_id_code = factor_input_id.split('-')[1];\n            // Change factor value on change, Shubh Tiwari 05 July 2023\n            $('#factor-' + factor_id_code).removeAttr('value');\n            $('#factor-' + factor_id_code).val(qty);\n            $('#factor-' + factor_id_code).attr('value', qty);\n            $('#medicinevial-' + factor_id_code).removeAttr('value');\n            $('#medicinevial-' + factor_id_code).val(qty);\n            $('#medicinevial-' + factor_id_code).attr('value', qty);\n            var selectedForm = $('#prescribeform-' + factor_id_code).val();\n            var selectedOptionText = $('#prescribeform-' + factor_id_code + \" option[value^='\" + selectedForm + \"']\").text();\n            //This below condition is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019\n            if (qty > 1 || qty < 300) {\n              if (selectedOptionText != '') {\n                $('#medicinevial-' + factor_id_code).val('');\n                if (selectedOptionText == 'L') {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v = fvalue / 2;\n                  var b = Math.ceil(v);\n                  $('#medicinevial-' + factor_id_code).val(b);\n                } else {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v1 = Math.ceil(fvalue / 4);\n                  $('#medicinevial-' + factor_id_code).val(v1);\n                }\n              }\n            }\n            if (qty > 300) {\n              swal({\n                text: 'Factor value cannot exceed 300.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + factor_id).val(1);\n              $('#medicinevial-' + factor_id_code).val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $('#' + factor_id).val(0);\n              $('#medicinevial-' + factor_id_code).val(0);\n              var qty = 0;\n              $('#' + table_row_id).addClass('zerofactor');\n              $('#' + table_row_id).attr('title', 'None billing medicine');\n            } else {\n              $('#' + table_row_id).removeClass('zerofactor');\n              $('#' + table_row_id).removeAttr('title');\n            }\n          });\n        });\n        $(document).on('keyup keypress change paste', '.medicinevialItem ', function () {\n          $('.medicinevialItem').each(function () {\n            var vial = $(this).val();\n            var vaial_id = $(this).attr('id');\n            if (vial > 100) {\n              swal({\n                text: 'Vial value cannot exceed 100.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + vaial_id).val(1);\n              var vial = 1;\n            }\n            if (vial < 1) {\n              $('#' + vaial_id).val(1);\n              var vial = 0;\n            }\n          });\n        });\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          //This below code is used for avoding the double trigger issue\n          if (e.altKey && e.which == 65) {\n            //This condition is used for add New medicine by shortcut Alt+A\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.add-prescription-medicine').trigger('click');\n          } else if (e.altKey && e.which == 68) {\n            //This condition is used for removing the selected medicines by shortcut Alt+D\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.delete-row').trigger('click');\n          } else if (e.altKey && e.which == 77) {\n            //This condition is used for adding the on the fly Mix medicine by shortcut Alt+M\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.cw-Medicine').trigger('click');\n          } else if (e.altKey && e.which == 78) {\n            //This condition is used for unmixing the selected mix by shortcut Alt+N\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.undo-delete-row').trigger('click');\n          } else if (e.altKey && e.which == 67) {\n            //This condition is used for appling combo prescription mix by shortcut Alt+C\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.combo-prescription').trigger('click');\n          } else if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_name-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              //console.log(\"#results\" + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n      function retainSerialNos(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        var p = $(this).closest('tr').attr('data-order');\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var medicineSerialNo = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            //console.log(history_duplicateRow);\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                var array_elements = _this.multiSort(history_response, {\n                  id: 'desc'\n                });\n                //console.log(array_elements+'shubh');\n                //console.log(array_elements);\n                var max = _this.rowMaxSerialNo();\n                array_elements.forEach(function (val) {\n                  //console.log('a'+val.id);\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var common_serial = val.medicine_serial_no.toUpperCase();\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (vial_check_value == 0) {\n                    var vial = 1;\n                  } else if (vial_check_value == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                    var ontheflymix_id = val.id;\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var ontheflymix_id = val.id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  } else {\n                    var ontheflymix_id = medicine_id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  }\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + ontheflymix_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" data-ontheflyId=\"' + j + '\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  //$('.clear_prescription').remove(); by shubh tiwari as on 16-05-2023\n                  //$('#prescriptionmedicine').prepend(html);\n                  //console.log(html);\n                  //$('#prescriptionmedicine > tbody.tbody > tr:first').before(html);\n                  $(html).prependTo('#prescriptionmedicine > tbody.tbody');\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  _this.checkEnableCheckbox();\n                  $('.importRow').each(function () {\n                    var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n                    medicineSerialNo.push(parseInt(serialNo));\n                  });\n                  //console.log(medicineSerialNo);\n                  //var getminimumserialnumber = Math.max.apply(Math,medicineSerialNo);\n                  //console.log(getminimumserialnumber);\n                  // var imported_distinct_medicine_serial_no_array = medicineSerialNo.filter(function(itm, i, medicineSerialNo) {\n                  //   return i == medicineSerialNo.indexOf(itm);\n                  //  });\n                  var previousTableRowArray = $('.previousRow').map(function () {\n                    return $(this).attr('id');\n                  }).get();\n                  previousTableRowArray.forEach(function (item, index) {\n                    var number = index + 1;\n                    //console.log(common_serial);\n                    //console.log(number);\n                    //console.log(max);\n                    //return parseInt(max, 10)+1;\n                    //var previousSerialNo =parseInt(getminimumserialnumber) + parseInt(number);\n                    //console.log(previousSerialNo);\n                    var rowsId = item.split('-')[1];\n                    // Write below this code for resolved this issue(When we import medicines from a previous visit, and choose to retain old serial numbers, the newly added medicines (on the current visit) are given numbers after the highest number of the imported medicines, even if the numbers are different. For example if I have entered medicine numbers 5 and 6 as new medicines for the current prescription and then import and choose to retain old serial numbers of imported medicines which are 1, 2 and 3 the new medicines already entered are given numbers 4 & 5 instead of just staying with 5 & 6 as entered)\n                    var previousSerialNo = $('#' + item).attr('data-order');\n                    // console.log(imported_distinct_medicine_serial_no_array);\n                    // if (imported_distinct_medicine_serial_no_array.indexOf(previousSerialNo) !== -1) {\n\n                    // }\n                    $('#id-' + rowsId).attr('data-order', previousSerialNo);\n                    $('#srno-' + rowsId).val(previousSerialNo);\n                    $('#srno-' + rowsId).attr('value', previousSerialNo);\n                    $('#srno-' + rowsId).attr('data-uniqueserial', previousSerialNo);\n                  });\n                  //console.log(previousTableRowArray);\n                });\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      function appendMedicine(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            // Serial number start with 1 when click on clear prescriptin button then import prescription with first option(Append these medicines to the end of existing medicines and assign new serial number.) Written by Shubh Tiwari as on 11-05-2023\n            var clear_p_serial_no = $('.clear_prescription').closest('tr').attr('data-order');\n            if (clear_p_serial_no !== undefined && clear_p_serial_no == 1) {\n              var max = 0;\n            } else {\n              var max = _this.rowMaxSerialNo();\n            }\n            //console.log(max);\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              //console.log(result.isDenied);\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                $.each(history_response, function (index, val) {\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var number = index + 1;\n                  var common_serial = parseInt(max, 10) + number;\n                  //var serial_no = Date.now().toString().substr(6);\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (vial_check_value == 0) {\n                    var vial = 1;\n                  } else if (vial_check_value == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  // if (instruction_other != '') {\n                  //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n                  // }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  // if (instruction_other != '') {\n                  //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n                  // }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var common_id = val.id;\n                    var medform = parseInt(common_id) + f_code;\n                  } else {\n                    var common_id = medicine_id;\n                    var medform = parseInt(common_id) + f_code;\n                  }\n\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + common_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  $('.clear_prescription').remove();\n                  $('#prescriptionmedicine').last().append(html);\n                  $('#importvisitid').val(appointment_id);\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  _this.recalculateAmount.allSuccessMessage('Visit history imported successfully!');\n                  //$('#visitmessage').html('<div class=\"alert alert-success\"> Visit history imported successfully! </div>');\n                  //$('#visitmessage .alert').fadeToggle(10000);\n                  _this.checkEnableCheckbox();\n                });\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('.cleartable li :checkbox').prop('checked', false);\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      $(document).on('keydown', '#precribe_pharmacy_instruction', function (e) {\n        var INPUT_SELECTOR = ':input:enabled:visible';\n        var inputs = $(INPUT_SELECTOR);\n        //UP\n        var i = 0,\n          inp;\n        if (e.keyCode == 38) {\n          inp = inputs[i > 0 ? parseInt(i) - 1 : inputs.length - 1];\n        }\n        //DOWN\n        if (e.keyCode == 40) {\n          inp = inputs[i < inputs.length - 1 ? parseInt(i) + 1 : 0];\n        }\n        moveFocusTo(inp);\n        e.stopImmediatePropagation();\n        return false;\n      });\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    factorCarryForward(factor, vial, table_row) {\n      //console.log(factor);\n      //console.log(vial);\n      //console.log(table_row);\n      if (factor > 0 || vial > 0) {\n        $('#medicinevial-' + table_row).parent().parent().removeClass('zerofactor');\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n      } else if (factor == 0 || vial == 0) {\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n        $('#medicinevial-' + table_row).parent().parent().addClass('zerofactor');\n      } else if (factor == undefined || vial == undefined) {\n        $('#factor-' + table_row).val(1);\n        $('#medicinevial-' + table_row).val(1);\n      }\n    },\n    sortMedicineRow(tableId) {\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n\n        // if the alphabetic part of a is less than that of b => -1\n\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n        // if the alphabetic part of a is greater than that of b => 1\n\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n        // if the alphabetic parts are equal, check the number parts\n\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n\n        // else, just sort using the numbers parts\n\n        return _n;\n      }).appendTo($tbody);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    /**\n     * Sorts an array of objects by column/property.\n     * @param {Array} array - The array of objects.\n     * @param {object} sortObject - The object that contains the sort order keys with directions (asc/desc). e.g. { age: 'desc', name: 'asc' }\n     * @returns {Array} The sorted array.\n     */\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    },\n    nextChar(check_number) {\n      var u = check_number.toUpperCase();\n      //console.log(check_number);\n      if (this.same(u, 'Z')) {\n        var txt = '';\n        var i = u.length;\n        while (i--) {\n          txt += 'A';\n        }\n        return txt + 'A';\n      } else {\n        var p = '';\n        var q = '';\n        if (u.length > 1) {\n          p = u.substring(0, u.length - 1);\n          q = String.fromCharCode(p.slice(-1).charCodeAt(0));\n        }\n        var l = u.slice(-1).charCodeAt(0);\n        var z = this.nextLetter(l);\n        if (z === 'A') {\n          return p.slice(0, -1) + this.nextLetter(q.slice(-1).charCodeAt(0)) + z;\n        } else {\n          return p + z;\n        }\n      }\n    },\n    nextLetter(l) {\n      if (l < 90) {\n        return String.fromCharCode(l + 1);\n      } else {\n        return 'A';\n      }\n    },\n    same(str, char) {\n      var i = str.length;\n      while (i--) {\n        if (str[i] !== char) {\n          return false;\n        }\n      }\n      return true;\n    },\n    checkEnableCheckbox() {\n      var checkedValue = $('#sort-serial').is(':checked');\n      if (checkedValue == true) {\n        $('.srnoItem').attr('readonly', false);\n      } else {\n        $('.srnoItem').attr('readonly', true);\n      }\n    },\n    arrayToText(a) {\n      if (a.length <= 2) {\n        return a.join(' and ');\n      } else {\n        return a.slice(0, -1).join(', ') + ' and ' + a[a.length - 1];\n      }\n    },\n    getSelectedTableRow(formCode, medicine_id, next) {\n      //console.log(formCode);\n      //console.log(formCode[0]['form_code']);\n      var resultObject = this.search('selected', formCode);\n      //console.log(resultObject);\n      if (resultObject == undefined) {\n        var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      } else if (resultObject.selected == 'selected') {\n        var form_unique = parseInt(medicine_id, 10) + resultObject.form_code;\n      }\n      $('#id-' + next).attr('data-medForm', form_unique);\n      // formCode.forEach(function(item){\n      //   if(item.selected=='selected'){\n      //     var form_unique = parseInt(medicine_id, 10) + item.form_code;\n      //   } else{\n      //     var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      //   }\n      //   $(\"#id-\" + next).attr('data-medForm', form_unique);\n      // });\n    },\n    mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray) {\n      var dmf_currentRowidNum = serial_no;\n      var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n      var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n      $('.medicineMixItem').map(function () {\n        var dmf_medicineName = $(this).attr('data-med');\n        var dmf_medicineRowId = $(this).attr('id');\n        var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n        var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n        if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n          dmf_tableRowIdArray.push(dmf_currentRowidNum);\n          dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n          dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n          dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n          return dmf_MedicinwRowNum;\n        }\n      }).get();\n      var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n      var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n      // console.log(dmf_sortserialnumber);\n      // console.log(dmf_sortTableRowIdArray);\n      if (dmf_sortserialnumber.length > 0) {\n        var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n        //console.log(dmf_getminimumserialnumber);\n        for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = dmf_getminimumserialnumber + getChar;\n          $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n          $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray) {\n      var d_currentRowidNum = serial_no;\n      var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n      var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n      var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n      var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n      $('.medicineItem').map(function () {\n        var d_medicineName = $(this).attr('data-medicine');\n        var d_medicineRowId = $(this).attr('id');\n        var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n        var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n        if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n          tableRowIdArray.push(d_currentRowidNum);\n          tableRowIdArray.push(d_MedicinwRowNum);\n          serialnumberArray.push(currentMedicineSerial_no);\n          serialnumberArray.push(previousMedicineSerial_no);\n          return d_MedicinwRowNum;\n        }\n      }).get();\n      var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var sortTableRowIdArray = uniquetableRowIdArray.sort();\n      //console.log(sortserialnumber);\n      //console.log(sortTableRowIdArray);\n      if (sortserialnumber.length > 0) {\n        var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n        //console.log(getminimumserialnumber);\n        for (var i = 0; i < sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = getminimumserialnumber + getChar;\n          $('#srno-' + sortTableRowIdArray[i]).val(p);\n          $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    //New mixMedicineRow script Shubh Tiwari 29 June 2023\n    mixMedicineRow() {\n      var _this = this;\n      var mix_medicine = '';\n      var mix_val = '';\n      var mix_medicine_val = '';\n      var appointment_id = $('input[name=appointment_id]').val();\n      var checkbox_checked_vaue = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return $(this).val();\n      }).get();\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val().trim();\n        var potency = $('.potency-' + checkbox_checked_vaue[i]).val().trim();\n        mix_medicine += medicine + ' ' + potency + ' ' + '+' + ' ';\n      }\n      mix_medicine_val = mix_medicine.trim();\n      mix_val = mix_medicine_val.slice(0, -2);\n      //console.log(checkbox_checked_vaue[0]);\n      var max = _this.rowMaxSerialNo();\n      var next_serial_no = parseInt(max) + 1;\n      var uniqueserialnumberArray = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return parseInt($(this).closest('tr').attr('data-order'));\n      }).get();\n      //console.log(uniqueserialnumberArray);\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n      //console.log(getminimumserialnumber);\n      // Due to this $(':checkbox:checked:first') script value was getting undefined, Written as on 13 April 2022 by Shubh Tiwari\n      //var checked_last_id = $(':checkbox:checked:first');\n      var checked_last_id = $('#prescriptionmedicine td input[type=checkbox]:checked:first').attr('id');\n      var next_sr_no = checked_last_id.split('-');\n      var next = next_sr_no[1];\n      var medform = $('#id-' + next).attr('data-medform');\n      var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n      var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + next).find('option:selected').val();\n      //console.log(originalSelects);\n      var selectedValue = $('#prescribeform-' + next).val();\n      var prescribeform = $('#prescribeform-' + next).clone().attr('id', 'prescribeform-' + next);\n      prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr('selected', 'selected');\n      var selectedFactor = $('#factor-' + next).val();\n      var medicinevial = $('#medicinevial-' + next).val();\n      //This condition is used for checking factor carry forward Shubh Tiwari 07 July 2023\n      if (selectedFactor > 0 || medicinevial > 0) {\n        var zerofactor = '';\n        var factor = selectedFactor;\n      } else if (selectedFactor == 0 || medicinevial == 0) {\n        var factor = selectedFactor;\n        var zerofactor = 'zerofactor';\n      }\n      //var factor = 1;\n      /********This Array is initaised for stroring the combination of medicineId and potency id********/\n      var midicinePotencty = [];\n      var html = '';\n      var subhtml = '';\n      subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\" id=\"medicine_type-' + next + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n      $('#prescriptionmedicine td input[type=checkbox]:checked').each(function (index) {\n        var row = $(this).closest('tr')[0];\n        var tableDataOrder = $(this).closest('tr').attr('data-order');\n        var table_row_id = row.id.replace('id-', '');\n        var singleMedicineform = $('#id-' + table_row_id).attr('data-medform');\n        var medicine = $('#medicine_name-' + table_row_id).val();\n        var medicine_id = $('#medicine_id-' + table_row_id).val();\n        var medicine_type = $('#medicine_type-' + table_row_id).val();\n        var potency = $('#potency-' + table_row_id).val();\n        var dilution = $('#dilution-' + table_row_id).val();\n        var potency_id = $('#potency_id-' + table_row_id).val();\n        /***********This code is used for storing the medicine and potency in same array*************/\n        //  var id = $(this).attr(\"id\");\n        var potency_mix = $('#medicine_name-' + table_row_id).attr('data-poten');\n        var medicine_mix = $('#medicine_name-' + table_row_id).attr('data-med');\n        var value = $('#medicine_name-' + table_row_id).val();\n        var combination = medicine_mix + '_' + potency_mix;\n        if (potency != undefined && medicine != undefined && value != '') {\n          midicinePotencty.push(combination);\n        }\n        $('#medi_potn_combo').val(midicinePotencty);\n        /*********End*************/\n        //$(\"#id-\" + table_row_id).detach();\n        //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\"  data-ontheflyId=\"' + table_row_id + '\" class=\"form-control medicineItem mixname_change medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"' + tableDataOrder + '\" data-singlemedicineform=\"' + singleMedicineform + '\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + next + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + next + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + next + table_row_id + '\" id=\"potency_id-' + next + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n      });\n      $('#medi_potn_combo').val(midicinePotencty);\n      $('#medi_potn_combo').removeClass();\n      $('#medi_potn_combo').addClass('mix_' + next);\n      subhtml += '</table>';\n      html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow ' + zerofactor + '\" data-order=\"' + getminimumserialnumber + '\" data-form=\"' + medform + '\">';\n      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n      html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"' + getminimumserialnumber + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n      //This line is reposnsible for form dropdown\n      html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" >' + prescribeform[0].innerHTML + '</select></td>';\n      html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n\n      //$('#prescriptionmedicine').children('tbody:last').append(html);\n      //$('#prescriptionmedicine > tbody.tbody > tr').eq(getminimumserialnumber).after(html);\n      $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + checkbox_checked_vaue[0]).after(html);\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        $('#id-' + checkbox_checked_vaue[i]).remove();\n      }\n      // comment below this code by Shubh Tiwari 25 March 2021\n      //   $('td input.srnoItem').val(function (i) {\n      //       return i + 1;\n      //    });\n\n      //    $('td input.srnoItem').closest(\"tr\").attr('data-order', function (i){\n      //       return i + 1;\n      //   });\n\n      //   $('td input.srnoItem').attr('value', function (i) {\n      //       return i + 1;\n      //  });\n\n      //   $('td input.srnoItem').attr('data-uniqueserial', function (i) {\n      //       return i + 1;\n      //   });\n      // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n      $('.editOption-' + next).show();\n      $('.editOption-' + next).attr('placeholder', 'Select Instruction');\n      _this.checkEnableCheckbox();\n      /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n      //$(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n    },\n    getFormName(formCode) {\n      var Formname = function (code, name) {\n        this.code = code;\n        this.name = name;\n      };\n      var formArray = [new Formname('G', 'Globule'), new Formname('L', 'Liquid'), new Formname('O', 'Ounce'), new Formname('P', 'Powder')];\n      var utils = {};\n      // Could create a utility function to do this\n      utils.inArray = function (searchFor, property) {\n        var retVal = -1;\n        var self = this;\n        for (var index = 0; index < self.length; index++) {\n          var item = self[index];\n          if (item.hasOwnProperty(property)) {\n            if (item[property].toLowerCase() === searchFor.toLowerCase()) {\n              retVal = index;\n              return retVal;\n            }\n          }\n        }\n        return retVal;\n      };\n\n      // or we could create a function on the Array prototype indirectly\n      Array.prototype.inArray = utils.inArray;\n\n      // let's use the prototype for now\n      var i = formArray.inArray(formCode, 'code');\n      return formArray[i].name;\n    },\n    search(nameKey, myArray) {\n      for (var i = 0; i < myArray.length; i++) {\n        if (myArray[i].selected === nameKey) {\n          return myArray[i];\n        }\n      }\n    },\n    renderTemplate: function () {\n      this.render('billing.prescribe', {\n        controller: 'billing'\n      });\n    }\n  });\n  function isDoubleClicked(element) {\n    //if already clicked return TRUE to indicate this click is not allowed\n    if (element.attr(\"isclicked\")) return true;\n\n    //mark as clicked for 1 second\n    element.attr(\"isclicked\", true);\n    setTimeout(function () {\n      element.removeAttr(\"isclicked\");\n    }, 1000);\n\n    //return FALSE to indicate this click was allowed\n    return false;\n  }\n});","define(\"clinic-dev/routes/billing/prescribeedit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel(param) {\n      var para = 'all';\n      var _this = this;\n      var permission = _this.get('session').getPermissionList();\n      _this.controllerFor('billing').set('permission_arr', permission);\n      var utoken = _this.get('session').getToken();\n      _this.controllerFor('billing').send('getPrescribeDetail');\n      _this.controllerFor('billing').send('getPrescribeRecords');\n      //_this.controllerFor('billing').send('getPreviousPatientHistory');\n      _this.controllerFor('billing').send('getVisitStatus');\n      _this.controllerFor('billing').send('getApplyMedicineDiscount');\n      _this.controllerFor('billing').send('getApplyConsultancyWaived');\n      _this.controllerFor('billing').send('getPreviousVisitCharges');\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.controllerFor('billing').send('getLastVisitHistory');\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      _this.controllerFor('billing').set('page', 'Edit Prescribe Medicines');\n      $.ajax({\n        type: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (response) {\n          _this.set('instruction', response);\n          _this.controllerFor('billing').set('instruction', response);\n        }\n      });\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('billing').send('getPBSLocation', param.billing_id, param.appointment_id);\n      //_this.controllerFor('billing').send('getCWPInstruction', param.billing_id);\n      _this.controllerFor('billing').send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPrescribeRecords', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getVisitStatus', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').set('billing_id', param.billing_id);\n      _this.controllerFor('billing').set('appointment_id', param.appointment_id);\n      _this.controllerFor('billing').send('getPrescribeDetail', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPatientHistory', param.patient_id, 'prescription');\n      _this.controllerFor('billing').send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      _this.controllerFor('billing').send('getLastVisitHistory', param.patient_id);\n      _this.controllerFor('billing').send('getPatientAddress', param.patient_id, param.appointment_id);\n      // var base_url = ENV.APP.lumen_api_url + \"billing/last_visit/\" + param.patient_id;\n      // if (param.patient_id != undefined) {\n      //   $.ajax({\n      //     url: base_url,\n      //     method: \"GET\",\n      //     async: true,\n      //     success: function (res) {\n      //       if (res.error == true && res.count == 0) {\n      //         _this.set('retain_visit_history', res.count);\n      //       } else {\n      //         _this.set('retain_visit_history', res);\n      //       }\n      //     },\n      //     complete: function (res) {\n      //       //console.log(\"Execution complete\");\n      //     }\n      //   });\n      // }\n    },\n    actions: {\n      goBack() {\n        history.go(-1);\n      },\n      // Write below this function to factor zero for Specific medicine or all, Shubh Tiwari 16 June 2023\n      factorZero: function () {\n        var checked_checkbox = $('.geometry:checked').length;\n        if (checked_checkbox == 0) {\n          var error = 'Please select atleast one checkbox first';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 450,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          if ($('.geometry').length == $('.geometry:checked').length) {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for all medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                $('.factorItem').each(function () {\n                  var table_row_id = $(this).parent().parent().attr('id');\n                  var factor_input_id = $(this).attr('id');\n                  var factor_id_code = factor_input_id.split('-')[1];\n                  $('#' + factor_input_id).val(0);\n                  $('#medicinevial-' + factor_id_code).val(0);\n                  $('#' + table_row_id).addClass('zerofactor');\n                  $('#' + table_row_id).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                });\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          } else {\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to set factor zero for selected medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, factor zero it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                var serial_id_array = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                for (var j = 0; j < serial_id_array.length; j++) {\n                  $('#factor-' + serial_id_array[j]).val(0);\n                  $('#medicinevial-' + serial_id_array[j]).val(0);\n                  $('#id-' + serial_id_array[j]).addClass('zerofactor');\n                  $('#id-' + serial_id_array[j]).attr('title', 'None billing medicine');\n                  $('.geometry').prop('checked', false);\n                  $('.checkAll').prop('checked', false);\n                }\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        }\n      },\n      reasonEdit: function () {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('#MedicineEditReasonPopup').modal('show');\n        var reason = $('#medicine_edit_reason').val();\n        $('#edit_reason').val(reason);\n      },\n      /*This script is used for add more prescribe medicine July 24 2019 Shubh Tiwari */\n      addPrescriptionMedicine: function () {\n        var _this = this;\n        var max_no = '';\n        //var max_count = Date.now().toString().substr(6);\n        var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n        var cnt = max_count;\n        /* This condition is used for auto arrange serial no of prescribe medicine, Shubh Tiwari , 04 Jun 2021 */\n        var max = _this.rowMaxSerialNo();\n        // Checking NA serial number, 18 Nov 2022 Shubh Tiwari\n        if (max == Number.POSITIVE_INFINITY || max == Number.NEGATIVE_INFINITY) {\n          max_no = 0;\n        } else {\n          max_no = max;\n        }\n        //Copy previous row factor and vial value ,Shubh Tiwari 05 July 2023\n        // var factor_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(6).find('.factorItem').val();\n        // var vial_value = $('#prescriptionmedicine > tbody.tbody > tr:last').find('td').eq(7).find('.medicinevialItem').val();\n        // if (factor_value < 1) {\n        //   var factor_class = 'zerofactor';\n        //   $('#factor-' + cnt).removeAttr('value');\n        //   $('#factor-' + cnt).val(factor_value);\n        //   $('#factor-' + cnt).attr('value', factor_value);\n        //   $('#medicinevial-' + cnt).removeAttr('value');\n        //   $('#medicinevial-' + cnt).val(vial_value);\n        //   $('#medicinevial-' + cnt).attr('value', vial_value);\n        // } else {\n        //   var factor_class = '';\n        // }\n        var serial_no = parseInt(max_no) + 1;\n        var instructionselect = '';\n        var instruction_array = _this.get('instruction');\n        instructionselect += '<select name=\"instructionItem[' + cnt + ']\" class=\"form-control instructionItem cwareinstruction-' + cnt + ' iother-' + cnt + '\" id=\"instruction-' + cnt + '\">';\n        instructionselect += '<option value=\"\">Select Instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          //var instruc_id = instruction_array[i].id;\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          instructionselect += '<option class=\"editable-' + cnt + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        instructionselect += '</select>';\n        instructionselect += '<input id=\"edit_instruction-' + cnt + '\" name=\"instruction[' + cnt + ']\" class=\"editOption-' + cnt + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none;\">';\n        var html = '';\n        html += '<tr id=\"id-' + cnt + '\" class=\"tableRow previousRow\" data-order=\"' + serial_no + '\">';\n        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + cnt + '\" class=\"geometry\" data-id=\"' + cnt + '\" name=\"check\" value=\"' + cnt + '\"/></td>';\n        html += '<td><input readonly name=\"srnoItem[' + cnt + ']\" class=\"form-control srno-' + cnt + ' srnoItem\" id=\"srno-' + cnt + '\" type=\"text\" value=\"' + serial_no + '\" data-uniqueserial=\"' + serial_no + '\" minlength=\"1\" maxlength=\"4\" /></td>';\n        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + cnt + ']\" class=\"form-control prescribeinput dosage-' + cnt + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + cnt + '\" medicine_status=\"notset\" type=\"text\" placeholder=\"Type min 3 char to search\"/><input name=\"medicine_type[' + cnt + ']\" id=\"medicine_type-' + cnt + '\" type=\"hidden\"/> <input type=\"hidden\" name=\"medicine_id[' + cnt + ']\"  id=\"medicine_id-' + cnt + '\"><p id=\"results' + cnt + '\"></p></td>';\n        html += '<td> <input readonly name=\"potencyItem[' + cnt + ']\" class=\"form-control potency-' + cnt + ' potencyItem\" id=\"potency-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"potency_id[' + cnt + ']\"  id=\"potency_id-' + cnt + '\"></td>';\n        html += '<td> <input readonly name=\"dilutionItem[' + cnt + ']\" class=\"form-control dilution-' + cnt + ' dilutionItem\" id=\"dilution-' + cnt + '\" type=\"text\"/> <input type=\"hidden\" name=\"dilution_id[' + cnt + ']\"  id=\"dilution_id-' + cnt + '\"></td>';\n        html += '<td> <select name=\"formItem[' + cnt + ']\" class=\"form-control slectform-' + cnt + ' formItem prescribeform-' + cnt + '\" id=\"prescribeform-' + cnt + '\"><option value=\"\">Select Form</option></select></td>';\n        html += '<td> <input name=\"factorItem[' + cnt + ']\" class=\"form-control factor-' + cnt + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td> <input name=\"medicineVial[' + cnt + ']\" class=\"form-control medicinevial-' + cnt + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + cnt + '\" value=\"1\"/></td>';\n        html += '<td>' + instructionselect + '</td></tr>';\n        $('#prescriptionmedicine').append(html);\n        //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari , 09 July 2019\n        $('#prescriptionmedicine').addClass('singletemplate');\n        _this.checkEnableCheckbox();\n        //This below line of code is used for setting the focus on newly added Medicine Row's Medicine name column, shubh tiwari 27 Aug 2019\n        $('#medicine_name-' + cnt).focus();\n      },\n      sortMedicine: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: 'Do you want to sort medicines by serial number?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, sort it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var tableId = 'prescriptionmedicine tbody.tbody';\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            return _this.sortMedicineRow(tableId);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      /*This function is used for reset serial number of medicine when click on Reset serial number Shubh Tiwari 04 Jan 2021 */\n      ResetSerialNo: function () {\n        Swal.fire({\n          title: 'Are you sure?',\n          text: \"Do you want to reset medicine serial numbers. All Medicines will be re-assigned new serial number starting from top. Medicine order won't be rearranged.\",\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          allowOutsideClick: false,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          confirmButtonText: 'Yes, reset it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            var _this = this;\n            var medicineSerialNo = [];\n            $('#prescriptionmedicine > tbody > tr').each(function () {\n              var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n              var dataOrder = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('data-order');\n              var tableRowId = $(this).find('td').eq(1).find('.srnoItem').closest('tr').attr('id');\n              var jsObjectRefno = {};\n              jsObjectRefno['serialNo'] = parseInt(serialNo.replace(/[^0-9]/g, ''));\n              jsObjectRefno['dataOrder'] = dataOrder.replace(/[^0-9]/g, '');\n              jsObjectRefno['tableRowId'] = tableRowId;\n              medicineSerialNo.push(jsObjectRefno);\n            });\n            _this.duplicateValueCount(medicineSerialNo);\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n          }\n        });\n      },\n      //This function is used for getting the On the fly mix medicine posiibile forms, Rahul; khan 09 sept 2019\n      getForms: function () {\n        var midicinePotencty = [];\n        // var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n        $(\"[id^='medicine_mixture-']\").each(function () {\n          {\n            var id = $(this).attr('id');\n            var potency = $('#' + id).attr('data-poten');\n            var medicine = $('#' + id).attr('data-med');\n            var value = $('#' + id).val();\n            var combination = medicine + '_' + potency;\n            if (potency != undefined && medicine != undefined && value != '') {\n              midicinePotencty.push(combination);\n            }\n          }\n          //return this.val;\n        });\n        var mixture_medicine_values = $(\"input[name='medicine_mixture[]']\").map(function () {\n          return $(this).data('med');\n        }).get();\n        var midicinePotencty = JSON.stringify(midicinePotencty);\n        $.ajax({\n          type: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'mixmedicine/forms',\n          data: {\n            data: midicinePotencty\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (response) {\n            //  $(\"#mixforms\").append(formDiv);\n            $('#mixforms').empty();\n\n            //this.getItems();\n            response.forEach(function (form) {\n              var formDiv = '<div class=\"col-offset-xs-1 col-xs-1\"> <input type=\"checkbox\" class=\"mixform mixform-' + form.form_code + '\" name=\"form\" data-form_code=\"' + form.form_code + '\" value=\"' + form.id + '\"> ' + form.name + ' </div>';\n              $('#mixforms').append(formDiv);\n            });\n            //   _this.set('mixforms', response);\n            //_this.controllerFor('').set('mixforms', response);\n            //  _this.controllerFor('settings.masters.medicines.mix').set('mixforms', \"dd\");\n          }\n        });\n      }\n    },\n    afterModel: function () {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var role_route_permission = _this.get('session').getRoleRouteList();\n      var current_browser_name = _this.get('routeName');\n      //console.log(current_browser_name);\n      var route_access = _this.get('route_permission').canRouteAccess(current_browser_name, role_route_permission);\n      _this.controllerFor('billing').set('route_access', route_access);\n      _this.recalculateAmount.onKeyUpChangeInstructionValue();\n\n      /* Below this event used for Enable/disable medicine serial number on click checkbox of Sort Medicine by Serial Number when saving 31 Dec 2020*/\n      $(document).on('click', '.sort-serial', function () {\n        var checkedValue = $('#sort-serial').is(':checked');\n        if (checkedValue == true) {\n          $('.srnoItem').attr('readonly', false);\n        } else {\n          $('.srnoItem').attr('readonly', true);\n        }\n        //console.log(checkedValue);\n      });\n      /* Below this event used for change onthefly/mix name 03 Feb 2021 */\n      $(document).on('change paste', '.medicineMixItem', function () {\n        var inputVal = $(this).val().trim();\n        //console.log(inputVal);\n        if (inputVal != '') {\n          var currentRowId = $(this).attr('id');\n          $('#' + currentRowId).attr('value', inputVal);\n          var mix_name = $('#' + currentRowId).val().trim();\n          var mix_id = currentRowId.split('-')[1];\n          //console.log(mix_id);\n          $('#' + currentRowId).attr('name', 'medicineItem[' + mix_id + '][' + inputVal + ']');\n          $('#srno-' + mix_id).attr('name', 'srnoItem[' + mix_id + '][' + inputVal + ']');\n          var mix_type = $('#medicine_type-' + mix_id).val();\n          $('#medicine_id-' + mix_id).attr('name', 'medicine_id[' + mix_id + '][' + inputVal + '][' + mix_type + ']');\n          $('.mixname_change').each(function () {\n            var currentMixRowId = $(this).attr('data-ontheflyId');\n            //console.log(currentMixRowId);\n            $('#medicine_name-' + mix_id + currentMixRowId).attr('name', 'medicineItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#medicine_id-' + mix_id + currentMixRowId).attr('name', 'medicine_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency-' + mix_id + currentMixRowId).attr('name', 'potencyItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency_id-' + mix_id + currentMixRowId).attr('name', 'potency_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#dilution-' + mix_id + currentMixRowId).attr('name', 'dilutionItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n          });\n        } else {\n          Swal.fire({\n            icon: 'warning',\n            html: '<b class=\"pop-message-class\">Please enter mix name. </b>',\n            width: 450,\n            allowOutsideClick: false\n          });\n        }\n      });\n      /* Below this event used for only allow numeric alphabate serial number of medicine 31 Dec 2020 */\n      $(document).on('change paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n            $(this).closest('tr').attr('data-order', inputVal.toUpperCase());\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).attr('value', inputVal.toUpperCase());\n            //$(\"#\"+currentRowId).attr('data-uniqueserial',inputVal.toUpperCase());\n            //var MedcineRowNum = currentRowId.split('-')[1];\n            //$(this).closest(\"tr\").attr('id', MedcineRowNum);\n          }\n        }\n      });\n\n      //make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list\n      $(document).on('change', '[id^=\"instruction-\"]', function () {\n        var intruction_id = $(this).attr('id');\n        var MedcineRowNum = intruction_id.split('-')[1];\n        var initialText = $('#instruction-' + MedcineRowNum + ' option:selected').text().trim();\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 25 March 2021\n        if (initialText != 'Other') {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).removeAttr('placeholder');\n          $('#instruction-' + MedcineRowNum).removeClass('has-error');\n          $('.editable-' + MedcineRowNum).removeAttr('selected');\n          $('.editOption-' + MedcineRowNum).val(initialText);\n          $('.editOption-' + MedcineRowNum).attr('value', initialText);\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', initialText);\n          $('#instruction-' + MedcineRowNum).val(initialText).find('option[value=\"' + initialText + '\"]').attr('selected', true);\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        } else {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).val('');\n          $('.editOption-' + MedcineRowNum).attr('placeholder', 'Please enter other value');\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', '');\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        }\n      });\n      /*This script is used for remove selected table row July 24 2019 Shubh Tiwari */\n      $(document).on('click', '.delete-row', function (event) {\n        var lengthOfUnchecked = $('#prescriptionmedicine tbody td input:checkbox:not(:checked)').length;\n        var checkNum = $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').length;\n        // console.log(checkNum);\n        if (checkNum == 0) {\n          swal({\n            text: 'Please select at-least one row to remove.',\n            icon: 'info',\n            buttons: 'Ok'\n          });\n        } else if (lengthOfUnchecked > 0) {\n          swal({\n            title: 'Are you sure you want to remove selected medicines?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').each(function () {\n                /* Remove duplicate class from mix medicine row shubh tiwari 07 jan 2021*/\n                var p = $(this).closest('tr').attr('data-mixid');\n                $(\"[data-mixid^='\" + p + \"']\").map(function () {\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#' + idNum).removeClass('duplicate');\n                });\n                /* Remove duplicate class from single medicine row shubh tiwari 07 jan 2021*/\n                var serialNo = $(this).closest('tr').attr('data-medform');\n                var tableRow = $('.tableRow').filter(function () {\n                  return $(this).data('medform') == serialNo; // where value == product id to find\n                });\n                tableRow.removeClass('duplicate');\n                $(this).closest('tr').remove();\n              });\n            }\n          });\n        } else {\n          $('#prescriptionmedicine tbody td input[type=\"checkbox\"]').prop('checked', false);\n          $('.checkAll').prop('checked', false);\n          swal({\n            text: \"Sorry!! You can't remove all the rows!\",\n            icon: 'warning',\n            buttons: 'Ok'\n          });\n        }\n      });\n      /*This script is used for checked and unchecked visit history July 20 2019 Shubh Tiwari */\n      $(document).on('click', 'li :checkbox', function (event) {\n        var $chk = $(this),\n          $li = $chk.closest('li'),\n          $ul,\n          $parent;\n        if ($li.has('table-data ul')) {\n          $li.find(':checkbox').not(this).prop('checked', this.checked);\n        }\n        do {\n          $ul = $li.parent();\n          $parent = $ul.siblings(':checkbox');\n          if ($chk.is(':checked')) {\n            $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0);\n          } else {\n            $parent.prop('checked', false);\n          }\n          $chk = $parent;\n          $li = $chk.closest('li');\n        } while ($ul.is(':not(.someclass)'));\n      });\n\n      /*This script is used for import previous visit history on click import button march 05 2020 Shubh Tiwari */\n      // $(document).on('click', '.parent_history', function (event) {\n      //   var appointment = [];\n      //   var billing = [];\n      //   var medicine = [];\n      //   $.each($(\"input[name='parent_history']:checked\"), function () {\n      //     appointment.push($(this).data('appointment'));\n      //     billing.push($(this).data('billing'));\n      //     medicine.push($(this).data('medicineid'));\n      //   });\n      //   if (appointment.length > 0) {\n      //     var appointment_id = appointment;\n      //     var med_id = medicine;\n      //     var bill = billing;\n      //     var base_url = ENV.APP.lumen_api_url + 'billing/importhistory';\n      //     // inputOptions can be an object or Promise\n      //     (async () => {\n      //       const inputOptions = new Promise((resolve) => {\n      //         setTimeout(() => {\n      //           resolve({\n      //             1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n      //             2: 'Retain the serial numbers of these medicines. This will reassign new serial numbers to existing medicines.',\n      //           });\n      //         }, 1000);\n      //       });\n      //       const { value: optionValue } = await Swal.fire({\n      //         icon: 'question',\n      //         title: 'Import Visit History',\n      //         input: 'radio',\n      //         inputOptions: inputOptions,\n      //         width: 650,\n      //         allowOutsideClick: false,\n      //         showCancelButton: true,\n      //         cancelButtonColor: '#d33',\n      //         confirmButtonColor: '#3085d6',\n      //         confirmButtonText: 'Yes, import it!',\n      //         cancelButtonText: 'No, cancel!',\n      //         inputValidator: (value) => {\n      //           if (!value) {\n      //             return 'You need to choose something!';\n      //           }\n      //         },\n      //       });\n      //       if (optionValue == 1) {\n      //         $('#loader').show();\n      //         $.ajax({\n      //           url: base_url,\n      //           method: 'POST',\n      //           data: {\n      //             appointment_id: appointment_id,\n      //             med_id: med_id,\n      //             billing_id: bill,\n      //           },\n      //           success: function (history_response) {\n      //             $('#loader').hide();\n      //             var instruction_array = _this.get('instruction');\n      //             var max = _this.rowMaxSerialNo();\n      //             var error = '';\n      //             var remaining_medicine = '';\n      //             var existing_medicine = '';\n      //             var history_duplicateMedicineArray = [];\n      //             var remaining_name = [];\n      //             var history_duplicateRow = $('.medicineItem,.medicineMixItem')\n      //               .map(function () {\n      //                 return $(this).data('med');\n      //               })\n      //               .get();\n\n      //             history_response.forEach(function (value) {\n      //               if (value.midicine_type == 'ontheflymix') {\n      //                 var duplicate_id = value.id;\n      //               } else {\n      //                 var duplicate_id = value.medicine_id;\n      //               }\n      //               if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n      //                 if (value.midicine_type == 'single') {\n      //                   var med_name =\n      //                     value.medicine_name +\n      //                     ' ' +\n      //                     value.potency_name +\n      //                     ' ' +\n      //                     value.dilution_name +\n      //                     ' with form ' +\n      //                     value.form_name;\n      //                 } else {\n      //                   var med_name =\n      //                     value.medicine_name + ' with form ' + value.form_name;\n      //                 }\n      //                 history_duplicateMedicineArray.push(med_name);\n      //               }\n      //             });\n\n      //             //console.log(history_duplicateMedicineArray);\n\n      //             var j = 0;\n\n      //             for (var i = 0; i < history_response.length; i++) {\n      //               var obj_original = history_response[i];\n\n      //               if (obj_original.midicine_type == 'single') {\n      //                 var med_name =\n      //                   obj_original.medicine_name +\n      //                   ' ' +\n      //                   obj_original.potency_name +\n      //                   ' ' +\n      //                   obj_original.dilution_name +\n      //                   ' with form ' +\n      //                   obj_original.form_name;\n      //               } else {\n      //                 var med_name =\n      //                   obj_original.medicine_name +\n      //                   ' with form ' +\n      //                   obj_original.form_name;\n      //               }\n\n      //               if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n      //                 var p = j++;\n      //                 existing_medicine +=\n      //                   \"<p class='error-font'>\" +\n      //                   (p + 1) +\n      //                   '.' +\n      //                   ' ' +\n      //                   '<b>' +\n      //                   med_name +\n      //                   '</b>' +\n      //                   ' medicine is already added</p>';\n\n      //                 //console.log('history-duplicate-message-a'+med_name);\n      //               } else {\n      //                 remaining_name.push(med_name);\n      //                 //console.log('history-duplicate-message-b'+remaining_name);\n      //               }\n      //             }\n      //             if (history_duplicateMedicineArray.length > 0) {\n      //               if (remaining_name.length > 0) {\n      //                 var commaList = _this.arrayToText(remaining_name);\n      //                 remaining_medicine +=\n      //                   \"<p class='error-font'>so only \" +\n      //                   '<b>' +\n      //                   commaList +\n      //                   '</b>' +\n      //                   ' medicine of the template will be added.</p>';\n      //               }\n      //             } else {\n      //               if (remaining_name.length > 0) {\n      //                 var commaList = _this.arrayToText(remaining_name);\n      //                 remaining_medicine +=\n      //                   \"<p class='error-font'> \" +\n      //                   '<b>' +\n      //                   commaList +\n      //                   '</b>' +\n      //                   ' medicine of the template will be added.</p>';\n      //               }\n      //             }\n      //             error =\n      //               \"<div class='alert alert-danger'>\" +\n      //               existing_medicine +\n      //               '' +\n      //               remaining_medicine +\n      //               '</div>';\n\n      //             Swal.fire({\n      //               icon: 'error',\n      //               title: 'Oops...',\n      //               html: error,\n      //               width: 650,\n      //               showCancelButton: true,\n      //               confirmButtonColor: '#3085d6',\n      //               cancelButtonColor: '#d33',\n      //               confirmButtonText: 'Ok',\n      //               allowOutsideClick: false,\n      //             }).then((result) => {\n      //               if (result.isConfirmed) {\n      //                 for (var i = 0; i < history_response.length; i++) {\n      //                   var obj = history_response[i];\n      //                   if (obj.midicine_type == 'ontheflymix') {\n      //                     var duplicate_id = obj.id;\n      //                   } else {\n      //                     var duplicate_id = obj.medicine_id;\n      //                   }\n      //                   if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n      //                     history_response.splice(i, 1);\n      //                     i--;\n      //                   }\n      //                 }\n      //                 $.each(history_response, function (index, val) {\n      //                   var html = '';\n      //                   var subhtml = '';\n      //                   var formselect = '';\n      //                   var instructionselect = '';\n      //                   var edit_instructionselect = '';\n      //                   var number = index + 1;\n      //                   var common_serial = parseInt(max, 10) + number;\n      //                   //var serial_no = Date.now().toString().substr(6);\n      //                   var serial_no = (\n      //                     Date.now().toString(36) +\n      //                     Math.random().toString(36).substr(2, 5)\n      //                   ).toUpperCase();\n      //                   var medicine_type = val.midicine_type;\n      //                   var medicine_id = val.medicine_id;\n      //                   var potency_id = val.potency_id;\n      //                   var single_serial_no = val.medicine_serial_no;\n      //                   var potency = val.potency_name;\n      //                   var medicine = val.medicine_name;\n      //                   var dilution = val.dilution_name;\n      //                   var f_code = val.form_code;\n      //                   if (val.instruction_name != '') {\n      //                     var instruction_name = val.instruction_name;\n      //                   } else {\n      //                     var instruction_name = val.instruction_other_value;\n      //                   }\n      //                   var factor = val.factor;\n      //                   var fact = parseInt(factor);\n      //                   var vial_value = val.vial;\n      //                   var appointment_id = val.appointment_id;\n      //                   var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n      //                   if (vial_check_value == 0) {\n      //                     var vial = 1;\n      //                   } else if (vial_check_value == 1) {\n      //                     var vial = 1;\n      //                   } else {\n      //                     var vial = vial_check_value;\n      //                   }\n      //                   var mix_name = medicine;\n      //                   // form selected html code\n      //                   formselect +=\n      //                     '<select name=\"formItem[' +\n      //                     serial_no +\n      //                     ']\"  class=\"form-control slectform-' +\n      //                     serial_no +\n      //                     ' formItem prescribeform-' +\n      //                     serial_no +\n      //                     '\" id=\"prescribeform-' +\n      //                     serial_no +\n      //                     '\">';\n      //                   for (var i = 0; i < val.form.length; i++) {\n      //                     var form_name = val.form[i].form_name;\n      //                     var group_id = val.form[i].group_id;\n      //                     var form_code = val.form[i].form_code;\n      //                     if (form_code == f_code) {\n      //                       formselect +=\n      //                         '<option selected=\"selected\" value=\"' +\n      //                         group_id +\n      //                         '-' +\n      //                         form_code +\n      //                         '-' +\n      //                         form_name +\n      //                         '\">' +\n      //                         form_code +\n      //                         '</option>';\n      //                     } else {\n      //                       formselect +=\n      //                         '<option  value=\"' +\n      //                         group_id +\n      //                         '-' +\n      //                         form_code +\n      //                         '-' +\n      //                         form_name +\n      //                         '\">' +\n      //                         form_code +\n      //                         '</option>';\n      //                     }\n      //                   }\n      //                   formselect += '</select>';\n      //                   // instruction selected html code\n      //                   instructionselect +=\n      //                     '<select name=\"instructionItem[' +\n      //                     serial_no +\n      //                     ']\" class=\"form-control instructionItem cwareinstruction-' +\n      //                     serial_no +\n      //                     ' iother-' +\n      //                     serial_no +\n      //                     '\" id=\"instruction-' +\n      //                     serial_no +\n      //                     '\">';\n      //                   for (var i = 0; i < instruction_array.length; i++) {\n      //                     //var instruc_id = instruction_array[i].id;\n      //                     var instruc_name =\n      //                       instruction_array[i].instruction_name.trim();\n      //                     if (\n      //                       instruction_name != '' &&\n      //                       instruction_name == instruc_name\n      //                     ) {\n      //                       instructionselect +=\n      //                         '<option selected=\"selected\" class=\"editable-' +\n      //                         serial_no +\n      //                         '\" value=\"' +\n      //                         instruc_name +\n      //                         '\">' +\n      //                         instruc_name +\n      //                         '</option>';\n      //                     } else {\n      //                       instructionselect +=\n      //                         '<option class=\"editable-' +\n      //                         serial_no +\n      //                         '\" value=\"' +\n      //                         instruc_name +\n      //                         '\">' +\n      //                         instruc_name +\n      //                         '</option>';\n      //                     }\n      //                   }\n      //                   // if (instruction_other != '') {\n      //                   //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n      //                   // }\n      //                   instructionselect += '</select>';\n\n      //                   if (instruction_name != '') {\n      //                     edit_instructionselect +=\n      //                       '<input id=\"edit_instruction-' +\n      //                       serial_no +\n      //                       '\" name=\"instruction[' +\n      //                       serial_no +\n      //                       ']\" class=\"editOption-' +\n      //                       serial_no +\n      //                       ' inst_other\" value=\"' +\n      //                       instruction_name +\n      //                       '\">';\n      //                   }\n      //                   // if (instruction_other != '') {\n      //                   //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n      //                   // }\n      //                   instructionselect += edit_instructionselect;\n      //                   if (val.midicine_type == 'mix') {\n      //                     var title = 'Mix medicine';\n      //                   } else {\n      //                     var title = 'On the fly mix medicine';\n      //                   }\n\n      //                   if (val.midicine_type == 'ontheflymix') {\n      //                     var common_id = val.id;\n      //                     var medform = parseInt(common_id) + f_code;\n      //                   } else {\n      //                     var common_id = medicine_id;\n      //                     var medform = parseInt(common_id) + f_code;\n      //                   }\n\n      //                   /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n      //                   if (fact < 1) {\n      //                     var Zerofactor = 'zerofactor';\n      //                     $('.' + Zerofactor).attr(\n      //                       'title',\n      //                       'Non billing medicine'\n      //                     );\n      //                   } else {\n      //                     var Zerofactor = '';\n      //                   }\n      //                   var j = 0;\n      //                   if (val.mix.length > 0) {\n      //                     subhtml +=\n      //                       '<table id=\"mixtale-' +\n      //                       serial_no +\n      //                       '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       ']\" class=\"form-control dosage-' +\n      //                       serial_no +\n      //                       ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       mix_name +\n      //                       '\" data-med=\"' +\n      //                       common_id +\n      //                       '\"/><input name=\"medicine_type[' +\n      //                       serial_no +\n      //                       ']\"  id=\"medicine_type-' +\n      //                       serial_no +\n      //                       '\" type=\"hidden\" value=\"' +\n      //                       medicine_type +\n      //                       '\"/>  <input name=\"medicine_id[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       '][' +\n      //                       medicine_type +\n      //                       ']\"  id=\"medicine_id-' +\n      //                       serial_no +\n      //                       '\" type=\"hidden\" value=\"' +\n      //                       medicine_id +\n      //                       '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n      //                     for (var i = 0; i < val.mix.length; i++) {\n      //                       j++;\n      //                       var mix_potency = val.mix[i].potency_name;\n      //                       var mix_medicine = val.mix[i].medicine_name;\n      //                       var mix_medicine_id = val.mix[i].medicine_id;\n      //                       var mix_potency_id = val.mix[i].potency_id;\n      //                       var mix_dilution = val.mix[i].dilution_name;\n      //                       subhtml +=\n      //                         '<tr data-ontheflyrow=\"' +\n      //                         j +\n      //                         '\" data-mixrowid=\"' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" class=' +\n      //                         medicine_type +\n      //                         '-' +\n      //                         serial_no +\n      //                         '>';\n      //                       subhtml +=\n      //                         '<td><input class=\"form-control mixname_change medicine_name-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" data-ontheflyId=\"' +\n      //                         j +\n      //                         '\" name=\"medicineItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" id=\"medicine_name-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" placeholder=\"Med ' +\n      //                         j +\n      //                         ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' +\n      //                         mix_medicine +\n      //                         '\"/> <input type=\"hidden\" class=\"medicine_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" id=\"medicine_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" name=\"medicine_id[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" value=\"' +\n      //                         mix_medicine_id +\n      //                         '\"></td>';\n      //                       subhtml +=\n      //                         '<td><input name=\"potencyItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" readonly=\"readonly\" id=\"potency-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" class=\"form-control potency-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" type=\"text\" value=\"' +\n      //                         mix_potency +\n      //                         '\"/> <input type=\"hidden\" calss=\"potency_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" id=\"potency_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" name=\"potency_id[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" value=\"' +\n      //                         mix_potency_id +\n      //                         '\"></td>';\n      //                       subhtml +=\n      //                         '<td><input name=\"dilutionItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" class=\"form-control dilution-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" readonly=\"readonly\" id=\"dilution-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" type=\"text\" value=\"' +\n      //                         mix_dilution +\n      //                         '\"/></td>';\n      //                       subhtml += '</tr>';\n      //                     }\n      //                     subhtml += '</table>';\n      //                     html +=\n      //                       '<tr data-order=\"' +\n      //                       common_serial +\n      //                       '\" title=\"' +\n      //                       title +\n      //                       '\"  id=\"id-' +\n      //                       serial_no +\n      //                       '\" class=\"cw-mix-medicine-' +\n      //                       serial_no +\n      //                       ' ' +\n      //                       medicine_type +\n      //                       ' ' +\n      //                       Zerofactor +\n      //                       ' tableRow importRow\" data-medform=\"' +\n      //                       medform +\n      //                       '\">';\n      //                     html +=\n      //                       '<td><input type=\"checkbox\" id=\"checkboxid-' +\n      //                       serial_no +\n      //                       '\" class=\"geometry\"  name=\"check\" value=\"' +\n      //                       serial_no +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"srnoItem[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       ']\" class=\"form-control srnoItem\" id=\"srno-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       common_serial +\n      //                       '\" data-uniqueserial=\"' +\n      //                       common_serial +\n      //                       '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      //                     html += '<td colspan=\"3\">' + subhtml + '</td>';\n      //                     html += '<td>' + formselect + '</td>';\n      //                     html +=\n      //                       '<td> <input name=\"factorItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control factorItem factor-' +\n      //                       serial_no +\n      //                       ' onlynumeric\" id=\"factor-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       fact +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"medicineVial[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control medicinevial-' +\n      //                       serial_no +\n      //                       ' medicinevialItem onlynumeric\" id=\"medicinevial-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       parseInt(vial) +\n      //                       '\"/></td>';\n      //                     html += '<td>' + instructionselect + '</td>';\n      //                     html += '</tr>';\n      //                   } else {\n      //                     html +=\n      //                       '<tr data-order=\"' +\n      //                       common_serial +\n      //                       '\" id=\"id-' +\n      //                       serial_no +\n      //                       '\" class=\"single ' +\n      //                       Zerofactor +\n      //                       ' tableRow importRow\" data-medform=\"' +\n      //                       medform +\n      //                       '\">';\n      //                     html +=\n      //                       '<td><input type=\"checkbox\" id=\"checkboxid-' +\n      //                       serial_no +\n      //                       '\" class=\"geometry checkItem\" data-id=\"' +\n      //                       serial_no +\n      //                       '\" name=\"check\" value=\"' +\n      //                       serial_no +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input class=\"form-control srno-' +\n      //                       serial_no +\n      //                       ' srnoItem\" id=\"srno-' +\n      //                       serial_no +\n      //                       '\" name=\"srnoItem[' +\n      //                       serial_no +\n      //                       ']\" type=\"text\" value=\"' +\n      //                       common_serial +\n      //                       '\" data-uniqueserial=\"' +\n      //                       common_serial +\n      //                       '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      //                     html +=\n      //                       '<td class=\"cw-search-box\"><input name=\"medicineItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control prescribeinput dosage-' +\n      //                       serial_no +\n      //                       ' medicineItem\" id=\"medicine_name-' +\n      //                       serial_no +\n      //                       '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' +\n      //                       medicine +\n      //                       '\" data-med=\"' +\n      //                       medicine_id +\n      //                       '\" data-poten=\"' +\n      //                       potency_id +\n      //                       '\" data-medicine=\"' +\n      //                       medicine +\n      //                       ', ' +\n      //                       potency +\n      //                       ' (' +\n      //                       dilution +\n      //                       ')\" data-type=\"' +\n      //                       medicine_type +\n      //                       '\"/> <input type=\"hidden\" name=\"medicine_type[' +\n      //                       serial_no +\n      //                       ']\"  id=\"medicine_type-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       medicine_type +\n      //                       '\"> <input type=\"hidden\" name=\"medicine_id[' +\n      //                       serial_no +\n      //                       ']\" id=\"medicine_id-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       medicine_id +\n      //                       '\"></td>';\n      //                     html +=\n      //                       '<td><input readonly name=\"potencyItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control potency-' +\n      //                       serial_no +\n      //                       ' potencyItem\" id=\"potency-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       potency +\n      //                       '\"/> <input type=\"hidden\" name=\"potency_id[' +\n      //                       serial_no +\n      //                       ']\" id=\"potency_id-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       potency_id +\n      //                       '\"></td>';\n      //                     html +=\n      //                       '<td><input readonly name=\"dilutionItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control dilution-' +\n      //                       serial_no +\n      //                       ' dilutionItem\" id=\"dilution-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       dilution +\n      //                       '\"/></td>';\n      //                     html += '<td>' + formselect + '</td>';\n      //                     html +=\n      //                       '<td><input name=\"factorItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control factor-' +\n      //                       serial_no +\n      //                       ' factorItem onlynumeric\" type=\"text\" id=\"factor-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       fact +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"medicineVial[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control medicinevial-' +\n      //                       serial_no +\n      //                       ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       parseInt(vial) +\n      //                       '\"/></td>';\n      //                     html += '<td>' + instructionselect + '</td>';\n      //                     html += '</tr>';\n      //                   }\n      //                   $('.clear_prescription').remove();\n      //                   $('#prescriptionmedicine').last().append(html);\n      //                   $('#importvisitid').val(appointment_id);\n      //                   $('.cleartable li :checkbox').prop('checked', false);\n      //                   $('#visitmessage').html(\n      //                     '<div class=\"alert alert-success\"> Visit history imported successfully! </div>'\n      //                   );\n      //                   $('#visitmessage .alert').fadeToggle(10000);\n      //                   _this.checkEnableCheckbox();\n      //                 });\n      //               }\n      //             });\n      //           },\n      //         });\n      //       } else if (optionValue == 2) {\n      //         $('#loader').show();\n      //         var p = $(this).closest('tr').attr('data-order');\n      //         $.ajax({\n      //           url: base_url,\n      //           method: 'POST',\n      //           data: {\n      //             appointment_id: appointment_id,\n      //             med_id: med_id,\n      //             billing_id: bill,\n      //           },\n      //           success: function (history_response) {\n      //             $('#loader').hide();\n      //             var instruction_array = _this.get('instruction');\n      //             var error = '';\n      //             var remaining_medicine = '';\n      //             var existing_medicine = '';\n      //             var history_duplicateMedicineArray = [];\n      //             var remaining_name = [];\n      //             var medicineSerialNo = [];\n      //             var history_duplicateRow = $('.medicineItem,.medicineMixItem')\n      //               .map(function () {\n      //                 return $(this).data('med');\n      //               })\n      //               .get();\n      //             //console.log(history_duplicateRow);\n\n      //             history_response.forEach(function (value) {\n      //               if (value.midicine_type == 'ontheflymix') {\n      //                 var duplicate_id = value.id;\n      //               } else {\n      //                 var duplicate_id = value.medicine_id;\n      //               }\n      //               if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n      //                 if (value.midicine_type == 'single') {\n      //                   var med_name =\n      //                     value.medicine_name +\n      //                     ' ' +\n      //                     value.potency_name +\n      //                     ' ' +\n      //                     value.dilution_name +\n      //                     ' with form ' +\n      //                     value.form_name;\n      //                 } else {\n      //                   var med_name =\n      //                     value.medicine_name + ' with form ' + value.form_name;\n      //                 }\n      //                 history_duplicateMedicineArray.push(med_name);\n      //               }\n      //             });\n\n      //             //console.log(history_duplicateMedicineArray);\n\n      //             var j = 0;\n\n      //             for (var i = 0; i < history_response.length; i++) {\n      //               var obj_original = history_response[i];\n\n      //               if (obj_original.midicine_type == 'single') {\n      //                 var med_name =\n      //                   obj_original.medicine_name +\n      //                   ' ' +\n      //                   obj_original.potency_name +\n      //                   ' ' +\n      //                   obj_original.dilution_name +\n      //                   ' with form ' +\n      //                   obj_original.form_name;\n      //               } else {\n      //                 var med_name =\n      //                   obj_original.medicine_name +\n      //                   ' with form ' +\n      //                   obj_original.form_name;\n      //               }\n\n      //               if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n      //                 var p = j++;\n      //                 existing_medicine +=\n      //                   \"<p class='error-font'>\" +\n      //                   (p + 1) +\n      //                   '.' +\n      //                   ' ' +\n      //                   '<b>' +\n      //                   med_name +\n      //                   '</b>' +\n      //                   ' medicine is already added</p>';\n\n      //                 //console.log('history-duplicate-message-a'+med_name);\n      //               } else {\n      //                 remaining_name.push(med_name);\n      //                 //console.log('history-duplicate-message-b'+remaining_name);\n      //               }\n      //             }\n      //             if (history_duplicateMedicineArray.length > 0) {\n      //               if (remaining_name.length > 0) {\n      //                 var commaList = _this.arrayToText(remaining_name);\n      //                 remaining_medicine +=\n      //                   \"<p class='error-font'>so only \" +\n      //                   '<b>' +\n      //                   commaList +\n      //                   '</b>' +\n      //                   ' medicine of the template will be added.</p>';\n      //               }\n      //             } else {\n      //               if (remaining_name.length > 0) {\n      //                 var commaList = _this.arrayToText(remaining_name);\n      //                 remaining_medicine +=\n      //                   \"<p class='error-font'> \" +\n      //                   '<b>' +\n      //                   commaList +\n      //                   '</b>' +\n      //                   ' medicine of the template will be added.</p>';\n      //               }\n      //             }\n      //             error =\n      //               \"<div class='alert alert-danger'>\" +\n      //               existing_medicine +\n      //               '' +\n      //               remaining_medicine +\n      //               '</div>';\n\n      //             Swal.fire({\n      //               icon: 'error',\n      //               title: 'Oops...',\n      //               html: error,\n      //               width: 650,\n      //               showCancelButton: true,\n      //               confirmButtonColor: '#3085d6',\n      //               cancelButtonColor: '#d33',\n      //               confirmButtonText: 'Ok',\n      //               allowOutsideClick: false,\n      //             }).then((result) => {\n      //               if (result.isConfirmed) {\n      //                 for (var i = 0; i < history_response.length; i++) {\n      //                   var obj = history_response[i];\n      //                   if (obj.midicine_type == 'ontheflymix') {\n      //                     var duplicate_id = obj.id;\n      //                   } else {\n      //                     var duplicate_id = obj.medicine_id;\n      //                   }\n      //                   if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n      //                     history_response.splice(i, 1);\n      //                     i--;\n      //                   }\n      //                 }\n\n      //                 var array_elements = _this.multiSort(history_response, {\n      //                   id: 'desc',\n      //                 });\n      //                 //console.log(array_elements+'shubh');\n      //                 //console.log(array_elements);\n      //                 var max = _this.rowMaxSerialNo();\n\n      //                 array_elements.forEach(function (val) {\n      //                   //console.log('a'+val.id);\n      //                   var html = '';\n      //                   var subhtml = '';\n      //                   var formselect = '';\n      //                   var instructionselect = '';\n      //                   var edit_instructionselect = '';\n      //                   var common_serial = val.medicine_serial_no.toUpperCase();\n      //                   var serial_no = (\n      //                     Date.now().toString(36) +\n      //                     Math.random().toString(36).substr(2, 5)\n      //                   ).toUpperCase();\n      //                   var medicine_type = val.midicine_type;\n      //                   var medicine_id = val.medicine_id;\n      //                   var potency_id = val.potency_id;\n      //                   var single_serial_no = val.medicine_serial_no;\n      //                   var potency = val.potency_name;\n      //                   var medicine = val.medicine_name;\n      //                   var dilution = val.dilution_name;\n      //                   var f_code = val.form_code;\n      //                   if (val.instruction_name != '') {\n      //                     var instruction_name = val.instruction_name;\n      //                   } else {\n      //                     var instruction_name = val.instruction_other_value;\n      //                   }\n      //                   var factor = val.factor;\n      //                   var fact = parseInt(factor);\n      //                   var vial_value = val.vial;\n      //                   var appointment_id = val.appointment_id;\n      //                   var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n      //                   if (vial_check_value == 0) {\n      //                     var vial = 1;\n      //                   } else if (vial_check_value == 1) {\n      //                     var vial = 1;\n      //                   } else {\n      //                     var vial = vial_check_value;\n      //                   }\n      //                   var mix_name = medicine;\n      //                   // form selected html code\n      //                   formselect +=\n      //                     '<select name=\"formItem[' +\n      //                     serial_no +\n      //                     ']\"  class=\"form-control slectform-' +\n      //                     serial_no +\n      //                     ' formItem prescribeform-' +\n      //                     serial_no +\n      //                     '\" id=\"prescribeform-' +\n      //                     serial_no +\n      //                     '\">';\n      //                   for (var i = 0; i < val.form.length; i++) {\n      //                     var form_name = val.form[i].form_name;\n      //                     var group_id = val.form[i].group_id;\n      //                     var form_code = val.form[i].form_code;\n      //                     if (form_code == f_code) {\n      //                       formselect +=\n      //                         '<option selected=\"selected\" value=\"' +\n      //                         group_id +\n      //                         '-' +\n      //                         form_code +\n      //                         '-' +\n      //                         form_name +\n      //                         '\">' +\n      //                         form_code +\n      //                         '</option>';\n      //                     } else {\n      //                       formselect +=\n      //                         '<option  value=\"' +\n      //                         group_id +\n      //                         '-' +\n      //                         form_code +\n      //                         '-' +\n      //                         form_name +\n      //                         '\">' +\n      //                         form_code +\n      //                         '</option>';\n      //                     }\n      //                   }\n      //                   formselect += '</select>';\n      //                   // instruction selected html code\n      //                   instructionselect +=\n      //                     '<select name=\"instructionItem[' +\n      //                     serial_no +\n      //                     ']\" class=\"form-control instructionItem cwareinstruction-' +\n      //                     serial_no +\n      //                     ' iother-' +\n      //                     serial_no +\n      //                     '\" id=\"instruction-' +\n      //                     serial_no +\n      //                     '\">';\n      //                   for (var i = 0; i < instruction_array.length; i++) {\n      //                     //var instruc_id = instruction_array[i].id;\n      //                     var instruc_name =\n      //                       instruction_array[i].instruction_name.trim();\n      //                     if (\n      //                       instruction_name != '' &&\n      //                       instruction_name == instruc_name\n      //                     ) {\n      //                       instructionselect +=\n      //                         '<option selected=\"selected\" class=\"editable-' +\n      //                         serial_no +\n      //                         '\" value=\"' +\n      //                         instruc_name +\n      //                         '\">' +\n      //                         instruc_name +\n      //                         '</option>';\n      //                     } else {\n      //                       instructionselect +=\n      //                         '<option class=\"editable-' +\n      //                         serial_no +\n      //                         '\" value=\"' +\n      //                         instruc_name +\n      //                         '\">' +\n      //                         instruc_name +\n      //                         '</option>';\n      //                     }\n      //                   }\n\n      //                   instructionselect += '</select>';\n      //                   if (instruction_name != '') {\n      //                     edit_instructionselect +=\n      //                       '<input id=\"edit_instruction-' +\n      //                       serial_no +\n      //                       '\" name=\"instruction[' +\n      //                       serial_no +\n      //                       ']\" class=\"editOption-' +\n      //                       serial_no +\n      //                       ' inst_other\" value=\"' +\n      //                       instruction_name +\n      //                       '\">';\n      //                   }\n\n      //                   instructionselect += edit_instructionselect;\n\n      //                   if (val.midicine_type == 'mix') {\n      //                     var title = 'Mix medicine';\n      //                   } else {\n      //                     var title = 'On the fly mix medicine';\n      //                     var ontheflymix_id = val.id;\n      //                   }\n\n      //                   if (val.midicine_type == 'ontheflymix') {\n      //                     var ontheflymix_id = val.id;\n      //                     var medform = parseInt(ontheflymix_id) + f_code;\n      //                   } else {\n      //                     var ontheflymix_id = medicine_id;\n      //                     var medform = parseInt(ontheflymix_id) + f_code;\n      //                   }\n      //                   /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n      //                   if (fact < 1) {\n      //                     var Zerofactor = 'zerofactor';\n      //                     $('.' + Zerofactor).attr(\n      //                       'title',\n      //                       'Non billing medicine'\n      //                     );\n      //                   } else {\n      //                     var Zerofactor = '';\n      //                   }\n      //                   var j = 0;\n      //                   if (val.mix.length > 0) {\n      //                     subhtml +=\n      //                       '<table id=\"mixtale-' +\n      //                       serial_no +\n      //                       '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       ']\" class=\"form-control dosage-' +\n      //                       serial_no +\n      //                       ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       mix_name +\n      //                       '\" data-med=\"' +\n      //                       ontheflymix_id +\n      //                       '\"/><input name=\"medicine_type[' +\n      //                       serial_no +\n      //                       ']\"  id=\"medicine_type-' +\n      //                       serial_no +\n      //                       '\" type=\"hidden\" value=\"' +\n      //                       medicine_type +\n      //                       '\"/>  <input name=\"medicine_id[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       '][' +\n      //                       medicine_type +\n      //                       ']\"  id=\"medicine_id-' +\n      //                       serial_no +\n      //                       '\" type=\"hidden\" value=\"' +\n      //                       medicine_id +\n      //                       '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n      //                     for (var i = 0; i < val.mix.length; i++) {\n      //                       j++;\n      //                       var mix_potency = val.mix[i].potency_name;\n      //                       var mix_medicine = val.mix[i].medicine_name;\n      //                       var mix_medicine_id = val.mix[i].medicine_id;\n      //                       var mix_potency_id = val.mix[i].potency_id;\n      //                       var mix_dilution = val.mix[i].dilution_name;\n      //                       subhtml +=\n      //                         '<tr data-ontheflyrow=\"' +\n      //                         j +\n      //                         '\" data-mixrowid=\"' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" class=' +\n      //                         medicine_type +\n      //                         '-' +\n      //                         serial_no +\n      //                         '>';\n      //                       subhtml +=\n      //                         '<td><input class=\"form-control mixname_change medicine_name-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" name=\"medicineItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" data-ontheflyId=\"' +\n      //                         j +\n      //                         '\" id=\"medicine_name-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" placeholder=\"Med ' +\n      //                         j +\n      //                         ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' +\n      //                         mix_medicine +\n      //                         '\"/> <input type=\"hidden\" class=\"medicine_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" id=\"medicine_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" name=\"medicine_id[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" value=\"' +\n      //                         mix_medicine_id +\n      //                         '\"></td>';\n      //                       subhtml +=\n      //                         '<td><input name=\"potencyItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" readonly=\"readonly\" id=\"potency-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" class=\"form-control potency-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" type=\"text\" value=\"' +\n      //                         mix_potency +\n      //                         '\"/> <input type=\"hidden\" calss=\"potency_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" id=\"potency_id-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" name=\"potency_id[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" value=\"' +\n      //                         mix_potency_id +\n      //                         '\"></td>';\n      //                       subhtml +=\n      //                         '<td><input name=\"dilutionItem[' +\n      //                         serial_no +\n      //                         '][' +\n      //                         mix_name +\n      //                         '][' +\n      //                         j +\n      //                         ']\" class=\"form-control dilution-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" readonly=\"readonly\" id=\"dilution-' +\n      //                         serial_no +\n      //                         j +\n      //                         '\" type=\"text\" value=\"' +\n      //                         mix_dilution +\n      //                         '\"/></td>';\n      //                       subhtml += '</tr>';\n      //                     }\n      //                     subhtml += '</table>';\n      //                     html +=\n      //                       '<tr data-order=\"' +\n      //                       common_serial +\n      //                       '\" title=\"' +\n      //                       title +\n      //                       '\"  id=\"id-' +\n      //                       serial_no +\n      //                       '\" class=\"cw-mix-medicine-' +\n      //                       serial_no +\n      //                       ' ' +\n      //                       medicine_type +\n      //                       ' ' +\n      //                       Zerofactor +\n      //                       ' tableRow importRow\" data-medform=\"' +\n      //                       medform +\n      //                       '\">';\n      //                     html +=\n      //                       '<td><input type=\"checkbox\" id=\"checkboxid-' +\n      //                       serial_no +\n      //                       '\" class=\"geometry\"  name=\"check\" value=\"' +\n      //                       serial_no +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"srnoItem[' +\n      //                       serial_no +\n      //                       '][' +\n      //                       mix_name +\n      //                       ']\" class=\"form-control srnoItem\" id=\"srno-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       common_serial +\n      //                       '\" data-uniqueserial=\"' +\n      //                       common_serial +\n      //                       '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      //                     html += '<td colspan=\"3\">' + subhtml + '</td>';\n      //                     html += '<td>' + formselect + '</td>';\n      //                     html +=\n      //                       '<td> <input name=\"factorItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control factorItem factor-' +\n      //                       serial_no +\n      //                       ' onlynumeric\" id=\"factor-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       fact +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"medicineVial[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control medicinevial-' +\n      //                       serial_no +\n      //                       ' medicinevialItem onlynumeric\" id=\"medicinevial-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       parseInt(vial) +\n      //                       '\"/></td>';\n      //                     html += '<td>' + instructionselect + '</td>';\n      //                     html += '</tr>';\n      //                   } else {\n      //                     html +=\n      //                       '<tr data-order=\"' +\n      //                       common_serial +\n      //                       '\" id=\"id-' +\n      //                       serial_no +\n      //                       '\" class=\"single ' +\n      //                       Zerofactor +\n      //                       ' tableRow importRow\" data-medform=\"' +\n      //                       medform +\n      //                       '\">';\n      //                     html +=\n      //                       '<td><input type=\"checkbox\" id=\"checkboxid-' +\n      //                       serial_no +\n      //                       '\" class=\"geometry checkItem\" data-id=\"' +\n      //                       serial_no +\n      //                       '\" name=\"check\" value=\"' +\n      //                       serial_no +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input class=\"form-control srno-' +\n      //                       serial_no +\n      //                       ' srnoItem\" id=\"srno-' +\n      //                       serial_no +\n      //                       '\" name=\"srnoItem[' +\n      //                       serial_no +\n      //                       ']\" type=\"text\" value=\"' +\n      //                       common_serial +\n      //                       '\" data-uniqueserial=\"' +\n      //                       common_serial +\n      //                       '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      //                     html +=\n      //                       '<td class=\"cw-search-box\"><input name=\"medicineItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control prescribeinput dosage-' +\n      //                       serial_no +\n      //                       ' medicineItem\" id=\"medicine_name-' +\n      //                       serial_no +\n      //                       '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' +\n      //                       medicine +\n      //                       '\" data-med=\"' +\n      //                       medicine_id +\n      //                       '\" data-poten=\"' +\n      //                       potency_id +\n      //                       '\" data-medicine=\"' +\n      //                       medicine +\n      //                       ', ' +\n      //                       potency +\n      //                       ' (' +\n      //                       dilution +\n      //                       ')\" data-type=\"' +\n      //                       medicine_type +\n      //                       '\"/> <input type=\"hidden\" name=\"medicine_type[' +\n      //                       serial_no +\n      //                       ']\"  id=\"medicine_type-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       medicine_type +\n      //                       '\"> <input type=\"hidden\" name=\"medicine_id[' +\n      //                       serial_no +\n      //                       ']\" id=\"medicine_id-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       medicine_id +\n      //                       '\"></td>';\n      //                     html +=\n      //                       '<td><input readonly name=\"potencyItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control potency-' +\n      //                       serial_no +\n      //                       ' potencyItem\" id=\"potency-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       potency +\n      //                       '\"/> <input type=\"hidden\" name=\"potency_id[' +\n      //                       serial_no +\n      //                       ']\" id=\"potency_id-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       potency_id +\n      //                       '\"></td>';\n      //                     html +=\n      //                       '<td><input readonly name=\"dilutionItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control dilution-' +\n      //                       serial_no +\n      //                       ' dilutionItem\" id=\"dilution-' +\n      //                       serial_no +\n      //                       '\" type=\"text\" value=\"' +\n      //                       dilution +\n      //                       '\"/></td>';\n      //                     html += '<td>' + formselect + '</td>';\n      //                     html +=\n      //                       '<td><input name=\"factorItem[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control factor-' +\n      //                       serial_no +\n      //                       ' factorItem onlynumeric\" type=\"text\" id=\"factor-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       fact +\n      //                       '\"/></td>';\n      //                     html +=\n      //                       '<td><input name=\"medicineVial[' +\n      //                       serial_no +\n      //                       ']\" class=\"form-control medicinevial-' +\n      //                       serial_no +\n      //                       ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' +\n      //                       serial_no +\n      //                       '\" value=\"' +\n      //                       parseInt(vial) +\n      //                       '\"/></td>';\n      //                     html += '<td>' + instructionselect + '</td>';\n      //                     html += '</tr>';\n      //                   }\n      //                   $('.clear_prescription').remove();\n      //                   //$('#prescriptionmedicine').prepend(html);\n      //                   //console.log(html);\n      //                   //$('#prescriptionmedicine > tbody.tbody > tr:first').before(html);\n      //                   $(html).prependTo('#prescriptionmedicine > tbody.tbody');\n      //                   $('.cleartable li :checkbox').prop('checked', false);\n      //                   _this.checkEnableCheckbox();\n      //                   $('.importRow').each(function () {\n      //                     var serialNo = $(this)\n      //                       .find('td')\n      //                       .eq(1)\n      //                       .find('.srnoItem')\n      //                       .val();\n      //                     medicineSerialNo.push(parseInt(serialNo));\n      //                   });\n      //                   //console.log(medicineSerialNo);\n      //                   var getminimumserialnumber = Math.max.apply(\n      //                     Math,\n      //                     medicineSerialNo\n      //                   );\n      //                   //console.log(getminimumserialnumber);\n      //                   var previousTableRowArray = $('.previousRow')\n      //                     .map(function () {\n      //                       return $(this).attr('id');\n      //                     })\n      //                     .get();\n      //                   previousTableRowArray.forEach(function (item, index) {\n      //                     var number = index + 1;\n      //                     //console.log(common_serial);\n      //                     //console.log(number);\n      //                     //console.log(max);\n      //                     //return parseInt(max, 10)+1;\n      //                     var previousSerialNo =\n      //                       parseInt(getminimumserialnumber) + parseInt(number);\n      //                     //console.log(previousSerialNo);\n      //                     var rowsId = item.split('-')[1];\n      //                     $('#id-' + rowsId).attr('data-order', previousSerialNo);\n      //                     $('#srno-' + rowsId).val(previousSerialNo);\n      //                     $('#srno-' + rowsId).attr('value', previousSerialNo);\n      //                     $('#srno-' + rowsId).attr(\n      //                       'data-uniqueserial',\n      //                       previousSerialNo\n      //                     );\n      //                   });\n      //                   //console.log(previousTableRowArray);\n      //                 });\n      //               }\n      //             });\n      //           },\n      //         });\n      //       }\n      //     })();\n      //   } else {\n      //     _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please select visit history', 'visitmessage');\n      //     //$('#visitmessage').html('<div class=\"alert alert-danger\"> Please select visit history </div>');\n      //     //$('#visitmessage .alert').fadeToggle(10000);\n      //   }\n      // });\n      $(document).on('click', '.parent_history', function (event) {\n        var appointment = [];\n        var billing = [];\n        var medicine = [];\n        var casetakenappointment = [];\n        var casetaken = [];\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n          billing.push($(this).data('billing'));\n          medicine.push($(this).data('medicineid'));\n        });\n        $.each($(\"input[name='casetaken_history']:checked\"), function () {\n          casetakenappointment.push($(this).data('casetakenappointment'));\n          casetaken.push($(this).data('casetakenid'));\n        });\n        if (appointment.length > 0 && casetakenappointment.length > 0) {\n          //Both Medicine and Case taking import\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id1 = $('input[type=hidden][name=appointment_id]').val();\n          var base_url1 = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines.' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            }\n          })();\n        } else if (appointment.length > 0) {\n          //Only medicine import, no case taking\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines.' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            }\n            //no case taking import in this case.\n          })();\n        } else if (casetakenappointment.length > 0) {\n          //Only Case taking import\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n          var base_url = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          Swal.fire({\n            icon: 'warning',\n            html: 'Are you sure you want import case history?',\n            width: 650,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            confirmButtonText: 'Ok',\n            allowOutsideClick: false\n          }).then(result => {\n            if (result.isConfirmed) {\n              //console.log(casetakenId);\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  casetakenappointmentId: casetakenappointmentId,\n                  casetakenId: casetakenId,\n                  appointment_id: appointment_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (case_response) {\n                  if (case_response.error == false && case_response.actions == 'imported') {\n                    $('html, body').animate({\n                      scrollTop: $('#casetakenmessage').position().top\n                    }, 1000);\n                    $('#casetakenmessage').html('<div class=\"alert alert-success\">' + case_response.message + '</div>');\n                    $('#casetakenmessage .alert').fadeToggle(10000);\n                    _this.controllerFor('icpattend').send('getCaseTakenList', case_response.appointment_id);\n                    $('li :checkbox').prop('checked', false);\n                    $('.cleartable li :checkbox').prop('checked', false);\n                  }\n                }\n              });\n            }\n            if (result.isDenied == false) {\n              $('#visithistoryPopup').modal('hide');\n              $('#loading').removeClass('in');\n              $('li :checkbox').prop('checked', false);\n              $('.cleartable li :checkbox').prop('checked', false);\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }\n          });\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please select visit history', 'visitmessage');\n          //$('#visitmessage').html('<div class=\"alert alert-danger\"> Please select visit history </div>');\n          //$('#visitmessage .alert').fadeToggle(10000);\n        }\n      });\n      var stopAjaxSearch = false;\n      /*This script is used for set medicine search data on click July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.formdata', function (event) {\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 6-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        var potency_name = $(this).data('potencyname');\n        var dilution = $(this).data('dilution');\n        var item = item.trim();\n        var medicinename = item.split(',')[0]; //This below line of code  is used for getting the only medicine name, Rahul Khan, 16 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-medicine', item); //This line is used for adding new attribute with value as medicine name in suggestion box, Rahul Khan, 16 aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n        //$(this).closest(\".cw-search-box\").find('medicine_type').val(medicine_type);\n\n        //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 10 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n        var clickedid = $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('id');\n        // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n        if (clickedid !== undefined) {\n          var targetid = clickedid.split('-');\n          var cnt = targetid[1];\n          var next = targetid[1];\n          //console.log(max);\n          //This below code is used for getting the first added medicine form to coping for all added medicine default, Rahul Khan , 27 Aug 2019\n          var firstRowMedicineForm = $('#prescriptionmedicine').find(\"tr[id^='id-']:first\").attr('id');\n          var MedcineRowNum = firstRowMedicineForm.split('-')[1];\n          var selectedForm = $('#prescribeform-' + MedcineRowNum).val();\n          var selectedOptionText = $('#prescribeform-' + MedcineRowNum + \" option[value^='\" + selectedForm + \"']\").text();\n          if (medicine_type == 'single') {\n            var selectedFactor = $('#factor-' + MedcineRowNum).val();\n            var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n            //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n            _this.factorCarryForward(selectedFactor, medicinevial, cnt);\n            $('.potency-' + cnt).val(potency_name);\n            $('.potency-' + cnt).attr('readonly', true); //This line of code is used for setting the potency box disabled, Rahul Khan, 16 Aug 2019\n            $('#potency_id-' + cnt).val(potency_id);\n            $('#medicine_id-' + cnt).val(medicine_id);\n            $('.dilution-' + cnt).val(dilution);\n            $('.dilution-' + cnt).attr('readonly', true); //This line of code is used for setting the dilution box disabled, Rahul Khan, 16 Aug 2019\n            $('#medicine_type-' + cnt).val(medicine_type);\n            //ajax call for get form list\n            var singleformArray = [];\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/formlist',\n              data: {\n                potency: potency_id,\n                medicine: medicine_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('.slectform-' + cnt).empty();\n                //$('.slectform-' + cnt).focus().addClass('has-error');\n                //$('.slectform-' + cnt).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  //var id = response[i]['fId'];\n                  var name = response[i]['fName'];\n                  var fcode = response[i]['fcode'];\n                  var gId = response[i]['gId'];\n                  var serial_no = $('#srno-' + cnt).val();\n                  var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                  var selectedObject = {};\n                  if (selectedOptionText == fcode) {\n                    var selected = 'selected';\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = selectedOptionText;\n                    singleformArray.push(selectedObject);\n                  } else {\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = fcode;\n                    singleformArray.push(selectedObject);\n                  }\n                  $('.slectform-' + cnt).append(\"<option value='\" + gId + '-' + fcode + '-' + name + \"' \" + selected + '>' + fcode + '</option>');\n                  //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari, 09 July 2019\n                  $('#prescriptionmedicine').addClass('singletemplate');\n                }\n                var formCode = _this.multiSort(singleformArray, {\n                  form_code: 'asc'\n                });\n                _this.getSelectedTableRow(formCode, medicine_id, cnt);\n              }\n            });\n            /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n            var error = '';\n            var duplicateMedicineArray = [];\n            //This Row id used for getting the row number\n            var currenyRowidNum = cnt;\n            var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n            //console.log(currenyRowidNum);\n            //console.log(currentMedicneValue);\n            //var currentMedicineForm = $(\"#prescribeform-\" + currenyRowidNum).val();\n            //console.log(currentMedicineForm);\n            var currentMedicineFormValue = selectedOptionText;\n            //console.log(currentMedicineFormValue);\n            var duplicateRow = $('.medicineItem').map(function () {\n              // var medicineName  = $(this).attr('data-medicine').trim();\n              var medicineName = $(this).attr('data-medicine');\n              //console.log(medicineName);\n              var medicineRowId = $(this).attr('id');\n              //console.log(medicineRowId);\n              var MedicinwRowNum = medicineRowId.split('-')[1];\n              var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n              var MedicineRowFormValue = $('#prescribeform-' + MedicinwRowNum + \" option[value^='\" + MedicineRowForm + \"']\").text();\n              //console.log(MedicineRowFormValue);\n              if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n                duplicateMedicineArray.push(currenyRowidNum);\n                duplicateMedicineArray.push(MedicinwRowNum);\n                return MedicinwRowNum;\n              }\n            }).get();\n            duplicateMedicineArray.forEach(function (item) {\n              $('#id-' + item).addClass('duplicate');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              var formName = _this.getFormName(currentMedicineFormValue);\n              //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n              error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n              Swal.fire({\n                icon: 'error',\n                title: 'Oops...',\n                html: error,\n                width: 600,\n                showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              });\n            } else {\n              $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n                //console.log(this.id);\n                var idNum = this.id.replace('medicine_name-', '');\n                $('#id-' + idNum).removeClass('duplicate');\n              });\n            }\n          }\n          if (medicine_type == 'mix') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'mix') {\n              //console.log('mix-a');\n              var common_serial = 1;\n              //ajax call for geting mix medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      $('#id-' + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  $('#prescriptionmedicine').children('tbody:first').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            } else {\n              //console.log('mix-b');\n              var max = _this.rowMaxSerialNo();\n              var common_serial = parseInt(max, 10);\n              var p = $(this).closest('tr').attr('data-order');\n              //ajax call for geting mix medicine data\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      //$(\"#id-\" + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\"  data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  //$('#prescriptionmedicine > tbody.tbody > tr').eq(common_serial).after(mix_template);\n                  $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + next).after(mix_template);\n                  $('#id-' + next).attr('data-order', p).remove();\n                  $('#id-' + next).attr('data-order', p);\n                  $('#srno-' + next).val(p);\n                  $('#srno-' + next).attr('value', p);\n                  $('#srno-' + next).attr('data-uniqueserial', p);\n                  var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                  var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                  //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                  _this.factorCarryForward(selectedFactor, medicinevial, next);\n                  //var p =  $('#prescriptionmedicine > tbody.tbody > tr').attr('id');\n                  //console.log(p);\n                  //$('#prescriptionmedicine').children('tbody:last').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            }\n            //console.log(first_table_rows);\n          } //This below condition is used for adding the template Medicine/Mix for prescription, Shubh Tiwari\n          if (medicine_type == 'template') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'template') {\n              //console.log(first_table_rows);\n              //console.log(\"Template-a\");\n              //ajax call for geting template medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var instruction_array = _this.get('instruction');\n                  $.each(template_response, function (index, val) {\n                    var html = '';\n                    var subhtml = '';\n                    var formselect = '';\n                    var instructionselect = '';\n                    var edit_instructionselect = '';\n                    //var serial_no = Date.now().toString().substr(6);\n                    var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                    var medicine_type = val.mtype;\n                    var medicine_id = val.medId;\n                    var template_id = val.tempId;\n                    var potency_id = val.pId;\n                    var single_serial_no = val.mserialNo;\n                    var potency = val.potency_name;\n                    var medicine = val.medicine_name;\n                    var dilution = val.dilution_name;\n                    var f_code = val.f_code;\n                    var medform = parseInt(medicine_id) + f_code;\n                    if (val.Iname != '') {\n                      var instruction_name = val.Iname;\n                    } else {\n                      var instruction_name = val.Oname;\n                    }\n                    var factor = 1;\n                    var fact = parseInt(factor);\n                    var vial_value = 1;\n                    var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                    if (vial_check_value == 0) {\n                      var vial = 1;\n                    } else if (vial_check_value == 1) {\n                      var vial = 1;\n                    } else {\n                      var vial = vial_check_value;\n                    }\n                    var mix_name = medicine;\n\n                    // form selected html code\n                    formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                    for (var i = 0; i < val.form.length; i++) {\n                      var form_name = val.form[i].form_name;\n                      var group_id = val.form[i].group_id;\n                      var form_code = val.form[i].form_code;\n                      if (form_code == f_code) {\n                        formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      } else {\n                        formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      }\n                    }\n                    formselect += '</select>';\n                    // instruction selected html code\n                    instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                    for (var i = 0; i < instruction_array.length; i++) {\n                      //var instruc_id = instruction_array[i].id;\n                      var instruc_name = instruction_array[i].instruction_name.trim();\n                      if (instruction_name != '' && instruction_name == instruc_name) {\n                        instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      } else {\n                        instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      }\n                    }\n                    instructionselect += '</select>';\n                    if (instruction_name != '') {\n                      edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                    }\n                    instructionselect += edit_instructionselect;\n                    if (val.mtype == 'mix') {\n                      var title = 'Mix medicine';\n                    } else {\n                      var title = 'On the fly mix medicine';\n                    }\n                    /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                    if (fact < 1) {\n                      var Zerofactor = 'zerofactor';\n                      $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                    } else {\n                      var Zerofactor = '';\n                    }\n                    var j = 0;\n                    if (val.mix.length > 0) {\n                      subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                      for (var i = 0; i < val.mix.length; i++) {\n                        j++;\n                        var mix_potency = val.mix[i].potencyname;\n                        var mix_medicine = val.mix[i].mixMedicineName;\n                        var mix_medicine_id = val.mix[i].medId;\n                        var mix_potency_id = val.mix[i].pId;\n                        var mix_dilution = val.mix[i].dilution;\n                        subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                        subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                        subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                        subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                        subhtml += '</tr>';\n                      }\n                      subhtml += '</table>';\n                      html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td colspan=\"3\">' + subhtml + '</td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    } else {\n                      html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                      html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                      html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    }\n                    $('#prescriptionmedicine').children('tbody:first').append(html);\n                    _this.checkEnableCheckbox();\n                  });\n                }\n              });\n            } else {\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              var duplicateRow = $('.tableRow').map(function () {\n                return $(this).data('medform');\n              }).get();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var error = '';\n                  var existing_medicine = '';\n                  var remaining_medicine = '';\n                  var duplicateMedicineArray = [];\n                  var tableRowIdArray = [];\n                  var serialnumberArray = [];\n                  var remaining_name = [];\n                  var dmf_tableRowIdArray = [];\n                  var dmf_serialnumberArray = [];\n                  var instruction_array = _this.get('instruction');\n\n                  //console.log(duplicateRow);\n                  template_response.forEach(function (value) {\n                    var formData = parseInt(value.medId) + value.f_code;\n                    if (duplicateRow.indexOf(formData) != -1) {\n                      if (value.mtype == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.f_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.f_name;\n                      }\n                      duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(duplicateMedicineArray);\n\n                  if (duplicateMedicineArray.length > 0) {\n                    var max = _this.rowMaxSerialNo();\n                    var j = 0;\n                    for (var i = 0; i < template_response.length; i++) {\n                      var obj_original = template_response[i];\n                      if (obj_original.mtype == 'single') {\n                        var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.f_name;\n                      } else {\n                        var med_name = obj_original.medicine_name + ' with form ' + obj_original.f_name;\n                      }\n                      if (duplicateMedicineArray.indexOf(med_name) !== -1) {\n                        var p = j++;\n                        existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                        //console.log('duplicate-message-a'+med_name);\n                      } else {\n                        remaining_name.push(med_name);\n                        //console.log('duplicate-message-b'+remaining_name);\n                      }\n                    }\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                    error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                    Swal.fire({\n                      icon: 'error',\n                      title: 'Oops...',\n                      html: error,\n                      width: 650,\n                      showCancelButton: true,\n                      confirmButtonColor: '#3085d6',\n                      cancelButtonColor: '#d33',\n                      confirmButtonText: 'Ok',\n                      allowOutsideClick: false\n                    }).then(result => {\n                      if (result.isConfirmed) {\n                        for (var i = 0; i < template_response.length; i++) {\n                          var obj = template_response[i];\n                          var formData = parseInt(obj.medId) + obj.f_code;\n                          if (duplicateRow.indexOf(formData) !== -1) {\n                            template_response.splice(i, 1);\n                            i--;\n                          }\n                        }\n                        $.each(template_response, function (index, val) {\n                          //console.log('b-template');\n                          var increase_number = index + 1;\n                          var html = '';\n                          var subhtml = '';\n                          var formselect = '';\n                          var instructionselect = '';\n                          var edit_instructionselect = '';\n                          var common_serial = parseInt(max, 10) + increase_number;\n                          var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                          var medicine_type = val.mtype;\n                          var medicine_id = val.medId;\n                          var template_id = val.tempId;\n                          var potency_id = val.pId;\n                          var single_serial_no = val.mserialNo;\n                          var potency = val.potency_name;\n                          var medicine = val.medicine_name;\n                          var dilution = val.dilution_name;\n                          var f_code = val.f_code;\n                          var medform = parseInt(medicine_id) + f_code;\n                          if (val.Iname != '') {\n                            var instruction_name = val.Iname;\n                          } else {\n                            var instruction_name = val.Oname;\n                          }\n                          var factor = 1;\n                          var fact = parseInt(factor);\n                          var vial_value = 1;\n                          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                          if (vial_check_value == 0) {\n                            var vial = 1;\n                          } else if (vial_check_value == 1) {\n                            var vial = 1;\n                          } else {\n                            var vial = vial_check_value;\n                          }\n                          var mix_name = medicine;\n\n                          // form selected html code\n                          formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                          for (var i = 0; i < val.form.length; i++) {\n                            var form_name = val.form[i].form_name;\n                            var group_id = val.form[i].group_id;\n                            var form_code = val.form[i].form_code;\n                            if (form_code == f_code) {\n                              formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            } else {\n                              formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            }\n                          }\n                          formselect += '</select>';\n                          // instruction selected html code\n                          instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                          for (var i = 0; i < instruction_array.length; i++) {\n                            //var instruc_id = instruction_array[i].id;\n                            var instruc_name = instruction_array[i].instruction_name.trim();\n                            if (instruction_name != '' && instruction_name == instruc_name) {\n                              instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            } else {\n                              instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            }\n                          }\n                          instructionselect += '</select>';\n                          if (instruction_name != '') {\n                            edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                          }\n                          instructionselect += edit_instructionselect;\n                          if (val.mtype == 'mix') {\n                            var title = 'Mix medicine';\n                          } else {\n                            var title = 'On the fly mix medicine';\n                          }\n                          /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                          if (fact < 1) {\n                            var Zerofactor = 'zerofactor';\n                            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                          } else {\n                            var Zerofactor = '';\n                          }\n                          var j = 0;\n                          if (val.mix.length > 0) {\n                            subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                            for (var i = 0; i < val.mix.length; i++) {\n                              j++;\n                              var mix_potency = val.mix[i].potencyname;\n                              var mix_medicine = val.mix[i].mixMedicineName;\n                              var mix_medicine_id = val.mix[i].medId;\n                              var mix_potency_id = val.mix[i].pId;\n                              var mix_dilution = val.mix[i].dilution;\n                              subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                              subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                              subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                              subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                              subhtml += '</tr>';\n                            }\n                            subhtml += '</table>';\n                            html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                            html += '<td colspan=\"3\">' + subhtml + '</td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          } else {\n                            html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                            html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                            html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          }\n                          //$('#prescriptionmedicine').append(html);\n                          $('#prescriptionmedicine').children('tbody:last').append(html);\n                          _this.checkEnableCheckbox();\n                          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                          var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                          var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                          //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                          _this.factorCarryForward(selectedFactor, medicinevial, serial_no);\n                        });\n                      }\n                    });\n                  } else {\n                    var max = _this.rowMaxSerialNo();\n                    $.each(template_response, function (index, val) {\n                      //console.log('c-template');\n                      var increase_number = index + 1;\n                      var html = '';\n                      var subhtml = '';\n                      var formselect = '';\n                      var instructionselect = '';\n                      var edit_instructionselect = '';\n                      var common_serial = parseInt(max, 10) + increase_number;\n                      var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                      var medicine_type = val.mtype;\n                      var medicine_id = val.medId;\n                      var template_id = val.tempId;\n                      var potency_id = val.pId;\n                      var single_serial_no = val.mserialNo;\n                      var potency = val.potency_name;\n                      var medicine = val.medicine_name;\n                      var dilution = val.dilution_name;\n                      var f_code = val.f_code;\n                      var medform = parseInt(medicine_id) + f_code;\n                      if (val.Iname != '') {\n                        var instruction_name = val.Iname;\n                      } else {\n                        var instruction_name = val.Oname;\n                      }\n                      var factor = 1;\n                      var fact = parseInt(factor);\n                      var vial_value = 1;\n                      var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                      if (vial_check_value == 0) {\n                        var vial = 1;\n                      } else if (vial_check_value == 1) {\n                        var vial = 1;\n                      } else {\n                        var vial = vial_check_value;\n                      }\n                      var mix_name = medicine;\n\n                      // form selected html code\n                      formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                      for (var i = 0; i < val.form.length; i++) {\n                        var form_name = val.form[i].form_name;\n                        var group_id = val.form[i].group_id;\n                        var form_code = val.form[i].form_code;\n                        if (form_code == f_code) {\n                          formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        } else {\n                          formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        }\n                      }\n                      formselect += '</select>';\n                      // instruction selected html code\n                      instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                      for (var i = 0; i < instruction_array.length; i++) {\n                        //var instruc_id = instruction_array[i].id;\n                        var instruc_name = instruction_array[i].instruction_name.trim();\n                        if (instruction_name != '' && instruction_name == instruc_name) {\n                          instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        } else {\n                          instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        }\n                      }\n                      instructionselect += '</select>';\n                      if (instruction_name != '') {\n                        edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                      }\n                      instructionselect += edit_instructionselect;\n                      if (val.mtype == 'mix') {\n                        var title = 'Mix medicine';\n                      } else {\n                        var title = 'On the fly mix medicine';\n                      }\n                      /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                      if (fact < 1) {\n                        var Zerofactor = 'zerofactor';\n                        $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                      } else {\n                        var Zerofactor = '';\n                      }\n                      var j = 0;\n                      if (val.mix.length > 0) {\n                        subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"65.4%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"18%\"></th><th width=\"16.6%\"></th></tr>';\n                        for (var i = 0; i < val.mix.length; i++) {\n                          j++;\n                          var mix_potency = val.mix[i].potencyname;\n                          var mix_medicine = val.mix[i].mixMedicineName;\n                          var mix_medicine_id = val.mix[i].medId;\n                          var mix_potency_id = val.mix[i].pId;\n                          var mix_dilution = val.mix[i].dilution;\n                          subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                          subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                          subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                          subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                          subhtml += '</tr>';\n                        }\n                        subhtml += '</table>';\n                        html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                        html += '<td colspan=\"3\">' + subhtml + '</td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      } else {\n                        html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                        html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                        html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      }\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      _this.checkEnableCheckbox();\n                      /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                      /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                    });\n                  }\n                }\n              });\n            }\n          }\n          $('#results' + cnt).html('').show().removeClass('searchresult'); //Used to hide the suggstion box\n          // clear form select dropdown list\n          $(document).on('change', '#prescribeform-' + cnt, function () {\n            $('.slectform-' + cnt).removeClass('has-error');\n          });\n        }\n      });\n\n      /*This script is used for search medicine data on keyup event July 20 2019 Shubh Tiwari */\n      $(function () {\n        // Returns a function, that, as long as it continues to be invoked, will not\n        // be triggered. The function will be called after it stops being called for\n        // N milliseconds. If `immediate` is passed, trigger the function on the\n        // leading edge, instead of the trailing.\n        function debounce(func, wait, immediate) {\n          var timeout;\n          return function () {\n            var context = this,\n              args = arguments;\n            var later = function () {\n              timeout = null;\n              if (!immediate) func.apply(context, args);\n            };\n            var callNow = immediate && !timeout;\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n            if (callNow) func.apply(context, args);\n          };\n        }\n        ;\n\n        // keep track latest AJAX call's timestamp\n        var latestAjaxCallDateTime;\n        var ajaxSearch = debounce(function (searchkey, input_id) {\n          if (searchkey === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('prescribe-medicine-search-result');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            // Minimum three character serach, Shubh Tiwari, 16 Nov 2022\n            if (searchkey.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'billing/prescribemedicinesearch',\n                data: {\n                  query: searchkey\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                }\n              }).done(function (data) {\n                // console.log(searchkey + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  // console.log('returned');\n                  return;\n                }\n                $('[id^=\"results\"]').empty();\n                // $('#results'+input_id[1]).empty();\n                $('#results' + input_id[1]).html(data).show().addClass('prescribe-medicine-search-result');\n                var top = $('#results' + input_id[1]).find('ul.medicine-list').position().top;\n                var top = top + 150;\n                //console.log(top);\n                var mix_lenght = $('#prescriptionmedicine > tbody.tbody > tr').find('.mixname_change').length;\n                var single_lenght = $('#prescriptionmedicine > tbody.tbody > tr').length;\n                if (top > 475) {\n                  var p = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').text();\n                  p = $.trim(p);\n                  //console.log(p);\n                  if (p == 'No medicine found' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('b');\n                  } else if (p != '' && mix_lenght > 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '53px');\n                    //console.log('a');\n                  }\n                  // else if (p != '' && mix_lenght == 0 && single_lenght > 8) {\n                  //   $('#results' + input_id[1])\n                  //     .find('ul.medicine-list')\n                  //     .css('bottom', '311px');\n                  //   console.log('d1');\n                  // }\n                  else if (p == 'No medicine found' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('bottom', '311px');\n                    //console.log('c');\n                  } else if (p != '' && mix_lenght == 0) {\n                    $('#results' + input_id[1]).find('ul.medicine-list').css('top', top - 334);\n                    //var pp = $('#results' + input_id[1]).find('ul.medicine-list').find('li:last-child').position.top;\n                    //console.log('d-top=' + top);\n                  }\n                  //console.log(p);\n                }\n              });\n            }\n          }\n        }, 250); //wait 250ms to ensure user has stopped typing.\n\n        $(document).on('keyup', '.prescribeinput', function (e) {\n          if (e.which == 37 || e.which == 38 || e.which == 39 || e.which == 40) {\n            return false;\n          }\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n          //if(isDoubleClicked($(this))) return;\n          //console.log(input_id[2]);\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 10 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          stopAjaxSearch = false; //Nishant 6-mar-2023: re-enable search on keyup.\n          //Nishant 26-Feb-2023: call this function when user has stopped typing instead of doing on every keystroke.\n          ajaxSearch(val, input_id);\n          e.preventDefault();\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          return false;\n        });\n\n        //This below jquery code is used for hidding the medicine suggestion box on focus out, Rahul Khan 12 sept 2019\n        /*   $(document).on('focusout', '.prescribeinput',function(){\n             var inputId = $(this).attr('id');\n             var RowidNum = inputId.replace('medicine_name-','');\n             setTimeout(function(){\n               $('#results'+RowidNum).html('').show().removeClass('searchresult');\n             }, 300)\n           });*/\n\n        /*  $(document).on('focusout', ':not.prescribeinput',function(){\n            $('[id^=\"results\"]').hide();\n          });*/\n\n        $(document).on('focusout', '.cw-search-box', function (event) {\n          if (!$(event.target).is('#medicine_name-1')) {\n            //console.log(\"click first medicnie\");\n          } else {\n            $('[id^=\"results\"]').html('');\n          }\n        });\n\n        /*This script is used for Check or Uncheck All checkboxes July 25 2019 Shubh Tiwari */\n        $(document).on('change', '.checkAll', function () {\n          var checked = $(this).is(':checked');\n          $('.geometry').prop('checked', checked);\n          $('.checkAll').prop('checked', checked); // Sync both header and footer checkboxes\n        });\n\n        /*This script is used for Changing state of checkAll checkbox July 25 2019 Shubh Tiwari */\n        $(document).on('click', '.geometry', function () {\n          var allChecked = $('.geometry').length === $('.geometry:checked').length;\n          $('.checkAll').prop('checked', allChecked); // Update both header and footer\n        });\n\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.cw-Medicine', function (event) {\n          $('#prescribe_medmix_name').val('');\n          //This below code is used for prevent the user to mix a medicine with mix, Rahul khan, 12 Sept 2019\n          var medicineMixCheck = [];\n          var medicineSingleCheck = [];\n          var formFind = [];\n          var medicineEmpty = [];\n          var mixMedicineDupli = [];\n          var formArray = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var checkBoxId = $(this).attr('id');\n            var RowidNum = checkBoxId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + RowidNum).val();\n            var medicineName = $('#medicine_name-' + RowidNum).val();\n            var medicineDataValue = $('#medicine_name-' + RowidNum).attr('data-medicine');\n            var medicineData = $('.cw-search-box').find(\"input[data-medicine*='\" + medicineDataValue + \"']\");\n            var med_form = $('#prescribeform-' + RowidNum).val();\n            var from_text = $('#prescribeform-' + RowidNum).find(\"option[value = '\" + med_form + \"']\").text();\n            formArray.push(from_text);\n            if (medicineData.length > 1) {\n              var dupliMedicine = $(medicineData).attr('id');\n              var dupliMedicineId = dupliMedicine.replace('medicine_name-', '');\n              var checkedLenght = $('input#checkboxid-' + dupliMedicineId + ':checked').length;\n              if (checkedLenght > 0) {\n                mixMedicineDupli.push(dupliMedicineId);\n              }\n            }\n            if (medicineName == '') {\n              medicineEmpty.push(RowidNum);\n            } else if (medicineType != 'single') {\n              medicineMixCheck.push(checkBoxId);\n            } else {\n              medicineSingleCheck.push(RowidNum);\n            }\n          });\n          var duplicate_form = formArray.every((val, i, arr) => val === arr[0]);\n          //console.log(duplicate_form);\n          var firstMedicineId = medicineSingleCheck[0];\n          $('#prescribeform-' + firstMedicineId + ' option').each(function () {\n            var formText = $(this).text();\n            medicineSingleCheck.forEach(function (id) {\n              if (id != firstMedicineId) {\n                var form = $('#prescribeform-' + id).find(\"option[value*='-\" + formText + \"-']\");\n                var formCode = form.text();\n                var indexvalue = formFind.indexOf(formCode);\n                //console.log(form.length);\n                if (form.length > 0) {\n                  // console.log(formCode);\n                  if (indexvalue == -1) {\n                    // console.log(\"Tet\");\n                    formFind.push(formCode);\n                    //console.log(formFind);\n                  }\n                } else {\n                  if (formCode != '') {\n                    formFind.splice(formFind.indexOf(formCode), 1);\n                  }\n                }\n              }\n            });\n          });\n          // return false;\n\n          // return false;\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (medicineEmpty.length > 0) {\n            swal({\n              text: 'Please select medicine for all rows, which you want to mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (mixMedicineDupli.length > 1) {\n            swal({\n              text: 'You cannot add same medicine into mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (formFind.length == 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (medicineMixCheck.length > 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix. Kindly unmix first and then select all medicines to add to the mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (duplicate_form == false) {\n            swal({\n              text: 'These medicines cannot be mixed as forms do not match.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to mix these medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, mix it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                _this.mixMedicineRow();\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              }\n            });\n          }\n        });\n\n        /*This script is used for mix medicine popup form submit July 20 2019 Shubh Tiwari */\n        // $('#add_cwMixform').on('submit', function (event) {\n        //   event.preventDefault();\n        //   $('#prescribe_medmix_name').empty();\n        //   var error = '';\n        //   var mix_val = $(\"#prescribe_medmix_name\").val();\n        //   if (mix_val == '') {\n        //     error += \"<p>Enter mix name</p>\";\n        //     $(\"#prescribe_medmix_name\").focus();\n        //   }\n        //   if (error == '') {\n        //     $('#cwMixMedicine').modal('hide');\n        //     var max = _this.rowMaxSerialNo();\n        //     var next_serial_no = parseInt(max)+1;\n        //     var checked_last_id = $(':checkbox:checked:first');\n        //     var next_sr_no = checked_last_id[0]['id'].split('-');\n        //     //Loop through all checked CheckBoxes in GridView\n        //     //var next = parseInt(next_sr_no[1]);\n        //     var next = next_sr_no[1];\n        //     console.log(next);\n        //     var medform = $(\"#id-\" + next).attr('data-medform');\n        //     var ppp = $(\".instructionItem\").clone().attr('id', 'instruction-' + next);\n        //     var originalSelects = $(\".instructionItem\").clone().attr('id', 'instruction-' + next).find('option:selected').val();\n        //     console.log(originalSelects);\n        //     var factor = 1;\n        //     /********This Array is initaised for stroring the combination of medicineId and potency id********/\n        //     var midicinePotencty = [];\n        //     var html = '';\n        //     var subhtml = '';\n        //     subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"40%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\"/></th><th width=\"20%\"></th><th width=\"20%\"></th></tr>';\n        //     $(\"#prescriptionmedicine td input[type=checkbox]:checked\").each(function (index) {\n        //       var row = $(this).closest(\"tr\")[0];\n        //       var tableDataOrder = $(this).closest(\"tr\").attr('data-order');\n        //       var table_row_id = row.id.replace('id-', '');\n        //       var singleMedicineform = $(\"#id-\" + table_row_id).attr('data-medform');\n        //       var medicine = $(\"#medicine_name-\" + table_row_id).val();\n        //       var medicine_id = $(\"#medicine_id-\" + table_row_id).val();\n        //       var medicine_type = $(\"#medicine_type-\" + table_row_id).val();\n        //       var potency = $(\"#potency-\" + table_row_id).val();\n        //       var dilution = $(\"#dilution-\" + table_row_id).val();\n        //       var selectedValue = $(\"#prescribeform-\" + table_row_id).val();\n        //       var prescribeform = $(\"#prescribeform-\" + table_row_id).clone().attr('id', 'prescribeform-' + table_row_id);\n        //       prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr(\"selected\", \"selected\");\n        //       // var medicine_id = $(\"#medicine_id-\"+table_row_id).val();\n        //       var potency_id = $(\"#potency_id-\" + table_row_id).val();\n        //       /***********This code is used for storing the medicine and potency in same array*************/\n        //       //  var id = $(this).attr(\"id\");\n        //       var potency_mix = $(\"#medicine_name-\" + table_row_id).attr('data-poten');\n        //       var medicine_mix = $(\"#medicine_name-\" + table_row_id).attr('data-med');\n        //       var value = $(\"#medicine_name-\" + table_row_id).val();\n        //       var combination = medicine_mix + \"_\" + potency_mix;\n        //       if ((potency != undefined) && (medicine != undefined) && (value != '')) {\n        //         midicinePotencty.push(combination);\n        //       }\n        //       $(\"#medi_potn_combo\").val(midicinePotencty);\n        //       /*********End*************/\n        //       //$(\"#id-\" + table_row_id).detach();\n        //       $(\"#id-\" + table_row_id).detach();\n        //       //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        //       subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control medicineItem medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"'+tableDataOrder+'\" data-singlemedicineform=\"'+singleMedicineform+'\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + table_row_id + '\" id=\"potency_id-' + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n        //     });\n\n        //     $(\"#medi_potn_combo\").val(midicinePotencty);\n        //     $(\"#medi_potn_combo\").removeClass();\n        //     $(\"#medi_potn_combo\").addClass(\"mix_\" + next);\n\n        //     subhtml += '</table>';\n\n        //     html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow\" data-order=\"'+next_serial_no+'\" data-form=\"'+medform+'\">';\n        //     html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n        //     html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"'+next_serial_no+'\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n        //     html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n        //     //This line is reposnsible for form dropdown\n        //     html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" ></select></td>';\n\n        //     html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n        //     html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n\n        //     html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" value=\"'+originalSelects+'\" placeholder=\"Select Instruction\"></td></tr>';\n\n        //     $('#prescriptionmedicine').children('tbody:last').append(html);\n        //     //$('.editOption-'+next).show();\n        //     _this.checkEnableCheckbox();\n        //     //$('#prescriptionmedicine').trigger(\"sortEnd\");\n        //     $('#prescribe_medmix_name').val('');\n        //     /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n        //     $(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n\n        //   }\n        //   else {\n        //     $('#error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n        //     $(\"#error .alert\").fadeToggle(5000);\n        //   }\n        // });\n        /*This script is used for Expand and Collaps view history and prescribe table both July 20 2019 Shubh Tiwari */\n        $('.btn2').click(function () {\n          jQuery.noConflict();\n          $('#visithistoryPopup').modal('show');\n        });\n        // $('#btn2').click(function () {\n        //   $('#cw-details-table').toggleClass('cwtable-expand');\n        //   $('#ce-History-Import').toggleClass('cwtable-collaps');\n        // });\n\n        /*This script is used for Check at least one mix checkbox July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.undo-delete-row', function (event) {\n          var checked = $('#cwPrescribeForm tbody td input:checked').length > 0;\n          var singleMedicine = [];\n          $('#cwPrescribeForm tbody td input:checked').each(function () {\n            var rowId = $(this).attr('id');\n            var rowidNum = rowId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + rowidNum).val();\n            if (medicineType == 'single') {\n              singleMedicine.push(rowidNum);\n            }\n          });\n          if (singleMedicine.length > 0) {\n            swal({\n              text: 'Please select only mix medicine to unmix.',\n              icon: 'info',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            event.preventDefault();\n            swal({\n              text: 'Please check at least one mix checkbox to unmix medicine',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            swal({\n              title: 'Are you sure you want to unmix medicine?',\n              icon: 'warning',\n              buttons: true,\n              dangerMode: true\n            }).then(willDelete => {\n              if (willDelete) {\n                var uniqueserialnumberArray = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).closest('tr').attr('data-order');\n                }).get();\n                //console.log(uniqueserialnumberArray);\n                var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                //console.log(arrays);\n                arrays.forEach(function (index) {\n                  var table1 = $('#mixtale-' + index);\n                  $(table1).find('tr:gt(0)').each(function () {\n                    //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase()\n                    //var serial_no = max_count;\n                    var cnt = $(this).data('mixrowid');\n                    //console.log(cnt);\n                    var table_row_id = $(this).data('ontheflyrow');\n                    var serial_no = table_row_id;\n                    //console.log(table_row_id);\n                    var medicine = $('.medicine_name-' + cnt).val();\n                    var max = _this.rowMaxSerialNo();\n                    var next_serial_no = parseInt(max) + 1;\n                    var original_serial_no = $('.medicine_name-' + cnt).attr('data-uniqueserial');\n                    var singleMedicineform = $('.medicine_name-' + cnt).attr('data-singleMedicineform');\n                    var formcode = singleMedicineform.replace(/\\d+/g, '');\n                    var potency = $('.potency-' + cnt).val();\n                    var potency_id = $('#potency_id-' + cnt).val();\n                    var dilution = $('.dilution-' + cnt).val();\n                    var medicine_id = $('#medicine_id-' + cnt).val();\n                    var prescribeform = $('.prescribeform-' + cnt).clone().attr('id', 'prescribeform-' + cnt);\n                    //console.log(prescribeform);\n                    var instruction = $('.instructionItem').clone().attr('id', 'instruction-' + cnt);\n                    var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + cnt).find('option:selected').val();\n                    //console.log(originalSelects);\n                    var factor = 1;\n                    var html = '';\n                    html += '<tr id=\"id-' + serial_no + '\" class=\"tableRow previousRow\" data-order=\"' + original_serial_no + '\" data-medform=\"' + singleMedicineform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + original_serial_no + '\" data-uniqueserial=\"' + original_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + serial_no + '\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-type=\"single\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" /> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\" id=\"medicine_type-' + serial_no + '\" value=\"single\"/> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"/><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td> <input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" value=\"' + potency + '\" type=\"text\" readonly=\"readonly\" /> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td> <input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" value=\"' + dilution + '\" type=\"text\" readonly=\"readonly\"/></td>';\n                    /**************This below function is used for getting the all form for perticular medicine******************/\n                    $.ajax({\n                      type: 'POST',\n                      url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                      data: {\n                        potency: potency_id,\n                        medicine: medicine_id\n                      },\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (response) {\n                        $('#prescribeform-' + serial_no).empty();\n                        response.forEach(function (form) {\n                          if (form.fcode == formcode) {\n                            var selected = 'selected';\n                          } else {\n                            var selected = '';\n                          }\n                          $('#prescribeform-' + serial_no).append('<option  ' + selected + ' value=\"' + form.gId + '-' + form.fcode + '-' + form.fname + '\">' + form.fcode + '</option>');\n                        });\n                      }\n                    });\n                    /***********End********************/\n                    //This below code line is Responsible for Medicine form listing\n                    // html += '<td> <select name=\"formItem['+serial_no+']\" class=\"form-control formItem\" id=\"prescribeform-'+serial_no+'\">'+prescribeform[0].innerHTML+'</select></td>';\n                    html += '<td> <select name=\"formItem[' + serial_no + ']\" class=\"form-control formItem\" id=\"prescribeform-' + serial_no + '\"><option value=\"10-G-Globule\">G</select></td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td> <input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevialItem\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td><select name=\"instructionItem[' + serial_no + ']\" class=\"form-control cwareinstruction-' + serial_no + ' iother-' + serial_no + ' instructionItem\" id=\"instruction-' + serial_no + '\">' + instruction[0].innerHTML + '</select><input  id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n                    var p = $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + table_row_id).after(html);\n                    if (p.length == 0) {\n                      var max = _this.rowMaxSerialNo();\n                      var next_serial_no = parseInt(max) + 1;\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      $('#srno-' + serial_no).val(next_serial_no);\n                      $('#id-' + serial_no).attr('data-order', next_serial_no);\n                      $('#srno-' + serial_no).attr('value', next_serial_no);\n                      $('#srno-' + serial_no).attr('data-uniqueserial', next_serial_no);\n                    }\n                    _this.checkEnableCheckbox();\n                    // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n                    $('.editOption-' + serial_no).show();\n                    $('.editOption-' + serial_no).attr('placeholder', 'Select Instruction');\n                  });\n                  $('.cw-mix-medicine-' + index).remove();\n                  $('.checkAll').prop('checked', false);\n                  $('.geometry').prop('checked', false);\n                });\n              } else {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        });\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.combo-prescription', function (event) {\n          $('#prescribe_dosage_instruction').val('');\n          $('#selecteddosage').empty();\n          $('.otherOption').hide();\n          var checked = $('#cwPrescribeForm tbody td input:checked').length >= 2;\n          if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n              return $(this).val();\n            }).get();\n            _this.controllerFor('billing').send('getCheckedVaue', arrays);\n            $('#cwComboInstruction').modal('show');\n            $('#prescribe_dosage_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit 17 July 2025 Shubh Tiwari */\n        // Create a mapping object for correcting instructions\n        const instructionMapping = {\n          \"1 & 2 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"1, 2 and 3 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"1, 2, 3 & 4 alternately every 1.5 hours\": \"alternately every 1.5 hours\",\n          \"1, 2, 3 and 4 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"2 & 3 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"2, 3, 4 alternately every 2 hours\": \"alternately every 2 hours\"\n        };\n        $('#dosage_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          let serialIdArray = [];\n          let serialNumbers = [];\n          let error = '';\n          const dosageVal = $('#prescribe_dosage_instruction option:selected').text().trim();\n          let instructionName = '';\n\n          // Check if 'Other' is selected or if a custom instruction is given\n          if (dosageVal === 'Other' || dosageVal !== 'Select Instruction') {\n            instructionName = $('.otherOption').val().trim();\n          }\n          console.log('instructionName before correction:', instructionName);\n\n          // Replace the incorrect instruction with the correct one based on the mapping\n          if (instructionMapping[instructionName]) {\n            instructionName = instructionMapping[instructionName];\n          }\n          console.log('instructionName after correction:', instructionName);\n          if (!instructionName) {\n            error = '<p>Enter Pharmacy Instruction</p>';\n            $('#prescribe_dosage_instruction').focus();\n          }\n          if (error) {\n            $('#dosageerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#dosageerror .alert').fadeToggle(5000);\n            return; // Exit early on error\n          }\n          $('#cwComboInstruction').modal('hide');\n          $('.geometry, .checkAll').prop('checked', false);\n\n          // Collect serial numbers from the table\n          $('#cwarecombo td.rowvalue').each(function () {\n            const rowId = this.id;\n            const serialNumber = $(this).text().trim();\n            console.log('Row ID:', rowId, 'Serial Number:', serialNumber);\n            serialIdArray.push(rowId);\n            serialNumbers.push(serialNumber);\n          });\n\n          // Format serial numbers as \"1, 2 & 3\"\n          const formattedSerials = formatSerialNumbers([...serialNumbers]);\n          const fullInstruction = formattedSerials + ' ' + instructionName;\n\n          // Update the instruction for each serial ID\n          serialIdArray.forEach(serialId => {\n            const $instructionSelect = $('#instruction-' + serialId);\n            let $editOption = $('.editOption-' + serialId);\n\n            // Clear current selection\n            $instructionSelect.find('option:selected').removeAttr('selected');\n            if ($editOption.length === 0) {\n              const inputHtml = `<input \n                          id=\"edit_instruction-${serialId}\" \n                          name=\"instruction[${serialId}]\" \n                          class=\"editOption-${serialId} inst_other\"\n                          value=\"${fullInstruction}\" \n                          data-toggle=\"tooltip\" \n                          data-placement=\"bottom\" \n                          data-original-title=\"${fullInstruction}\"\n                      >`;\n              $instructionSelect.closest('td').append(inputHtml);\n            } else {\n              $editOption.val(fullInstruction).attr('value', fullInstruction).attr('data-original-title', fullInstruction).show();\n            }\n\n            // Set the select value\n            $instructionSelect.val(fullInstruction).find('option[value=\"' + fullInstruction + '\"]').attr('selected', true);\n          });\n          $('#prescribe_dosage_instruction').val('');\n          $('#other_combo_prescription').val('');\n          $('.other_combo_prescription').hide(100);\n        });\n\n        // Function to format serial numbers as \"1, 2 & 3\"\n        function formatSerialNumbers(serialNumbers) {\n          if (serialNumbers.length === 1) {\n            return serialNumbers[0];\n          }\n          const last = serialNumbers.pop();\n          return serialNumbers.join(', ') + ' & ' + last;\n        }\n\n        /*This script is used for other instruction popup July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.cware_other', function (event) {\n          $('#other_instruction').val('');\n          $('#otherinstructionid').empty();\n          var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n          var dropdown_id = dropdown_parent_id.split('-');\n          var dropdown_option_id = $(this).val();\n          if (dropdown_id != '' && dropdown_option_id == 1) {\n            event.preventDefault();\n            jQuery.noConflict();\n            _this.controllerFor('billing').send('setDropdownId', dropdown_id[1]);\n            $('#OtherInstruction').modal('show');\n            $('#other_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit July 20 2019 Shubh Tiwari */\n        $('#other_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          $('#other_instruction').empty();\n          var error = '';\n          var other_val = $('#other_instruction').val();\n          var insid = $('#otherinstructionid :input').val();\n          var other_value = $('.iother-' + insid + ' ' + 'option:selected').val();\n          if (other_val == '') {\n            error += '<p>Please enter other instruction</p>';\n            $('#other_instruction').focus();\n          }\n          if (error == '') {\n            $('#OtherInstruction').modal('hide');\n            if (other_value == 1) {\n              $('.iother-' + insid).append(\"<option selected=selected value='\" + other_val + \"' >\" + other_val + '</option>');\n            }\n            $('#other_instruction').val('');\n          } else {\n            $('#othererror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#othererror .alert').fadeToggle(8000);\n          }\n        });\n\n        // This below jquery code is used to predefind instruction edit Shubh Tiwari, 16 June 2023\n        $(document).on('keyup', '.otherOption', function (event) {\n          var initialText = $(this).val();\n          $('.otherOption').removeAttr('value');\n          $('.otherOption').val(initialText);\n          $('.otherOption').attr('value', initialText);\n        });\n\n        //This below Jquery code is used to make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list Shubh Tiwari, 10 Sept 2020\n\n        $(document).on('change', '#prescribe_dosage_instruction', function (event) {\n          var intruction_id = $(this).attr('id');\n          var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n          // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n          if (initialText != 'Other') {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val(initialText);\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          } else {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val('');\n            $('.otherOption').attr('placeholder', 'Please enter other value');\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          }\n        });\n\n        // $(document).on('change', '.comboprescription', function (event) {\n        //   var instruction_id = $('#prescribe_dosage_instruction').val();\n        //   if (instruction_id == 1) {\n        //     $(\".other_combo_prescription\").show(100);\n        //   } else {\n        //     $(\".other_combo_prescription\").hide(100);\n        //   }\n        // });\n\n        /*This script is used for medicine edit reason popup form submit Feb 11 2020 Shubh Tiwari */\n        $('#editReasonForm').on('submit', function (event) {\n          var _this = this;\n          event.preventDefault();\n          $('#edit_reason').empty();\n          var error = '';\n          var edit_reason_val = $.trim($('#edit_reason').val());\n          if (edit_reason_val == '') {\n            error += '<p>Please enter edit reason</p>';\n            $('#edit_reason').focus();\n          } else if (edit_reason_val.length < 5) {\n            error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n            $('#edit_reason').focus();\n          }\n          if (error == '') {\n            $('#MedicineEditReasonPopup').modal('hide');\n            $('#medicine_edit_reason').val(edit_reason_val);\n            $('.reasons_show').html('<b>Edit Reason: </b>' + edit_reason_val);\n            $('.apply_reasons_edit').css('display', 'block');\n            $('#edit_reason').val('');\n          } else {\n            $('#edit_reasonerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#edit_reasonerror .alert').fadeToggle(8000);\n          }\n        });\n        /*This script is used for medicine edit reason resset Feb 27 2020 Shubh Tiwari */\n        $('.resset_data').on('click', function (event) {\n          $('#edit_reason').val('');\n        });\n\n        /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.formItem', function (ele) {\n          var error = '';\n          var duplicateMedicineArray = [];\n          var tableRowIdArray = [];\n          var serialnumberArray = [];\n          var dmf_tableRowIdArray = [];\n          var dmf_serialnumberArray = [];\n          var onspot_mix_duplicateMedicineArray = [];\n          $('.formItem').each(function () {\n            var factor_input_id = $(this).attr('id').split('-')[1];\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            if (selectedOptionText != '') {\n              $('#medicinevial-' + factor_input_id).val('');\n              if (selectedOptionText == 'L') {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('#medicinevial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v1 = Math.ceil(fvalue / 4);\n                $('#medicinevial-' + factor_input_id).val(v1);\n              }\n            }\n          });\n          /* This code is used for changing data of table row medForm */\n          var currentRowId = ele.target.id.replace('prescribeform-', '');\n          var currentMedicineId = $('#medicine_id-' + currentRowId).val();\n          var selectedForm = $('#prescribeform-' + currentRowId).val();\n          var selectedOptionText = $('#prescribeform-' + currentRowId + \" option[value^='\" + selectedForm + \"']\").text();\n          var form_unique = parseInt(currentMedicineId, 10) + selectedOptionText;\n          $('#id-' + currentRowId).attr('data-medForm', form_unique);\n\n          /*Start code for checking single medicine dublicate medicine name, potency, dilution and form 24 Dec 2020 Shubh Tiwari*/\n          //This Row id used for getting the row number\n          var currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          // var currentMedicneValue  = $(\"#medicine_name-\"+currenyRowidNum).attr('data-medicine').trim();\n          var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n          var currentMedicineForm = $('#prescribeform-' + currenyRowidNum).val();\n          var currentMedicineFormValue = currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineItem').map(function () {\n            // var medicineName  = $(this).attr('data-medicine').trim();\n            var medicineName = $(this).attr('data-medicine');\n            var medicineRowId = $(this).attr('id');\n            var MedicinwRowNum = medicineRowId.split('-')[1];\n            var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n            var MedicineRowFormValue = MedicineRowForm.split('-')[1];\n            if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n              duplicateMedicineArray.push(currenyRowidNum);\n              duplicateMedicineArray.push(MedicinwRowNum);\n              return MedicinwRowNum;\n            }\n          }).get();\n          var uniqueduplicateMedicineArray = duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortduplicateMedicineArray = uniqueduplicateMedicineArray.sort();\n          sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (duplicateMedicineArray.length > 0) {\n            var formName = _this.getFormName(currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var d_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n          var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n          var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n          var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n          $('.medicineItem').map(function () {\n            var d_medicineName = $(this).attr('data-medicine');\n            var d_medicineRowId = $(this).attr('id');\n            var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n            var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n            if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n              tableRowIdArray.push(d_currentRowidNum);\n              tableRowIdArray.push(d_MedicinwRowNum);\n              serialnumberArray.push(currentMedicineSerial_no);\n              serialnumberArray.push(previousMedicineSerial_no);\n              return d_MedicinwRowNum;\n            }\n          }).get();\n          var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortserialnumber = uniqueserialnumberArray.sort();\n          var sortTableRowIdArray = uniquetableRowIdArray.sort();\n          // console.log(sortserialnumber);\n          // console.log(sortTableRowIdArray);\n          if (sortserialnumber.length > 0) {\n            var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n            //console.log(getminimumserialnumber);\n            for (var i = 0; i < sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = getminimumserialnumber + getChar;\n              $('#srno-' + sortTableRowIdArray[i]).val(p);\n              $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n\n          /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n          var onspot_mix_currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          var onspot_mix_currentMedicneName = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicneValue = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).attr('data-med');\n          var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicineFormValue = onspot_mix_currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineMixItem').map(function () {\n            var onspot_mix_medicineName = $(this).attr('data-med');\n            var onspot_mix_medicineRowId = $(this).attr('id');\n            var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n            var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n            var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n            if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n              return onspot_mix_MedicinwRowNum;\n            }\n          }).get();\n          var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n          onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (onspot_mix_duplicateMedicineArray.length > 0) {\n            var error = '';\n            var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + onspot_mix_currentMedicneName + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('mix_medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var dmf_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n          var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n          $('.medicineMixItem').map(function () {\n            var dmf_medicineName = $(this).attr('data-med');\n            var dmf_medicineRowId = $(this).attr('id');\n            var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n            var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n            if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n              dmf_tableRowIdArray.push(dmf_currentRowidNum);\n              dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n              dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n              dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n              return dmf_MedicinwRowNum;\n            }\n          }).get();\n          var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n          var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n          // console.log(dmf_sortserialnumber);\n          // console.log(dmf_sortTableRowIdArray);\n          if (dmf_sortserialnumber.length > 0) {\n            var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n            //console.log(dmf_getminimumserialnumber);\n            for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = dmf_getminimumserialnumber + getChar;\n              $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n              $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n          /* End code, Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n        });\n\n        //This below code block is added for prevent duplicate Medicine/Mix serial Number, 08 Aug 2019\n        $(document).on('keyup paste', '.srnoItem', function () {\n          $('.srnoItem').each(function () {\n            var value1 = $(this).val();\n            var id1 = $(this).attr('id');\n            var duplicateRow = $('.srnoItem').map(function () {\n              var value2 = $(this).val();\n              var id2 = $(this).attr('id');\n              if (id1 != id2 && value1 == value2) {\n                return value2;\n              }\n            }).get();\n            if (duplicateRow.length > 0) {\n              swal('Duplicate!', 'This medicine/Mix seriel number is occupied by already added Medcine/Mix.', 'error');\n              $('#' + id1).addClass('duplicate_serial');\n            } else {\n              $('#' + id1).removeClass('duplicate_serial');\n            }\n          });\n        });\n        /*End here duplicate Medicine/Mix serial number code */\n        // allow enter only numbers\n        $(document).on('input', '.onlynumeric', function () {\n          this.value = this.value.replace(/\\D/g, '');\n        });\n\n        /*This below script is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019 */\n        $(document).on('keyup keypress change paste', '.factorItem', function () {\n          $('.factorItem').each(function () {\n            var qty = $(this).val();\n            var table_row_id = $(this).parent().parent().attr('id');\n            var factor_id = $(this).attr('id');\n            // replace(/[^\\d.]/g, '');\n            var factor_input_id = $(this).attr('id');\n            var factor_id_code = factor_input_id.split('-')[1];\n            // Change factor value on change, Shubh Tiwari 05 July 2023\n            $('#factor-' + factor_id_code).removeAttr('value');\n            $('#factor-' + factor_id_code).val(qty);\n            $('#factor-' + factor_id_code).attr('value', qty);\n            $('#medicinevial-' + factor_id_code).removeAttr('value');\n            $('#medicinevial-' + factor_id_code).val(qty);\n            $('#medicinevial-' + factor_id_code).attr('value', qty);\n            var selectedForm = $('#prescribeform-' + factor_id_code).val();\n            var selectedOptionText = $('#prescribeform-' + factor_id_code + \" option[value^='\" + selectedForm + \"']\").text();\n            //This below condition is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019\n            if (qty > 1 || qty < 300) {\n              if (selectedOptionText != '') {\n                $('#medicinevial-' + factor_id_code).val('');\n                if (selectedOptionText == 'L') {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v = fvalue / 2;\n                  var b = Math.ceil(v);\n                  $('#medicinevial-' + factor_id_code).val(b);\n                } else {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v1 = Math.ceil(fvalue / 4);\n                  $('#medicinevial-' + factor_id_code).val(v1);\n                }\n              }\n            }\n            if (qty > 300) {\n              swal({\n                text: 'Factor value cannot exceed 300.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + factor_id).val(1);\n              $('#medicinevial-' + factor_id_code).val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $('#' + factor_id).val(0);\n              $('#medicinevial-' + factor_id_code).val(0);\n              var qty = 0;\n              $('#' + table_row_id).addClass('zerofactor');\n              $('#' + table_row_id).attr('title', 'None billing medicine');\n            } else {\n              $('#' + table_row_id).removeClass('zerofactor');\n              $('#' + table_row_id).removeAttr('title');\n            }\n          });\n        });\n        $(document).on('keyup keypress change paste', '.medicinevialItem ', function () {\n          $('.medicinevialItem ').each(function () {\n            var vial = $(this).val();\n            var vaial_id = $(this).attr('id');\n            if (vial > 100) {\n              swal({\n                text: 'Vial value cannot exceed 100.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + vaial_id).val(1);\n              var vial = 1;\n            }\n            if (vial < 1) {\n              $('#' + vaial_id).val(0);\n              var vial = 0;\n            }\n          });\n        });\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          //This below code is used for avoding the double trigger issue\n          if (e.altKey && e.which == 65) {\n            //This condition is used for add New medicine by shortcut Alt+A\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.add-prescription-medicine').trigger('click');\n          } else if (e.altKey && e.which == 68) {\n            //This condition is used for removing the selected medicines by shortcut Alt+D\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.delete-row').trigger('click');\n          } else if (e.altKey && e.which == 77) {\n            //This condition is used for adding the on the fly Mix medicine by shortcut Alt+M\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.cw-Medicine').trigger('click');\n          } else if (e.altKey && e.which == 78) {\n            //This condition is used for unmixing the selected mix by shortcut Alt+N\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.undo-delete-row').trigger('click');\n          } else if (e.altKey && e.which == 67) {\n            //This condition is used for appling combo prescription mix by shortcut Alt+C\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.combo-prescription').trigger('click');\n          } else if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_name-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              //console.log(\"#results\" + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n      function retainSerialNos(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        var p = $(this).closest('tr').attr('data-order');\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var medicineSerialNo = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            //console.log(history_duplicateRow);\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                var array_elements = _this.multiSort(history_response, {\n                  id: 'desc'\n                });\n                //console.log(array_elements+'shubh');\n                //console.log(array_elements);\n                var max = _this.rowMaxSerialNo();\n                array_elements.forEach(function (val) {\n                  //console.log('a'+val.id);\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var common_serial = val.medicine_serial_no.toUpperCase();\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (vial_check_value == 0) {\n                    var vial = 1;\n                  } else if (vial_check_value == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                    var ontheflymix_id = val.id;\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var ontheflymix_id = val.id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  } else {\n                    var ontheflymix_id = medicine_id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  }\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + ontheflymix_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" data-ontheflyId=\"' + j + '\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  //$('.clear_prescription').remove(); by shubh tiwari as on 16-05-2023\n                  //$('#prescriptionmedicine').prepend(html);\n                  //console.log(html);\n                  //$('#prescriptionmedicine > tbody.tbody > tr:first').before(html);\n                  $(html).prependTo('#prescriptionmedicine > tbody.tbody');\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  _this.checkEnableCheckbox();\n                  $('.importRow').each(function () {\n                    var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n                    medicineSerialNo.push(parseInt(serialNo));\n                  });\n                  //console.log(medicineSerialNo);\n                  //var getminimumserialnumber = Math.max.apply(Math,medicineSerialNo);\n                  //console.log(getminimumserialnumber);\n                  // var imported_distinct_medicine_serial_no_array = medicineSerialNo.filter(function(itm, i, medicineSerialNo) {\n                  //   return i == medicineSerialNo.indexOf(itm);\n                  //  });\n                  var previousTableRowArray = $('.previousRow').map(function () {\n                    return $(this).attr('id');\n                  }).get();\n                  previousTableRowArray.forEach(function (item, index) {\n                    var number = index + 1;\n                    //console.log(common_serial);\n                    //console.log(number);\n                    //console.log(max);\n                    //return parseInt(max, 10)+1;\n                    //var previousSerialNo =parseInt(getminimumserialnumber) + parseInt(number);\n                    //console.log(previousSerialNo);\n                    var rowsId = item.split('-')[1];\n                    // Write below this code for resolved this issue(When we import medicines from a previous visit, and choose to retain old serial numbers, the newly added medicines (on the current visit) are given numbers after the highest number of the imported medicines, even if the numbers are different. For example if I have entered medicine numbers 5 and 6 as new medicines for the current prescription and then import and choose to retain old serial numbers of imported medicines which are 1, 2 and 3 the new medicines already entered are given numbers 4 & 5 instead of just staying with 5 & 6 as entered)\n                    var previousSerialNo = $('#' + item).attr('data-order');\n                    // console.log(imported_distinct_medicine_serial_no_array);\n                    // if (imported_distinct_medicine_serial_no_array.indexOf(previousSerialNo) !== -1) {\n\n                    // }\n                    $('#id-' + rowsId).attr('data-order', previousSerialNo);\n                    $('#srno-' + rowsId).val(previousSerialNo);\n                    $('#srno-' + rowsId).attr('value', previousSerialNo);\n                    $('#srno-' + rowsId).attr('data-uniqueserial', previousSerialNo);\n                  });\n                  //console.log(previousTableRowArray);\n                });\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      function appendMedicine(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            // Serial number start with 1 when click on clear prescriptin button then import prescription with first option(Append these medicines to the end of existing medicines and assign new serial number.) Written by Shubh Tiwari as on 11-05-2023\n            var clear_p_serial_no = $('.clear_prescription').closest('tr').attr('data-order');\n            if (clear_p_serial_no !== undefined && clear_p_serial_no == 1) {\n              var max = 0;\n            } else {\n              var max = _this.rowMaxSerialNo();\n            }\n            //console.log(max);\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              //console.log(result.isDenied);\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                $.each(history_response, function (index, val) {\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var number = index + 1;\n                  var common_serial = parseInt(max, 10) + number;\n                  //var serial_no = Date.now().toString().substr(6);\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (vial_check_value == 0) {\n                    var vial = 1;\n                  } else if (vial_check_value == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  // if (instruction_other != '') {\n                  //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n                  // }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  // if (instruction_other != '') {\n                  //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n                  // }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var common_id = val.id;\n                    var medform = parseInt(common_id) + f_code;\n                  } else {\n                    var common_id = medicine_id;\n                    var medform = parseInt(common_id) + f_code;\n                  }\n\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + common_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  $('.clear_prescription').remove();\n                  $('#prescriptionmedicine').last().append(html);\n                  $('#importvisitid').val(appointment_id);\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  _this.recalculateAmount.allSuccessMessage('Visit history imported successfully!');\n                  //$('#visitmessage').html('<div class=\"alert alert-success\"> Visit history imported successfully! </div>');\n                  //$('#visitmessage .alert').fadeToggle(10000);\n                  _this.checkEnableCheckbox();\n                });\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('.cleartable li :checkbox').prop('checked', false);\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      $(document).on('keydown', '#precribe_pharmacy_instruction', function (e) {\n        var INPUT_SELECTOR = ':input:enabled:visible';\n        var inputs = $(INPUT_SELECTOR);\n        //UP\n        var i = 0,\n          inp;\n        if (e.keyCode == 38) {\n          inp = inputs[i > 0 ? parseInt(i) - 1 : inputs.length - 1];\n        }\n        //DOWN\n        if (e.keyCode == 40) {\n          inp = inputs[i < inputs.length - 1 ? parseInt(i) + 1 : 0];\n        }\n        moveFocusTo(inp);\n        e.stopImmediatePropagation();\n        return false;\n      });\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    factorCarryForward(factor, vial, table_row) {\n      //console.log(factor);\n      //console.log(vial);\n      //console.log(table_row);\n      if (factor > 0 || vial > 0) {\n        $('#medicinevial-' + table_row).parent().parent().removeClass('zerofactor');\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n      } else if (factor == 0 || vial == 0) {\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n        $('#medicinevial-' + table_row).parent().parent().addClass('zerofactor');\n      } else if (factor == undefined || vial == undefined) {\n        $('#factor-' + table_row).val(1);\n        $('#medicinevial-' + table_row).val(1);\n      }\n    },\n    sortMedicineRow(tableId) {\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n\n        // if the alphabetic part of a is less than that of b => -1\n\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n        // if the alphabetic part of a is greater than that of b => 1\n\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n        // if the alphabetic parts are equal, check the number parts\n\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n\n        // else, just sort using the numbers parts\n\n        return _n;\n      }).appendTo($tbody);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    /**\n     * Sorts an array of objects by column/property.\n     * @param {Array} array - The array of objects.\n     * @param {object} sortObject - The object that contains the sort order keys with directions (asc/desc). e.g. { age: 'desc', name: 'asc' }\n     * @returns {Array} The sorted array.\n     */\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    },\n    nextChar(check_number) {\n      var u = check_number.toUpperCase();\n      //console.log(check_number);\n      if (this.same(u, 'Z')) {\n        var txt = '';\n        var i = u.length;\n        while (i--) {\n          txt += 'A';\n        }\n        return txt + 'A';\n      } else {\n        var p = '';\n        var q = '';\n        if (u.length > 1) {\n          p = u.substring(0, u.length - 1);\n          q = String.fromCharCode(p.slice(-1).charCodeAt(0));\n        }\n        var l = u.slice(-1).charCodeAt(0);\n        var z = this.nextLetter(l);\n        if (z === 'A') {\n          return p.slice(0, -1) + this.nextLetter(q.slice(-1).charCodeAt(0)) + z;\n        } else {\n          return p + z;\n        }\n      }\n    },\n    nextLetter(l) {\n      if (l < 90) {\n        return String.fromCharCode(l + 1);\n      } else {\n        return 'A';\n      }\n    },\n    same(str, char) {\n      var i = str.length;\n      while (i--) {\n        if (str[i] !== char) {\n          return false;\n        }\n      }\n      return true;\n    },\n    checkEnableCheckbox() {\n      var checkedValue = $('#sort-serial').is(':checked');\n      if (checkedValue == true) {\n        $('.srnoItem').attr('readonly', false);\n      } else {\n        $('.srnoItem').attr('readonly', true);\n      }\n    },\n    arrayToText(a) {\n      if (a.length <= 2) {\n        return a.join(' and ');\n      } else {\n        return a.slice(0, -1).join(', ') + ' and ' + a[a.length - 1];\n      }\n    },\n    getSelectedTableRow(formCode, medicine_id, next) {\n      //console.log(formCode);\n      //console.log(formCode[0]['form_code']);\n      var resultObject = this.search('selected', formCode);\n      //console.log(resultObject);\n      if (resultObject == undefined) {\n        var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      } else if (resultObject.selected == 'selected') {\n        var form_unique = parseInt(medicine_id, 10) + resultObject.form_code;\n      }\n      $('#id-' + next).attr('data-medForm', form_unique);\n      // formCode.forEach(function(item){\n      //   if(item.selected=='selected'){\n      //     var form_unique = parseInt(medicine_id, 10) + item.form_code;\n      //   } else{\n      //     var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      //   }\n      //   $(\"#id-\" + next).attr('data-medForm', form_unique);\n      // });\n    },\n    mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray) {\n      var dmf_currentRowidNum = serial_no;\n      var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n      var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n      $('.medicineMixItem').map(function () {\n        var dmf_medicineName = $(this).attr('data-med');\n        var dmf_medicineRowId = $(this).attr('id');\n        var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n        var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n        if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n          dmf_tableRowIdArray.push(dmf_currentRowidNum);\n          dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n          dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n          dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n          return dmf_MedicinwRowNum;\n        }\n      }).get();\n      var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n      var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n      // console.log(dmf_sortserialnumber);\n      // console.log(dmf_sortTableRowIdArray);\n      if (dmf_sortserialnumber.length > 0) {\n        var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n        //console.log(dmf_getminimumserialnumber);\n        for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = dmf_getminimumserialnumber + getChar;\n          $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n          $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray) {\n      var d_currentRowidNum = serial_no;\n      var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n      var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n      var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n      var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n      $('.medicineItem').map(function () {\n        var d_medicineName = $(this).attr('data-medicine');\n        var d_medicineRowId = $(this).attr('id');\n        var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n        var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n        if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n          tableRowIdArray.push(d_currentRowidNum);\n          tableRowIdArray.push(d_MedicinwRowNum);\n          serialnumberArray.push(currentMedicineSerial_no);\n          serialnumberArray.push(previousMedicineSerial_no);\n          return d_MedicinwRowNum;\n        }\n      }).get();\n      var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var sortTableRowIdArray = uniquetableRowIdArray.sort();\n      //console.log(sortserialnumber);\n      //console.log(sortTableRowIdArray);\n      if (sortserialnumber.length > 0) {\n        var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n        //console.log(getminimumserialnumber);\n        for (var i = 0; i < sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = getminimumserialnumber + getChar;\n          $('#srno-' + sortTableRowIdArray[i]).val(p);\n          $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    //new mixMedicineRow script Shubh Tiwari 29 June 2023\n    mixMedicineRow() {\n      var _this = this;\n      var mix_medicine = '';\n      var mix_val = '';\n      var mix_medicine_val = '';\n      var appointment_id = $('input[name=appointment_id]').val();\n      var checkbox_checked_vaue = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return $(this).val();\n      }).get();\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val().trim();\n        var potency = $('.potency-' + checkbox_checked_vaue[i]).val().trim();\n        mix_medicine += medicine + ' ' + potency + ' ' + '+' + ' ';\n      }\n      mix_medicine_val = mix_medicine.trim();\n      mix_val = mix_medicine_val.slice(0, -2);\n      //console.log(checkbox_checked_vaue[0]);\n      var max = _this.rowMaxSerialNo();\n      var next_serial_no = parseInt(max) + 1;\n      var uniqueserialnumberArray = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return parseInt($(this).closest('tr').attr('data-order'));\n      }).get();\n      //console.log(uniqueserialnumberArray);\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n      //console.log(getminimumserialnumber);\n      // Due to this $(':checkbox:checked:first') script value was getting undefined, Written as on 13 April 2022 by Shubh Tiwari\n      //var checked_last_id = $(':checkbox:checked:first');\n      var checked_last_id = $('#prescriptionmedicine td input[type=checkbox]:checked:first').attr('id');\n      var next_sr_no = checked_last_id.split('-');\n      var next = next_sr_no[1];\n      var medform = $('#id-' + next).attr('data-medform');\n      var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n      var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + next).find('option:selected').val();\n      //console.log(originalSelects);\n      var selectedValue = $('#prescribeform-' + next).val();\n      var prescribeform = $('#prescribeform-' + next).clone().attr('id', 'prescribeform-' + next);\n      prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr('selected', 'selected');\n      var selectedFactor = $('#factor-' + next).val();\n      var medicinevial = $('#medicinevial-' + next).val();\n      //This condition is used for checking factor carry forward Shubh Tiwari 07 July 2023\n      if (selectedFactor > 0 || medicinevial > 0) {\n        var zerofactor = '';\n        var factor = selectedFactor;\n      } else if (selectedFactor == 0 || medicinevial == 0) {\n        var factor = selectedFactor;\n        var zerofactor = 'zerofactor';\n      }\n      //var factor = 1;\n      /********This Array is initaised for stroring the combination of medicineId and potency id********/\n      var midicinePotencty = [];\n      var html = '';\n      var subhtml = '';\n      subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\" id=\"medicine_type-' + next + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n      $('#prescriptionmedicine td input[type=checkbox]:checked').each(function (index) {\n        var row = $(this).closest('tr')[0];\n        var tableDataOrder = $(this).closest('tr').attr('data-order');\n        var table_row_id = row.id.replace('id-', '');\n        var singleMedicineform = $('#id-' + table_row_id).attr('data-medform');\n        var medicine = $('#medicine_name-' + table_row_id).val();\n        var medicine_id = $('#medicine_id-' + table_row_id).val();\n        var medicine_type = $('#medicine_type-' + table_row_id).val();\n        var potency = $('#potency-' + table_row_id).val();\n        var dilution = $('#dilution-' + table_row_id).val();\n        var potency_id = $('#potency_id-' + table_row_id).val();\n        /***********This code is used for storing the medicine and potency in same array*************/\n        //  var id = $(this).attr(\"id\");\n        var potency_mix = $('#medicine_name-' + table_row_id).attr('data-poten');\n        var medicine_mix = $('#medicine_name-' + table_row_id).attr('data-med');\n        var value = $('#medicine_name-' + table_row_id).val();\n        var combination = medicine_mix + '_' + potency_mix;\n        if (potency != undefined && medicine != undefined && value != '') {\n          midicinePotencty.push(combination);\n        }\n        $('#medi_potn_combo').val(midicinePotencty);\n        /*********End*************/\n        //$(\"#id-\" + table_row_id).detach();\n        //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\"  data-ontheflyId=\"' + table_row_id + '\" class=\"form-control medicineItem mixname_change medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"' + tableDataOrder + '\" data-singlemedicineform=\"' + singleMedicineform + '\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + next + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + next + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + next + table_row_id + '\" id=\"potency_id-' + next + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n      });\n      $('#medi_potn_combo').val(midicinePotencty);\n      $('#medi_potn_combo').removeClass();\n      $('#medi_potn_combo').addClass('mix_' + next);\n      subhtml += '</table>';\n      html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow ' + zerofactor + '\" data-order=\"' + getminimumserialnumber + '\" data-form=\"' + medform + '\">';\n      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n      html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"' + getminimumserialnumber + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n      //This line is reposnsible for form dropdown\n      html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" >' + prescribeform[0].innerHTML + '</select></td>';\n      html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n\n      //$('#prescriptionmedicine').children('tbody:last').append(html);\n      //$('#prescriptionmedicine > tbody.tbody > tr').eq(getminimumserialnumber).after(html);\n      $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + checkbox_checked_vaue[0]).after(html);\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        $('#id-' + checkbox_checked_vaue[i]).remove();\n      }\n      // comment below this code by Shubh Tiwari 25 March 2021\n      //   $('td input.srnoItem').val(function (i) {\n      //       return i + 1;\n      //    });\n\n      //    $('td input.srnoItem').closest(\"tr\").attr('data-order', function (i){\n      //       return i + 1;\n      //   });\n\n      //   $('td input.srnoItem').attr('value', function (i) {\n      //       return i + 1;\n      //  });\n\n      //   $('td input.srnoItem').attr('data-uniqueserial', function (i) {\n      //       return i + 1;\n      //   });\n      // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n      $('.editOption-' + next).show();\n      $('.editOption-' + next).attr('placeholder', 'Select Instruction');\n      _this.checkEnableCheckbox();\n      /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n      //$(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n    },\n    getFormName(formCode) {\n      var Formname = function (code, name) {\n        this.code = code;\n        this.name = name;\n      };\n      var formArray = [new Formname('G', 'Globule'), new Formname('L', 'Liquid'), new Formname('O', 'Ounce'), new Formname('P', 'Powder')];\n      var utils = {};\n      // Could create a utility function to do this\n      utils.inArray = function (searchFor, property) {\n        var retVal = -1;\n        var self = this;\n        for (var index = 0; index < self.length; index++) {\n          var item = self[index];\n          if (item.hasOwnProperty(property)) {\n            if (item[property].toLowerCase() === searchFor.toLowerCase()) {\n              retVal = index;\n              return retVal;\n            }\n          }\n        }\n        return retVal;\n      };\n\n      // or we could create a function on the Array prototype indirectly\n      Array.prototype.inArray = utils.inArray;\n\n      // let's use the prototype for now\n      var i = formArray.inArray(formCode, 'code');\n      return formArray[i].name;\n    },\n    search(nameKey, myArray) {\n      for (var i = 0; i < myArray.length; i++) {\n        if (myArray[i].selected === nameKey) {\n          return myArray[i];\n        }\n      }\n    },\n    renderTemplate: function () {\n      this.render('billing.prescribeedit', {\n        controller: 'billing'\n      });\n    }\n  });\n  function isDoubleClicked(element) {\n    //if already clicked return TRUE to indicate this click is not allowed\n    if (element.attr(\"isclicked\")) return true;\n\n    //mark as clicked for 1 second\n    element.attr(\"isclicked\", true);\n    setTimeout(function () {\n      element.removeAttr(\"isclicked\");\n    }, 1000);\n\n    //return FALSE to indicate this click was allowed\n    return false;\n  }\n});","define(\"clinic-dev/routes/cancel-appointment\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('cancel-appointment', role_route_permission);\n      this.controllerFor('appointment').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('cancel-appointment', {\n        controller: 'appointment'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/cancel-appointment/doctor\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('cancel-appointment.patient', {\n        controller: 'appointment'\n      });\n    },\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      var pp = this.controllerFor('appointment').get('p');\n      var doctor_ids = this.controllerFor('appointment').get('doctor_id');\n      var dateTimes = this.controllerFor('appointment').get('dateTime');\n      var branches = this.controllerFor('appointment').get('branch');\n      if (typeof doctor_ids == 'undefined' || doctor_ids == null) {\n        this.transitionTo('cancel-appointment');\n      }\n      if (typeof dateTimes == 'undefined' || dateTimes == null) {\n        this.transitionTo('cancel-appointment');\n      }\n      var p = pp || 1;\n      var doctor_id = doctor_ids || '';\n      var dateTime = dateTimes || '';\n      var controller = this.controllerFor('appointment');\n      this.set('doctor_id', doctor_id);\n      var dateTime = dateTimes || '';\n      this.set('dateTime', dateTime);\n      var controller = this.controllerFor('appointment');\n      var q = this.doctor_id + ' ' + this.dateTime;\n      this.set('q', q);\n      var branch = branches || '';\n      this.set('branch', branch);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorStats',\n        data: {\n          p: p,\n          doctor_id: doctor_id,\n          dateTime: dateTime,\n          branch: branch\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('stats', res);\n          // console.log(res);\n        },\n        error: function (res) {\n          console.error(res);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctors',\n        data: {\n          p: p,\n          doctor_id: doctor_id,\n          dateTime: dateTime,\n          branch: branch\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          controller.set('appointments', res.data);\n        },\n        error: function (res) {\n          // console.error(res);\n        },\n        complete: function () {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/cancel-appointment/index\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('cancel-appointment.index', {\n        controller: 'appointment'\n      });\n    },\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      var controller = this.controllerFor('appointment');\n      //Reset Values\n      controller.set('doctor_id', null);\n      controller.set('dateTime', null);\n      controller.set('note', null);\n      controller.set('p', 1);\n      controller.set('sort', 'registration_number');\n      controller.set('order', 'DESC');\n      controller.set('q', '');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n        data: {},\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('doctors', res.data);\n        },\n        error: function (res) {\n          // console.error(res);\n        }\n      });\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'branches',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('branches', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/cancel-appointment/patient\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('cancel-appointment.patient', {\n        controller: 'appointment'\n      });\n    },\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      var pp = this.controllerFor('appointment').get('p');\n      var sorts = this.controllerFor('appointment').get('sort');\n      var orders = this.controllerFor('appointment').get('order');\n      var qes = this.controllerFor('appointment').get('q');\n      var controller = this.controllerFor('appointment');\n      var p = pp || 1;\n      var sort = sorts || 'registration_number';\n      var order = orders || 'DESC';\n      var q = qes || '';\n      if (typeof qes == 'undefined' || qes == null) {\n        this.transitionTo('cancel-appointment');\n      }\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/stats',\n        data: {\n          q: q\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('stats', res);\n          // console.log(res);\n        },\n        error: function (res) {\n          console.error(res);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/search',\n        data: {\n          p: p,\n          order: order,\n          sort: sort,\n          q: q\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          controller.set('appointments', res.data);\n        },\n        error: function (res) {\n          // console.error(res);\n        },\n        complete: function () {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/cancel-appointment/reschedule\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    slotLock: Ember.inject.service(),\n    ajaxAuth: Ember.inject.service(),\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.recalculateAmount.alertMessagePopupClose();\n      Ember.run.scheduleOnce('afterRender', this, function () {\n        var currentDate = new Date();\n        $('#appointment_date').datepicker({\n          //yearRange: '-20:+0',\n          dateFormat: 'mm/dd/yy',\n          //numberOfMonths: 2,\n          //showButtonPanel: true,\n          autoclose: true,\n          // changeMonth: true,\n          // changeYear: true,\n          // endDate: 'currentDate',\n          minDate: 0\n        }).on('changeDate', function (ev) {\n          $(this).datepicker('hide');\n        });\n        $('#appointment_date').keyup(function () {\n          if (this.value.match(/[^0-9]/g)) {\n            this.value = this.value.replace(/[^0-9^-]/g, '');\n          }\n        });\n      });\n\n      //date of birth select action\n      $('body').on('change', 'input[name=date_of_birth]', function () {\n        //console.log('DOB change event fired');\n        let controller = _this.controllerFor('appointment');\n        if (controller.get('isUpdatingDob')) {\n          return;\n        }\n        controller.send('setDateOfBirth');\n      });\n      $('body').on('keyup', 'input[name=date_of_birth]', function () {\n        //console.log('DOB keyup event fired');\n        _this.controllerFor('appointment').send('setDateOfBirth');\n      });\n      $('body').on('keyup', '.patient_age', function () {\n        //console.log('patient age keyup');\n        var years = parseInt($('#age_years').val(), 10) || 0;\n        var months = parseInt($('#age_months').val(), 10) || 0;\n        var days = parseInt($('#age_days').val(), 10) || 0;\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          month: months,\n          day: days\n        };\n        _this.controllerFor('appointment').send('getDateofBirth', date);\n      });\n      var controller = this.controllerFor('appointment');\n      this.controllerFor('appointment').set('appointment_date', moment().format('MM/DD/YYYY'));\n      if ($('#appointment_date').length > 0 && $('#appointment_date').val() != '') {\n        var appointment_date = $('#appointment_date').val();\n      } else {\n        var fullDate = new Date();\n        var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n        var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n        var appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n      }\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_name = branch_detail[1];\n      this.controllerFor('appointment').set('appointment_heading', branch_name + ' ' + moment(appointment_date, 'YYYY-M-DD').format('ddd DD-MMM-YYYY'));\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('appointment').set('result', res);\n          _this.controllerFor('appointment').set('resultD', res);\n          var total_doctors = res.data.length;\n          var total_table_width = 90;\n          var width = parseInt(total_table_width, 10) / total_doctors;\n          var td_width = 'width:' + width + '%';\n          _this.controllerFor('appointment').set('td_width', td_width);\n        },\n        error: function (error, x, y) {\n          _this.controllerFor('appointment').set('result', y);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'branches',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('branches', res);\n          controller.set('branchesD', res);\n        },\n        error: function (error, x, y) {\n          controller.set('branches', y);\n        }\n      });\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      this.controllerFor('appointment').set('branch_id', branch_id);\n      this.controllerFor('appointment').set('selected_branch', branch_id);\n      this.controllerFor('appointment').set('button_clicked', 'branch_' + branch_id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/' + branch_id,\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('appointments', res);\n          controller.set('appointmentsD', res);\n        },\n        error: function (error, x, y) {\n          controller.set('appointments', y);\n        }\n      });\n\n      ///patient detail\n      /*in Below line code are getting all the discount categories, Rahul Khan 12_june_2019 */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/discount_catgories',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('discount_categories', res);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    model(param) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var id = param.id;\n      if (typeof id == 'undefined' || id == null) {\n        _this.transitionTo('cancel-appointment');\n      }\n      var controller = _this.controllerFor('appointment');\n      // alert(transition.queryParams.id);\n      controller.set('appointmentId', id);\n      var appointmentId = id;\n      //set selected patient id to patient_id\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'patients/search/appointment/' + id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          var patient_data = res.data[0];\n          controller.set('first_name', patient_data.first_name);\n          controller.set('last_name', patient_data.last_name);\n          controller.set('middle_name', patient_data.middle_name);\n          controller.set('OldRegistrationNo', patient_data.OldRegistrationNo);\n          controller.set('patient_id', patient_data.id);\n          controller.set('is_rescheduled', '1');\n          controller.set('note', patient_data.note);\n          //console.log(patient_data);\n          $('#appointmentId').val(param.id);\n          controller.set('id', patient_data.id);\n          controller.set('title_prefix', patient_data.title_prefix);\n          controller.set('first_name', patient_data.first_name);\n          controller.set('middle_name', patient_data.middle_name);\n          controller.set('last_name', patient_data.last_name);\n          controller.set('gender', patient_data.gender);\n          controller.set('phone_1', patient_data.phone_res);\n          controller.set('phone_2', patient_data.mobile_res);\n          controller.set('address_1', patient_data.full_address_per);\n          controller.set('address_2', patient_data.full_address_res);\n          controller.set('selected_country', patient_data.country_id_per);\n          controller.set('selected_state', patient_data.state_id_per);\n          controller.set('selected_city', patient_data.city_id_per);\n          controller.set('zip', patient_data.pincode_per);\n          controller.set('mode', patient_data.mode);\n          controller.set('priority', patient_data.priority);\n          controller.set('category', patient_data.category);\n          controller.set('selected_discount_category', patient_data.discount_category);\n          controller.set('date_of_birth', patient_data.date_of_birth);\n          controller.set('age_years', patient_data.age_years);\n          controller.set('age_months', patient_data.age_months);\n          controller.set('age_days', patient_data.age_days);\n          controller.set('blood_type', patient_data.blood_type);\n          controller.set('email_id', patient_data.email_id);\n          controller.set('same_as_shipping', patient_data.same_as_shipping);\n          controller.set('shipping_full_address_per', patient_data.shipping_full_address_per);\n          controller.set('shipping_full_address_res', patient_data.shipping_full_address_res);\n          controller.set('shipping_country_id', patient_data.shipping_country_id);\n          controller.set('shipping_state_id', patient_data.shipping_state_id);\n          controller.set('shipping_city_id', patient_data.shipping_city_id);\n          controller.set('shipping_pin_code', patient_data.shipping_pin_code);\n          controller.set('shipping_mobile', patient_data.shipping_mobile);\n          controller.set('shipping_state_name', patient_data.shipping_state_name);\n          controller.set('shipping_city_name', patient_data.shipping_city_name);\n          if ($('#patient_registration_form').length > 0) {\n            $('div.patient_registration_form').show();\n            $(window).scrollTop($('#patient_registration_form').offset().top);\n          }\n        },\n        error: function (error, x, y) {},\n        complete: function () {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n      var country_id = controller.get('selected_country');\n      /* AJAX call */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: country_id\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('pstates', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      var state_id = controller.get('selected_state');\n      var city_id = controller.get('selected_city');\n      /* AJAX call */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: state_id\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          controller.set('cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/getAppointment',\n        data: {\n          id: appointmentId\n        },\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          $('#loading').addClass('in');\n          $('#loading').css('display', 'block');\n          $('body').addClass('modal-open');\n        },\n        success: function (res) {\n          if (res.data.length > 0) {\n            var appointmentType = res.data[0].appointment_type;\n            var branchId = res.data[0].branch_id;\n            if (res.data[0].urgent_status > 0) {\n              controller.set('block', 'display');\n            } else {\n              controller.set('block', 'none');\n            }\n            controller.set('appointmentType', appointmentType);\n            controller.set('branchId', res.data[0]);\n            controller.set('urgent_status', res.data[0].urgent_status);\n            controller.set('note', res.data[0].note);\n            controller.set('ocp_address', res.data[0].ocp_visit_address);\n            controller.set('appt_date', moment(res.data[0].dateTime).format('DD-MMM-YYYY h:mm'));\n            controller.set('doctor_name', res.data[0].Name);\n            if (res.data[0].appointment_booked_from && res.data[0].appointment_booked_from.toLowerCase() === 'online') {\n              Swal.fire({\n                title: 'Reschedule not available',\n                text: 'Reschedule is not available for online appointments. Please cancel and book a new appointment.',\n                icon: 'error',\n                width: 650\n              }).then(function () {\n                _this.transitionTo('cancel-appointment');\n              });\n              return;\n            }\n            setTimeout(function () {\n              $('.appointmenttype_' + appointmentType).click();\n              $('.branch_' + branchId).click();\n            }, 1000);\n          }\n        },\n        error: function (error, x, y) {},\n        complete: function () {\n          setTimeout(function () {\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          }, 500);\n        }\n      });\n    },\n    actions: {\n      goBack() {\n        history.go(-1);\n      }\n    },\n    afterModel() {\n      let route = this;\n\n      // Initialize WebSocket handler for real-time slot updates\n      //this.initializeWebSocketHandler();\n\n      $(document).on('click', '.branchlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = $(this); // preserve clicked element\n        const safeVal = v => v && v.toString().trim();\n        let branchRaw = safeVal($('#appointment_branch_id').val()) || safeVal($('#branch_id').val()) || route.session.getLocation();\n        let branchId = branchRaw.split('-')[0];\n        let dateTimeDoctor = $el.attr('data-content'); // \"2025-12-16 9:10:00?6\"\n        let resArr = dateTimeDoctor.split('?');\n        let dateTimePart = resArr[0]; // \"2025-12-16 9:10:00\"\n        let appointmentDate = dateTimeDoctor.split(' ')[0]; // \"2025-12-16\"\n        let timePart = dateTimePart.split(' ')[1]; // \"9:10:00\"\n        // split time\n        let [hour, minute] = timePart.split(':');\n        hour = parseInt(hour, 10); // removes leading zero\n        let slotTime = `${hour}:${minute}`;\n        let userId = route.session.getLoggedInUserId();\n        let doctorId = safeVal($('#appointment_doctor_id').val()) || resArr[1];\n        let doctorName = $el.attr('data-doctorname');\n        if (!dateTimeDoctor) {\n          alert('Please select doctor or related slot.');\n          return;\n        }\n\n        // if (!confirm('This slot is locked. Do you want to proceed?')) {\n        //   return;\n        // }\n\n        const reservationData = {\n          slot_id: slotTime,\n          doctor_id: parseInt(doctorId),\n          branch_id: parseInt(branchId),\n          appointment_date: appointmentDate,\n          patient_id: userId,\n          mobile: null,\n          email: null,\n          doctor_name: doctorName\n        };\n        //console.log(reservationData);      \n        // Check for existing locked slots first\n        let url = `appointments/locked-slots/${parseInt(branchId)}/${appointmentDate}`;\n        if (doctorId) {\n          url += `/${parseInt(doctorId)}`;\n        }\n        route.ajaxAuth.get(url).then(existing => {\n          if (existing.data && existing.data.length > 0) {\n            if (!confirm('You have an existing slot reservation. It will be unlocked to reserve this new slot. Continue?')) {\n              return Promise.reject('User cancelled');\n            }\n\n            // Unlock existing reservations first\n            const unlockPromises = existing.data.map(reservation => {\n              // Update UI to show old slot as available\n              $('.locked').each(function () {\n                let $oldLocked = $(this);\n                if ($oldLocked.attr('data-lockedid') == reservation.reservation_id) {\n                  let oldDateTime = `${reservation.appointment_date} ${reservation.slot_id}:00`;\n                  let availableTd = `\n                    <td class=\"available available_slot branchlockedcheck\"\n                        style=\"${$oldLocked.attr('style') || ''}\"\n                        data-toggle=\"tooltip\"\n                        data-placement=\"top\"\n                        data-content=\"${oldDateTime}?${reservation.doctor_id}\"\n                        rel=\"${$oldLocked.attr('data-branchid')}\"\n                        data-doctorname=\"${$oldLocked.attr('data-doctorname')}\"\n                        data-original-title=\"Doctor: ${$oldLocked.attr('data-doctorname')},&#10;Slot: ${reservation.slot_id}\">\n                      Available\n                    </td>`;\n                  $oldLocked.replaceWith(availableTd);\n                }\n              });\n              return route.ajaxAuth.delete('v1/appointments/release/' + reservation.reservation_id);\n            });\n\n            // After unlocking all existing slots, reserve the new one\n            return Promise.all(unlockPromises).then(() => {\n              return route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData);\n            });\n          } else {\n            // No existing reservations, proceed with new reservation\n            return route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData);\n          }\n        }).then(function (reserveRes) {\n          // Check if reservation was successful\n          if (reserveRes && reserveRes.success === false) {\n            if (reserveRes.message && reserveRes.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n              return Promise.reject('Slot already locked');\n            }\n            alert(reserveRes.message || 'Unable to reserve slot');\n            return Promise.reject('Reservation failed');\n          }\n          let url = `appointments/locked-slots/${parseInt(branchId)}/${appointmentDate}`;\n          if (doctorId) {\n            url += `/${parseInt(doctorId)}`;\n          }\n          return route.ajaxAuth.get(url);\n        }).then(function (lockRes) {\n          //console.log('Locked slots from DB:', lockRes.data);\n\n          lockRes.data.forEach(function (item) {\n            let lockedSlot = item.slot; // \"09:30\"\n            let lockedDoctor = item.doctor_id;\n            let reservationId = item.reservation_id;\n            let branchId = item.branch_id;\n            let doctor_name = item.doctor_name;\n            let appointmentDate = moment(item.appointment_date).format('YYYY-MM-DD');\n            //console.log(appointmentDate);\n\n            $('.available_slot').each(function () {\n              let $slotEl = $(this);\n              let dc = $slotEl.attr('data-content'); // \"2025-12-16 9:30:00?100\"\n              if (!dc) return;\n              let [dt, docId] = dc.split('?');\n              let timePart = dt.split(' ')[1]; // \"9:30:00\"\n              let [hh, mm] = timePart.split(':');\n              let uiSlot = `${hh}:${mm}`;\n\n              // MATCH SLOT + DOCTOR\n              route.get('slotLock').setLockedSlot(reservationId);\n              route.controllerFor('appointment').set('slotLockedId', reservationId);\n              if (uiSlot === lockedSlot && parseInt(docId) === lockedDoctor) {\n                // Replace TD with locked TD\n                let lockedTd = `<td data-lockedid=\"${reservationId}\" data-doctorname=\"${doctor_name}\" data-doctorid=\"${lockedDoctor}\" data-slot=\"${lockedSlot}\" data-branchid=\"${branchId}\" data-appointmentdate=\"${appointmentDate}\" class=\"locked unlockedbranch\" style=\"${$slotEl.attr('style') || ''}\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Slot is locked. Click to unlock\"><i class=\"fa fa-lock\"></i>  Locked</td>`;\n                $slotEl.replaceWith(lockedTd);\n              }\n            });\n          });\n          $('.patient_registration_form').show();\n          $(\".patient_registration_form select:disabled\").prop(\"disabled\", false);\n          $(\".patient_registration_form input,textarea\").prop(\"readonly\", false);\n          $(window).scrollTop($('#patient_registration_form').offset().top);\n          $('div.patient_list').hide();\n          $('.available_slot').removeClass('available_selected');\n          $el.addClass('available_selected');\n          $('#date_time_doctor').val($el.attr('data-content'));\n          var doctor_slot = $el.attr('data-content');\n          var res = doctor_slot.split(\"?\");\n          $('.appointment_doctor_id').val(res[1]);\n          if ($el.attr('rel') != '') {\n            $('#branch_id').val($el.attr('rel'));\n            $('.appointment_branch_id').val($el.attr('rel'));\n          }\n        }).catch(function (err) {\n          // Handle different error scenarios\n          if (err === 'User cancelled' || err === 'Slot already locked' || err === 'Reservation failed') {\n            return; // User cancelled or already handled\n          }\n          if (err && err.responseJSON) {\n            const errorData = err.responseJSON;\n\n            // Handle slot already locked by another user\n            if (err.status === 409 && errorData.message && errorData.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n              return;\n            }\n\n            // Handle user already has booking\n            if (errorData.success === false && errorData.action_required === 'unlock_first') {\n              // User already has a slot reserved\n              const existing = err.responseJSON.existing_reservation;\n              const message = `${err.responseJSON.message}\\n\\nCurrent reservation: ${existing.slot_id} with ${existing.doctor_name}`;\n              if (confirm(message + '\\n\\nDo you want to unlock your current slot and proceed?')) {\n                // First, update UI to show old slot as available\n                $('.locked').each(function () {\n                  let $oldLocked = $(this);\n                  if ($oldLocked.attr('data-lockedid') === existing.reservation_id) {\n                    let doctorName = $oldLocked.attr('data-doctorname');\n                    let oldSlotTime = existing.slot_id;\n                    let oldDoctorId = $oldLocked.attr('data-doctorid');\n                    let oldAppointmentDate = $oldLocked.attr('data-appointmentdate');\n                    let dateTime = `${oldAppointmentDate} ${oldSlotTime}:00`;\n                    let availableTd = `\n                  <td class=\"available available_slot branchlockedcheck\"\n                      style=\"${$oldLocked.attr('style') || ''}\"\n                      data-toggle=\"tooltip\"\n                      data-placement=\"top\"\n                      data-content=\"${dateTime}?${oldDoctorId}\"\n                      rel=\"\"\n                      data-doctorname=\"${doctorName}\"\n                      data-original-title=\"Doctor: ${doctorName},&#10;Slot: ${oldSlotTime}\">\n                    Available\n                  </td>`;\n                    $oldLocked.replaceWith(availableTd);\n                  }\n                });\n\n                // Unlock existing slot first\n                route.ajaxAuth.delete('v1/appointments/release/' + existing.reservation_id).then(() => {\n                  // Retry the original reservation\n                  route.get('slotLock').clearLockedSlot();\n                  route.controllerFor('appointment').set('slotLockedId', null);\n                  return route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData);\n                }).then(retryRes => {\n                  // Check retry response\n                  if (retryRes && retryRes.success === false) {\n                    if (retryRes.message && retryRes.message.includes('locked by another user')) {\n                      alert('This slot was just locked by another user while unlocking your previous slot. Please choose another slot.');\n                      return Promise.reject('Slot locked during retry');\n                    }\n                    alert(retryRes.message || 'Failed to reserve new slot');\n                    return Promise.reject('Retry failed');\n                  }\n                  return retryRes;\n                }).then(newRes => {\n                  // Check if new reservation was successful\n                  if (newRes && newRes.success === false) {\n                    alert(newRes.message || 'Failed to reserve slot');\n                    return;\n                  }\n                  let newReservationId = newRes.data?.reservation_id || Date.now();\n\n                  // Update UI to show new slot as locked\n                  $('.available_slot').each(function () {\n                    let $slotEl = $(this);\n                    let dc = $slotEl.attr('data-content');\n                    if (!dc) return;\n                    let [dt, docId] = dc.split('?');\n                    let timePart = dt.split(' ')[1];\n                    let [hh, mm] = timePart.split(':');\n                    let uiSlot = `${hh}:${mm}`;\n                    if (uiSlot === slotTime && parseInt(docId) === parseInt(doctorId)) {\n                      let lockedTd = `<td data-lockedid=\"${newReservationId}\" data-doctorname=\"${doctorName}\" data-doctorid=\"${doctorId}\" data-slot=\"${slotTime}\" data-branchid=\"${branchId}\" data-appointmentdate=\"${appointmentDate}\" class=\"locked unlockedbranch\" style=\"${$slotEl.attr('style') || ''}\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Slot is locked. Click to unlock\"><i class=\"fa fa-lock\"></i>  Locked</td>`;\n                      $slotEl.replaceWith(lockedTd);\n                    }\n                  });\n\n                  // Show patient form\n                  $('.patient_registration_form').show();\n                  $(\".patient_registration_form select:disabled\").prop(\"disabled\", false);\n                  $(\".patient_registration_form input,textarea\").prop(\"readonly\", false);\n                  $(window).scrollTop($('#patient_registration_form').offset().top);\n                  $('div.patient_list').hide();\n                }).catch(unlockErr => {\n                  if (unlockErr === 'Slot locked during retry' || unlockErr === 'Retry failed') {\n                    return; // Already handled\n                  }\n                  alert('Failed to unlock existing slot: ' + (unlockErr.responseJSON?.message || 'Unknown error'));\n                });\n              }\n            } else if (err && err.status === 409) {\n              alert('This time slot was just booked by another patient. Please select a different time.');\n            } else if (err && err.responseJSON?.message) {\n              alert(err.responseJSON.message);\n            }\n          }\n        });\n      });\n      $(document).on('click', '.unlockedbranch', function (event) {\n        event.preventDefault();\n        let $lockedTd = $(this); // clicked locked cell\n        let reservationId = $lockedTd.attr('data-lockedid');\n        if (!confirm('This slot will be unlocked and made available. Proceed?')) {\n          return;\n        }\n        route.ajaxAuth.delete('v1/appointments/release/' + reservationId).then(function () {\n          // Convert locked slot back to available\n          let doctorName = $lockedTd.attr('data-doctorname');\n          let slotTime = $lockedTd.attr('data-slot');\n          let doctorId = $lockedTd.attr('data-doctorid');\n          let appointmentDate = $lockedTd.attr('data-appointmentdate');\n          let branchId = $lockedTd.attr('data-branchid');\n          let dateTime = `${appointmentDate} ${slotTime}:00`;\n          let availableTd = `\n          <td class=\"available available_slot branchlockedcheck\"\n              style=\"${$lockedTd.attr('style') || ''}\"\n              data-toggle=\"tooltip\"\n              data-placement=\"top\"\n              data-content=\"${dateTime}?${doctorId}\"\n              rel=\"${branchId}\"\n              data-doctorname=\"${doctorName}\"\n              data-original-title=\"Doctor: ${doctorName},&#10;Slot: ${slotTime}\">\n            Available\n          </td>`;\n          $lockedTd.replaceWith(availableTd);\n\n          // Clear any selected slot\n          $('.available_slot').removeClass('available_selected');\n          $('#date_time_doctor').val('');\n          $('.appointment_doctor_id').val('');\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n          alert('Slot unlocked successfully!');\n        }).catch(function (err) {\n          alert('Failed to unlock slot: ' + (err.responseJSON?.message || 'Unknown error'));\n        });\n      });\n      $(document).on('click', '.doctorlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = $(this);\n        let branchId = parseInt($el.data('branchid'));\n        let doctorId = parseInt($el.data('doctorid'));\n        let slot = $el.data('slot'); // \"10:00\"\n        let date = $el.data('date'); // \"2025-12-17\"\n        let userId = route.session.getLoggedInUserId();\n        let branchTitle = $el.data('branchtitle') || $el.text().trim();\n        if (!confirm('Do you want to lock this slot?')) return;\n        const reservationData = {\n          slot_id: slot,\n          doctor_id: doctorId,\n          branch_id: branchId,\n          appointment_date: date,\n          patient_id: userId,\n          mobile: null,\n          email: null\n        };\n        route.ajaxAuth.postJSON('v1/appointments/reserve', reservationData).then(function (res) {\n          if (!res.success && res.action_required === 'unlock_first') {\n            //alert(res.message || 'Unable to lock slot.');\n            alert('You already have a reserved slot (' + res.existing_reservation.slot_id + '). Please unlock it first.');\n            return;\n          }\n          let newReservationId = res.data.reservation_id;\n          let previousReservationId = res.data.previous_reservation_id;\n          route.get('slotLock').setLockedSlot(newReservationId);\n          route.controllerFor('appointment').set('slotLockedId', newReservationId);\n          // if (previousReservationId) {\n          //   route.ajaxAuth.delete(\n          //     'v1/appointments/release/' + previousReservationId\n          //   );\n          // }\n          /* ✅ FIRST → LOCK CURRENT SLOT */\n          $el.removeClass('available available_slot doctorlockedcheck').addClass('locked doctorunlockedcheck').attr('data-lockedid', newReservationId).attr('data-branchid', branchId).attr('data-doctorid', doctorId).attr('data-date', date).attr('data-slot', slot).attr('data-branchtitle', branchTitle).attr('title', '🔒 Slot is locked. Click to unlock').html('<i class=\"fa fa-lock\"></i> Locked');\n\n          /* 🔄 THEN → FORCE REMOVE ALL OTHER LOCKS */\n          $('.doctorunlockedcheck').each(function () {\n            let lockedId = $(this).data('lockedid');\n            if (lockedId && lockedId != newReservationId) {\n              $(this).removeClass('locked doctorunlockedcheck').addClass('available available_slot doctorlockedcheck').removeAttr('data-lockedid').html($(this).attr('data-branchtitle') || 'Available');\n            }\n          });\n\n          /* Form logic same as yours */\n          $('.patient_registration_form').show();\n          $(\".patient_registration_form select:disabled\").prop(\"disabled\", false);\n          $(\".patient_registration_form input,textarea\").prop(\"readonly\", false);\n          $(window).scrollTop($('#patient_registration_form').offset().top);\n          $('div.patient_list').hide();\n          $('#date_time_doctor').val($el.attr('data-content'));\n          var doctor_slot = $el.attr('data-content');\n          var res = doctor_slot.split(\"?\");\n          $('.appointment_doctor_id').val(res[1]);\n          if ($el.attr('rel') != '') {\n            $('#branch_id').val($el.attr('rel'));\n            $('.appointment_branch_id').val($el.attr('rel'));\n          }\n        }).catch(function (err) {\n          if (err && err.responseJSON) {\n            const errorData = err.responseJSON;\n            if (err.status === 409 && errorData.message && errorData.message.includes('locked by another user')) {\n              alert('⚠️ This slot was just locked by another user. Please refresh or choose another slot.');\n            } else if (errorData.message) {\n              alert(errorData.message);\n            } else {\n              alert('This time slot was just booked by another patient. Please select a different time.');\n            }\n          } else {\n            alert('Failed to lock slot. Please try again.');\n          }\n        });\n      });\n      $(document).on('click', '.doctorunlockedcheck', function (event) {\n        event.preventDefault();\n        let $el = $(this);\n        let reservationId = $el.data('lockedid');\n        let branchId = parseInt($el.data('branchid'));\n        let doctorId = parseInt($el.data('doctorid'));\n        let slot = $el.data('slot');\n        let date = $el.data('date');\n        let branchTitle = $el.data('branchtitle');\n        if (!confirm('Slot is locked. Click OK to unlock.')) return;\n        route.ajaxAuth.delete('v1/appointments/release/' + reservationId).then(function (res) {\n          // if (res.success === false && res.message === 'Reservation not found or already released') {\n          //   return;\n          // }\n          route.get('slotLock').clearLockedSlot();\n          route.controllerFor('appointment').set('slotLockedId', null);\n          // ✅ LOCKED → AVAILABLE\n          $el.removeClass('locked doctorunlockedcheck').addClass('available available_slot doctorlockedcheck').removeAttr('data-lockedid').attr('data-toggle', 'tooltip').attr('data-placement', 'top').attr('data-content', date + ' ' + slot + ':00?' + doctorId).html(branchTitle).attr('data-original-title', 'Date: ' + moment(date).format('DD-MM-YYYY') + ',<br> Slot: ' + slot + ',<br> Branch: ' + branchTitle);\n        }).catch(function (err) {\n          if (err && err.responseJSON) {\n            const errorData = err.responseJSON;\n            if (err.status === 409 && errorData.message) {\n              //alert(errorData.message);\n              console.log(errorData.message);\n            } else if (errorData.message) {\n              //alert(errorData.message);\n              console.log(errorData.message);\n            } else {\n              //alert('Unable to unlock slot');\n              console.log('Unable to unlock slot');\n            }\n          } else {\n            //alert('Failed to unlock slot. Please try again.');\n            console.log('Failed to unlock slot. Please try again.');\n          }\n        });\n      });\n    },\n    setupController(controller, model) {\n      this._super(controller, model);\n      let lockedId = this.get('slotLock').getLockedSlot();\n      //console.log('Locked Slot ID from Service:', lockedId);\n      controller.set('slotLockedId', lockedId);\n    },\n    renderTemplate: function () {\n      this.render('cancel-appointment.reschedule', {\n        controller: 'appointment'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/cancel-report\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('reports').set('page', 'Same Day Cancellation and Bookings');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('reports').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('cancel-report', role_route_permission);\n      this.controllerFor('reports').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('cancel-report', {\n        controller: 'reports'\n      });\n    },\n    actions: {\n      downloadSameDayCancelAndBooking() {\n        const transaction_from = $('#transaction_from').val();\n        const transaction_to = $('#transaction_to').val();\n        if (!transaction_from || !transaction_to) {\n          alert('All fields are necessary. Please enter From date and To Date & then try again');\n          return;\n        }\n        const utoken = this.session.getToken(); // Adjust according to your auth/session logic\n        const url = `${_environment.default.APP.lumen_api_url}reports/cancelreport?from_export_date=${transaction_from}&to_export_date=${transaction_to}`;\n        $.ajax({\n          url: url,\n          method: 'GET',\n          headers: {\n            'Authorization': 'Bearer ' + utoken\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          success: function (data, status, xhr) {\n            const blob = new Blob([data], {\n              type: xhr.getResponseHeader('Content-Type')\n            });\n            const link = document.createElement('a');\n            link.href = window.URL.createObjectURL(blob);\n\n            // Extract dynamic filename from Content-Disposition header\n            let disposition = xhr.getResponseHeader('Content-Disposition');\n            let filename = 'CancelAndBookingReport.xlsx';\n            if (disposition && disposition.indexOf('filename=') !== -1) {\n              filename = disposition.split('filename=')[1].trim().replace(/['\"]/g, '');\n            }\n            link.download = filename;\n            document.body.appendChild(link);\n            link.click();\n            document.body.removeChild(link);\n          },\n          error: function (xhr, status, error) {\n            console.error('AJAX Error', status, error, xhr);\n            alert(`Download failed: ${xhr.status} ${xhr.statusText}`);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/case-report/case-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class CaseReportCaseReportRoute extends Ember.Route {}\n  _exports.default = CaseReportCaseReportRoute;\n});","define(\"clinic-dev/routes/case-report/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class CaseReportIndexRoute extends Ember.Route {\n    beforeModel() {\n      this.transitionTo('case-report.list');\n      var permission = this.session.getPermissionList();\n      this.controllerFor('case-report.casereport').set('permission_arr', permission);\n    }\n  }\n  _exports.default = CaseReportIndexRoute;\n});","define(\"clinic-dev/routes/case-report/list\", [\"exports\", \"@whoicd/icd11ect\", \"clinic-dev/config/environment\", \"numeral\"], function (_exports, _icd11ect, _environment, _numeral) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/routing/route\",0,\"@whoicd/icd11ect\",0,\"clinic-dev/config/environment\",0,\"numeral\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      var permission = this.session.getPermissionList();\n      _this.controllerFor('case-report.casereport').set('permission_arr', permission);\n      _this.controllerFor('case-report.casereport').set('page', 'Case Report');\n    },\n    afterModel() {\n      let utoken = this.session.getToken();\n      var selectedItems = [];\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('case-report.casereport').set('route_access', route_access);\n      $(document).on('change', '#3', function (event) {\n        event.preventDefault();\n        if ($(this).is(':checked')) {\n          // Case Taking checkbox is checked\n          if (!$('#case_taking_search').is(':checked')) {\n            // Case Taking Search checkbox is not checked\n            // Show warning message\n            var caseTakingLabel = $('#case_taking_search').attr('data');\n            Swal.fire({\n              text: 'You must select \"' + caseTakingLabel + '\" filters to output the columns.',\n              icon: 'warning',\n              width: 450\n            });\n            // Uncheck the Case Taking checkbox\n            $(this).prop('checked', false);\n          }\n        }\n      });\n\n      // $(document).on('change', '#case_taking_search', function (event) {\n      //   event.preventDefault();\n      //   // Add event listener to Case Taking Search checkbox\n      //     if (!$(this).is(':checked')) {\n      //       // Case Taking Search checkbox is unchecked\n      //       $('#3').prop('checked', true); // Check the Case Taking checkbox\n      //     }\n      // });\n\n      $(document).on('click', '.cancel', function (event) {\n        event.preventDefault();\n        var textValue = $(this).closest('.dsl').attr('original_text');\n        console.log(textValue);\n        if (Array.isArray(selectedItems)) {\n          var index = $.inArray(textValue, selectedItems);\n          console.log(index);\n          if (index !== -1) {\n            selectedItems.splice(index, 1);\n          }\n          $(this).parent().remove();\n          console.log(selectedItems);\n        } else {\n          console.log(\"selectedItems array not found.\");\n        }\n      });\n      $(document).on('click', '.icd_clear, .dkbc_disease_clear, .dkbc_system_clear, .dkbc_organ_clear, .clear_medicine_search', function (event) {\n        event.preventDefault();\n        $('#results1').html('').show().removeClass('searchresult'); //Used to hide the suggestion box of prescription\n        $('#icd_suggession_div').css({\n          'border': '1px solid #eee',\n          'margin-bottom': '20px',\n          'max-height': '250px',\n          'overflow': 'auto',\n          'display': 'none'\n        }); //Used to hide the suggestion box of ICD Disease\n        $('#disease_results').html('').hide().removeClass('casereport-disease-result'); //Used to hide the suggestion box of DKBC Disease\n        $(this).prev('input').val('');\n      });\n      $(document).on('keyup', '#icd_name', function (event) {\n        event.preventDefault();\n        var icd_name_without_space = $(this).val();\n        var icd_name = icd_name_without_space.trim();\n        $('#disease_results').html('').hide().removeClass('casereport-disease-result');\n        if (icd_name == '') {\n          $('#icd_suggession_div').css('border', 'initial');\n        } else {\n          if (icd_name.length > 2) {\n            _icd11ect.default.Handler.bind(\"1\");\n            //console.log('icd bind b');\n            $('#disease_name').val('');\n            $('#icd_suggession_div').css({\n              'border': '1px solid #eee',\n              'margin-bottom': '20px',\n              'max-height': '250px',\n              'overflow': 'auto',\n              'display': 'block'\n            });\n          } else {\n            //ECT.Handler.bind(\"1\");\n            //console.log('icd bind c');\n            $('#icd_suggession_div').css('border', 'initial');\n          }\n        }\n      });\n      $(document).on('click', '.d_other', function () {\n        event.preventDefault();\n        $('#disease_name').addClass('disease_name_input');\n        $('#disease_name').attr('placeholder', 'Select/Type disease name');\n        $('#disease_name').removeAttr('diseaseOther');\n        $('#disease_name').val('');\n        $('.dkbc_d_others_text').html('');\n        $('.dkbc_clear_class').hide();\n      });\n      $(document).on('click', '.s_other', function () {\n        event.preventDefault();\n        $('#system_name').addClass('system_name_input');\n        $('#system_name').attr('placeholder', 'System name');\n        $('#system_name').removeAttr('diseaseOther');\n        $('#system_name').val('');\n        $('.dkbc_s_others_text').html('');\n      });\n      $(document).on('click', '.o_other', function () {\n        event.preventDefault();\n        $('#organ_name').addClass('organ_name_input');\n        $('#organ_name').attr('placeholder', 'Organ Name');\n        $('#organ_name').removeAttr('diseaseOther');\n        $('#organ_name').val('');\n        $('.dkbc_o_others_text').html('');\n      });\n      var stopAjaxSearch = false;\n      /*This script is used for set medicine search data on click July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.formdata', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        event.stopPropagation();\n        var item = $(event.target).text().trim();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        var potency_name = $(this).data('potencyname');\n        var dilution = $(this).data('dilution');\n        var potency_id = medicine_type === 'single' ? potency_id : 0;\n        var identifier = medicine_id + '-' + potency_id + '-' + medicine_type;\n        // Check if the item already exists in the list\n        var isDuplicate = false;\n        $('.medicine').each(function () {\n          var existingIdentifier = $(this).data('identifier');\n          if (existingIdentifier === identifier) {\n            isDuplicate = true;\n            return false; // Exit the loop early if a duplicate is found\n          }\n        });\n        if (isDuplicate) {\n          // Show error message\n          Swal.fire({\n            text: '\"' + item + '\" is already selected. Please choose another medicine',\n            icon: 'warning',\n            width: 450\n          });\n        } else {\n          // Add the item to the top of the list\n          var newItem = $('<div>').addClass('selected-item medicine').attr('data-medicine_id', medicine_id).attr('data-potency_id', potency_id).attr('data-medicine_type', medicine_type).attr('data-dilution', dilution).attr('data-identifier', identifier).text(item).append('<button class=\"cancel float-right\">X</button>');\n          $('#selected_medicine_list').prepend(newItem);\n          // Clear the search results and input\n          $('#results1').html('').show().removeClass('searchresult'); //Used to hide the suggestion box\n          $('.clear_medicine_search').trigger('click');\n        }\n      });\n      $(document).on('click', '.diseasedata', function (event) {\n        // Clear ICD suggstion bog\n        //ECT.Handler.clear(\"1\");\n        //$(\"#icd_code\").val('');\n        //$(\"#icd_major_condition\").prop('checked', false);\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 15-mar-2023: if clicked, then we stop the ajax search.\n        $('.show-error').removeClass('has-error');\n        $('.text-error-message').hide();\n        $('.dkbc_clear_class').show();\n        var item = $(event.target).text();\n        var disease_name = item.split(',')[0];\n        var organname = $(this).data('organname');\n        var systemname = $(this).data('systemname');\n        var diseaseid = $(this).data('diseaseid');\n        var organid = $(this).data('organid');\n        var systemid = $(this).data('systemid');\n        var diseaseOther = $(this).data('diseaseother');\n        var item = item.trim();\n        var cleanString = item.replace(/,/g, ''); // Replace all commas with an empty string\n        if (diseaseOther == 1) {\n          var h = '';\n          $('.dkbc_clear_class').show();\n          $('#disease_results').html('').show().removeClass('casereport-disease-result'); //Used to hide disease the suggstion box\n          $('#disease_name').val('');\n          $('#disease_id').val('');\n          $('#disease_name').attr('placeholder', 'Enter other disease name');\n          $('#disease_name').removeClass('disease_name_input');\n          h += '<span>Disease Others &nbsp <button class=\"btn btn-danger btn-xs d_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.dkbc_d_others_text').html(h);\n          $('#disease_loader').hide();\n          $('#disease_name').attr('diseaseOther', diseaseOther);\n          $('#disease_name').focus();\n        } else {\n          $('.dkbc_clear_class').show();\n          $('#disease_name').addClass('disease_name_input');\n          $('#disease_name').removeAttr('diseaseOther');\n          $('#disease_name').val(disease_name);\n          $('#disease_id').attr('value', diseaseid);\n          $('#system_name').val('');\n          $('#organ_name').val('');\n          $('#system_id').val('');\n          $('#organ_id').val('');\n          $('#icd_name').val('');\n          $('#disease_name').val('');\n          if (selectedItems.indexOf(item) === -1) {\n            // Check if item is not already in the list\n            selectedItems.push(item); // Add item to the list\n            var newItem = $('<div>').addClass('selected-item dsl').attr('disease_id', diseaseid).attr('disease_type', 'dkbc').attr('disease_text', cleanString).attr('original_text', item).text(item);\n            newItem.append('<button class=\"cancel float-right\">X</button>');\n            // Use prepend() to add new item to the top of the list\n            $('#selected_disease_search_list').prepend(newItem);\n          } else {\n            Swal.fire({\n              text: '\"' + item + '\" is already selected. Please choose another disease',\n              icon: 'warning',\n              width: 450\n            });\n          }\n          console.log(selectedItems);\n          $('#disease_results').html('').show().removeClass('casereport-disease-result'); //Used to hide disease the suggstion box\n        }\n      });\n      $(function () {\n        $(document).on('keyup', '#disease_name', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n          //if(isDoubleClicked($(this))) return;\n          var set_icd_name = $('#disease_name').attr('diseaseother');\n          if (search_data === '' && set_icd_name == '1') {\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            $('.dkbc_clear_class').addClass('d_other');\n          }\n        });\n        // Returns a function, that, as long as it continues to be invoked, will not\n        // be triggered. The function will be called after it stops being called for\n        // N milliseconds. If `immediate` is passed, trigger the function on the\n        // leading edge, instead of the trailing.\n        function debounce(func, wait, immediate) {\n          var timeout;\n          return function (e) {\n            var context = this,\n              args = arguments;\n            var later = function () {\n              timeout = null;\n              if (!immediate) func.apply(context, args);\n            };\n            var callNow = immediate && !timeout;\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n            if (callNow) func.apply(context, args);\n          };\n        }\n        ;\n        // keep track latest AJAX call's timestamp\n        var latestAjaxCallDateTime;\n        var diseaseSearch = debounce(function (search_data) {\n          //var set_icd_name = $('#icd_name').attr('data-icdname');\n          if (search_data === '') {\n            $('#disease_results').empty().show().removeClass('casereport-disease-result');\n            $('.show-error').addClass('has-error');\n            $('.text-error-message').show();\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            if (search_data.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'diseasesearch',\n                data: {\n                  search: search_data\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#disease_loader').show();\n                },\n                success: function (disease_response) {\n                  // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                  // if current timestamp is older than the latest timestamp, then\n                  // omit the request\n                  // or if one of the results was selected then stop ajax search\n                  if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                    console.log('returned');\n                    return;\n                  }\n                  var html = '';\n                  html += '<ul class=\"disease-list\">';\n                  if (disease_response.length > 0) {\n                    $.each(disease_response, function (index, val) {\n                      var disease_nme = val.name + ', ' + val.organ.name + ', ' + val.system.name;\n                      html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseId=\"' + val.id + '\" data-organId=\"' + val.organ.id + '\" data-organName=\"' + val.organ.name + '\" data-systemId=\"' + val.system.id + '\" data-systemName=\"' + val.system.name + '\">' + disease_nme + '</li>';\n                    });\n                  } else {\n                    html += '<li class=\"text-capitalize btn-default\">No disease name found</li>';\n                  }\n                  //html +='<li class=\"diseasedata text-capitalize btn-default\" data-diseaseOther=\"1\">Other</li>';\n                  html += '</ul>';\n                  $('#disease_results').html(html).show().addClass('casereport-disease-result');\n                },\n                complete: function () {\n                  $('#disease_loader').hide();\n                }\n              });\n            }\n          }\n        }, 250);\n        $(document).on('keyup', '.disease_name_input', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          $('#icd_suggession_div').css({\n            'border': '1px solid #eee',\n            'margin-bottom': '20px',\n            'max-height': '250px',\n            'overflow': 'auto',\n            'display': 'none'\n          });\n          diseaseSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var diagnosticAjaxSearch = debounce(function (search_data) {\n          if (search_data.length >= _environment.default.CONSTANTS.search_trigger_length && search_data != '') {\n            // before executing the AJAX call, store the latest timestamp\n            latestAjaxCallDateTime = moment();\n            // console.log(searchkey + ':'+latestAjaxCallDateTime);\n            // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n            // as the latest timestamp\n            var currentAjaxCallDateTime = latestAjaxCallDateTime;\n            let utoken = this.session.getToken();\n            $.ajax({\n              type: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'diagnostic?searchdata=' + search_data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#diagnostic_loader').show();\n              },\n              success: function (res) {\n                // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  //console.log('returned');\n                  return;\n                }\n                var html = '';\n                html += '<ul class=\"diagnostic-search-list\">';\n                if (res.data.length > 0) {\n                  $.each(res.data, function (index, val) {\n                    if (val.status == '1' && val.id != '') {\n                      html += '<li class=\"diagnosticOutComes text-capitalize btn-default\" data-imaging=\"' + val.imaging + '\" data-parentid=\"' + val.parent_id + '\" data-type=\"' + val.datatype + '\" data-unitid=\"' + val.outcomes_uom_id + '\" data-unit=\"' + val.unit_name + '\" data-rangeType=\"' + val.range_type + '\" data-lower=\"' + val.lower_range + '\" data-upper=\"' + val.upper_range + '\" data-groupId=\"' + val.dtg_id + '\" data-groupName=\"' + val.group_name + '\" data-diagnosticid=\"' + val.diagnostic_test_id + '\" data-diagnosticname=\"' + val.name + '\">' + val.test_name + '</li>';\n                    } else {\n                      html += '<li class=\"diagnosticOutComes text-capitalize btn-default\" data-parentid=\"' + val.parent_id + '\" data-type=\"' + val.datatype + '\" data-groupId=\"' + val.gid + '\" data-groupName=\"' + val.gname + '\">' + val.test_name + '</li>';\n                    }\n                  });\n                } else {\n                  html += '<li class=\"text-capitalize btn-primary\">No test / group found</li>';\n                }\n                html += '</ul>';\n                $('#diagnostic_results').html(html).show().addClass('diagnostic-search-result');\n              },\n              complete: function () {\n                $('#diagnostic_loader').hide();\n              }\n            });\n          } else if (search_data.length == 0) {\n            $('#diagnostic_results').val('');\n            $('#diagnostic_results').html('').hide().removeClass('diagnostic-search-result');\n          }\n        }, 250);\n        $(document).on('keyup', '.diagnostic_test_name', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          diagnosticAjaxSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var ajaxSearch = debounce(function (searchkey, input_id) {\n          if (searchkey === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('case-report-prescribe-medicine-search-result');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            // Minimum three character serach, Shubh Tiwari, 16 Nov 2022\n            if (searchkey.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              let utoken = this.session.getToken();\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'billing/prescribemedicinesearch',\n                data: {\n                  query: searchkey\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                }\n              }).done(function (data) {\n                // console.log(searchkey + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  // console.log('returned');\n                  return;\n                }\n                $('[id^=\"results\"]').empty();\n                $('#results' + input_id[1]).html(data).show().addClass('case-report-prescribe-medicine-search-result');\n                var input_top = $('#results' + input_id[1]).find('ul.medicine-list').position().top;\n                //Find the scroll position of the div if user has scrolled the medicine grid\n                var scrollFromTop = Math.ceil($('.inner_table').scrollTop());\n\n                //adjust the Top position of the the results element by subtracting amount of scroll.\n                var results_top = parseFloat(input_top) - parseFloat(scrollFromTop);\n                // console.log(\"scrollFromTop=\"+scrollFromTop);\n                // console.log(\"ulli_height=\"+ulli_height);\n                // console.log(\"results_top=\"+results_top);\n                // console.log(\"input_top=\"+input_top);\n                $('#results' + input_id[1]).find('ul.medicine-list').css('top', parseFloat(results_top));\n              });\n            }\n          }\n        }, 250); //wait 250ms to ensure user has stopped typing.\n\n        $(document).on('keyup', '.prescribeinput', function (e) {\n          if (e.which == 37 || e.which == 38 || e.which == 39 || e.which == 40) {\n            return false;\n          }\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          //console.log(input_id[2]);\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 10 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          stopAjaxSearch = false; //Nishant 6-mar-2023: re-enable search on keyup.\n          //Nishant 26-Feb-2023: call this function when user has stopped typing instead of doing on every keystroke.\n          ajaxSearch(val, input_id);\n          //Shubh 19-May-2023: call this function to prevent duplicate ajax request when user back or forward to the icpattend or doctor-dashbaord .\n          e.preventDefault();\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          return false;\n        });\n      });\n      //ICD diseases Api Configuration & setting\n      const mySettings = {\n        apiServerUrl: 'https://id.who.int',\n        apiSecured: true,\n        language: 'en',\n        autoBind: false,\n        // set autoBind to false\n        popupMode: false,\n        searchByCodeOrURI: true,\n        enableKeyboard: true\n      };\n      const myCallbacks = {\n        selectedEntityFunction: selectedEntity => {\n          var item = selectedEntity.code + ' ' + selectedEntity.bestMatchText;\n          var cleanString = item.replace(/,/g, ''); // Replace all commas with an empty string\n          if (!selectedItems.includes(item)) {\n            // Check if item is not already in the list\n            selectedItems.push(item); // Add item to the list\n            console.log(selectedItems);\n            var newItem = document.createElement('div');\n            newItem.classList.add('selected-item', 'dsl');\n            newItem.setAttribute('disease_id', selectedEntity.code);\n            newItem.setAttribute('disease_type', 'icd');\n            newItem.setAttribute('disease_text', cleanString);\n            newItem.setAttribute('original_text', item);\n            newItem.textContent = item;\n            newItem.innerHTML += '<button class=\"cancel float-right\">X</button>';\n            // Insert new item at the beginning of the list\n            var list = document.getElementById('selected_disease_search_list');\n            if (list.firstChild) {\n              list.insertBefore(newItem, list.firstChild);\n            } else {\n              list.appendChild(newItem);\n            }\n            document.getElementsByClassName('ctw-window')[0].style.display = 'none';\n            _icd11ect.default.Handler.clear(\"1\");\n          } else {\n            Swal.fire({\n              text: '\"' + item + '\" is already selected. Please choose another disease',\n              icon: 'warning',\n              width: 450\n            });\n          }\n        },\n        getNewTokenFunction: async () => {\n          // if the embedded coding tool is working with the cloud hosted ICD-API, you need to set apiSecured=true\n          // In this case embedded coding tool calls this function when it needs a new token.\n          // In this case you backend web application should provide updated tokens\n          const url = _environment.default.APP.lumen_api_url + 'icdtoken'; // we assume this backend script returns a JSON {'token': '...'}\n          try {\n            const response = await fetch(url, {\n              method: 'GET',\n              // or POST, PUT, DELETE\n              headers: {\n                'Content-Type': 'application/json',\n                'Authorization': `Bearer ${utoken}` // your token here\n              }\n            });\n            const result = await response.json();\n            //console.log(result);\n            const token = result.token;\n            return token; // the function return is required\n          } catch (e) {\n            //console.log('Error during the request');\n          }\n        },\n        searchStartedFunction: () => {\n          //this callback is called when searching is started.\n          console.log('Search started!');\n          // Show loader when search starts\n          $('#loader').show();\n        },\n        searchEndedFunction: () => {\n          //this callback is called when search ends.\n          console.log('Search ended!');\n          // Hide loader when search ends\n          $('#loader').hide();\n        }\n      };\n      //document.getElementById('icd_name').removeAttribute('disabled');\n      _icd11ect.default.Handler.configure(mySettings, myCallbacks);\n    },\n    renderTemplate: function () {\n      this.render('case-report.list', {\n        controller: 'case-report.casereport'\n      });\n    }\n  });\n  function getBinaryHTML(binary, index, val) {\n    binary += ' <div class=\"col-sm-9\">';\n    binary += '<div class=\"col-sm-6\">';\n    binary += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    binary += '<select name=\"range_value[' + (index + 1) + ']\" data-id=\"' + (index + 1) + '\" class=\"form-control changeAbnormalVal\">';\n    binary += '<option value=\"\">--Select--</option>';\n    binary += '<option value=\"' + val.lower_range + '\">' + val.lower_range + '</option>';\n    binary += '<option value=\"' + val.upper_range + '\">' + val.upper_range + '</option>';\n    binary += '</select>';\n    binary += '</div>';\n    binary += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    binary += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value = \"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n    binary += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name.toUpperCase() + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n    binary += '</div>';\n    binary += '</div>';\n    return binary;\n  }\n  function getThresholdHTML(threshold, index, val) {\n    threshold += '<div class=\"col-sm-9\">';\n    threshold += '<div class=\"col-sm-6\">';\n    threshold += '<input type=\"text\" class=\"form-control decimalremove\" data-id=\"' + (index + 1) + '\" id=\"decimalremove\" maxlength=\"7\" name=\"range_value[' + (index + 1) + ']\" placeholder=\"Range value ' + (index + 1) + '\">';\n    threshold += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    threshold += '</div>';\n    threshold += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    threshold += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value=\"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n    threshold += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n    threshold += '</div>';\n    threshold += '</div>';\n    return threshold;\n  }\n  function getImagingHTML(imagingHTML, index, val) {\n    imagingHTML += '<div class=\"col-sm-6\">';\n    imagingHTML += '<div class=\"col-sm-6\">';\n    imagingHTML += '<input type=\"hidden\" class=\"form-control decimalremove\" data-id=\"' + (index + 1) + '\" id=\"decimalremove\" name=\"range_value[' + (index + 1) + ']\" placeholder=\"Range value ' + (index + 1) + '\" value=\"0\">';\n    imagingHTML += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    imagingHTML += '</div>';\n    imagingHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    imagingHTML += '<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value=\"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span>';\n    imagingHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name + '\"></span>';\n    imagingHTML += '</div>';\n    imagingHTML += '</div>';\n    return imagingHTML;\n  }\n  async function getCflHTML(index, val, test_id, retval) {\n    //Function to get Choose from list dropdown options\n    let utoken = this.session.getToken();\n    var cflHTML = '';\n    await $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.lumen_api_url + 'diagnostic/' + test_id,\n      dataType: 'json',\n      async: true,\n      headers: {\n        \"Authorization\": `Bearer ${utoken}`\n      },\n      beforeSend: function () {\n        $('#diagnostic_loader').show();\n      },\n      success: function (res) {\n        $('#diagnostic_loader').hide();\n        var gdata = [];\n        var report_data = res.data;\n        var cfl_list = res.cfl_list;\n        // console.log(cfl_list);\n        //console.log(cfl_list.length);\n        if (cfl_list.length > 0) {\n          cflHTML += ' <div class=\"col-sm-9\">';\n          cflHTML += '<div class=\"col-sm-6\">';\n          cflHTML += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n          cflHTML += '<select name=\"range_value[' + (index + 1) + ']\" data-id=\"' + (index + 1) + '\" class=\"form-control changeAbnormalVal\">';\n          cflHTML += '<option value=\"\">--Select--</option>';\n          cfl_list.forEach(function (options, index) {\n            cflHTML += '<option value=\"' + options.label_name + '\">' + options.label_name + '</option>';\n          });\n          cflHTML += '</select>';\n          cflHTML += '</div>';\n          cflHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n          cflHTML += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value = \"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n          cflHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name.toUpperCase() + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n          cflHTML += '</div>';\n          cflHTML += '</div>';\n          retval(cflHTML);\n        }\n      },\n      complete: function (res) {\n        //console.log('Execution complete3');\n      },\n      error: function (error, x, y) {\n        cflHTML += 'There was an error fetching list of options' + error;\n        retval(cflHTML);\n      }\n    });\n  }\n  function isDoubleClicked(element) {\n    //if already clicked return TRUE to indicate this click is not allowed\n    if (element.attr(\"isclicked\")) return true;\n\n    //mark as clicked for 1 second\n    element.attr(\"isclicked\", true);\n    setTimeout(function () {\n      element.removeAttr(\"isclicked\");\n    }, 1000);\n\n    //return FALSE to indicate this click was allowed\n    return false;\n  }\n});","define(\"clinic-dev/routes/dashboard\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var page_route = _this.controllerFor('application');\n      page_route.set('lastScroll', undefined);\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var shift_id = this.session.getLoggedInUserShift();\n      _this.getTabsList(branch_id, shift_id);\n      // calculate total after add different-2 payment mode\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      _this.recalculateAmount.allowOnlyNumeric();\n      _this.recalculateAmount.childModalClose();\n      $(document).on('click', 'input[name=\"urgent_status\"]', function (event) {\n        if ($(this).is(':checked')) $(\"[name='urgenttagnote']\").css('display', 'block');else $(\"[name='urgenttagnote']\").css('display', 'none');\n      });\n      var permission = this.session.getPermissionList();\n      var shift_id = this.session.getLoggedInUserShift();\n      this.controllerFor('dashboard').set('permission_arr', permission);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/counterSet?shift_id=' + shift_id,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n        },\n        error: function (error, x, y) {\n          // console.log(error)\n        }\n      });\n\n      //reset values to null\n      this.controllerFor('dashboard').set('page', 'dashboard');\n      this.controllerFor('dashboard').set('other_city', '');\n      this.controllerFor('dashboard').set('other_state', '');\n      this.controllerFor('dashboard').set('state', '');\n      this.controllerFor('dashboard').set('country', '');\n      this.controllerFor('dashboard').set('phone_1', '');\n      this.controllerFor('dashboard').set('phone_2', '');\n      this.controllerFor('dashboard').set('gender', '');\n      this.controllerFor('dashboard').set('title_prefix', '');\n      this.controllerFor('dashboard').set('first_name', '');\n      this.controllerFor('dashboard').set('middle_name', '');\n      this.controllerFor('dashboard').set('last_name', '');\n      this.controllerFor('dashboard').set('address_1', '');\n      this.controllerFor('dashboard').set('address_2', '');\n      this.controllerFor('dashboard').set('zip', '');\n      this.controllerFor('dashboard').set('mode', '');\n      this.controllerFor('dashboard').set('note', '');\n      this.controllerFor('dashboard').set('selected_city', null);\n      this.controllerFor('dashboard').set('selected_state', null);\n      this.controllerFor('dashboard').set('selected_country', null);\n      this.controllerFor('dashboard').set('priority', 'normal');\n      this.controllerFor('dashboard').set('category', '');\n      this.controllerFor('dashboard').set('q', '');\n      this.controllerFor('dashboard').set('doctor_counter', null);\n      this.controllerFor('dashboard').set('onSpotDoc', null);\n      this.controllerFor('dashboard').set('date_of_birth', '');\n      this.controllerFor('dashboard').set('age_years', '');\n      this.controllerFor('dashboard').set('age_months', '');\n      this.controllerFor('dashboard').set('age_days', '');\n      $(document).ready(function () {\n        var currentDate = new Date();\n        $('.date_of_birth').datepicker({\n          yearRange: '-70:+0',\n          dateFormat: 'yy-mm-dd',\n          autoclose: true,\n          changeMonth: true,\n          changeYear: true,\n          //endDate: currentDate,\n          maxDate: '0'\n        });\n        // $('.date_of_birth').keyup(function () {\n        //   if (this.value.match(/[^0-9]/g)) {\n        //     this.value = this.value.replace(/[^0-9^-]/g, '');\n        //   }\n        // });\n      });\n      var _this = this;\n      //date of birth select action\n      $('body').on('change', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('dashboard').send('setDateOfBirth');\n      });\n      $('body').on('keyup', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('dashboard').send('setDateOfBirth');\n      });\n      $('body').on('keyup', '.patient_age', function () {\n        var years = $('#age_years').val();\n        var months = $('#age_months').val();\n        var days = $('#age_days').val();\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          month: months,\n          day: days\n        };\n        _this.controllerFor('dashboard').send('getDateofBirth', date);\n      });\n\n      // setInterval(function () {\n      //   _this.controllerFor('dashboard').send('checkPatientInTab');\n      // }, ENV.APP.patient_in_tab_interval);\n\n      setInterval(function () {\n        _this.controllerFor('dashboard').send('refreshAssignPatientModule');\n      }, _environment.default.APP.refresh_interval);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.controllerFor('dashboard').set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n\n      /*in Below line code are getting all the discount categories, Rahul Khan 12_june_2019 */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/discount_catgories',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('dashboard').set('discount_categories', res);\n        },\n        error: function (error, x, y) {}\n      });\n      this.controllerFor('dashboard').set('user_type', this.session.getLoggedInUserType());\n      this.controllerFor('dashboard').set('user_id', this.session.getLoggedInUserId());\n      this.controllerFor('dashboard').set('username', this.session.getLoggedInUserDetails());\n      this.controllerFor('dashboard').set('user_name', this.session.getLoggedInUserName());\n      this.controllerFor('dashboard').set('user_label', this.session.getLoggedInUserLabel());\n      this.controllerFor('dashboard').set('user_shift_id', this.session.getLoggedInUserShift());\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var shift_id = this.session.getLoggedInUserShift();\n      var stage = 2;\n      var d = new Date();\n      var today = moment().format('YYYY-MM-DD');\n      if (this.session.getLoggedInUserType() == '2') {\n        this.controllerFor('dashboard').set('isDoctor', true);\n        var doctor_id = this.session.getLoggedInUserId();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            doctor_id: doctor_id,\n            shift_id: this.session.getLoggedInUserShift()\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.controller.set('current_doc_appointments', res);\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      } else {\n        this.controllerFor('dashboard').set('isDoctor', false);\n      }\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      if ($('#appointment_date').length > 0 && $('#appointment_date').val() != '') {\n        var appointment_date = $('#appointment_date').val();\n      } else {\n        var fullDate = new Date();\n        var twoDigitMonth = fullDate.getMonth().toString().length + 1 > 1 ? fullDate.getMonth() + 1 : '0' + (fullDate.getMonth() + 1);\n        var twoDigitDate = fullDate.getDate().toString().length + 1 > 1 ? fullDate.getDate() : '0' + fullDate.getDate();\n        var appointment_date = fullDate.getFullYear() + '-' + twoDigitMonth + '-' + twoDigitDate;\n      }\n      // alert(appointment_date);\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_name = branch_detail[1];\n      this.controllerFor('dashboard').set('appointment_heading', branch_name + ' ' + moment(appointment_date, 'YYYY-M-DD').format('ddd DD-MMM-YYYY'));\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'usertimeslot',\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('result', res);\n          var total_doctors = res.data.length;\n          var total_table_width = 90;\n          var width = parseInt(total_table_width, 10) / total_doctors;\n          var td_width = 'width:' + width + '%';\n          _this.controllerFor('dashboard').set('td_width', td_width);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('result', y);\n        }\n      });\n      this.controllerFor('dashboard').set('branch_id', branch_id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/' + branch_id,\n        data: {},\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('appointments', res);\n        },\n        error: function (error, x, y) {\n          _this.controller.set('appointments', y);\n        }\n      });\n      /* END AJAX call */\n\n      // get branch appointments\n\n      // doctors?branch=1&doctor_id=0b4ce8f5-e51e-11e5-9307-06de367cbccd&limit=500&dateTime=2016-03-11\n\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/branch',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.controller.set('branchAppointments', res);\n\n          //console.log(res.booked.vc);\n          var bookedAppCount = res.booked['0'].icp.length;\n          var onspotAppCount = res.ocpappt['0'].phone.length + res.ocpappt['0'].email.length + res.ocpappt['0'].ocp.length + res.ocpappt['0'].vc.length;\n          _this.controller.set('bookedAppCount', bookedAppCount);\n          _this.controller.set('onspotAppCount', onspotAppCount);\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('assigned', res);\n        },\n        error: function (error, x, y) {}\n      });\n      var dkb_id = _environment.default.APP.dkb_id;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          doctor_id: dkb_id,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controller.set('dkb_appointments', res);\n        },\n        error: function (error, x, y) {\n          console.error(error);\n        }\n      });\n      //These below two ajax requests are the replacement of next two commented requests\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/clinicpatients?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          var icpVcComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'icp' || el.appointment_type == 'vc';\n          });\n          var phoneComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'phone';\n          });\n          var emailComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'email';\n          });\n          var ocpComplete = ParseData.data.filter(function (el) {\n            return el.appointment_type == 'ocp';\n          });\n          _this.controller.set('completed', ParseData.data);\n          _this.controller.set('icpVcComplete', icpVcComplete);\n          _this.controller.set('phoneComplete', phoneComplete);\n          _this.controller.set('emailComplete', emailComplete);\n          _this.controller.set('ocpComplete', ocpComplete);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/medicinepatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          _this.controller.set('medicinecompleted', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n      var emailrm_base_url = _environment.default.APP.lumen_api_url + 'billing/emailrmpatient?shift_id=' + shift_id + '&branch_id=' + branch_id + '&stage=' + stage + '&date=' + today;\n      $.ajax({\n        url: emailrm_base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          _this.controller.set('EmailRepeatMedicinePatientsBillComplete', ParseData.data);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n\n      //These two functions are commented due to we set new complete visit condition, 18 July 2019\n      /* $.ajax({\n                method: \"GET\",\n                url: ENV.APP.api_url+\"appointments/completed\",\n                data :{branch_id:branch_id,dateTime:today,shift_id:this.get('session').getLoggedInUserShift()},\n                dataType:'json',\n                success: function(res){\n                 _this.controller.set('completed', res.data);\n                },\n                error: function(error, x, y){\n                  console.error(error);\n                }\n              });*/\n\n      /*\t$.ajax({\n                method: \"GET\",\n                url: ENV.APP.api_url+\"appointments/medicinecompleted\",\n                data :{branch_id:branch_id,dateTime:today,shift_id:this.get('session').getLoggedInUserShift()},\n                dataType:'json',\n                success: function(res){\n      _this.controller.set('medicinecompleted', res.data);\n                },\n                error: function(error, x, y){\n                  console.error(error);\n                }\n              });*/\n\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/notcompleted',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //_this.controllerFor('dashboard').set('icpnotcompleted', res.data);\n          _this.controller.set('notcompleted', res.data);\n          //console.log(_this.controller.get('notcompleted'));\n        },\n        error: function (error, x, y) {\n          console.error(error);\n        },\n        complete: function (res) {\n          //console.log(res);\n        }\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/notcompleted',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //_this.controllerFor('dashboard').set('icpnotcompleted', res.data);\n          _this.controller.set('icpnotcompleted', res.data);\n          //console.log(_this.controller.get('notcompleted'));\n        },\n        error: function (error, x, y) {\n          console.error(error);\n        },\n        complete: function (res) {\n          //console.log(res);\n        }\n      });\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {\n          branch_id: branch_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var data = res.data;\n          _this.controllerFor('dashboard').set('doctors', res.data);\n        }\n      });\n      var _this = this;\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'getsetting/appointment_type',\n        method: 'GET',\n        data: '',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('dashboard').set('appointment_types', JSON.parse(res));\n        }\n      });\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/docCounters',\n        data: {\n          branch_id: branch_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var data = res.data;\n          _this.controllerFor('dashboard').set('doctor_counter', res.data);\n        }\n      });\n    },\n    actions: {\n      getTabsList: function (branch_id, shift_id) {\n        this.getTabsList(branch_id, shift_id);\n      },\n      frontdeskDrReschedulePatient(appointment_id) {\n        Swal.fire({\n          text: 'Do you want to Re-schedule this Patient?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes'\n        }).then(result => {\n          if (result.isConfirmed) {\n            this.controllerFor('appointment').send('getRescheduleAppointment', appointment_id, 'dashboard');\n          }\n        });\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('dashboard').set('route_access', route_access);\n    },\n    model() {\n      var params = {\n        isLogin: true\n      };\n      return params;\n    },\n    getTabsList: function (branch_id, shift_id) {\n      this.controllerFor('dashboard').send('getTabsList', branch_id, shift_id);\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class DispatchRoute extends Ember.Route {}\n  _exports.default = DispatchRoute;\n});","define(\"clinic-dev/routes/dispatch/archive\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    // This below beforeModel block functions run Before Model Loading, Rahul Khan 10_may_2019\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n      this.controllerFor('dispatch.dispatch').set('page', 'Dispatch Archive');\n      this.controllerFor('dispatch.dispatch').set('dispatchedArchive', '');\n      //This below code function is used for getting dispatch patient list\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      var archive = 20;\n      // This function is used for getting 20 dispatched order detail when click on dispatch archive button as on 11-04-2022 shubh tiwari\n      this.searchDispatchedArchivePatient(archive);\n    },\n    actions: {\n      searchDispatchedArchivePatient: function (archive) {\n        this.searchDispatchedArchivePatient(archive);\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var route_access = this.route_permission.canRouteAccess('dispatch/archive', role_route_permission);\n      this.controllerFor('dispatch.dispatch').set('route_access', route_access);\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n        }, 1000);\n      });\n    },\n    searchDispatchedArchivePatient: function (archive) {\n      this.controllerFor('dispatch.dispatch').send('searchDispatchedArchivePatient', archive);\n    },\n    renderTemplate: function () {\n      this.render('dispatch.archive', {\n        controller: 'dispatch.dispatch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    // This below beforeModel block functions run Before Model Loading, Rahul Khan 10_may_2019\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n      this.controllerFor('dispatch.dispatch').set('already_archived', '');\n      this.controllerFor('dispatch.dispatch').set('page', 'Edit Dispatched Order');\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('dispatch.dispatch').send('getDispatchOrder', param.id, param.status);\n      _this.controllerFor('dispatch.dispatch').send('getPatientAddress', param.id, param.patient_id);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('dispatch.dispatch').set('route_access', route_access);\n      this.recalculateAmount.checkAjaxRequest();\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n        }, 1000);\n      });\n      $(document).on('keypress', '#tracking_id', function () {\n        var regex = new RegExp('^[a-zA-Z0-9-()]+$');\n        var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n        if (!regex.test(key)) {\n          event.preventDefault();\n          return false;\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('dispatch.order', {\n        controller: 'dispatch.dispatch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch/editarchive\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    // This below beforeModel block functions run Before Model Loading, Posted by shubh tiwari on 12 april 2022\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.recalculateAmount.PrintAddressLabel();\n      this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n      this.controllerFor('dispatch.dispatch').set('page', 'Edit Archive Dispatched Order');\n      this.controllerFor('dispatch.dispatch').set('already_archived', '');\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('dispatch.dispatch').send('getDispatchOrder', param.id, param.status);\n      _this.controllerFor('dispatch.dispatch').send('getPatientAddress', param.id, param.patient_id);\n      _this.controllerFor('dispatch.dispatch').send('editArchive', param.archive_status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('dispatch.dispatch').set('route_access', route_access);\n      this.recalculateAmount.checkAjaxRequest();\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n        }, 1000);\n      });\n      $(document).on('keypress', '#tracking_id', function () {\n        var regex = new RegExp('^[a-zA-Z0-9-()]+$');\n        var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n        if (!regex.test(key)) {\n          event.preventDefault();\n          return false;\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('dispatch.order', {\n        controller: 'dispatch.dispatch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class DispatchIndexRoute extends Ember.Route {\n    beforeModel() {\n      this.transitionTo('dispatch.list');\n      var permission = this.session.getPermissionList();\n      this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n    }\n  }\n  _exports.default = DispatchIndexRoute;\n});","define(\"clinic-dev/routes/dispatch/list\", [\"exports\", \"clinic-dev/config/environment\", \"numeral\"], function (_exports, _environment, _numeral) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"numeral\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    printOptions: Ember.inject.service('print-options'),\n    // This below beforeModel block functions run Before Model\n    beforeModel() {\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      var permission = this.session.getPermissionList();\n      _this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n      _this.controllerFor('dispatch.dispatch').set('page', 'Dispatch Screen');\n      //This below code function is used for getting dispatch patient list\n      let shift_id = _this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = _this.session.getLocation().split('-')[0];\n      _this.getDispatchPatientOrderList(branch_id, shift_id);\n      _this.getReadyForPickupDispatchedList(branch_id, shift_id);\n      _this.getCurrentDateDispatchedList(branch_id, shift_id);\n      _this.recalculateAmount.PrintAddressLabel();\n      $(document).on('click', '#cancelReadyforPickup', function (e) {\n        var status = e.currentTarget.dataset.dispatchstatus;\n        var ship_id = e.currentTarget.dataset.shipid;\n        swal({\n          title: 'Are you sure you want to cancel this record?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            $.ajax({\n              method: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'icpattend/readycancel',\n              data: {\n                ship_id: ship_id,\n                status: status\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'cancel') {\n                  if (status == 2) {\n                    swal(\"Ready for Pickup cancel completed successfully.\").then(value => {\n                      _this.controllerFor('dispatch.dispatch').send('getReadyForPickupDispatchedList', branch_id, shift_id);\n                      _this.controllerFor('dispatch.dispatch').send('getDispatchPatientOrderList', branch_id, shift_id);\n                    });\n                  } else {\n                    swal(\"Dispatched Orders cancel completed successfully.\").then(value => {\n                      _this.controllerFor('dispatch.dispatch').send('getReadyForPickupDispatchedList', branch_id, shift_id);\n                      _this.controllerFor('dispatch.dispatch').send('getCurrentDateDispatchedList', branch_id, shift_id);\n                    });\n                  }\n                } else if (res.error == true) {\n                  swal(\"Error: unable to delete this record!\");\n                }\n              }\n            });\n          }\n        });\n      });\n    },\n    actions: {\n      getDispatchPatientOrderList: function (branch_id, shift_id) {\n        this.getDispatchPatientOrderList(branch_id, shift_id);\n      },\n      getReadyForPickupDispatchedList: function (branch_id, shift_id) {\n        this.getReadyForPickupDispatchedList(branch_id, shift_id);\n      },\n      getCurrentDateDispatchedList: function (branch_id, shift_id) {\n        this.getCurrentDateDispatchedList(branch_id, shift_id);\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      //var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess('dispatch/list', role_route_permission);\n      this.controllerFor('dispatch.dispatch').set('route_access', route_access);\n      $(document).ready(function () {\n        setTimeout(function () {\n          //$('html, body').scrollTop({ top: 200, behavior: 'smooth' });\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n    },\n    getDispatchPatientOrderList: function (branch_id, shift_id) {\n      this.controllerFor('dispatch.dispatch').send('getDispatchPatientOrderList', branch_id, shift_id);\n    },\n    getReadyForPickupDispatchedList: function (branch_id, shift_id) {\n      this.controllerFor('dispatch.dispatch').send('getReadyForPickupDispatchedList', branch_id, shift_id);\n    },\n    getCurrentDateDispatchedList: function (branch_id, shift_id) {\n      this.controllerFor('dispatch.dispatch').send('getCurrentDateDispatchedList', branch_id, shift_id);\n    },\n    renderTemplate: function () {\n      this.render('dispatch.list', {\n        controller: 'dispatch.dispatch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch/order\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    // This below beforeModel block functions run Before Model Loading, Rahul Khan 10_may_2019\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('dispatch.dispatch').set('permission_arr', permission);\n      this.controllerFor('dispatch.dispatch').set('page', 'Dispatch Order');\n      this.controllerFor('dispatch.dispatch').set('already_archived', '');\n      this.recalculateAmount.PrintAddressLabel();\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('dispatch.dispatch').send('getDispatchOrder', param.id, param.status);\n      _this.controllerFor('dispatch.dispatch').send('getPatientAddress', param.id, param.patient_id);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('dispatch.dispatch').set('route_access', route_access);\n      this.recalculateAmount.checkAjaxRequest();\n      $(document).ready(function () {\n        setTimeout(function () {\n          //$('html, body').scrollTop({ top: 200, behavior: 'smooth' });\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n      $(document).on('keypress', '#tracking_id', function () {\n        var regex = new RegExp('^[a-zA-Z0-9-()]+$');\n        var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n        if (!regex.test(key)) {\n          event.preventDefault();\n          return false;\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('dispatch.order', {\n        controller: 'dispatch.dispatch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/dispatch/order/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class DispatchOrderEditRoute extends Ember.Route {}\n  _exports.default = DispatchOrderEditRoute;\n});","define(\"clinic-dev/routes/dispatch/order/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class DispatchOrderIndexRoute extends Ember.Route {}\n  _exports.default = DispatchOrderIndexRoute;\n});","define(\"clinic-dev/routes/doctor-activity-report\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('reports').set('page', 'Doctor Activity Report');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('reports').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('reports').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('doctor-activity-report', {\n        controller: 'reports'\n      });\n    },\n    actions: {\n      downloadPatientsSeenByDoctors() {\n        const transaction_from = $('#transaction_from').val();\n        const transaction_to = $('#transaction_to').val();\n        if (!transaction_from || !transaction_to) {\n          alert('All fields are necessary. Please enter From Date and To Date & then try again.');\n          return;\n        }\n        const fromDate = new Date(transaction_from);\n        const toDate = new Date(transaction_to);\n        if (toDate < fromDate) {\n          alert('To Date must be greater than or equal to From Date.');\n          return;\n        }\n        const utoken = this.session.getToken();\n        const url = `${_environment.default.APP.lumen_api_url}reports/patientseenreport?from_export_date=${transaction_from}&to_export_date=${transaction_to}`;\n        $.ajax({\n          url: url,\n          method: 'GET',\n          headers: {\n            'Authorization': 'Bearer ' + utoken\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          success: function (data, status, xhr) {\n            const blob = new Blob([data], {\n              type: xhr.getResponseHeader('Content-Type')\n            });\n            const link = document.createElement('a');\n            link.href = window.URL.createObjectURL(blob);\n\n            // Extract dynamic filename from Content-Disposition header\n            let disposition = xhr.getResponseHeader('Content-Disposition');\n            let filename = 'PatientsSeenByDoctors.xlsx';\n            if (disposition && disposition.indexOf('filename=') !== -1) {\n              filename = disposition.split('filename=')[1].trim().replace(/['\"]/g, '');\n            }\n            link.download = filename;\n            document.body.appendChild(link);\n            link.click();\n            document.body.removeChild(link);\n          },\n          error: function (xhr, status, error) {\n            console.error('AJAX Error', status, error, xhr);\n            alert(`Download failed: ${xhr.status} ${xhr.statusText}`);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/doctor-dashboard\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    isDoctor: false,\n    init() {\n      this._super(...arguments);\n      //console.log('Route init function');\n    },\n    beforeModel() {\n      var _this = this;\n      var page_route = _this.controllerFor('application');\n      page_route.set('lastScroll', undefined);\n      var permission = _this.get('session').getPermissionList();\n      var doctor_id = this.session.getLoggedInUserId();\n      _this.recalculateAmount.childModalClose();\n      var utoken = this.get('session').getToken();\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      _this.controllerFor('doctor-dashboard').set('permission_arr', permission);\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var today = moment().format('YYYY-MM-DD');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n        data: {\n          branch_id: branch_id,\n          dateTime: today,\n          shift_id: this.session.getLoggedInUserShift()\n        },\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('doctor-dashboard').set('assigned', res);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    actions: {\n      drreschedulepatient(appointment_id) {\n        Swal.fire({\n          text: 'Do you want to Re-schedule this Patient?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes'\n        }).then(result => {\n          if (result.isConfirmed) {\n            this.controllerFor('appointment').send('getRescheduleAppointment', appointment_id, 'doctor-dashboard.list');\n            //this.transitionToRoute(\"cancel-appointment.reschedule\",{queryParams:{id:appointment_id}});\n          }\n        });\n      },\n      closeNoteBox() {\n        //$('#notebox').css('display', 'none');\n        $('#notebox').modal('hide');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n        $('#cancel_note').val('');\n      },\n      cancelPatientId(visit_id) {\n        $('#cancel_note').val('');\n        this.set('cancel_patient_visit_id', visit_id);\n      },\n      cancelAppointment() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var cancelNote = $('#cancel_note').val();\n        var visit_id = _this.get('cancel_patient_visit_id');\n        var stage = 0;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        var tab_id = $('ul#tab-list').find(`[data-appid='${visit_id}']`).attr('data-tabsid');\n        //console.log(tab_id);\n        if (cancelNote == '') {\n          alert('Please enter reason for cancel assignment.');\n          return false;\n        }\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/cancelappointment',\n          data: {\n            visit_id: visit_id,\n            cancelNote: cancelNote,\n            user_id: user_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              alert('Assignment cancelled successfully');\n              var user = $('#doctor').val();\n              if (tab_id != undefined) {\n                _this.controllerFor('doctor-dashboard').send('removePrescribeTabWithoutMessage', tab_id);\n              }\n              _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n              _this.send('closeNoteBox');\n            }\n            //return true;\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      markPatientAbsent(visit_id, absent) {\n        if (absent == 1) {\n          Swal.fire({\n            icon: 'warning',\n            width: 600,\n            allowOutsideClick: false,\n            text: 'Patient is already marked absent. Can not mark absent again.'\n          });\n          return false;\n        }\n        if (confirm('Are you sure you want to mark this patient absent?') == false) {\n          return false;\n        }\n        var _this = this;\n        var stage = 0;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/absent',\n          data: {\n            id: visit_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            alert('Patient successfully marked as absent');\n            var user = $('#doctor').val();\n            _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n          },\n          error: function (error, x, y) {\n            alert('Some thing went wrong');\n          },\n          complete: function (res) {}\n        });\n      },\n      // newDoctorId(id) {\n      //   var _this = this;\n      //   var stage = 0;\n      //   let shift_id = _this.get('session').getLoggedInUserShift();\n      //   let branch_id = _this.get('session').getLocation().split('-')[0];\n      //   var user_id = id;\n      //   var currentUserId = _this.get('session').getLoggedInUserId();\n      //   var user = $('#doctor').val();\n      //   _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n      //   // if(currentUserId != user_id){\n      //   //   $(\".table\").css(\"pointer-events\", \"none\");\n      //   // } else {\n      //   //   $(\".table\").css(\"pointer-events\", \"auto\");\n      //   // }\n      // },\n\n      urgentModal(appointment_id, urgent_status, urgent_note) {\n        if (urgent_status == '1') {\n          var note = urgent_note.split('&lt;').join('<').split('&gt;').join('>');\n          $('#urgent_status').prop('checked', true);\n          $('#urgent_note').val('');\n          $('#urgent_note').val(note);\n          $('#urgent_status_check').val(urgent_status);\n          this.set('urgent_mark_id', appointment_id);\n        } else {\n          $('#urgent_status').prop('checked', false);\n          $('#urgent_note').val('');\n          $('#urgent_status_check').val('');\n          this.set('urgent_mark_id', appointment_id);\n          let utoken = this.session.getToken();\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'appointments/checkurgentnote',\n            data: {\n              appointment_id: appointment_id\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res && res.data && res.data.length > 0) {\n                var note = res.data[0].note;\n                $('#urgent_note').val(note);\n              } else {\n                $('#urgent_note').val('');\n              }\n            },\n            error: function (error, x, y) {\n              console.error(error);\n            },\n            complete: function (res) {\n              //console.log(res);\n            }\n          });\n        }\n      },\n      closeReScheduleModal() {\n        this.set('reschedule_id', null);\n        this.set('urgent_mark_id', null);\n        //$('#reSchedule').hide();\n        jQuery.noConflict();\n        $('#reSchedule').modal('hide');\n      },\n      reScheduleModal(id) {\n        $('#urgent_note').val('');\n        this.set('reschedule_id', id);\n        //$('#reSchedule').show();\n        jQuery.noConflict();\n        $('#reSchedule').modal('show');\n        $('#reSchedule').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n      },\n      /*   notUrgentPatient(id){\n        var _this = this;\n        var stage = 0\n          //This Below code line is used for getting shift id for login user\n          let shift_id =  _this.get('session').getLoggedInUserShift();\n          //This Below code line is used for getting Branch id for login user\n          let branch_id = _this.get('session').getLocation().split('-')[0];\n          var user_id = _this.get('session').getLoggedInUserId();\n        if(confirm(\"Are you sure you want to change urgent type?\")){\n          $.ajax({\n            method: \"POST\",\n            url: ENV.APP.api_url+\"appointments/changeurgentstatus\",\n            data:{appointment_id:id},\n            success: function(res){\n                if(res.validate == 'true'){\n                  alert('Urgent status successfully update!');\n                  _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete',user_id,shift_id ,branch_id, stage);\n              }\n              },\n            complete:function(){\n              setTimeout(function(){$(\"#loading\").removeClass('in');\n                  $(\"#loading\").css('display','none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');},\n              500);\n            //$('body').click();\n          }\n          });\n        }\n        }, */\n\n      saveUrgentNote() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var stage = 0;\n        var ajaxCall = 0;\n        var noteInfo = '';\n        //This Below code line is used for getting shift id for login user\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        //This Below code line is used for getting Branch id for login user\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        var appointment_id = this.urgent_mark_id;\n        var mark_urgent = $('#urgent_status:checked').val();\n        var urgent_note = $.trim($('#urgent_note').val());\n        var urgent_status_check = $('#urgent_status_check').val();\n        if ((mark_urgent == '' || mark_urgent == undefined || urgent_note == '' || urgent_note == undefined) && urgent_status_check == '') {\n          alert('Please mark checkbox and provide notes!');\n        } else if ((urgent_note == '' || urgent_note == undefined) && urgent_status_check == '1') {\n          alert('Please enter urgent reason!');\n        } else if (urgent_status_check == '1' && (mark_urgent == '' || mark_urgent == undefined)) {\n          if (confirm('Are you sure you want to change status urgent to non-urgent?')) {\n            ajaxCall = 1;\n            noteInfo = 'false';\n          } else {\n            ajaxCall = 2;\n          }\n        } else {\n          ajaxCall = 1;\n          noteInfo = 'true';\n        }\n        if (ajaxCall == 1) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.api_url + 'appointments/changeurgentstatus',\n            data: {\n              appointment_id: appointment_id,\n              mark_urgent: mark_urgent,\n              urgent_note: urgent_note\n            },\n            dataType: 'json',\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              if (res.validate == 'true' && urgent_status_check == '') {\n                alert('Urgent note successfully added');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'true') {\n                alert('Urgent notes successfully updated');\n              }\n              if (res.validate == 'true' && urgent_status_check == '1' && noteInfo == 'false') {\n                alert('Urgent status successfully updated');\n              }\n              var user = $('#doctor').val();\n              _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n              jQuery.noConflict();\n              $('#markUrgent').modal('hide');\n              return false;\n            },\n            error: function (error, x, y) {}\n          });\n        }\n      },\n      reSchedule() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var stage = 0;\n        let shift_id = _this.get('session').getLoggedInUserShift();\n        let branch_id = _this.get('session').getLocation().split('-')[0];\n        var user_id = _this.get('session').getLoggedInUserId();\n        var doc_id = $('#reSchedule select[name=reschedule_doc]').val();\n        var id = this.reschedule_id;\n        var tab_id = $('ul#tab-list').find(`[data-appid='${id}']`).attr('data-tabsid');\n        var _this = this;\n        var isDoctor = this.isDoctor;\n        $.ajax({\n          method: 'POST',\n          url: _environment.default.APP.api_url + 'appointments/reSchedule',\n          data: {\n            id: id,\n            doctor_id: doc_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#loading').addClass('in');\n            $('#loading').css('display', 'block');\n            $('body').addClass('modal-open');\n          },\n          success: function (res) {\n            if (res.validate == 'true') {\n              alert('Re-Assign successfull!');\n              var user = $('#doctor').val();\n              if (tab_id != undefined) {\n                _this.controllerFor('doctor-dashboard').send('removePrescribeTabWithoutMessage', tab_id);\n              }\n              //_this.transitionToRoute(\"doctor-dashboard\");\n              _this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user, shift_id, branch_id, stage);\n              _this.send('closeReScheduleModal');\n            }\n          },\n          error: function (error, x, y) {\n            //console.log(error);\n          },\n          complete: function () {\n            setTimeout(function () {\n              $('#loading').removeClass('in');\n              $('#loading').css('display', 'none');\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }, 500);\n          }\n        });\n      },\n      updateList() {\n        // get branch appointments\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        // doctors?branch=1&doctor_id=0b4ce8f5-e51e-11e5-9307-06de367cbccd&limit=500&dateTime=2016-03-11\n\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/branch',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('branchAppointments', res);\n            var bookedAppCount = res.booked['0'].icp.length;\n            var onspotAppCount = res.ocpappt['0'].phone.length + res.ocpappt['0'].email.length + res.ocpappt['0'].ocp.length + res.ocpappt['0'].vc.length;\n            _this.set('bookedAppCount', bookedAppCount);\n            _this.set('onspotAppCount', onspotAppCount);\n          },\n          error: function (error, x, y) {\n            // console.log(error)\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.set('assigned', res);\n          },\n          error: function (error, x, y) {\n            //console.log(error);\n          },\n          complete: function () {\n            var active_tab = $('#assign-tab-list li.active  a').data('tab');\n            _this.send('showTab', active_tab);\n          }\n        });\n      },\n      updateDkbList() {\n        var dkb_id = _environment.default.APP.dkb_id;\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            doctor_id: dkb_id,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('dkb_appointments', res);\n            //console.log('shubh-cotroller-2');\n            //  _this.send('refreshModel');\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          }\n        });\n      },\n      getNotCompleted() {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/notcompleted',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('notcompleted', res.data);\n          },\n          error: function (error, x, y) {\n            console.error(error);\n          },\n          complete: function (res) {\n            //console.log(res);\n          }\n        });\n      },\n      updateDoctorList() {\n        var branch_detail = this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var d = new Date();\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = this.session.getLoggedInUserId();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/doctorsAssigned',\n          data: {\n            branch_id: branch_id,\n            dateTime: today,\n            doctor_id: doctor_id,\n            shift_id: this.user_shift_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.set('current_doc_appointments', res);\n            //console.log('shubh-cotroller-3');\n            $('#loading').removeClass('in');\n            $('#loading').css('display', 'none');\n            $('.modal-backdrop').remove();\n            $('body').removeClass('modal-open');\n          },\n          error: function (error, x, y) {}\n        });\n      },\n      showTab(tab) {\n        $('.tab-pane.active').removeClass('active');\n        $('#assign-tab-list > li.active').removeClass('active');\n        $('#' + tab + '.tab-pane').addClass('active');\n        $('[data-tab=' + tab + ']').parent('li').addClass('active');\n        this.set('active_tab', tab);\n        // this.send('updateDkbList')\n      }\n    },\n    model(param) {\n      var _this = this;\n      // _this.controllerFor('doctor-dashboard').send('getPrescribeDetail', param.id);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('doctor-dashboard').set('route_access', route_access);\n      this.recalculateAmount.checkAjaxRequest();\n    },\n    renderTemplate: function () {\n      this.render('doctor-dashboard', {\n        controller: 'doctor-dashboard'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/doctor-dashboard/checkout\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel(param) {\n      var _this = this;\n      var page_route = _this.controllerFor('application');\n      page_route.set('lastScroll', undefined);\n      var utoken = _this.get('session').getToken();\n      var permission = _this.get('session').getPermissionList();\n      var logged_doctor = _this.get('session').getLoggedInUserId();\n      _this.controllerFor('checkout').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      var logged_user = _this.get('session').getLoggedInUserName();\n      _this.controllerFor('checkout').set('logged_user', logged_user);\n      _this.controllerFor('checkout').set('preview', param.to.params.preview);\n      _this.controllerFor('checkout').set('page', 'checkout');\n      _this.controllerFor('checkout').send('getRecords');\n      _this.controllerFor('checkout').send('getPaymentMode');\n      _this.controllerFor('checkout').send('getPreviousPendingAmount');\n      _this.controllerFor('checkout').send('getPreviousBillAmount');\n      _this.controllerFor('checkout').send('getPrescribeDetail');\n      _this.controllerFor('checkout').send('getChargeList');\n      _this.controllerFor('checkout').send('getPreviousVisitCharges');\n      _this.controllerFor('checkout').send('getApplyMedicineDiscount');\n      _this.controllerFor('checkout').send('getApplyConsultancyWaived');\n      //_this.controllerFor('checkout').send('getAfterVisitPendingAmount');\n      _this.recalculateAmount.alertMessagePopupClose();\n      // allow enter only numbers Shubh Tiwari 28 Nov 2022\n      _this.recalculateAmount.allowOnlyNumber();\n      var stage_billing = 0;\n      //This Below code line is used for getting shift id for login user\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = _this.get('session').getLoggedInUserId();\n      _this.doctorCounter(user_id, shift_id, branch_id);\n      _this.getTabList(user_id, branch_id, shift_id);\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      _this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage_billing);\n      // Image Enlarge\n      $(document).on('click', '.pop', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('.checkoutimagepreview').attr('src', $(this).find('img').attr('src'));\n        console.log($(this).find('img').attr('title'));\n        $('.diagnostic_test_title').text($(this).find('img').attr('data-testname'));\n        $('#checkout_image_enlarge').modal('show');\n      });\n      $(document).on('keypress', '#prescription_reason', function (event) {\n        if ($(this).val() == '') {\n          if (event.which === 32) {\n            return false;\n          } else {\n            var regex = new RegExp('^[a-zA-Z0-9 \\b-]+$');\n            var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n            if (!regex.test(key)) {\n              event.preventDefault();\n              return false;\n            }\n          }\n        } else {\n          var regex = new RegExp('^[a-zA-Z0-9 \\b-]+$');\n          var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n          if (!regex.test(key)) {\n            event.preventDefault();\n            return false;\n          }\n        }\n        return true;\n      });\n      $(document).on('click', '.urgent_note', function (event) {\n        jQuery.noConflict();\n        $('#patientUrgentPopup').modal('show');\n      });\n      $(document).on('click', '.office-expand', function (event) {\n        $(this).find('i').toggleClass('fas fa-minus fas fa-minus');\n        $(this).find('i').css('background-color', '');\n      });\n      $(window).scroll(function (e) {\n        var resolution = $(window).width();\n        //var height = $(window).height();\n        //console.log(resolution);\n        if ($(window).scrollTop() + $(window).height() > $(document).height() - 100) {\n          $('.button-sticky').css({\n            position: 'relative'\n          });\n          e.preventDefault();\n        } else {\n          $('.button-sticky').css({\n            position: 'fixed'\n          });\n        }\n      });\n    },\n    model(param) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('checkout').send('getCaseHistory', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getPGCharge', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPrescribeDetail', param.appointment_id);\n      _this.controllerFor('checkout').send('getRecords', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousBillAmount', param.appointment_id);\n      _this.controllerFor('checkout').send('geMessageLogs', param.appointment_id);\n      _this.controllerFor('checkout').send('setAppointmentId', param.id);\n      _this.controllerFor('checkout').send('setPatientId', param.patient_id);\n      _this.controllerFor('checkout').send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      _this.controllerFor('checkout').send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      //_this.controllerFor('checkout').send('getAfterVisitPendingAmount',param.appointment_id,param.billing_id);\n      _this.controllerFor('checkout').send('getTodayVitalList', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getReportsList', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getCaseTakenList', param.appointment_id);\n      //_this.controllerFor('checkout').send('getVisitCharges', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('setReadMessage', param.read_message);\n      //_this.controllerFor('checkout').send('getFreeNote', param.appointment_id);\n      _this.controllerFor('checkout').set('appointment_id', param.appointment_id);\n      _this.controllerFor('checkout').set('patient_id', param.patient_id);\n      _this.controllerFor('checkout').set('billing_id', param.billing_id);\n      _this.controllerFor('checkout').set('read_message', param.read_message);\n      _this.controllerFor('checkout').send('getAdvisedReport', param.appointment_id);\n      if (param.read_message == 0 || param.read_message == 2) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'editabs',\n          data: {\n            p_id: param.patient_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            var branch_detail = _this.session.getLocation().split('-');\n            var branch_id = branch_detail[0];\n            var today = moment().format('YYYY-MM-DD');\n            var doctor_id = _this.session.getLoggedInUserId();\n            var shift_id = _this.session.getLoggedInUserShift();\n            _this.controllerFor('checkout').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, param.id, res.p_edit_status);\n          }\n        });\n        // This condition is usde For that case when message log patinet not open in tab\n      } else if (param.read_message == 1) {\n        var branch_detail = _this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = _this.session.getLoggedInUserId();\n        var shift_id = _this.session.getLoggedInUserShift();\n        _this.controllerFor('checkout').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, param.id, 'No');\n      }\n      _this.controllerFor('checkout').send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    actions: {\n      goBack() {\n        history.go(-1);\n      },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      getTabList: function (user_id, branch_id, shift_id) {\n        this.getTabList(user_id, branch_id, shift_id);\n      },\n      // getDoctorDropdownList: function (user_id, branch_id) {\n      //   this.getDoctorDropdownList(user_id, branch_id);\n      // },\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage);\n      },\n      reloadUrgentNote() {\n        var urgent_status = $('input[type=checkbox][name=urgent_status]:checked').is(':checked');\n        var urgent_note = $('textarea[name=\"urgent_note\"]').attr('data-note');\n        if (urgent_status == true) {\n          $('#urgent_note').val(urgent_note);\n        }\n      },\n      closeReScheduleModal() {\n        this.set('reschedule_id', null);\n        this.set('urgent_mark_id', null);\n        $('#reSchedule').hide();\n      }\n    },\n    afterModel() {\n      var _this = this;\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      //_this.send('refreshPage');\n      this.controllerFor('checkout').set('route_access', route_access);\n      _this.recalculateAmount.checkAjaxRequest();\n      $(document).ready(function () {\n        $(window).scroll(function () {\n          //console.log($(document).scrollTop());\n          if ($(document).scrollTop() > 40) {\n            $('.thintab').show();\n          } else {\n            $('.thintab').hide();\n          }\n        });\n      });\n      //_this.controllerFor('checkout').send('invalidateModel');\n      // if factor change then calculate total cost and also calculate individual medicine cost\n      $(document).on('keyup keypress change paste', '.qty', function () {\n        var $tblrows = $('#prescribeDetails tbody tr');\n        $tblrows.each(function (index) {\n          var $tblrow = $(this);\n          $tblrow.find('.qty').bind('keyup keypress change paste', function () {\n            var qty = $tblrow.find('[name=qty]').val();\n            //This below condition is used to highlighted the zero factor medicine, Rahul khan, 25 july 2019\n            //var factor_input_id = $(this).attr('id').replace ( /[^\\d.]/g, '');\n            //console.log(qty);\n            var get_input_id = $(this).attr('id');\n            var factor_input_id_array = get_input_id.split('-');\n            var factor_input_id = factor_input_id_array[1];\n            //console.log(factor_input_id);\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            //console.log(selectedForm);\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            //console.log(selectedOptionText);\n            if (selectedOptionText != '') {\n              if (selectedOptionText == 'L') {\n                var fvalue = qty;\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('.vial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = qty;\n                var v1 = Math.ceil(fvalue / 4);\n                $('.vial-' + factor_input_id).val(v1);\n              }\n            }\n            if (qty > 300) {\n              alert('Factor value cannot exceed 300.');\n              //  /var test = qty.substr(1);\n              $tblrow.find('[name=qty]').val(1);\n              $tblrow.find('[name=vial]').val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $tblrow.find('[name=qty]').val(0);\n              $tblrow.find('[name=vial]').val(0);\n              var qty = 0;\n              $($tblrow).addClass('zerofactor');\n              $($tblrow).attr('title', 'None billing medicine');\n            } else {\n              $($tblrow).removeClass('zerofactor');\n              $($tblrow).removeAttr('title');\n            }\n            var price = $tblrow.find('[name=price]').val();\n            var subTotal = parseInt(qty, 10) * parseFloat(price);\n            if (!isNaN(subTotal)) {\n              $tblrow.find('.subtot').val(subTotal.toFixed(2));\n              var grandTotal = 0;\n              var chargeTotal = 0;\n              $('.subtot').each(function () {\n                var stval = parseFloat($(this).val());\n                grandTotal += isNaN(stval) ? 0 : stval;\n              });\n              $('.box-charge').each(function () {\n                var chargeval = parseFloat($(this).val());\n                chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n              });\n              _this.controllerFor('checkout').set('total_charge', parseFloat(chargeTotal));\n\n              /* if factor change then on the fly percentage chnage*/\n              var discount = parseInt($('.percentage').text());\n              var discount_id = $('.med_remove_button').attr('data-discountid');\n              var med_main = parseFloat(grandTotal).toFixed(2);\n              _this.controllerFor('checkout').set('medicine_amount', med_main);\n              if (discount != 0 && discount != 100) {\n                _this.controllerFor('checkout').set('remove_discount_button', discount_id);\n                _this.controllerFor('checkout').set('onthefly_discount', discount);\n              } else {\n                _this.controllerFor('checkout').set('remove_discount_button', '');\n                _this.controllerFor('checkout').set('medicine_discount', discount);\n              }\n              var consultancy_fees = parseInt($('.cons_dis').text());\n              var consultancy_waive_type = $('.cons_waived').text();\n              var consultancy_discount = parseInt($('.cons_amount').text());\n              var billing_id = $('.cons_remove_button').attr('data-billingid');\n              //console.log(consultancy_fees);\n              //console.log(consultancy_waive_type);\n              //console.log(consultancy_discount);\n\n              if (consultancy_waive_type == 'Waived') {\n                _this.controllerFor('checkout').set('consultancy_fees', parseFloat(consultancy_fees));\n                _this.controllerFor('checkout').set('consultancy_discount', 0);\n                _this.controllerFor('checkout').set('consultancy_waive_type', consultancy_waive_type);\n                _this.controllerFor('checkout').set('consultancy_remove_button', billing_id);\n                _this.controllerFor('checkout').set('consultancy_waived_amount', 0);\n              } else if (consultancy_discount == 0 || consultancy_discount == 100) {\n                _this.controllerFor('checkout').set('consultancy_fees', parseFloat(consultancy_fees));\n                _this.controllerFor('checkout').set('consultancy_discount', consultancy_discount);\n                _this.controllerFor('checkout').set('consultancy_waive_type', '');\n                _this.controllerFor('checkout').set('consultancy_remove_button', '');\n                _this.controllerFor('checkout').set('consultancy_waived_amount', '');\n              }\n              var pending = $('.pending').val();\n              _this.controllerFor('checkout').set('pending_amount', pending);\n              var previous_bill_amount = $('.paid_amount').val();\n              var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n              var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n              _this.controllerFor('checkout').set('previous_bill_amount', bill_paid_amount);\n            }\n          });\n        });\n      });\n      $(document).on('keyup keypress change paste', '.medicineVial', function () {\n        $('.medicineVial').each(function () {\n          var vial = $(this).val();\n          var vaial_id = $(this).attr('id');\n          if (vial > 100) {\n            swal({\n              text: 'Vial value cannot exceed 100.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            $('#' + vaial_id).val(1);\n            var vial = 1;\n          }\n          if (vial < 1) {\n            $('#' + vaial_id).val(0);\n            var vial = 0;\n          }\n        });\n      });\n      // calculate total after add different-2 payment mode\n      $(document).on('change paste keyup', '.payment-method', function (event) {\n        var totalReceivedAmount = 0;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        $('#recieved').val(totalModeAmount);\n      });\n    },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      this.controllerFor('checkout').send('doctorCounter', doctor_id, shift_id, branch_id);\n    },\n    getTabList: function (user_id, branch_id, shift_id) {\n      this.controllerFor('checkout').send('getTabsList', user_id, branch_id, shift_id);\n    },\n    // getDoctorDropdownList: function (user_id, branch_id) {\n    //   this.controllerFor('checkout').send(\n    //     'getDoctorDropdownList',\n    //     user_id,\n    //     branch_id\n    //   );\n    // },\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n      this.controllerFor('checkout').send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n    },\n    renderTemplate: function () {\n      this.render('doctor-dashboard.checkout', {\n        controller: 'checkout'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/doctor-dashboard/checkoutdetail\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel(param) {\n      var _this = this;\n      console.log(param.to.params.preview);\n      var utoken = _this.get('session').getToken();\n      var permission = _this.get('session').getPermissionList();\n      var logged_doctor = _this.get('session').getLoggedInUserId();\n      _this.controllerFor('checkout').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      var logged_user = _this.get('session').getLoggedInUserName();\n      _this.controllerFor('checkout').set('logged_user', logged_user);\n      _this.controllerFor('checkout').set('preview', param.to.params.preview);\n      _this.controllerFor('checkout').set('page', 'checkout');\n      _this.controllerFor('checkout').send('getRecords');\n      _this.controllerFor('checkout').send('getPaymentMode');\n      _this.controllerFor('checkout').send('getPreviousPendingAmount');\n      _this.controllerFor('checkout').send('getPreviousBillAmount');\n      _this.controllerFor('checkout').send('getPrescribeDetail');\n      _this.controllerFor('checkout').send('getChargeList');\n      _this.controllerFor('checkout').send('getPreviousVisitCharges');\n      _this.controllerFor('checkout').send('getApplyMedicineDiscount');\n      _this.controllerFor('checkout').send('getApplyConsultancyWaived');\n      _this.recalculateAmount.disableAllElementOfCheckoutPreviw();\n      //_this.controllerFor('checkout').send('getAfterVisitPendingAmount');\n      _this.recalculateAmount.alertMessagePopupClose();\n      var stage_billing = 0;\n      //This Below code line is used for getting shift id for login user\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = _this.get('session').getLoggedInUserId();\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      _this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage_billing);\n      _this.getTabList(user_id, branch_id, shift_id);\n      _this.doctorCounter(user_id, shift_id, branch_id);\n      // Image Enlarge\n      $(document).on('click', '.pop', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('.checkoutimagepreview').attr('src', $(this).find('img').attr('src'));\n        console.log($(this).find('img').attr('title'));\n        $('.diagnostic_test_title').text($(this).find('img').attr('data-testname'));\n        $('#checkout_image_enlarge').modal('show');\n      });\n      $(document).on('keypress', '#prescription_reason', function (event) {\n        if ($(this).val() == '') {\n          if (event.which === 32) {\n            return false;\n          } else {\n            var regex = new RegExp('^[a-zA-Z0-9 \\b-]+$');\n            var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n            if (!regex.test(key)) {\n              event.preventDefault();\n              return false;\n            }\n          }\n        } else {\n          var regex = new RegExp('^[a-zA-Z0-9 \\b-]+$');\n          var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);\n          if (!regex.test(key)) {\n            event.preventDefault();\n            return false;\n          }\n        }\n        return true;\n      });\n      $(document).on('click', '.urgent_note', function (event) {\n        jQuery.noConflict();\n        $('#patientUrgentPopup').modal('show');\n      });\n      $(document).on('click', '.office-expand', function (event) {\n        $(this).find('i').toggleClass('fas fa-minus fas fa-minus');\n        $(this).find('i').css('background-color', '');\n      });\n      $(window).scroll(function (e) {\n        if ($(window).scrollTop() + $(window).height() > $(document).height() - 100) {\n          $('.button-sticky').css({\n            position: 'relative',\n            float: 'right',\n            'margin-right': '10px'\n          });\n          e.preventDefault();\n        } else {\n          $('.button-sticky').css({\n            position: 'fixed'\n          });\n        }\n      });\n    },\n    model(param) {\n      var _this = this;\n      _this.controllerFor('checkout').send('getCaseHistory', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getPGCharge', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPrescribeDetail', param.appointment_id);\n      _this.controllerFor('checkout').send('getRecords', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousPendingAmount', param.patient_id, param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousBillAmount', param.appointment_id);\n      _this.controllerFor('checkout').send('geMessageLogs', param.appointment_id);\n      _this.controllerFor('checkout').send('setAppointmentId', param.id);\n      _this.controllerFor('checkout').send('setPatientId', param.patient_id);\n      _this.controllerFor('checkout').send('getPharmacyHistory', param.patient_id, param.appointment_id);\n      _this.controllerFor('checkout').send('getApplyMedicineDiscount', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getApplyConsultancyWaived', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('getPreviousVisitCharges', param.appointment_id, param.billing_id);\n      //_this.controllerFor('checkout').send('getAfterVisitPendingAmount',param.appointment_id,param.billing_id);\n      _this.controllerFor('checkout').send('getTodayVitalList', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getReportsList', param.appointment_id, param.patient_id);\n      _this.controllerFor('checkout').send('getCaseTakenList', param.appointment_id);\n      //_this.controllerFor('checkout').send('getVisitCharges', param.appointment_id, param.billing_id);\n      _this.controllerFor('checkout').send('setReadMessage', param.read_message);\n      //_this.controllerFor('checkout').send('getFreeNote', param.appointment_id);\n      _this.controllerFor('checkout').set('appointment_id', param.appointment_id);\n      _this.controllerFor('checkout').set('patient_id', param.patient_id);\n      _this.controllerFor('checkout').set('billing_id', param.billing_id);\n      _this.controllerFor('checkout').set('read_message', param.read_message);\n      _this.controllerFor('checkout').send('getAdvisedReport', param.appointment_id);\n      var branch_detail = this.session.getLocation().split('-');\n      var branch_id = branch_detail[0];\n      var today = moment().format('YYYY-MM-DD');\n      var doctor_id = this.session.getLoggedInUserId();\n      var shift_id = this.session.getLoggedInUserShift();\n      _this.controllerFor('checkout').send('getPatientAddress', param.patient_id, param.appointment_id);\n    },\n    actions: {\n      goBack() {\n        history.go(-1);\n      },\n      getTabList: function (user_id, branch_id, shift_id) {\n        this.getTabList(user_id, branch_id, shift_id);\n      },\n      // getDoctorDropdownList: function (user_id, branch_id) {\n      //   this.getDoctorDropdownList(user_id, branch_id);\n      // },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage);\n      },\n      reloadUrgentNote() {\n        var urgent_status = $('input[type=checkbox][name=urgent_status]:checked').is(':checked');\n        var urgent_note = $('textarea[name=\"urgent_note\"]').attr('data-note');\n        if (urgent_status == true) {\n          $('#urgent_note').val(urgent_note);\n        }\n      },\n      closeReScheduleModal() {\n        this.set('reschedule_id', null);\n        this.set('urgent_mark_id', null);\n        $('#reSchedule').hide();\n      }\n    },\n    getTabList: function (user_id, branch_id, shift_id) {\n      this.controllerFor('checkout').send('getTabsList', user_id, branch_id, shift_id);\n    },\n    // getDoctorDropdownList: function (user_id, branch_id) {\n    //   this.controllerFor('checkout').send(\n    //     'getDoctorDropdownList',\n    //     user_id,\n    //     branch_id\n    //   );\n    // },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      this.controllerFor('checkout').send('doctorCounter', doctor_id, shift_id, branch_id);\n    },\n    afterModel(model) {\n      var _this = this;\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      //_this.send('refreshPage');\n      this.controllerFor('checkout').set('route_access', route_access);\n      //_this.controllerFor('checkout').send('invalidateModel');\n      // if factor change then calculate total cost and also calculate individual medicine cost\n      setTimeout(function () {\n        //$('html, body').scrollTop(0);\n        $('html, body').animate({\n          scrollTop: 0\n        }, 1000);\n        //$(window).scrollTop({ top: 0, behavior: 'smooth' });\n        //window.scrollTo({ top: 0, behavior: 'smooth' });\n        $(function () {\n          var $tblrows = $('#prescribeDetails tbody tr');\n          $tblrows.each(function (index) {\n            var $tblrow = $(this);\n            $tblrow.find('.qty').bind('keyup keypress change paste', function () {\n              var qty = $tblrow.find('[name=qty]').val();\n              //This below condition is used to highlighted the zero factor medicine, Rahul khan, 25 july 2019\n              //var factor_input_id = $(this).attr('id').replace ( /[^\\d.]/g, '');\n              //console.log(qty);\n              var get_input_id = $(this).attr('id');\n              var factor_input_id_array = get_input_id.split('-');\n              var factor_input_id = factor_input_id_array[1];\n              //console.log(factor_input_id);\n              var selectedForm = $('#prescribeform-' + factor_input_id).val();\n              //console.log(selectedForm);\n              var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n              //console.log(selectedOptionText);\n              if (selectedOptionText != '') {\n                if (selectedOptionText == 'L') {\n                  var fvalue = qty;\n                  var v = fvalue / 2;\n                  var b = Math.ceil(v);\n                  $('.vial-' + factor_input_id).val(b);\n                } else {\n                  var fvalue = qty;\n                  var v1 = Math.ceil(fvalue / 4);\n                  $('.vial-' + factor_input_id).val(v1);\n                }\n              }\n              if (qty > 300) {\n                alert('Factor value cannot exceed 300.');\n                //  /var test = qty.substr(1);\n                $tblrow.find('[name=qty]').val(1);\n                $tblrow.find('[name=vial]').val(1);\n                var qty = 1;\n              }\n              if (qty < 1) {\n                $tblrow.find('[name=qty]').val(0);\n                $tblrow.find('[name=vial]').val(0);\n                var qty = 0;\n                $($tblrow).addClass('zerofactor');\n                $($tblrow).attr('title', 'None billing medicine');\n              } else {\n                $($tblrow).removeClass('zerofactor');\n                $($tblrow).removeAttr('title');\n              }\n              var price = $tblrow.find('[name=price]').val();\n              var subTotal = parseInt(qty, 10) * parseFloat(price);\n              if (!isNaN(subTotal)) {\n                $tblrow.find('.subtot').val(subTotal.toFixed(2));\n                var grandTotal = 0;\n                var chargeTotal = 0;\n                $('.subtot').each(function () {\n                  var stval = parseFloat($(this).val());\n                  grandTotal += isNaN(stval) ? 0 : stval;\n                });\n                $('.box-charge').each(function () {\n                  var chargeval = parseFloat($(this).val());\n                  chargeTotal += isNaN(chargeval) ? 0 : chargeval;\n                });\n                _this.controllerFor('checkout').set('total_charge', parseFloat(chargeTotal));\n\n                /* if factor change then on the fly percentage chnage*/\n                var discount = parseInt($('.percentage').text());\n                var discount_id = $('.med_remove_button').attr('data-discountid');\n                var med_main = parseFloat(grandTotal).toFixed(2);\n                _this.controllerFor('checkout').set('medicine_amount', med_main);\n                if (discount != 0 && discount != 100) {\n                  _this.controllerFor('checkout').set('remove_discount_button', discount_id);\n                  _this.controllerFor('checkout').set('onthefly_discount', discount);\n                } else {\n                  _this.controllerFor('checkout').set('remove_discount_button', '');\n                  _this.controllerFor('checkout').set('medicine_discount', discount);\n                }\n                var consultancy_fees = parseInt($('.cons_dis').text());\n                var consultancy_waive_type = $('.cons_waived').text();\n                var consultancy_discount = parseInt($('.cons_amount').text());\n                var billing_id = $('.cons_remove_button').attr('data-billingid');\n                //console.log(consultancy_fees);\n                //console.log(consultancy_waive_type);\n                //console.log(consultancy_discount);\n\n                if (consultancy_waive_type == 'Waived') {\n                  _this.controllerFor('checkout').set('consultancy_fees', parseFloat(consultancy_fees));\n                  _this.controllerFor('checkout').set('consultancy_discount', 0);\n                  _this.controllerFor('checkout').set('consultancy_waive_type', consultancy_waive_type);\n                  _this.controllerFor('checkout').set('consultancy_remove_button', billing_id);\n                  _this.controllerFor('checkout').set('consultancy_waived_amount', 0);\n                } else if (consultancy_discount == 0 || consultancy_discount == 100) {\n                  _this.controllerFor('checkout').set('consultancy_fees', parseFloat(consultancy_fees));\n                  _this.controllerFor('checkout').set('consultancy_discount', consultancy_discount);\n                  _this.controllerFor('checkout').set('consultancy_waive_type', '');\n                  _this.controllerFor('checkout').set('consultancy_remove_button', '');\n                  _this.controllerFor('checkout').set('consultancy_waived_amount', '');\n                }\n                var pending = $('.pending').val();\n                _this.controllerFor('checkout').set('pending_amount', pending);\n                var previous_bill_amount = $('.paid_amount').val();\n                var paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n                var bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n                _this.controllerFor('checkout').set('previous_bill_amount', bill_paid_amount);\n              }\n            });\n          });\n        });\n      }, 1000);\n      $(document).on('keyup keypress change paste', '.medicineVial', function () {\n        $('.medicineVial').each(function () {\n          var vial = $(this).val();\n          var vaial_id = $(this).attr('id');\n          if (vial > 100) {\n            swal({\n              text: 'Vial value cannot exceed 100.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            $('#' + vaial_id).val(1);\n            var vial = 1;\n          }\n          if (vial < 1) {\n            $('#' + vaial_id).val(0);\n            var vial = 0;\n          }\n        });\n      });\n      // calculate total after add different-2 payment mode\n      $(document).on('change paste keyup', '.payment-method', function (event) {\n        var totalReceivedAmount = 0;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        $('#recieved').val(totalModeAmount);\n      });\n    },\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n      this.controllerFor('checkout').send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n    },\n    renderTemplate: function () {\n      this.render('doctor-dashboard.checkoutdetail', {\n        controller: 'checkout'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/doctor-dashboard/icpattend\", [\"exports\", \"@whoicd/icd11ect\", \"clinic-dev/config/environment\", \"qunit\"], function (_exports, _icd11ect, _environment, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/routing/route\",0,\"@whoicd/icd11ect\",0,\"clinic-dev/config/environment\",0,\"qunit\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    session: Ember.inject.service('session'),\n    init() {\n      this._super(...arguments);\n      //console.log('Route init function');\n    },\n    beforeModel() {\n      var _this = this;\n      var page_route = _this.controllerFor('application');\n      page_route.set('lastScroll', undefined);\n      var permission = _this.get('session').getPermissionList();\n      var logged_doctor = _this.get('session').getLoggedInUserId();\n      var logged_user = _this.get('session').getLoggedInUserName();\n      var utoken = this.get('session').getToken();\n      //console.log('Route beforeModel function');\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      _this.controllerFor('icpattend').set('logged_user', logged_user);\n      _this.controllerFor('icpattend').set('page', 'icpattend');\n      _this.controllerFor('icpattend').set('history_page', 'icpattend');\n      //_this.controllerFor('icpattend').send('getLastVisitHistory');\n      _this.controllerFor('icpattend').send('getPatientHistory');\n      var todayDate = moment().format('DD/MM/YYYY');\n      _this.controllerFor('icpattend').set('todayDate', todayDate);\n      _this.controllerFor('icpattend').set('logged_id', logged_doctor);\n      _this.controllerFor('icpattend').set('permission_arr', permission);\n      //_this.controllerFor('icpattend').send('getAdvisedReport');\n      _this.controllerFor('icpattend').send('getPrescribeDetail');\n      var stage_billing = 0;\n      //This Below code line is used for getting shift id for login user\n      let shift_id = _this.get('session').getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = _this.get('session').getLocation().split('-')[0];\n      var user_id = _this.get('session').getLoggedInUserId();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      _this.recalculateAmount.removeDiagnosticDecimal();\n      _this.recalculateAmount.setThresholdAbnormalVal();\n      _this.recalculateAmount.onChangeBinaryAbnormalVal();\n      //document.getElementById(\"top-page\").scrollTo({ behavior: \"smooth\", top: 0 });\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      _this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage_billing);\n      _this.getTabList(user_id, branch_id, shift_id);\n      //_this.getDoctorDropdownList(user_id, branch_id);\n      _this.doctorCounter(user_id, shift_id, branch_id);\n      var para = 'all';\n      $.ajax({\n        type: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (response) {\n          _this.set('instruction', response);\n          _this.controllerFor('icpattend').set('instruction', response);\n        }\n      });\n      //_this.controllerFor('icpattend').send('getVitalList');\n      setTimeout(function () {\n        $('.menu li:first').addClass('active');\n        // var icd_name = $('#icd_name').val();\n        // if (icd_name == '') {\n        //   $('#icd_suggession_div').css('border', 'initial');\n        //   ECT.Handler.bind('1');\n        // }\n      }, 500);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      $(document).on('click', '.office-expand', function (event) {\n        $(this).find('i').toggleClass('fas fa-plus fas fa-minus');\n        $(this).find('i').css('background-color', '');\n      });\n\n      // Clear Search of diagnostic report popup\n      $(document).on('click', '.dsclear', function (event) {\n        event.preventDefault();\n        $('.search-div input').val('');\n        $('#dnorecod').html('');\n        $('#grouppath').html('');\n        $('#diagnostic_results').html('').hide().removeClass('diagnostic-search-result');\n      });\n\n      // Image Enlarge\n      $(document).on('click', '.pop', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('.diagnosticimagepreview').attr('src', $(this).find('img').attr('src'));\n        //console.log($(this).find('img').attr('title'));\n        $('.diagnostic_test_title').text($(this).find('img').attr('data-testname'));\n        $('#diagnostic_image_enlarge').modal('show');\n      });\n      $(document).on('click', '.addvital', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        $('#vitalStatisticsPopup').modal('show');\n        $('#vitalStatisticsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        //$('.modal-body').find('lable,input,textarea').val('');\n        var height_unit = $('#height_unit').val().trim();\n        if (height_unit == 'feet') {\n          $('#height_inches').removeAttr('style');\n          $('#height_inches1').attr('Placeholder', 'Inch');\n        } else {\n          $('#height_inches').css('width', '112px');\n        }\n      });\n      $(document).on('click', '.addCaseTaking', function (event) {\n        event.preventDefault();\n        jQuery.noConflict();\n        _icd11ect.default.Handler.clear('1');\n        $('#icd_code').removeAttr('data-icdname');\n        $('#icd_suggession_div').css('border', 'initial');\n        $('#icd_code').val('');\n        $('#icd_major_condition').prop('checked', false);\n        $('#disease_name').val('');\n        $('#disease_id').val('');\n        $('#system_name').val('');\n        $('#system_id').val('');\n        $('#organ_name').val('');\n        $('#organ_id').val('');\n        $('#dkbc_db_major_condition').prop('checked', false);\n        $('#details_notes').val('');\n        $('#addCaseTaking input[type=\"text\"], textarea').val('');\n        $('textarea#details_notes').val('');\n        $('#addCaseTaking textarea').val('');\n        $('#symptom_duration').val('');\n        $('#certificate_name').val('');\n        $('.d_sympton').val('');\n        $('.drugs').val('');\n        $('#patient_status').val('NA');\n        $('.remove_row').remove();\n        $('.hotherOption1').val('');\n        $('.hotherOption1').attr('placeholder', 'Select instruction');\n        $('.nhotherOption1').val('');\n        $('.nhotherOption1').attr('placeholder', 'Select instruction');\n        $('#caseTakenUpdate1').show();\n        $('#caseTakenUpdate').text('Save & Close');\n        $('#caseTakenUpdate').addClass('case-pull-left');\n        $('#caseTakenUpdate').removeAttr('style');\n        $('#casetaken_title').text('Add Case Taking');\n        $('#case_taken_id').removeAttr('value');\n        $('.dkbc_clear_class').hide();\n        $('.icd_clear_class').hide();\n        $('#caseTakingPopup').modal('show');\n        $('#caseTakingPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        setTimeout(function () {\n          document.getElementById(\"icd_name\").focus();\n          _icd11ect.default.Handler.bind('1');\n          $('#details_notes').val('');\n          $('#addCaseTaking input[type=\"text\"], textarea').val('');\n          $('textarea#details_notes').val('');\n          $('#addCaseTaking textarea').val('');\n        }, 500);\n        var max = Math.max.apply(Math, $('#casetakenlist tr.caseorder').map(function (i, elem) {\n          var element_value = $(elem).attr('data-order');\n          var replace_string_value = element_value.replace(/[^0-9]/g, '');\n          return Number(replace_string_value);\n        }));\n        if (max != '-Infinity') {\n          max = max;\n        } else {\n          max = 0;\n        }\n        var max_order = parseInt(max) + 1;\n        $('#max_order').val(max_order);\n        $(\"body\").delegate(\"#symptom_duration,.non_homeopathic_start_date,.non_homeopathic_stopped_date,.hdatepicker_start_date,.hdatepicker_stopped_date\", \"focusin\", function () {\n          $(this).datepicker({\n            dateFormat: 'dd/mm/yy',\n            maxDate: 0,\n            changeMonth: true,\n            changeYear: true\n          });\n        });\n      });\n      $(document).on('keyup', '#icd_name', function (event) {\n        var icd_name_without_space = $(this).val();\n        var icd_name = icd_name_without_space.trim();\n        if (icd_name == '') {\n          //ECT.Handler.bind(\"1\");\n          //console.log('icd bind a');\n          $('.icd_clear_class').hide();\n          $('#icd_code').val('');\n          $('.show-error').addClass('has-error');\n          $('.text-error-message').show();\n          $('#icd_suggession_div').css('border', 'initial');\n          //_this.controllerFor('icpattend').send('clearICDDisease');\n        } else {\n          $('.show-error').removeClass('has-error');\n          $('.icd_clear_class').show();\n          $('.text-error-message').hide();\n          if (icd_name.length > 2) {\n            //ECT.Handler.bind(\"1\");\n            //console.log('icd bind b');\n            $('#icd_suggession_div').css({\n              'border': '1px solid #eee',\n              'margin-bottom': '20px'\n            });\n          } else {\n            //ECT.Handler.bind(\"1\");\n            //console.log('icd bind c');\n            $('#icd_suggession_div').css('border', 'initial');\n          }\n        }\n      });\n      $(document).on('click', '.lefttab', function (event) {\n        event.preventDefault();\n        $('.list-unstyled li.active').removeClass('active');\n        $(this).addClass('active');\n        var hastagid = $(this).find('a').attr('href');\n        if (hastagid == '#patient-information') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#visit-log') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#vital-statistics') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#case-history') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#case-taking') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#diagnostic-reports') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#message-log') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#advised-Reports') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n        } else if (hastagid == '#prescription') {\n          $('html, body').animate({\n            scrollTop: $(hastagid).position().top\n          }, 'fast');\n          $(hastagid).removeClass('scroll-top-class');\n          $(hastagid).addClass('scroll-top-class');\n          setTimeout(function () {\n            var single_prescription_input = $('#prescriptionmedicine > tbody.tbody > tr').find('td').eq(2).find('.prescribeinput').attr(\"id\");\n            var single_prescription_input_value = $('#prescriptionmedicine > tbody.tbody > tr').find('td').eq(2).find('.prescribeinput').val();\n            var mix_prescription_input = $('#prescriptionmedicine > tbody.tbody > tr').find('td').eq(2).find('.medicineMixItem').attr(\"id\");\n            var mix_prescription_input_value = $('#prescriptionmedicine > tbody.tbody > tr').find('td').eq(2).find('.medicineMixItem').val();\n            if (single_prescription_input !== undefined) {\n              var strLength = single_prescription_input_value.length;\n              document.getElementById(single_prescription_input).focus();\n              document.getElementById(single_prescription_input).setSelectionRange(strLength, strLength);\n            }\n            if (mix_prescription_input !== undefined) {\n              var strLength = mix_prescription_input_value.length;\n              document.getElementById(mix_prescription_input).focus();\n              document.getElementById(mix_prescription_input).setSelectionRange(strLength, strLength);\n            }\n          }, 500);\n        }\n      });\n      $(document).on('keyup', '#blood_pressure_diastolic', function (event) {\n        var error = '';\n        var blood_pressure_diastolic = parseInt($('input[type=text][name=blood_pressure_diastolic]').val());\n        var data_dbp_warning_min = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-warning-min'));\n        var data_dbp_warning_max = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-warning-max'));\n        var data_dbp_min = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-min'));\n        var data_dbp_max = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-max'));\n        if (isNaN(blood_pressure_diastolic)) {\n          $('#blood_pressure_diastolic').parent().removeClass('has-warning');\n          $('#blood_pressure_diastolic').parent().removeClass('has-error');\n        } else {\n          if (blood_pressure_diastolic == data_dbp_warning_min) {\n            $('#blood_pressure_diastolic').parent().addClass('has-warning');\n          }\n          if (blood_pressure_diastolic == data_dbp_warning_max) {\n            $('#blood_pressure_diastolic').parent().addClass('has-warning');\n          }\n          if (blood_pressure_diastolic < data_dbp_min || blood_pressure_diastolic > data_dbp_max) {\n            $('#blood_pressure_diastolic').parent().addClass('has-error');\n            $('#blood_pressure_diastolic').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for diastolic field are 1 to 400</p>';\n            $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#vital-error .alert').fadeToggle(10000);\n            $('#blood_pressure_diastolic').focus();\n          } else {\n            $('#blood_pressure_diastolic').parent().removeClass('has-error');\n          }\n        }\n      });\n      $(document).on('keyup', '#blood_pressure_systolic', function (event) {\n        var error = '';\n        var blood_pressure_systolic = parseInt($('input[type=text][name=blood_pressure_systolic]').val());\n        var data_sbp_warning_min = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-warning-min'));\n        var data_sbp_warning_max = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-warning-max'));\n        var data_sbp_min = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-min'));\n        var data_sbp_max = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-max'));\n        if (isNaN(blood_pressure_systolic)) {\n          $('#blood_pressure_systolic').parent().removeClass('has-warning');\n          $('#blood_pressure_systolic').parent().removeClass('has-error');\n        } else {\n          if (blood_pressure_systolic == data_sbp_warning_min) {\n            $('#blood_pressure_systolic').parent().addClass('has-warning');\n          }\n          if (blood_pressure_systolic == data_sbp_warning_max) {\n            $('#blood_pressure_systolic').parent().addClass('has-warning');\n          }\n          if (blood_pressure_systolic < data_sbp_min || blood_pressure_systolic > data_sbp_max) {\n            $('#blood_pressure_systolic').parent().addClass('has-error');\n            $('#blood_pressure_systolic').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for systolic field are 1 to 400</p>';\n            $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#vital-error .alert').fadeToggle(10000);\n            $('#blood_pressure_systolic').focus();\n          } else {\n            $('#blood_pressure_systolic').parent().removeClass('has-error');\n          }\n        }\n      });\n      $(document).on('keyup', '#pulse_bpm', function (event) {\n        var error = '';\n        var pulse_bpm = parseInt($('input[type=text][name=pulse_bpm]').val());\n        var data_pulse_warning_min = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-warning-min'));\n        var data_pulse_warning_max = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-warning-max'));\n        var data_pulse_min = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-min'));\n        var data_pulse_max = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-max'));\n        if (isNaN(pulse_bpm)) {\n          $('#pulse_bpm').parent().removeClass('has-warning');\n          $('#pulse_bpm').parent().removeClass('has-error');\n        } else {\n          if (pulse_bpm == data_pulse_warning_min) {\n            $('#pulse_bpm').parent().addClass('has-warning');\n          }\n          if (pulse_bpm == data_pulse_warning_max) {\n            $('#pulse_bpm').parent().addClass('has-warning');\n          }\n          if (pulse_bpm < data_pulse_min || pulse_bpm > data_pulse_max) {\n            $('#pulse_bpm').parent().addClass('has-error');\n            $('#pulse_bpm').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for pulse field are 1 to 500</p>';\n            $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#vital-error .alert').fadeToggle(10000);\n            $('#pulse_bpm').focus();\n          } else {\n            $('#pulse_bpm').parent().removeClass('has-error');\n          }\n        }\n      });\n      $(document).on('keyup', '#body_temp_celsius', function (event) {\n        var error = '';\n        var body_temp_unit = $('#body_temp_unit').val().trim();\n        // for celsius\n        if (body_temp_unit == '°C') {\n          var body_temp_celsius = parseFloat($('input[type=text][name=body_temp_celsius]').val());\n          var data_bt_warning_min = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-min'));\n          var data_bt_warning_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-max'));\n          var data_bt_min = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-min'));\n          var data_bt_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-max'));\n          if (isNaN(body_temp_celsius)) {\n            $('#body_temp_celsius').parent().removeClass('has-warning');\n            $('#body_temp_celsius').parent().removeClass('has-error');\n          } else {\n            if (body_temp_celsius == data_bt_warning_min) {\n              $('#body_temp_celsius').parent().addClass('has-warning');\n            }\n            if (body_temp_celsius == data_bt_warning_max) {\n              $('#body_temp_celsius').parent().addClass('has-warning');\n            }\n            if (body_temp_celsius > data_bt_max) {\n              $('#body_temp_celsius').parent().addClass('has-error');\n              $('#body_temp_celsius').parent().removeClass('has-warning');\n              error += '<p> Min / Max allowed values for celsius field are 4.4 to 43.33</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#body_temp_celsius').focus();\n            } else {\n              $('#body_temp_celsius').parent().removeClass('has-error');\n            }\n          }\n        } else if (body_temp_unit == '°F') {\n          var body_temp_celsius = parseFloat($('input[type=text][name=body_temp_celsius]').val());\n          var data_bt_warning_min = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-min'));\n          var data_bt_warning_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-max'));\n          var data_bt_min = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-min'));\n          var data_bt_max = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-max'));\n          // for fahrenheit\n          if (isNaN(body_temp_celsius)) {\n            $('#body_temp_celsius').parent().removeClass('has-warning');\n            $('#body_temp_celsius').parent().removeClass('has-error');\n          } else {\n            if (body_temp_celsius == data_bt_warning_min) {\n              $('#body_temp_celsius').parent().addClass('has-warning');\n            }\n            if (body_temp_celsius == data_bt_warning_max) {\n              $('#body_temp_celsius').parent().addClass('has-warning');\n            }\n            if (body_temp_celsius > data_bt_max) {\n              $('#body_temp_celsius').parent().addClass('has-error');\n              $('#body_temp_celsius').parent().removeClass('has-warning');\n              error += '<p> Min / Max allowed values for fahrenheit field are 40 to 110</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#body_temp_celsius').focus();\n            } else {\n              $('#body_temp_celsius').parent().removeClass('has-error');\n            }\n          }\n        }\n      });\n      $(document).on('keyup', '.height_inches', function () {\n        var height_inches = Number($('#height_inches').val().trim());\n        var height_inches1 = Number($('#height_inches1').val().trim());\n        var height_unit = $('#height_unit').val().trim();\n        var weight_kgs = Number($('#weight_kgs').val().trim());\n        var weight_unit = $('#weight_unit').val().trim();\n        var bmi_min = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-min'));\n        var bmi_max = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-max'));\n        /* Validation Code*/\n        var error = '';\n        var height_feet = parseFloat($('input[type=text][name=height_inches]').val());\n        var height_inches_val = parseInt($('input[type=text][name=height_inches1]').val());\n        var feet_min = parseFloat($('input[type=text][name=height_inches]').attr('data-feet-min'));\n        var feet_max = parseFloat($('input[type=text][name=height_inches]').attr('data-feet-max'));\n        var inches_min = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-min'));\n        var inches_max = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-max'));\n        // Comment below code by shubh tiwari as on 30 April 2022\n        if (height_unit == 'feet') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet < feet_min || height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for feet field are 0 to 10</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n          if (isNaN(height_inches_val)) {\n            $('#height_inches1').parent().removeClass('has-error');\n          } else {\n            if (height_inches_val < inches_min || height_inches_val > inches_max) {\n              $('#height_inches1').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for inches field are 0 to 11</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#height_inches1').focus();\n            } else {\n              $('#height_inches1').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'inch') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for inch field are 12 to 120</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'm') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-warning');\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet == feet_min) {\n              $('.threshold').parent().addClass('has-warning');\n            }\n            if (height_feet == feet_max) {\n              $('.threshold').parent().addClass('has-warning');\n            }\n            if (height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              $('.threshold').parent().addClass('has-warning');\n              error += '<p> Min / Max allowed values for meter field are 0.30 to 3.04</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'cm') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-warning');\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet == feet_min) {\n              $('.threshold').parent().addClass('has-warning');\n            }\n            if (height_feet == feet_max) {\n              $('.threshold').parent().addClass('has-warning');\n            }\n            if (height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for centimeter field are 30.48 to 304.8</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        }\n        var weight_in_kgs = parseFloat($('input[type=text][name=weight_kgs]').val());\n        var kg_min = parseFloat($('input[type=text][name=weight_kgs]').attr('data-kg-min'));\n        var kg_max = parseFloat($('input[type=text][name=weight_kgs]').attr('data-kg-max'));\n        if (weight_unit == 'kg') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for kg field are 1 to 650</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        } else if (weight_unit == 'pound') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for pound are 2.20 to 1433</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        }\n        /** Validation end */\n\n        if (height_unit == 'feet' && weight_unit == 'pound') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          //console.log(foot_in_meter);\n          //console.log(inches_in_meter);\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          //console.log(total_meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          //var bmi_value = output;\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'pound') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          //console.log(inches_in_meter);\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'pound') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(meter);\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          //console.log(output);\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'pound') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n\n          //console.log(centimeter_in_meter);\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'feet' && weight_unit == 'kg') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'kg') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'kg') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'kg') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        }\n      });\n      $(document).on('change', '#height_unit', function () {\n        var height_unit = $('#height_unit').val().trim();\n        if (height_unit != 'feet') {\n          $('.height_inches1').hide();\n          $('#height_inches').attr('placeholder', height_unit);\n          $('#height_inches').removeAttr('style');\n        } else {\n          $('.height_inches1').show();\n          $('#height_inches').attr('placeholder', height_unit);\n          $('#height_inches1').attr('placeholder', 'inch');\n        }\n        if (height_unit == 'inch') {\n          $('#height_inches').attr('data-feet-min', '12');\n          $('#height_inches').attr('data-feet-max', '120');\n          $('#height_inches').css('width', '112px');\n        } else if (height_unit == 'm') {\n          $('#height_inches').attr('data-feet-min', '0.30');\n          $('#height_inches').attr('data-feet-max', '3.04');\n          $('#height_inches').css('width', '112px');\n        } else if (height_unit == 'cm') {\n          $('#height_inches').attr('data-feet-min', '30.48');\n          $('#height_inches').attr('data-feet-max', '304.8');\n          $('#height_inches').css('width', '112px');\n        } else {\n          $('#height_inches').attr('data-feet-min', '0');\n          $('#height_inches').attr('data-feet-max', '10');\n          $('#height_inches1').attr('data-inches-min', '0');\n          $('#height_inches1').attr('data-inches-max', '11');\n          $('#height_inches').removeAttr('style');\n        }\n\n        /* Validation Code*/\n        var error = '';\n        var height_feet = parseInt($('input[type=text][name=height_inches]').val());\n        var height_inches_val = parseInt($('input[type=text][name=height_inches1]').val());\n        var feet_min = parseInt($('input[type=text][name=height_inches]').attr('data-feet-min'));\n        var feet_max = parseInt($('input[type=text][name=height_inches]').attr('data-feet-max'));\n        var inches_min = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-min'));\n        var inches_max = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-max'));\n        // Comment below code by shubh tiwari as on 30 April 2022\n        // if (height_unit == 'feet') {\n        //   if (isNaN(height_feet)) {\n        //     $('.threshold').parent().removeClass('has-error');\n        //   } else {\n        //     if (height_feet < feet_min || height_feet > feet_max) {\n        //       $('.threshold').parent().addClass('has-error');\n        //       error +=\n        //         '<p> Min / Max allowed values for feet field are 0 to 10</p>';\n        //       $('#vital-error').html(\n        //         '<div class=\"alert alert-danger\">' + error + '</div>'\n        //       );\n        //       $('#vital-error .alert').fadeToggle(10000);\n        //       $('.threshold').focus();\n        //     } else {\n        //       $('.threshold').parent().removeClass('has-error');\n        //     }\n        //   }\n        //   if (isNaN(height_inches_val)) {\n        //     $('#height_inches1').parent().removeClass('has-error');\n        //   } else {\n        //     if (\n        //       height_inches_val < inches_min ||\n        //       height_inches_val > inches_max\n        //     ) {\n        //       $('#height_inches1').parent().addClass('has-error');\n        //       error +=\n        //         '<p> Min / Max allowed values for inches field are 0 to 11</p>';\n        //       $('#vital-error').html(\n        //         '<div class=\"alert alert-danger\">' + error + '</div>'\n        //       );\n        //       $('#vital-error .alert').fadeToggle(10000);\n        //       $('#height_inches1').focus();\n        //     } else {\n        //       $('#height_inches1').parent().removeClass('has-error');\n        //     }\n        //   }\n        // } else if (height_unit == 'inch') {\n        //   if (isNaN(height_feet)) {\n        //     $('.threshold').parent().removeClass('has-error');\n        //   } else {\n        //     if (height_feet < feet_min || height_feet > feet_max) {\n        //       $('.threshold').parent().addClass('has-error');\n        //       error +=\n        //         '<p> Min / Max allowed values for inch field are 12 to 120</p>';\n        //       $('#vital-error').html(\n        //         '<div class=\"alert alert-danger\">' + error + '</div>'\n        //       );\n        //       $('#vital-error .alert').fadeToggle(10000);\n        //       $('.threshold').focus();\n        //     } else {\n        //       $('.threshold').parent().removeClass('has-error');\n        //     }\n        //   }\n        // } else if (height_unit == 'm') {\n        //   if (isNaN(height_feet)) {\n        //     $('.threshold').parent().removeClass('has-error');\n        //   } else {\n        //     if (height_feet < feet_min || height_feet > feet_max) {\n        //       $('.threshold').parent().addClass('has-error');\n        //       error +=\n        //         '<p> Min / Max allowed values for meter field are 0.30 to 3.04</p>';\n        //       $('#vital-error').html(\n        //         '<div class=\"alert alert-danger\">' + error + '</div>'\n        //       );\n        //       $('#vital-error .alert').fadeToggle(10000);\n        //       $('.threshold').focus();\n        //     } else {\n        //       $('.threshold').parent().removeClass('has-error');\n        //     }\n        //   }\n        // } else if (height_unit == 'cm') {\n        //   if (isNaN(height_feet)) {\n        //     $('.threshold').parent().removeClass('has-error');\n        //   } else {\n        //     if (height_feet < feet_min || height_feet > feet_max) {\n        //       $('.threshold').parent().addClass('has-error');\n        //       error +=\n        //         '<p> Min / Max allowed values for centimeter field are 30.48 to 304.8</p>';\n        //       $('#vital-error').html(\n        //         '<div class=\"alert alert-danger\">' + error + '</div>'\n        //       );\n        //       $('#vital-error .alert').fadeToggle(10000);\n        //       $('.threshold').focus();\n        //     } else {\n        //       $('.threshold').parent().removeClass('has-error');\n        //     }\n        //   }\n        // }\n        /** Validation end */\n        var height_inches = Number($('#height_inches').val().trim());\n        var height_inches1 = Number($('#height_inches1').val().trim());\n        var bmi_min = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-min'));\n        var bmi_max = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-max'));\n        //var height_unit=$(\"#height_unit\").val().trim();\n        var weight_kgs = Number($('#weight_kgs').val().trim());\n        var weight_unit = $('#weight_unit').val().trim();\n        if (height_unit == 'feet' && weight_unit == 'pound') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          //console.log(foot_in_meter);\n          //console.log(inches_in_meter);\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          //console.log(total_meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'pound') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n\n          //console.log(inches_in_meter);\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'pound') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(meter);\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          //console.log(output);\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'pound') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n\n          //console.log(centimeter_in_meter);\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'feet' && weight_unit == 'kg') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'kg') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'kg') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'kg') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        }\n      });\n      $(document).on('change', '#body_temp_unit', function () {\n        var body_temp_unit = $('#body_temp_unit').val().trim();\n        var body_temp_celsius = $('#body_temp_celsius').val().trim();\n        if (body_temp_unit != '') {\n          $('#body_temp_celsius').attr('placeholder', body_temp_unit);\n        }\n        if (body_temp_unit == '°F') {\n          $('#body_temp_celsius').attr('data-bt-warning-min', '97');\n          $('#body_temp_celsius').attr('data-bt-warning-max', '98.8');\n          $('#body_temp_celsius').attr('data-bt-min', '40');\n          $('#body_temp_celsius').attr('data-bt-max', '110');\n          var data_bt_warning_min = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-min'));\n          var data_bt_warning_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-max'));\n          if (body_temp_celsius <= data_bt_warning_min || body_temp_celsius >= data_bt_warning_max) {\n            $('#body_temp_warning').val(1);\n            $('#body_temp_warning').parent().addClass('has-warning');\n          } else {\n            $('#body_temp_warning').val('');\n            $('#body_temp_warning').parent().removeClass('has-warning');\n          }\n        } else {\n          $('#body_temp_celsius').attr('data-bt-warning-min', '36.11');\n          $('#body_temp_celsius').attr('data-bt-warning-max', '37.11');\n          $('#body_temp_celsius').attr('data-bt-min', '4.4');\n          $('#body_temp_celsius').attr('data-bt-max', '43.33');\n        }\n      });\n      $(document).on('change', '#weight_unit', function () {\n        var weight_unit = $('#weight_unit').val().trim();\n        if (weight_unit != '') {\n          $('#weight_kgs').attr('placeholder', weight_unit);\n        }\n        if (weight_unit == 'pound') {\n          $('#weight_kgs').attr('data-kg-min', '2.20');\n          $('#weight_kgs').attr('data-kg-max', '1433');\n        } else {\n          $('#weight_kgs').attr('data-kg-min', '1');\n          $('#weight_kgs').attr('data-kg-max', '650');\n        }\n        /* weight validation code*/\n        var weight_in_kgs = parseInt($('input[type=text][name=weight_kgs]').val());\n        var kg_min = parseInt($('input[type=text][name=weight_kgs]').attr('data-kg-min'));\n        var kg_max = parseInt($('input[type=text][name=weight_kgs]').attr('data-kg-max'));\n        if (weight_unit == 'kg') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for kg field are 1 to 650</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        } else if (weight_unit == 'pound') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for pound field are 2.20 to 1433</p>';\n              $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n              $('#vital-error .alert').fadeToggle(10000);\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        }\n        /** weight validation code end*/\n        var height_inches = Number($('#height_inches').val().trim());\n        var height_inches1 = Number($('#height_inches1').val().trim());\n        var height_unit = $('#height_unit').val().trim();\n        var weight_kgs = Number($('#weight_kgs').val().trim());\n        var bmi_min = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-min'));\n        var bmi_max = parseFloat($('input[type=text][name=bmi]').attr('data-bmi-warning-max'));\n        //var weight_unit= $(\"#weight_unit\").val().trim();\n        if (height_unit == 'feet' && weight_unit == 'pound') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          //console.log(foot_in_meter);\n          //console.log(inches_in_meter);\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          //console.log(total_meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'pound') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n\n          //console.log(inches_in_meter);\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'pound') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(meter);\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'pound') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n\n          //console.log(centimeter_in_meter);\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          //console.log(meter);\n          // convert Pound to Kg\n          if (weight_kgs != '') {\n            var pound_in_kg = weight_kgs / 2.205;\n          } else {\n            var pound_in_kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = pound_in_kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'feet' && weight_unit == 'kg') {\n          // convert feet to meter\n          if (height_inches != '') {\n            var foot_in_meter = height_inches / 3.281;\n          } else {\n            var foot_in_meter = 0;\n          }\n          // convert inches to meter\n          if (height_inches1 != '') {\n            var inches_in_meter = height_inches1 / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var total_meter = parseFloat(foot_in_meter + inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(total_meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'inch' && weight_unit == 'kg') {\n          // convert inches to meter\n          if (height_inches != '') {\n            var inches_in_meter = height_inches / 39.37;\n          } else {\n            var inches_in_meter = 0;\n          }\n          var meter = parseFloat(inches_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'm' && weight_unit == 'kg') {\n          if (height_inches != '') {\n            var meter = height_inches;\n          } else {\n            var meter = 0;\n          }\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        } else if (height_unit == 'cm' && weight_unit == 'kg') {\n          // convert centimeter to meter\n          if (height_inches != '') {\n            var centimeter_in_meter = height_inches / 100;\n          } else {\n            var centimeter_in_meter = 0;\n          }\n          var meter = parseFloat(centimeter_in_meter).toFixed(2);\n          if (weight_kgs != '') {\n            var kg = weight_kgs;\n          } else {\n            var kg = 0;\n          }\n          //console.log(pound_in_kg);\n          var BMI = kg / Math.pow(meter, 2);\n          var output = Math.round(BMI * 100) / 100;\n          if (isNaN(output) || output == 'Infinity') {\n            var bmi_value = 0;\n          } else {\n            var bmi_value = output.toFixed(2);\n          }\n          $('#bmi').val(bmi_value);\n          //console.log(bmi_value);\n          //console.log(bmi_min);\n          //console.log(bmi_max);\n          if (bmi_value <= bmi_min || bmi_value >= bmi_max) {\n            $('#bmi_warning').val(1);\n            $('#bmi').parent().addClass('has-warning');\n          } else {\n            $('#bmi_warning').val('');\n            $('#bmi').parent().removeClass('has-warning');\n          }\n        }\n      });\n      // $(document).on('click', '.urgent_note', function (event) {\n      //   jQuery.noConflict();\n      //   $('#patientUrgentPopup').modal('show');\n      // });\n\n      // $(document).on('click', '#urgent_status', function (event) {\n      //   var urgent_status = $(\n      //     'input[type=checkbox][name=urgent_status]:checked'\n      //   ).is(':checked');\n      //   if (urgent_status == true) {\n      //     $('.urgent_note_div').show();\n      //     $('#urgent_status').val(1);\n      //   } else if (urgent_status == false) {\n      //     $('#urgent_status').val(0);\n      //     $('.urgent_note_div').hide();\n      //   }\n      // });\n      $(document).on('click', '.homeopathicRemoveRow', function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n        event.stopImmediatePropagation();\n        var lengthOfmixmedicine = $(\"[id^='homeopathic_drug_row']\").length;\n        var removeNum = $(this).data('row');\n        if (lengthOfmixmedicine < 2) {\n          $(this).attr('style', 'display: none');\n          var error = \"There is minimum one rows of medicines required, so you can't delete this.\";\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 600,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          $('#homeopathic_drug_row' + removeNum).remove();\n          //This below loop is used for restting the order of medicine, Shubh Tiwari 24 May 2021\n          $(\"[id^='homeopathic_drug_row']\").each(function () {\n            var currentRowid = '';\n            var ids = this.id;\n            var currentRowid = ids.replace('homeopathic_drug_row', '');\n            if (currentRowid > removeNum) {\n              var resetSrl = currentRowid - 1;\n              $('#' + ids).attr('id', 'homeopathic_drug_row' + resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('.homeopathic_ordering').attr('value', resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('.homeopathicRemoveRow').attr('data-row', resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('#homeopathic_drug_name' + currentRowid).attr('id', 'homeopathic_drug_name' + resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('#homeopathic_drug_name_qty' + currentRowid).attr('id', 'homeopathic_drug_name_qty' + resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('#drug_instruction' + currentRowid).attr('id', 'drug_instruction' + resetSrl);\n              $('#homeopathic_drug_row' + resetSrl).find('#homeopathic_medication' + currentRowid).attr('id', 'homeopathic_medication' + resetSrl);\n            }\n          });\n        }\n      });\n      $(document).on('click', '.non_homeopathicRemoveRow', function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n        event.stopImmediatePropagation();\n        var lengthOfmixmedicine = $(\"[id^='non_homeopathic_drug_row']\").length;\n        var removeNum = $(this).data('row');\n        if (lengthOfmixmedicine < 2) {\n          $(this).attr('style', 'display: none');\n          var error = \"There is minimum one rows of medicines required, so you can't delete this.\";\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 600,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          });\n        } else {\n          $('#non_homeopathic_drug_row' + removeNum).remove();\n          //This below loop is used for restting the order of medicine, Shubh Tiwari 24 May 2021\n          $(\"[id^='non_homeopathic_drug_row']\").each(function () {\n            var currentRowid = '';\n            var ids = this.id;\n            var currentRowid = ids.replace('non_homeopathic_drug_row', '');\n            if (currentRowid > removeNum) {\n              var resetSrl = currentRowid - 1;\n              $('#' + ids).attr('id', 'non_homeopathic_drug_row' + resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('.non_homeopathic_ordering').attr('value', resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('.non_homeopathicRemoveRow').attr('data-row', resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('#non_homeopathic_drug_name' + currentRowid).attr('id', 'non_homeopathic_drug_name' + resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('#non_homeopathic_drug_name_qty' + currentRowid).attr('id', 'non_homeopathic_drug_name_qty' + resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('#non_drug_instruction' + currentRowid).attr('id', 'non_drug_instruction' + resetSrl);\n              $('#non_homeopathic_drug_row' + resetSrl).find('#non_homeopathic_medication' + currentRowid).attr('id', 'non_homeopathic_medication' + resetSrl);\n            }\n          });\n        }\n      });\n      // This script is used for fixed left sidebar while scrolling whole page Shubh Tiwari 1 June 2021\n      $(function () {\n        $('#sidebarCollapse').on('click', function () {\n          $('#sidebar').toggleClass('active');\n          $('#sidebar li a span').toggle();\n          $('#cw-details-table').toggleClass('cwtable-expand');\n          $(this).find($('.fas')).toggleClass('fa-arrow-left').toggleClass('fa-arrow-right');\n          var checkClass = $('#sidebar').hasClass('active');\n          //console.log(checkClass);\n          if (checkClass == true) {\n            $('.row-space').removeAttr(\"style\");\n            $('#left-content').removeClass('col-md-2');\n            $('.fr-note').removeClass('expand-urgent-button');\n            $('.fr-note').addClass('collapse-urgent-button');\n            $('#left-content').addClass('col-md-1');\n            $('#right-content').removeClass('col-md-10');\n            $('#right-content').addClass('col-md-11');\n            // for vital blood type filter\n            $('.bt-filter').removeClass('e-vt-bt');\n            $('.bt-filter').addClass('c-vt-bt');\n            // for vital height filter\n            $('.h-filter').removeClass('e-vt-h');\n            $('.h-filter').addClass('c-vt-h');\n            // for vital weight filter\n            $('.w-filter').removeClass('e-vt-w');\n            $('.w-filter').addClass('c-vt-w');\n            // for vital body temp filter\n            $('.btp-filter').removeClass('e-vt-btp');\n            $('.btp-filter').removeClass('text-label-last');\n            $('.btp-filter').addClass('c-vt-btp');\n            // for message log doctor dropdown\n            $('#assign_doctor').removeClass('e-re-assign-doctor');\n            $('#assign_doctor').addClass('c-re-assign-doctor');\n            // for message log list\n            $('.mlg-list').removeClass('e-message-div');\n            $('.mlg-list').addClass('c-message-div');\n          } else {\n            $('.fr-note').removeClass('collapse-urgent-button');\n            $('.fr-note').addClass('expand-urgent-button');\n            $('#left-content').removeClass('col-md-1');\n            $('#left-content').addClass('col-md-2');\n            $('#right-content').removeClass('col-md-11');\n            $('#right-content').addClass('col-md-10');\n            // for vital blood type filter\n            $('.bt-filter').addClass('e-vt-bt');\n            $('.bt-filter').removeClass('c-vt-bt');\n            // for vital height filter\n            $('.h-filter').addClass('e-vt-h');\n            $('.h-filter').removeClass('c-vt-h');\n            // for vital weight filter\n            $('.w-filter').addClass('e-vt-w');\n            $('.w-filter').removeClass('c-vt-w');\n            // for vital body temp filter\n            $('.btp-filter').addClass('e-vt-btp');\n            $('.btp-filter').addClass('text-label-last');\n            $('.btp-filter').removeClass('c-vt-btp');\n            // for message log doctor dropdown\n            $('#assign_doctor').addClass('e-re-assign-doctor');\n            $('#assign_doctor').removeClass('c-re-assign-doctor');\n            // for message log list\n            $('.mlg-list').addClass('e-message-div');\n            $('.mlg-list').removeClass('c-message-div');\n          }\n        });\n      });\n      $(document).on('click', function (e) {\n        // Hides the div by clicking any where in the screen\n        if ($(e.target).closest('#disease_name').length) {\n          $('.disease-result').show();\n        } else if (!$(e.target).closest('#disease_results').length) {\n          $('.disease-result').hide();\n        }\n      });\n      $(document).on('click', function (e) {\n        // Hides the div by clicking any where in the screen\n        if ($(e.target).closest('#system_name').length) {\n          $('.system-result').show();\n        } else if (!$(e.target).closest('#system_results').length) {\n          $('.system-result').hide();\n        }\n      });\n      $(document).on('click', function (e) {\n        // Hides the div by clicking any where in the screen\n        if ($(e.target).closest('#organ_name').length) {\n          $('.organ-result').show();\n        } else if (!$(e.target).closest('#organ_results').length) {\n          $('.organ-result').hide();\n        }\n      });\n      $(document).on('keydown', 'input[pattern]', function (e) {\n        var input = $(this);\n        var oldVal = input.val();\n        var regex = new RegExp(input.attr('pattern'), 'g');\n        setTimeout(function () {\n          var newVal = input.val();\n          if (!regex.test(newVal)) {\n            input.val(oldVal);\n          }\n        }, 1);\n      });\n    },\n    model(param) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //console.log(param);\n      if (param.read_message == 0 || param.read_message == 2) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'editabs',\n          data: {\n            p_id: param.patient_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.controllerFor('icpattend').set('edit_tablist', res.p_edit_status);\n            var branch_detail = _this.session.getLocation().split('-');\n            var branch_id = branch_detail[0];\n            var today = moment().format('YYYY-MM-DD');\n            var doctor_id = _this.session.getLoggedInUserId();\n            var shift_id = _this.session.getLoggedInUserShift();\n            _this.controllerFor('icpattend').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, param.id, res.p_edit_status);\n          }\n        });\n        // This condition is usde For that case when message log patinet not open in tab\n      } else if (param.read_message == 1) {\n        _this.controllerFor('icpattend').set('edit_tablist', 'No');\n        var branch_detail = _this.session.getLocation().split('-');\n        var branch_id = branch_detail[0];\n        var today = moment().format('YYYY-MM-DD');\n        var doctor_id = _this.session.getLoggedInUserId();\n        var shift_id = _this.session.getLoggedInUserShift();\n        _this.controllerFor('icpattend').send('patientMarkComplete', branch_id, today, doctor_id, shift_id, param.id, 'No');\n      }\n      _this.controllerFor('icpattend').send('getMajorCondition', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('getVisitLogs', param.patient_id);\n      //_this.controllerFor('icpattend').send('getEditPrescriptionTabs', param.patient_id);\n\n      _this.controllerFor('icpattend').send('getTempPrescribeMedicine', param.id);\n      _this.controllerFor('icpattend').send('getreportedProxy', param.id);\n      _this.controllerFor('icpattend').send('getCaseHistory', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('getDiagnosticList', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('geMessageLogs', param.id);\n      _this.controllerFor('icpattend').send('getPrescribeMedicine', param.id);\n      _this.controllerFor('icpattend').send('getVitalList', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('getCaseTakenList', param.id);\n      _this.controllerFor('icpattend').send('getLocalstorageFreeNote', param.id);\n      _this.controllerFor('icpattend').send('getLocalstorageMessageLog', param.id);\n      _this.controllerFor('icpattend').send('getLocalstoragePrescriptionInstruction', param.id);\n      // _this\n      //   .controllerFor('icpattend')\n      //   .send('getLocalstoragePrescription', param.id);\n      _this.controllerFor('icpattend').send('getPreviousCaseTaken', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('setAppointmentId', param.id);\n      _this.controllerFor('icpattend').send('setPatientId', param.patient_id);\n      _this.controllerFor('icpattend').send('getPrescribeDetail', param.id);\n      _this.controllerFor('icpattend').send('getLastVisitHistory', param.patient_id);\n      _this.controllerFor('icpattend').send('getPatientHistory', param.patient_id, 'all');\n      _this.controllerFor('icpattend').send('getAdvisedReport', param.id);\n      _this.controllerFor('icpattend').send('getPreviousAdvisedReport', param.id, param.patient_id);\n      _this.controllerFor('icpattend').send('setReadMessage', param.read_message);\n      _this.controllerFor('icpattend').send('updateMessageLogStatus', param.id, param.read_message);\n      //_this.controllerFor('icpattend').send('getPharmacyHistory', param.patient_id, param.id);\n      _this.controllerFor('icpattend').send('getPatientAddress', param.patient_id, param.id);\n      _this.controllerFor('icpattend').send('getPreviousVisitCharges', param.id, 0); //Nishant 7-Jan-2023: for advance pg charges send billid as 0\n\n      if (param.read_message == 1) {\n        $(document).ready(function () {\n          setTimeout(function () {\n            $('.redirect').click();\n          }, 1000);\n        });\n      } else {\n        $(document).ready(function () {\n          setTimeout(function () {\n            $('.top-of-screen').click();\n            // $('.patien-info').removeClass('active');\n            // $('.top-of-screen').add('active');\n            // $('html, body').scrollTop($(\"#vital-statistics\").position().top);\n          }, 1000);\n        });\n      }\n    },\n    actions: {\n      getTabList: function (user_id, branch_id, shift_id) {\n        this.getTabList(user_id, branch_id, shift_id);\n      },\n      // getDoctorDropdownList: function (user_id, branch_id) {\n      //   this.getDoctorDropdownList(user_id, branch_id);\n      // },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage);\n      },\n      saveReportName() {\n        var _this = this;\n        _this.controllerFor('icpattend').send('saveAdvisedReport');\n      },\n      // This function is used to send request under actions section of icpattend controller, Written by shubh tiwari as on 25-05-2022\n      saveDiagnostic() {\n        var _this = this;\n        _this.controllerFor('icpattend').send('saveDiagnosticReport');\n      },\n      ResetCaseTakenPopupValue: function () {\n        this.ResetCaseTakenPopupValue();\n      },\n      clearDKBCDBDisease() {\n        $('#disease_name').val('');\n        $('#disease_id').removeAttr('value');\n        $('#system_name').val('');\n        $('#system_id').removeAttr('value');\n        $('#organ_name').val('');\n        $('#organ_id').removeAttr('value');\n        var diseaseOther = $('#disease_name').attr('diseaseother');\n        var system_name = $('#system_name').attr('diseaseother');\n        var organ_name = $('#organ_name').attr('diseaseother');\n        if (diseaseOther != undefined || system_name != undefined || organ_name != undefined) {\n          $('#disease_name').attr('placeholder', 'Select/Type disease name');\n          $('#system_name').attr('placeholder', 'System name');\n          $('#organ_name').attr('placeholder', 'Organ Name');\n          $('#disease_name').removeAttr('diseaseother');\n          $('#system_name').removeAttr('diseaseother');\n          $('#organ_name').removeAttr('diseaseother');\n        }\n        $('#dkbc_db_major_condition').prop('checked', false);\n        $('#disease_results').html('').show().removeClass('disease-result');\n        $('#system_results').html('').show().removeClass('system-result');\n        $('#organ_results').html('').show().removeClass('organ-result');\n        $('.dkbc_clear_class').hide();\n      },\n      clearICDDisease() {\n        // clear the searchbox and delete the search results\n        _icd11ect.default.Handler.clear('1');\n        $('#icd_name').val('');\n        $('#icd_code').val('');\n        $('#certificate_name').val('');\n        $('#icd_name').removeAttr('data-icdname');\n        $('#icd_name').removeAttr('readonly');\n        $('.dkbc_clear_class').removeClass('d_other');\n        $('.icd_clear_class').hide();\n        $('#icd_major_condition').prop('checked', false);\n        document.getElementsByClassName('ctw-window')[0].style.display = 'block';\n        document.getElementsByClassName('ctw-window')[0].style.border = 'initial';\n        $('#icd_suggession_div').css('margin-bottom', '');\n        //document.getElementById('icd_name').focus();\n      },\n      saveCaseTaking(saving_type) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        var form = $('#addCaseTaking');\n        var disease_name = $('#disease_name').val().trim();\n        var icd_code = $('#icd_code').val().trim();\n        if (icd_code != '') {\n          var icd_name = $('#icd_name').val().trim();\n        } else {\n          var icd_name = '';\n        }\n        var symptom_status = $('select[name=\"patient_status\"]').val();\n        if (disease_name == '' && icd_name == '') {\n          $('#caseTakingPopup').modal('hide');\n          $('.show-error').addClass('has-error');\n          $('.text-error-message').show();\n          var error = 'You can enter disease using either ICD Disease or DKBC Disease or Both. One of them must be entered';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error,\n            width: 600,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('#caseTakingPopup').modal('show');\n              $('#icd_name').val('');\n            }\n          });\n        } else if ($.trim(symptom_status) == '') {\n          $('#caseTakingPopup').modal('hide');\n          var error1 = 'Please select symptom status';\n          Swal.fire({\n            icon: 'error',\n            title: 'Oops...',\n            html: error1,\n            width: 600,\n            showCloseButton: true,\n            allowOutsideClick: false,\n            confirmButtonText: `Ok`\n          }).then(result => {\n            if (result.isConfirmed) {\n              $('#caseTakingPopup').modal('show');\n            }\n          });\n        } else {\n          $('#caseTakingPopup').modal('hide');\n          Swal.fire({\n            text: 'Are you sure you want to save this data?',\n            icon: 'warning',\n            width: 600,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            allowOutsideClick: false,\n            confirmButtonText: 'Yes, save it!'\n          }).then(result => {\n            if (result.isConfirmed) {\n              //$('#caseTakingPopup').modal('show');\n              $.ajax({\n                url: _environment.default.APP.lumen_api_url + 'icpattend/addCaseTaking',\n                method: 'POST',\n                data: {\n                  user_id: login_user_id,\n                  formdata: form.serialize()\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#case-taking-loader').show();\n                },\n                success: function (res) {\n                  if (res.error == false && res.actions == 'add') {\n                    $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                    $('#casetakenmessage .alert').fadeToggle(10000);\n                    _this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                    _this.controllerFor('icpattend').send('clearICDDisease');\n                    _this.ResetCaseTakenPopupValue();\n                    $('#caseTakingPopup').modal('hide');\n                  } else if (res.error == false && res.actions == 'update') {\n                    $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                    _this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                    _this.controllerFor('icpattend').send('clearICDDisease');\n                    _this.ResetCaseTakenPopupValue();\n                    $('#casetakenmessage .alert').fadeToggle(10000);\n                    $('#caseTakingPopup').modal('hide');\n                  }\n                  $('.d_other').trigger('click');\n                  $('.s_other').trigger('click');\n                  $('.o_other').trigger('click');\n                },\n                complete: function () {\n                  $('#case-taking-loader').hide();\n                  if (saving_type == 'addnew') {\n                    $('#addCaseTaking').trigger('reset');\n                    $('#caseTakingPopup').modal('show');\n                    setTimeout(function () {\n                      document.getElementById(\"icd_name\").focus();\n                      _icd11ect.default.Handler.bind('1');\n                    }, 500);\n                  }\n                }\n              });\n            } else if (result.isDismissed) {\n              $('#caseTakingPopup').modal('show');\n            }\n          });\n        }\n      },\n      // uploaderInit: function (uploader) {\n      //   this._uploader = uploader;\n      // },\n      saveVitalStatistic() {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var error = '';\n        var login_user_id = _this.get('session').getLoggedInUserId();\n        var form = $('#addVitalStatistics');\n        var blood_type = $('select[name=\"blood_type\"]').val();\n        var master_blood_type = $('input[type=hidden][name=master_blood_type]').val();\n        //console.log(blood_type);\n        //console.log(master_blood_type);\n        // for height\n        var height_unit = $('#height_unit').val().trim();\n        var height_feet = parseFloat($('input[type=text][name=height_inches]').val());\n        var height_inches_val = parseInt($('input[type=text][name=height_inches1]').val());\n        var feet_min = parseFloat($('input[type=text][name=height_inches]').attr('data-feet-min'));\n        var feet_max = parseFloat($('input[type=text][name=height_inches]').attr('data-feet-max'));\n        var inches_min = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-min'));\n        var inches_max = parseInt($('input[type=text][name=height_inches1]').attr('data-inches-max'));\n        if (height_unit == 'feet') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet < feet_min || height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for feet field are 0 to 10</p>';\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n          if (isNaN(height_inches_val)) {\n            $('#height_inches1').parent().removeClass('has-error');\n          } else {\n            if (height_inches_val < inches_min || height_inches_val > inches_max) {\n              $('#height_inches1').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for inches field are 0 to 11</p>';\n              $('#height_inches1').focus();\n            } else {\n              $('#height_inches1').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'inch') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet < feet_min || height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for inch field are 12 to 120</p>';\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'm') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet < feet_min || height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for meter field are 0.30 to 3.04</p>';\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        } else if (height_unit == 'cm') {\n          if (isNaN(height_feet)) {\n            $('.threshold').parent().removeClass('has-error');\n          } else {\n            if (height_feet < feet_min || height_feet > feet_max) {\n              $('.threshold').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for centimeter field are 30.48 to 304.8</p>';\n              $('.threshold').focus();\n            } else {\n              $('.threshold').parent().removeClass('has-error');\n            }\n          }\n        }\n        // for weight\n        var weight_unit = $('#weight_unit').val().trim();\n        var weight_in_kgs = parseFloat($('input[type=text][name=weight_kgs]').val());\n        var kg_min = parseFloat($('input[type=text][name=weight_kgs]').attr('data-kg-min'));\n        var kg_max = parseFloat($('input[type=text][name=weight_kgs]').attr('data-kg-max'));\n        if (weight_unit == 'kg') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for kg field are 1 to 650</p>';\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        } else if (weight_unit == 'pound') {\n          if (isNaN(weight_in_kgs)) {\n            $('#weight_kgs').parent().removeClass('has-error');\n          } else {\n            if (weight_in_kgs < kg_min || weight_in_kgs > kg_max) {\n              $('#weight_kgs').parent().addClass('has-error');\n              error += '<p> Min / Max allowed values for pound are 2.20 to 1433</p>';\n              $('#weight_kgs').focus();\n            } else {\n              $('#weight_kgs').parent().removeClass('has-error');\n            }\n          }\n        }\n        // For BMI\n        // Remove BMI Mandatory by Shubh Tiwari as on 4 Apr 2023\n        // var bmi = parseInt($('input[type=text][name=bmi]').val());\n        // var data_bmi_warning_min = parseInt(\n        //   $('input[type=text][name=bmi]').attr('data-bmi-warning-min')\n        // );\n        // var data_bmi_warning_max = parseInt(\n        //   $('input[type=text][name=bmi]').attr('data-bmi-warning-max')\n        // );\n        // var data_bmi_min = parseInt(\n        //   $('input[type=text][name=bmi]').attr('data-bmi-min')\n        // );\n        // var data_bmi_max = parseInt(\n        //   $('input[type=text][name=bmi]').attr('data-bmi-max')\n        // );\n        // if (isNaN(bmi)) {\n        //   //$('#bmi').parent().removeClass('has-warning');\n        //   $('#bmi').parent().removeClass('has-error');\n        // }\n        // else {\n        //   if (bmi < data_bmi_warning_min || bmi > data_bmi_warning_max) {\n        //     $('#bmi').parent().addClass('has-warning');\n        //     $('#bmi_warning').val(1);\n        //   } else {\n        //     $('#bmi_warning').val('');\n        //     $('#bmi').parent().removeClass('has-warning');\n        //   }\n\n        //   if (bmi < data_bmi_min || bmi > data_bmi_max) {\n        //     $('#bmi').parent().addClass('has-error');\n        //     //$('#bmi').parent().removeClass('has-warning');\n        //     error +=\n        //       '<p> Min / Max allowed values for bmi field are 1 to 300</p>';\n        //     $('#bmi').focus();\n        //   } else {\n        //     $('#bmi').parent().removeClass('has-error');\n        //   }\n        // }\n\n        // body tempreture\n        var body_temp_unit = $('#body_temp_unit').val().trim();\n        // for celsius\n        if (body_temp_unit == '°C') {\n          var body_temp_celsius = parseFloat($('input[type=text][name=body_temp_celsius]').val());\n          var data_bt_warning_min = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-min'));\n          var data_bt_warning_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-max'));\n          var data_bt_min = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-min'));\n          var data_bt_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-max'));\n          if (isNaN(body_temp_celsius)) {\n            //$('#body_temp_celsius').parent().removeClass('has-warning');\n            $('#body_temp_celsius').parent().removeClass('has-error');\n          } else {\n            if (body_temp_celsius < data_bt_min || body_temp_celsius > data_bt_max) {\n              $('#body_temp_celsius').parent().addClass('has-error');\n              //$('#body_temp_celsius').parent().removeClass('has-warning');\n              error += '<p> Min / Max allowed values for celsius field are 4.4 to 43.33</p>';\n              $('#body_temp_celsius').focus();\n            } else {\n              $('#body_temp_celsius').parent().removeClass('has-error');\n            }\n          }\n        } else if (body_temp_unit == '°F') {\n          var body_temp_celsius = parseFloat($('input[type=text][name=body_temp_celsius]').val());\n          var data_bt_warning_min = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-min'));\n          var data_bt_warning_max = parseFloat($('input[type=text][name=body_temp_celsius]').attr('data-bt-warning-max'));\n          var data_bt_min = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-min'));\n          var data_bt_max = parseInt($('input[type=text][name=body_temp_celsius]').attr('data-bt-max'));\n          // for fahrenheit\n          if (isNaN(body_temp_celsius)) {\n            //$('#body_temp_celsius').parent().removeClass('has-warning');\n            $('#body_temp_celsius').parent().removeClass('has-error');\n          } else {\n            if (body_temp_celsius < data_bt_warning_min || body_temp_celsius > data_bt_warning_max) {\n              $('#body_temp_celsius').parent().addClass('has-warning');\n              $('#body_temp_warning').val(1);\n            } else {\n              $('#body_temp_celsius').parent().removeClass('has-warning');\n              $('#body_temp_warning').val('');\n            }\n            if (body_temp_celsius < data_bt_min || body_temp_celsius > data_bt_max) {\n              $('#body_temp_celsius').parent().addClass('has-error');\n              //$('#body_temp_celsius').parent().removeClass('has-warning');\n              error += '<p> Min / Max allowed values for fahrenheit field are 40 to 110</p>';\n              $('#body_temp_celsius').focus();\n            } else {\n              $('#body_temp_celsius').parent().removeClass('has-error');\n            }\n          }\n        }\n        // for pulse\n        var pulse_bpm = parseInt($('input[type=text][name=pulse_bpm]').val());\n        var data_pulse_warning_min = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-warning-min'));\n        var data_pulse_warning_max = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-warning-max'));\n        var data_pulse_min = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-min'));\n        var data_pulse_max = parseInt($('input[type=text][name=pulse_bpm]').attr('data-pulse-max'));\n        if (isNaN(pulse_bpm)) {\n          //$('#pulse_bpm').parent().removeClass('has-warning');\n          $('#pulse_bpm').parent().removeClass('has-error');\n        } else {\n          if (pulse_bpm < data_pulse_warning_min || pulse_bpm > data_pulse_warning_max) {\n            $('#pulse_bpm').parent().addClass('has-warning');\n            $('#pluse_warning').val(1);\n          } else {\n            $('#pulse_bpm').parent().removeClass('has-warning');\n            $('#pluse_warning').val('');\n          }\n          if (pulse_bpm < data_pulse_min || pulse_bpm > data_pulse_max) {\n            $('#pulse_bpm').parent().addClass('has-error');\n            // $('#pulse_bpm').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for pulse field are 1 to 500</p>';\n            $('#pulse_bpm').focus();\n          } else {\n            $('#pulse_bpm').parent().removeClass('has-error');\n          }\n        }\n\n        // For systolic\n        var blood_pressure_systolic = parseInt($('input[type=text][name=blood_pressure_systolic]').val());\n        var data_sbp_warning_min = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-warning-min'));\n        var data_sbp_warning_max = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-warning-max'));\n        var data_sbp_min = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-min'));\n        var data_sbp_max = parseInt($('input[type=text][name=blood_pressure_systolic]').attr('data-sbp-max'));\n        if (isNaN(blood_pressure_systolic)) {\n          //$('#blood_pressure_systolic').parent().removeClass('has-warning');\n          $('#blood_pressure_systolic').parent().removeClass('has-error');\n        } else {\n          if (blood_pressure_systolic < data_sbp_warning_min || blood_pressure_systolic > data_sbp_warning_max) {\n            $('#blood_pressure_systolic').parent().addClass('has-warning');\n            $('#blood_pressure_systolic_warning').val(1);\n          } else {\n            $('#blood_pressure_systolic').parent().removeClass('has-warning');\n            $('#blood_pressure_systolic_warning').val('');\n          }\n          if (blood_pressure_systolic < data_sbp_min || blood_pressure_systolic > data_sbp_max) {\n            $('#blood_pressure_systolic').parent().addClass('has-error');\n            //$('#blood_pressure_systolic').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for systolic field are 1 to 400</p>';\n            $('#blood_pressure_systolic').focus();\n          } else {\n            $('#blood_pressure_systolic').parent().removeClass('has-error');\n          }\n        }\n        // for distolic\n        var blood_pressure_diastolic = parseInt($('input[type=text][name=blood_pressure_diastolic]').val());\n        var data_dbp_warning_min = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-warning-min'));\n        var data_dbp_warning_max = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-warning-max'));\n        var data_dbp_min = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-min'));\n        var data_dbp_max = parseInt($('input[type=text][name=blood_pressure_diastolic]').attr('data-dbp-max'));\n        if (isNaN(blood_pressure_diastolic)) {\n          $('#blood_pressure_diastolic').parent().removeClass('has-warning');\n          $('#blood_pressure_diastolic').parent().removeClass('has-error');\n        } else {\n          if (blood_pressure_diastolic < data_dbp_warning_min || blood_pressure_diastolic > data_dbp_warning_max) {\n            //$('#blood_pressure_diastolic').parent().addClass('has-warning');\n            $('#blood_pressure_diastolic_warning').val(1);\n          } else {\n            $('#blood_pressure_diastolic').parent().removeClass('has-warning');\n            $('#blood_pressure_diastolic_warning').val('');\n          }\n          if (blood_pressure_diastolic < data_dbp_min || blood_pressure_diastolic > data_dbp_max) {\n            $('#blood_pressure_diastolic').parent().addClass('has-error');\n            //$('#blood_pressure_diastolic').parent().removeClass('has-warning');\n            error += '<p> Min / Max allowed values for diastolic field are 1 to 400</p>';\n            $('#blood_pressure_diastolic').focus();\n          } else {\n            $('#blood_pressure_diastolic').parent().removeClass('has-error');\n          }\n        }\n        //console.log(error);\n        if (error == '') {\n          if (master_blood_type == '' && blood_type != '') {\n            //console.log('block-1');\n            $('#vitalStatisticsPopup').modal('hide');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'icpattend/addVitalStatistics',\n              method: 'POST',\n              data: {\n                user_id: login_user_id,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'add') {\n                  $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  $('#vitalmessage .alert').fadeToggle(10000);\n                  _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                  $('#vitalStatisticsPopup').modal('hide');\n                } else if (res.error == false && res.actions == 'update') {\n                  $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                  $('#vitalmessage .alert').fadeToggle(10000);\n                  $('#vitalStatisticsPopup').modal('hide');\n                }\n              },\n              complete: function () {\n                _this.controllerFor('icpattend').send('ResetVitalPopupValue');\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          } else if (master_blood_type != blood_type) {\n            //console.log('block-2');\n            $('#vitalStatisticsPopup').modal('hide');\n            Swal.fire({\n              text: 'You have changed the blood type of the patient. Do you want to update the patient record?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, save it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                $.ajax({\n                  url: _environment.default.APP.lumen_api_url + 'icpattend/addVitalStatistics',\n                  method: 'POST',\n                  data: {\n                    user_id: login_user_id,\n                    formdata: form.serialize()\n                  },\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  beforeSend: function () {\n                    $('#loading').addClass('in');\n                    $('#loading').css('display', 'block');\n                    $('body').addClass('modal-open');\n                  },\n                  success: function (res) {\n                    if (res.error == false && res.actions == 'add') {\n                      $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                      $('#vitalmessage .alert').fadeToggle(10000);\n                      _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                      $('#vitalStatisticsPopup').modal('hide');\n                    } else if (res.error == false && res.actions == 'update') {\n                      $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                      _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                      $('#vitalmessage .alert').fadeToggle(10000);\n                      $('#vitalStatisticsPopup').modal('hide');\n                    }\n                  },\n                  complete: function () {\n                    _this.controllerFor('icpattend').send('ResetVitalPopupValue');\n                    setTimeout(function () {\n                      $('#loading').removeClass('in');\n                      $('#loading').css('display', 'none');\n                      $('.modal-backdrop').remove();\n                      $('body').removeClass('modal-open');\n                    }, 500);\n                  }\n                });\n              } else if (result.isDismissed) {\n                $('#vitalStatisticsPopup').modal('show');\n              }\n            });\n          } else {\n            //console.log('block-3');\n            $('#vitalStatisticsPopup').modal('hide');\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'icpattend/addVitalStatistics',\n              method: 'POST',\n              data: {\n                user_id: login_user_id,\n                formdata: form.serialize()\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#loading').addClass('in');\n                $('#loading').css('display', 'block');\n                $('body').addClass('modal-open');\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'add') {\n                  $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  $('#vitalmessage .alert').fadeToggle(10000);\n                  _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                  $('#vitalStatisticsPopup').modal('hide');\n                } else if (res.error == false && res.actions == 'update') {\n                  $('#vitalmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  _this.controllerFor('icpattend').send('getVitalList', res.appointment_id, res.patient_id);\n                  $('#vitalmessage .alert').fadeToggle(10000);\n                  $('#vitalStatisticsPopup').modal('hide');\n                }\n              },\n              complete: function () {\n                _this.controllerFor('icpattend').send('ResetVitalPopupValue');\n                setTimeout(function () {\n                  $('#loading').removeClass('in');\n                  $('#loading').css('display', 'none');\n                  $('.modal-backdrop').remove();\n                  $('body').removeClass('modal-open');\n                }, 500);\n              }\n            });\n          }\n        } else {\n          $('#vital-error').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#vital-error .alert').fadeToggle(10000);\n        }\n      },\n      hideDiagnosticPopup() {\n        jQuery.noConflict();\n        $('#saveDiagnosticReport').trigger('reset');\n        $('#diagnosticReports').modal('hide');\n      },\n      // This function is used to reset add diagnostic popup value after click on cancel button or cross icon of popup. Written by Shubh Tiwari as on 25-05-2022\n      ResetDignosticReport() {\n        var _this = this;\n        var todayDate = moment().format('DD/MM/YYYY');\n        $('#diagnostic_test_name').val('');\n        $('#group_tests_list').html('');\n        $('#tests_list').html('');\n        _this.set('editreportDetails', '');\n        $('#diagnostic_report_notes').val('');\n        $('#group_id').val('');\n        $('#parent_group_id').val('');\n        $('#imaging').val('');\n        $('#report_id').val(0);\n        $('#imaging_report').prop('checked', false);\n        $('#imaging_report').removeAttr('checked');\n        $('#dignostic_test_id').val('');\n        $('#diagnostic_report_id').val('');\n        $('#dignostic_group_name').val('');\n        $('#diagnostic_results').hide();\n        $('.print-error-msg').css('display', 'none');\n        $('#diagnostic_test_date').val(todayDate);\n      },\n      // This function is used to save diagnostic popup data into table, Written by shubh tiwari as on 25-05-2022\n      saveDiagnosticReport: function () {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        this.set('errors', []);\n        // Hidden field\n        var formData = $('#saveDiagnosticReport').serializeArray();\n        var user_id = this.session.getLoggedInUserId();\n        formData.push({\n          name: 'user_id',\n          value: user_id\n        });\n        formData.push({\n          name: 'diagnostic_report_file',\n          value: this.selectedFileItems\n        });\n        //console.log(formData);\n        $.ajax({\n          type: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'icpdiagnostic',\n          contentType: false,\n          processData: false,\n          cache: false,\n          async: true,\n          data: formData,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#case-history-loader').show();\n          },\n          success: function (data) {\n            //console.log(res);\n            if (data.actions == 'add' && data.error == false) {\n              $('#diagnosticmessage').html('<div class=\"alert alert-success\">' + data.message + '</div>');\n              $('#diagnosticmessage .alert').fadeToggle(10000);\n              _this.controllerFor('icpattend').send('getDiagnosticList', data.appointment_id, data.patient_id);\n              _this.send('hideDiagnosticPopup');\n              _this.send('ResetDignosticReport');\n            } else if (data.actions == 'datainsufficient' && data.error == true) {\n              //_this.send('hideDiagnosticPopup');\n              //_this.send('ResetDignosticReport');\n              _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(data.message, 'diagnosticmessage');\n              //$('#diagnosticmessage').html('<div class=\"alert alert-danger\">' + data.message + '</div>');\n              //$('#diagnosticmessage .alert').fadeToggle(10000);\n              //_this.controllerFor('icpattend').send('getDiagnosticList', data.appointment_id, data.patient_id);\n            }\n          },\n          complete: function () {\n            $('#case-history-loader').hide();\n          }\n        });\n        // $.ajax({\n        //     url: ENV.APP.lumen_api_url + 'icpdiagnostic',\n        //     data: { formData: formData, user_id: user_id },\n        //     contentType: false,\n        //     processData: false,\n        //     cache: false,\n        //   })\n        //   .then(\n        //     function (data) {\n        //       if ($.isEmptyObject(data.error)) {\n        //         if (data.actions == 'add' && data.error == false) {\n        //           $('#diagnosticmessage').html(\n        //             '<div class=\"alert alert-success\">' + data.message + '</div>'\n        //           );\n        //           $('#diagnosticmessage .alert').fadeToggle(10000);\n        //           _this\n        //             .controllerFor('icpattend')\n        //             .send(\n        //               'getDiagnosticList',\n        //               data.appointment_id,\n        //               data.patient_id\n        //             );\n        //           _this.send('hideDiagnosticPopup');\n        //           _this.send('ResetDignosticReport');\n        //         } else if (data.actions == 'datainsufficient' && data.error == true) {\n        //           //_this.send('hideDiagnosticPopup');\n        //           //_this.send('ResetDignosticReport');\n        //           _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(data.message,'diagnosticmessage');\n        //           //$('#diagnosticmessage').html('<div class=\"alert alert-danger\">' + data.message + '</div>');\n        //           //$('#diagnosticmessage .alert').fadeToggle(10000);\n        //           //_this.controllerFor('icpattend').send('getDiagnosticList', data.appointment_id, data.patient_id);\n        //         }\n        //       } else {\n        //         _this.send('printErrorMsg', data.error);\n        //       }\n        //     }\n        //   );\n      },\n      printErrorMsg: function (msg) {\n        $('.print-error-msg').find('ul').html('');\n        $('.print-error-msg').css('display', 'block');\n        $.each(msg, function (key, value) {\n          $('.print-error-msg').find('ul').append('<li>' + value + '</li>');\n        });\n      },\n      ResetVitalPopupValue() {\n        $('#height_unit').find('option:selected').removeAttr('selected');\n        $('#weight_unit').find('option:selected').removeAttr('selected');\n        $('#body_temp_unit').find('option:selected').removeAttr('selected');\n        // Set Default Blood Type value\n        var blood_type_filter = $('input[name=blood_type_filter]').val();\n        var blood_type = $('select[name=\"blood_type\"]').val();\n        if (blood_type_filter != blood_type) {\n          $('select[name=\"blood_type\"]').val(blood_type_filter);\n          $(\"#blood_type option[value='\" + blood_type_filter + \"']\").attr('selected', 'selected');\n        }\n        $('#height_inches').val('');\n        $('#height_inches1').val('');\n        $('#body_temp_celsius').val('');\n        $('#pulse_bpm').val('');\n        $('#weight_kgs').val('');\n        $('#bmi').val('');\n        $('#blood_pressure_systolic').val('');\n        $('#blood_pressure_diastolic').val('');\n        $('#vital_id').val('');\n        $('#modal-title').text('Add Vital Statistics');\n        $('#vitalUpdate').text('Save');\n        $('#vitalUpdate').addClass('pull-left');\n        $('#vitalUpdate').removeAttr('style');\n        $('#height_inches').removeAttr('style');\n        $('.has-error').removeClass('has-error');\n        $('.has-warning').removeClass('has-warning');\n      },\n      ResetAdvisedReport() {\n        var todayDate = moment().format('DD/MM/YYYY');\n        $('#advised_report_name').val('');\n        $('#advised_report_date').val(todayDate);\n        $('#report_results').hide();\n      },\n      reloadUrgentNote() {\n        var urgent_status = $('input[type=checkbox][name=urgent_status]:checked').is(':checked');\n        var urgent_note = $('textarea[name=\"urgent_note\"]').attr('data-note');\n        if (urgent_status == true) {\n          $('#urgent_note').val(urgent_note);\n        }\n      },\n      addMoreHomeopathicDrugRows: function () {\n        var _this = this;\n        var recRow = '';\n        var homeo_appointment = [];\n        $('.homeopathic_ordering').each(function () {\n          var stval = $(this).val();\n          homeo_appointment.push(stval);\n        });\n        if (homeo_appointment.length == 0 || homeo_appointment.length == undefined) {\n          homeo_appointment.push(0);\n        }\n        //console.log(homeo_appointment);\n        var max_count = parseInt(Math.max.apply(Math, homeo_appointment));\n        var rowCount = parseInt(max_count) + 1;\n        // instruction selected html code\n        var instruction_array = _this.get('instruction');\n        var homeopathic_instructionselect = '';\n        var homeopathic_edit_instructionselect = '';\n        homeopathic_instructionselect += '<select class=\"form-control hdosage_instruction\" id=\"drug_instruction' + rowCount + '\">';\n        homeopathic_instructionselect += '<option value=\"\">Select instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          homeopathic_instructionselect += '<option class=\"editable-' + rowCount + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        homeopathic_instructionselect += '</select>';\n        homeopathic_edit_instructionselect += '<input name=\"drug_instruction[]\" class=\"homeo_other hotherOption' + rowCount + '\" style=\"display:none;\">';\n        homeopathic_instructionselect += homeopathic_edit_instructionselect;\n        var recRow = '<div class=\"form-row remove_row clear\" id=\"homeopathic_drug_row' + rowCount + '\"><input type=\"hidden\" class=\"homeopathic_ordering\" value=\"' + rowCount + '\"><div class=\"form-group col-md-3\"><input type=\"text\" class=\"form-control drugs\" id=\"homeopathic_drug_name' + rowCount + '\" name=\"homeopathic_drug_name[]\" placeholder=\"Drug Name & Dosage\"></div><div class=\"form-group col-md-3 div-space\">' + homeopathic_instructionselect + '</div><div class=\"form-group col-md-2\"><input type=\"text\" class=\"form-control hdatepicker_start_date drugs\" id=\"homeopathic_start_date' + rowCount + '\" name=\"homeopathic_start_date[]\" placeholder=\"Start Dt\" readonly=\"readonly\"><span class=\"btn btn-default hcalender\" style=\"float: right; margin-right: -36px; margin-top: -34px;\"><i class=\"icon-calendar\"></i></span></div><div class=\"form-group col-md-2\" style=\"margin-left:53px;\"><input type=\"text\" class=\"form-control hdatepicker_stopped_date drugs\" id=\"homeopathic_stopped_date' + rowCount + '\" name=\"homeopathic_stopped_date[]\" placeholder=\"Stopped Dt\" readonly=\"readonly\"><span class=\"btn btn-default hcalender\" style=\"float: right; margin-right: -32px; margin-top: -34px;\"><i class=\"icon-calendar\"></i></span></div><div class=\"form-group col-md-1\"><div class=\"form-row\"><div class=\"form-group col-md-12\" style=\"margin-left: 34px;\"><button class=\"btn btn-danger homeopathicRemoveRow\" data-row=\"' + rowCount + '\"><i class=\"fas fa-times\"></i></button></div></div></div></div>';\n        $('.homeopathic_drugs_list').append(recRow);\n        $('.homeopathicRemoveRow').removeAttr('style');\n      },\n      addMoreNonHomeopathicDrugRows: function () {\n        var non_homeo_appointment = [];\n        var recRow = '';\n        var _this = this;\n        $('.non_homeopathic_ordering').each(function () {\n          var stval = $(this).val();\n          non_homeo_appointment.push(stval);\n        });\n        if (non_homeo_appointment.length == 0 || non_homeo_appointment.length == undefined) {\n          non_homeo_appointment.push(0);\n        }\n        var max_count = parseInt(Math.max.apply(Math, non_homeo_appointment));\n        var rowCount = parseInt(max_count) + 1;\n        // instruction selected html code\n        var instruction_array = _this.get('instruction');\n        var non_homeopathic_instructionselect = '';\n        var non_homeopathic_edit_instructionselect = '';\n        non_homeopathic_instructionselect += '<select class=\"form-control nhdosage_instruction\" id=\"non_drug_instruction' + rowCount + '\">';\n        non_homeopathic_instructionselect += '<option value=\"\">Select instruction</option>';\n        for (var i = 0; i < instruction_array.length; i++) {\n          var instruc_name = instruction_array[i].instruction_name.trim();\n          non_homeopathic_instructionselect += '<option class=\"editable-' + rowCount + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n        }\n        non_homeopathic_instructionselect += '</select>';\n        non_homeopathic_edit_instructionselect += '<input name=\"non_drug_instruction[]\" class=\"non_homeo_other nhotherOption' + rowCount + '\" style=\"display:none;\">';\n        non_homeopathic_instructionselect += non_homeopathic_edit_instructionselect;\n        var recRow = '<div class=\"form-row remove_row clear\" id=\"non_homeopathic_drug_row' + rowCount + '\"><input type=\"hidden\" class=\"non_homeopathic_ordering\" value=\"' + rowCount + '\"><div class=\"form-group col-md-3\"><input type=\"text\" class=\"form-control drugs\" id=\"non_homeopathic_drug_name' + rowCount + '\" name=\"non_homeopathic_drug_name[]\" placeholder=\"Drug Name & Dosage\"></div><div class=\"form-group col-md-3 div-space\">' + non_homeopathic_instructionselect + '</div><div class=\"form-group col-md-2\"><input type=\"text\" class=\"form-control non_homeopathic_start_date drugs\" id=\"non_homeopathic_start_date' + rowCount + '\" name=\"non_homeopathic_start_date[]\" placeholder=\"Start Dt\" readonly=\"readonly\"><span class=\"btn btn-default hcalender\" style=\"float: right; margin-right: -36px; margin-top: -34px;\"><i class=\"icon-calendar\"></i></span></div><div class=\"form-group col-md-2\" style=\"margin-left:53px;\"><input type=\"text\" class=\"form-control non_homeopathic_stopped_date drugs\" id=\"non_homeopathic_stopped_date' + rowCount + '\" name=\"non_homeopathic_stopped_date[]\" placeholder=\"Stopped Dt\" readonly=\"readonly\"><span class=\"btn btn-default hcalender\" style=\"float: right; margin-right: -32px; margin-top: -34px;\"><i class=\"icon-calendar\"></i></span></div><div class=\"form-group col-md-1\"><div class=\"form-row\"><div class=\"form-group col-md-12\" style=\"margin-left: 34px;\"><button class=\"btn btn-danger non_homeopathicRemoveRow\" data-row=\"' + rowCount + '\"><i class=\"fas fa-times\"></i></button></div></div></div></div>';\n        $('.nonhomeopathic_drugs_list').append(recRow);\n        $('.non_homeopathicRemoveRow').removeAttr('style');\n      }\n      // historyClearCheckbox: function () {\n      //   var appointment = [];\n      //   $.each($('input.clearcheckbox:checkbox:checked'), function () {\n      //     appointment.push($(this).data('appointment'));\n      //   });\n      //   $('#visithistoryPopup').modal('hide');\n      //   if (appointment.length > 0) {\n      //     swal({\n      //       title: 'Are you sure you want to clear visit history?',\n      //       icon: 'warning',\n      //       buttons: true,\n      //       dangerMode: true,\n      //     }).then((willDelete) => {\n      //       if (willDelete) {\n      //         $('li :checkbox').prop('checked', false);\n      //         $('#importvisitid').val('');\n      //       }\n      //     });\n      //   }\n      // },\n      // loadMoreHistory: function (limit, patient_id) {\n      //   //var pages = page+1;\n      //   var _this = this;\n      //   var data_limit = parseInt(limit) + 5;\n      //   _this\n      //     .controllerFor('icpattend')\n      //     .send('getPatientHistory', patient_id, data_limit);\n      // },\n    },\n    afterModel() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('icpattend', role_route_permission);\n      //console.log('Route afterModel function');\n      //console.log(current_browser_name);\n      this.controllerFor('icpattend').set('route_access', route_access);\n      _this.recalculateAmount.checkAjaxRequest();\n      _this.recalculateAmount.onKeyUpChangeInstructionValue();\n      $(document).ready(function () {\n        $(window).scroll(function () {\n          if ($(document).scrollTop() > 40) {\n            $('#sidebar').addClass('sidebartop');\n            $('.thintab').show();\n            //var pp = $('.components li.active').children().attr('href');\n            //window.location.hash = pp;\n          } else {\n            $('#sidebar').removeClass('sidebartop');\n            $('.thintab').hide();\n          }\n        });\n      });\n      $(window).scroll(function () {\n        var scrollDistance = $(window).scrollTop();\n        // Assign active class to nav links while scolling, Shubh Tiwari 17-08-2018\n        $('.section-border').each(function (i) {\n          if ($(this).position().top <= scrollDistance + 40) {\n            $('.components li.active').removeClass('active');\n            $('.components a').parent().eq(i).addClass('active');\n          }\n        });\n      }).scroll();\n      $(document).on('click', '#caseHistoryDetails', function () {\n        event.preventDefault();\n        var id = $(this).attr('data-visitid');\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        var docname = $(this).attr('data-docname');\n        var visit_date = $(this).attr('data-visit_date');\n        jQuery.noConflict();\n        $('#caseHistoryDetailsPopup').modal('show');\n        $('#caseHistoryDetailsPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $('#case-modal-title').text('Case History as on ' + visit_date + ' ' + '(' + docname + ')');\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'icpattend/caseHistoryDetail/' + id,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#case-history-loader').show();\n            _this.controllerFor('icpattend').set('caseHistoryDetail', '');\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.controllerFor('icpattend').set('caseHistoryDetail', res);\n          },\n          complete: function () {\n            $('#case-history-loader').hide();\n          }\n        });\n      });\n      $(document).on('submit', '#editReasonForm', function (event) {\n        event.preventDefault();\n        $('#edit_reason').empty();\n        var error = '';\n        var edit_reason_val = $.trim($('#edit_reason').val());\n        if (edit_reason_val == '') {\n          error += '<p>Please enter edit reason</p>';\n          $('#edit_reason').focus();\n        } else if (edit_reason_val.length < 5) {\n          error += \"<p align='center'>Reason : min 5 character allowed</p>\";\n          $('#edit_reason').focus();\n        }\n        if (error == '') {\n          $('#MedicineEditReasonPopup').modal('hide');\n          $('#medicine_edit_reason').val(edit_reason_val);\n          $('.reasons_show').html('<b>Edit Reason: </b>' + edit_reason_val);\n          $('.reasons_show').css('background-color', '#e0dfdf');\n          $('.apply_reasons_edit').css('display', 'block');\n          $('#edit_reason').val('');\n        } else {\n          $('#edit_reasonerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n          $('#edit_reasonerror .alert').fadeToggle(8000);\n        }\n      });\n      $(document).on('click', '#caseTakenDetails', function (event) {\n        event.preventDefault();\n        var id, app_id;\n        id = $(this).attr('data-takenid');\n        var disease_name = $(this).attr('data-disease_name');\n        app_id = $(this).attr('data-appointment_id');\n        Swal.fire({\n          text: 'Are you sure you want to delete ' + disease_name + '?',\n          icon: 'warning',\n          width: 600,\n          showCancelButton: true,\n          confirmButtonColor: '#3085d6',\n          cancelButtonColor: '#d33',\n          allowOutsideClick: false,\n          confirmButtonText: 'Yes, delete it!'\n        }).then(result => {\n          if (result.isConfirmed) {\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'icpattend/deleteCaseTaken',\n              method: 'POST',\n              data: {\n                case_id: id,\n                app_id: app_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                if (res.error == false && res.actions == 'delete') {\n                  $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  $('#casetakenmessage .alert').fadeToggle(10000);\n                  //_this.getCaseTakenList(res.appointment_id);\n                  _this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                } else if (res.error == true && res.actions == 'not_delete') {\n                  $('#casetakenmessage').html('<div class=\"alert alert-success\">' + res.message + '</div>');\n                  _this.controllerFor('icpattend').send('getCaseTakenList', res.appointment_id);\n                  //_this.getCaseTakenList(res.appointment_id);\n                }\n              },\n              complete: function () {}\n            });\n          }\n        });\n      });\n      $(document).on('click', '#editCaseTakingData', function () {\n        var id = $(this).attr('data-takenid');\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        jQuery.noConflict();\n        $('#caseTakingPopup').modal('show');\n        $('#caseTakingPopup').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n        $('#case_taken_id').val(id);\n        $('#casetaken_title').text('Edit Case Taking');\n        if (id) {\n          //$('#icd_name').attr('readonly', true);\n          $('#caseTakenUpdate').text('Update');\n          $('#caseTakenUpdate1').hide();\n          $('#caseTakenUpdate').removeClass('case-pull-left');\n          $('#caseTakenUpdate').attr('style', 'margin-left:69px');\n          var dataRow = $('.homeopathicRemoveRow').data('row');\n        }\n        $.ajax({\n          url: _environment.default.APP.lumen_api_url + 'icpattend/caseTakenDetail/' + id,\n          method: 'GET',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            $('#case-taking-loader').show();\n            $('#details_notes').val('');\n            $('#addCaseTaking input[type=\"text\"], textarea').val('');\n            $('textarea#details_notes').val('');\n            $('#addCaseTaking textarea').val('');\n          },\n          success: function (res) {\n            //console.log(res);\n            _this.controllerFor('icpattend').set('caseDetail', res);\n            _this.controllerFor('icpattend').set('editLable', dataRow);\n            $('#max_order').val(res.order);\n            // if only ICD disease field are filled\n            if (res.ICD_disease_name != '') {\n              $('#icd_name').attr('data-icdname', res.ICD_disease_name);\n              $('#icd_name').attr('readonly', true);\n              $('.icd_clear_class').css(\"display\", \"block\");\n              // if both field are filled\n            } else if (res.ICD_disease_name != '' && res.disease.name != '' && res.system.name != '' && res.organ.name != '') {\n              $('#icd_name').attr('data-icdname', res.ICD_disease_name);\n              $('#icd_name').attr('readonly', true);\n              $('.icd_clear_class').css(\"display\", \"block\");\n              // if only DKBC disease field are filled\n            } else if (res.disease !== null && res.disease !== '' && res.system !== null && res.system !== '' && res.organ !== null && res.organ !== '' && (res.ICD_disease_name == null || res.ICD_disease_name == '')) {\n              $('#icd_name').removeAttr('data-icdname');\n              $('#icd_name').removeAttr('readonly');\n            } else if (res.DKBC_disease_id == 0 && res.DKBC_system_id == 0 && res.DKBC_organ_id == 0 && res.ICD_disease_name == '') {\n              $('#icd_name').removeAttr('data-icdname');\n              $('#icd_name').removeAttr('readonly');\n            } else if (res.DKBC_disease_id == 0 && res.DKBC_system_id !== 0 && res.DKBC_organ_id !== 0 && res.ICD_disease_name == '') {\n              $('#icd_name').removeAttr('data-icdname');\n              $('#icd_name').removeAttr('readonly');\n            } else if (res.DKBC_disease_id == 0 && res.DKBC_system_id == 0 && res.DKBC_organ_id !== 0 && res.ICD_disease_name == '') {\n              $('#icd_name').removeAttr('data-icdname');\n              $('#icd_name').removeAttr('readonly');\n            } else {\n              $('#icd_name').attr('readonly', true);\n            }\n          },\n          complete: function () {\n            $('#case-taking-loader').hide();\n            _icd11ect.default.Handler.bind('1');\n          }\n        });\n      });\n      $(document).on('keydown', '#details_notes, #diagnostic_report_notes, #patientFreeNote, .inst_other, #precribe_pharmacy_instruction, #patientLogEntry', function (e) {\n        var INPUT_SELECTOR = ':input:enabled:visible';\n        var inputs = $(INPUT_SELECTOR);\n        //UP\n        var i = 0,\n          inp;\n        if (e.keyCode == 38) {\n          inp = inputs[i > 0 ? parseInt(i) - 1 : inputs.length - 1];\n        }\n        //DOWN\n        if (e.keyCode == 40) {\n          inp = inputs[i < inputs.length - 1 ? parseInt(i) + 1 : 0];\n        }\n        moveFocusTo(inp);\n        e.stopImmediatePropagation();\n        return false;\n      });\n      $(document).on('click', '.d_other', function () {\n        event.preventDefault();\n        $('#disease_name').addClass('disease_name_input');\n        $('#disease_name').attr('placeholder', 'Select/Type disease name');\n        $('#disease_name').removeAttr('diseaseOther');\n        $('#disease_name').val('');\n        $('.dkbc_d_others_text').html('');\n        $('.dkbc_clear_class').hide();\n      });\n      $(document).on('click', '.s_other', function () {\n        event.preventDefault();\n        $('#system_name').addClass('system_name_input');\n        $('#system_name').attr('placeholder', 'System name');\n        $('#system_name').removeAttr('diseaseOther');\n        $('#system_name').val('');\n        $('.dkbc_s_others_text').html('');\n      });\n      $(document).on('click', '.o_other', function () {\n        event.preventDefault();\n        $('#organ_name').addClass('organ_name_input');\n        $('#organ_name').attr('placeholder', 'Organ Name');\n        $('#organ_name').removeAttr('diseaseOther');\n        $('#organ_name').val('');\n        $('.dkbc_o_others_text').html('');\n      });\n      $(document).on('focus', '#frfromdate', function () {\n        $(this).datepicker({\n          dateFormat: 'yy-mm-dd',\n          changeMonth: true,\n          changeYear: true,\n          maxDate: 0\n        });\n      });\n      $(document).on('focus', '.datepicker', function () {\n        var current_calender_id = 'event_date_auto';\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          changeMonth: true,\n          changeYear: true,\n          maxDate: 0\n          // onSelect: function (date1) {\n          //   var date2 = new Date();\n          //   var b = moment(date1),\n          //     a = moment(date2),\n          //     intervals = ['years', 'months', 'weeks', 'days'],\n          //     out = [];\n          //   for (var i = 0; i < intervals.length; i++) {\n          //     var diff = a.diff(b, intervals[i]);\n          //     b.add(diff, intervals[i]);\n          //     //out.push(diff + ' ' + intervals[i]);\n          //     out.push(diff);\n          //   }\n          //   //return out.join(', ');\n          //   var years = out[0];\n          //   console.log(years);\n          //   var months = out[1];\n          //   console.log(months);\n          //   var weeks = out[2];\n          //   console.log(weeks);\n          //   var days = out[3];\n          //   console.log(days);\n          //   if (years != 0 && months != 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration =\n          //       years +\n          //       ' Years, ' +\n          //       months +\n          //       ' months, ' +\n          //       weeks +\n          //       ' weeks, ' +\n          //       days +\n          //       ' days';\n          //   } else if (years != 0 && months != 0 && weeks != 0) {\n          //     var symptom_duration =\n          //       years + ' Years, ' + months + ' months, ' + weeks + ' weeks';\n          //   } else if (years != 0 && months != 0) {\n          //     var symptom_duration = years + ' Years, ' + months + ' months';\n          //   } else if (years != 0) {\n          //     var symptom_duration = years + ' Years';\n          //   } else if (years == 0 && months == 0 && weeks == 0 && days != 0) {\n          //     var symptom_duration = days + ' days';\n          //   } else if (years == 0 && months == 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration = weeks + ' weeks, ' + days + ' days';\n          //   } else if (years == 0 && months != 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration =\n          //       months + ' months, ' + weeks + ' weeks, ' + days + ' days';\n          //   } else if (years == 0 && months == 0 && weeks != 0 && days == 0) {\n          //     var symptom_duration = weeks + ' weeks';\n          //   } else if (years == 0 && months != 0 && weeks == 0 && days != 0) {\n          //     var symptom_duration = months + ' months, ' + days + ' days';\n          //   } else if (years == 0 && months != 0 && weeks == 0 && days == 0) {\n          //     var symptom_duration = months + ' months';\n          //   } else if (years == 0 && months != 0 && weeks != 0 && days == 0) {\n          //     var symptom_duration = months + ' months, ' + weeks + ' weeks';\n          //   } else if (years == 0 && months == 0 && weeks == 0 && days == 0) {\n          //     var symptom_duration = '1 days';\n          //   }\n          //   console.log(symptom_duration);\n          //   $('#' + current_calender_id).text(symptom_duration);\n          // },\n        });\n      });\n\n      //   $(document).on('click', '.icd_clear_class', function(){\n      //        $(\"#icd_name\").val('');\n      //        $(\"#icd_code\").val('');\n      //        $('.icd_clear_class').hide();\n      //        $(\"#icd_major_condition\").prop('checked', false);\n      //        document.getElementsByClassName('ctw-window')[0].style.display = 'block';\n      //        document.getElementsByClassName('ctw-window')[0].style.border = 'initial';\n      //        $(\"#icd_suggession_div\").css('margin-bottom',\"\");\n      //        ECT.Handler.clear(\"1\");\n      // });\n\n      $(document).on('click', '.calender', function () {\n        var current_calender_id = $(this).prev('input').attr('id');\n        $('#' + current_calender_id).focus();\n      });\n      $(document).on('click', '.dtocalender', function () {\n        var current_calender_id = $(this).prev('input').attr('id');\n        $('#' + current_calender_id).focus();\n      });\n      $(document).on('click', '.clear_class', function () {\n        var set_icd_name = $('.clear_class').attr('data-icdname');\n        if (set_icd_name !== undefined) {\n          $('#icd_suggession_div').css({\n            border: 'initial',\n            display: 'none'\n          });\n        } else {\n          //$('#icd_suggession_div').css({ border: 'initial', display: 'block' });\n        }\n      });\n      $(document).on('focus', '.datepicker1', function () {\n        var current_calender_id = $(this).attr('id');\n        $(this).datepicker({\n          dateFormat: 'yy-mm-dd',\n          changeMonth: true,\n          changeYear: true,\n          maxDate: 0,\n          onSelect: function (date1) {\n            var date2 = new Date();\n            var b = moment(date1),\n              a = moment(date2),\n              intervals = ['years', 'months', 'weeks', 'days'],\n              out = [];\n            for (var i = 0; i < intervals.length; i++) {\n              var diff = a.diff(b, intervals[i]);\n              b.add(diff, intervals[i]);\n              //out.push(diff + ' ' + intervals[i]);\n              out.push(diff);\n            }\n            //return out.join(', ');\n            var years = out[0];\n            //console.log(years);\n            var months = out[1];\n            //console.log(months);\n            var weeks = out[2];\n            //console.log(weeks);\n            var days = out[3];\n            //console.log(days);\n            if (years != 0 && months != 0 && weeks != 0 && days != 0) {\n              var symptom_duration = years + ' Years, ' + months + ' months, ' + weeks + ' weeks, ' + days + ' days';\n            } else if (years != 0 && months != 0 && weeks != 0) {\n              var symptom_duration = years + ' Years, ' + months + ' months, ' + weeks + ' weeks';\n            } else if (years != 0 && months != 0) {\n              var symptom_duration = years + ' Years, ' + months + ' months';\n            } else if (years != 0) {\n              var symptom_duration = years + ' Years';\n            } else if (years == 0 && months == 0 && weeks == 0 && days != 0) {\n              var symptom_duration = days + ' days';\n            } else if (years == 0 && months == 0 && weeks != 0 && days != 0) {\n              var symptom_duration = weeks + ' weeks, ' + days + ' days';\n            } else if (years == 0 && months != 0 && weeks != 0 && days != 0) {\n              var symptom_duration = months + ' months, ' + weeks + ' weeks, ' + days + ' days';\n            } else if (years == 0 && months == 0 && weeks != 0 && days == 0) {\n              var symptom_duration = weeks + ' weeks';\n            } else if (years == 0 && months != 0 && weeks == 0 && days != 0) {\n              var symptom_duration = months + ' months, ' + days + ' days';\n            } else if (years == 0 && months != 0 && weeks == 0 && days == 0) {\n              var symptom_duration = months + ' months';\n            } else if (years == 0 && months != 0 && weeks != 0 && days == 0) {\n              var symptom_duration = months + ' months, ' + weeks + ' weeks';\n            } else if (years == 0 && months == 0 && weeks == 0 && days == 0) {\n              var symptom_duration = '1 days';\n            }\n            //console.log(symptom_duration);\n            $('#' + current_calender_id).val(symptom_duration);\n          }\n        });\n      });\n      $(document).on('click', '.hcalender', function () {\n        var current_calender_id = $(this).prev('input').attr('id');\n        $('#' + current_calender_id).focus();\n      });\n      $(document).on('focus', '.date', function () {\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          maxDate: 0,\n          changeMonth: true,\n          changeYear: true\n        });\n      });\n      $(document).on('focus', '.non_homeopathic_stopped_date', function () {\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          maxDate: 0,\n          changeMonth: true,\n          changeYear: true\n        });\n      });\n      $(document).on('focus', '.non_homeopathic_start_date', function () {\n        var current_calender_id = $(this).attr('id');\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          changeMonth: true,\n          changeYear: true,\n          maxDate: 0\n          // onSelect: function (date1) {\n          //   var date2 = new Date();\n          //   var b = moment(date1),\n          //     a = moment(date2),\n          //     intervals = ['years', 'months', 'weeks', 'days'],\n          //     out = [];\n          //   for (var i = 0; i < intervals.length; i++) {\n          //     var diff = a.diff(b, intervals[i]);\n          //     b.add(diff, intervals[i]);\n          //     //out.push(diff + ' ' + intervals[i]);\n          //     out.push(diff);\n          //   }\n          //   //return out.join(', ');\n          //   var years = out[0];\n          //   console.log(years);\n          //   var months = out[1];\n          //   console.log(months);\n          //   var weeks = out[2];\n          //   console.log(weeks);\n          //   var days = out[3];\n          //   console.log(days);\n          //   if (years != 0 && months != 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration =\n          //       years +\n          //       ' Years, ' +\n          //       months +\n          //       ' months, ' +\n          //       weeks +\n          //       ' weeks, ' +\n          //       days +\n          //       ' days';\n          //   } else if (years != 0 && months != 0 && weeks != 0) {\n          //     var symptom_duration =\n          //       years + ' Years, ' + months + ' months, ' + weeks + ' weeks';\n          //   } else if (years != 0 && months != 0) {\n          //     var symptom_duration = years + ' Years, ' + months + ' months';\n          //   } else if (years != 0) {\n          //     var symptom_duration = years + ' Years';\n          //   } else if (years == 0 && months == 0 && weeks == 0 && days != 0) {\n          //     var symptom_duration = days + ' days';\n          //   } else if (years == 0 && months == 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration = weeks + ' weeks, ' + days + ' days';\n          //   } else if (years == 0 && months != 0 && weeks != 0 && days != 0) {\n          //     var symptom_duration =\n          //       months + ' months, ' + weeks + ' weeks, ' + days + ' days';\n          //   } else if (years == 0 && months == 0 && weeks != 0 && days == 0) {\n          //     var symptom_duration = weeks + ' weeks';\n          //   } else if (years == 0 && months != 0 && weeks == 0 && days != 0) {\n          //     var symptom_duration = months + ' months, ' + days + ' days';\n          //   } else if (years == 0 && months != 0 && weeks == 0 && days == 0) {\n          //     var symptom_duration = months + ' months';\n          //   } else if (years == 0 && months != 0 && weeks != 0 && days == 0) {\n          //     var symptom_duration = months + ' months, ' + weeks + ' weeks';\n          //   } else if (years == 0 && months == 0 && weeks == 0 && days == 0) {\n          //     var symptom_duration = '1 days';\n          //   }\n          //   console.log(symptom_duration);\n          //   $('#' + current_calender_id).val(symptom_duration);\n          // },\n        });\n      });\n      $(document).on('focus', '.hdatepicker_start_date', function () {\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          maxDate: 0,\n          changeMonth: true,\n          changeYear: true\n        });\n      });\n      $(document).on('focus', '.hdatepicker_stopped_date', function () {\n        $(this).datepicker({\n          dateFormat: 'dd/mm/yy',\n          maxDate: 0,\n          changeMonth: true,\n          changeYear: true\n        });\n      });\n      $(document).on('click', '.nhcalender', function () {\n        var current_calender_id = $(this).prev('input').attr('id');\n        $('#' + current_calender_id).focus();\n      });\n      $(document).on('click', '.diseasedata', function (event) {\n        // Clear ICD suggstion bog\n        //ECT.Handler.clear(\"1\");\n        //$(\"#icd_code\").val('');\n        //$(\"#icd_major_condition\").prop('checked', false);\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 15-mar-2023: if clicked, then we stop the ajax search.\n        $('.show-error').removeClass('has-error');\n        $('.text-error-message').hide();\n        $('.dkbc_clear_class').show();\n        var item = $(event.target).text();\n        var disease_name = item.split(',')[0];\n        var organname = $(this).data('organname');\n        var systemname = $(this).data('systemname');\n        var diseaseid = $(this).data('diseaseid');\n        var organid = $(this).data('organid');\n        var systemid = $(this).data('systemid');\n        var diseaseOther = $(this).data('diseaseother');\n        var item = item.trim();\n        if (diseaseOther == 1) {\n          var h = '';\n          $('.dkbc_clear_class').show();\n          $('#disease_results').html('').show().removeClass('disease-result'); //Used to hide disease the suggstion box\n          $('#disease_name').val('');\n          $('#disease_id').val('');\n          $('#disease_name').attr('placeholder', 'Enter other disease name');\n          $('#disease_name').removeClass('disease_name_input');\n          h += '<span>Disease Others &nbsp <button class=\"btn btn-danger btn-xs d_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.dkbc_d_others_text').html(h);\n\n          // $('#system_results').html('').show().removeClass('system-result');//Used to hide system the suggstion box\n          // $(\"#system_name\").val('');\n          // $(\"#system_name\").attr('placeholder', 'Enter other system name');\n          // $('#organ_results').html('').show().removeClass('organ-result');//Used to hide organ the suggstion box\n          // $(\"#organ_name\").val('');\n          // $(\"#organ_name\").attr('placeholder', 'Enter other organ name');\n          // $(\"#disease_id\").removeAttr('value');\n          // $(\"#system_id\").removeAttr('value');\n          // $(\"#organ_id\").removeAttr('value');\n          $('#disease_loader').hide();\n          $('#disease_name').attr('diseaseOther', diseaseOther);\n          $('#disease_name').focus();\n        } else {\n          $('.dkbc_clear_class').show();\n          $('#disease_name').addClass('disease_name_input');\n          $('#disease_name').removeAttr('diseaseOther');\n          $('#disease_name').val(disease_name);\n          $('#disease_id').attr('value', diseaseid);\n          $('#system_name').val(systemname);\n          $('#system_id').attr('value', systemid);\n          $('#organ_name').val(organname);\n          $('#organ_id').attr('value', organid);\n          $('#disease_results').html('').show().removeClass('disease-result'); //Used to hide disease the suggstion box\n          $('.dkbc_s_others_text').html('');\n          $('.dkbc_o_others_text').html('');\n          $('#system_name').addClass('system_name_input');\n          $('#system_name').attr('placeholder', 'System Name');\n          $('#organ_name').attr('placeholder', 'Organ Name');\n          $('#organ_name').addClass('organ_name_input');\n        }\n      });\n      $(document).on('click', '.systemdata', function (event) {\n        // Clear ICD suggstion bog\n        //ECT.Handler.clear(\"1\");\n        //$(\"#icd_code\").val('');\n        //$(\"#icd_major_condition\").prop('checked', false);\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 15-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var diseaseOther = $(this).data('diseaseother');\n        var systemid = $(this).data('systemid');\n        var item = item.trim();\n        $('.dkbc_clear_class').show();\n        if (diseaseOther == 2) {\n          var h = '';\n          $('.dkbc_clear_class').hide();\n          // $('#disease_results').html('').show().removeClass('disease-result');//Used to hide disease the suggstion box\n          // $(\"#disease_name\").val('');\n          // $(\"#disease_name\").attr('placeholder', 'Enter other disease name');\n          $('#system_results').html('').show().removeClass('system-result'); //Used to hide system the suggstion box\n          $('#system_name').val('');\n          $('#system_id').val('');\n          $('#system_name').attr('placeholder', 'Enter other system name');\n          $('#system_name').removeClass('system_name_input');\n          h += '<span>System Others &nbsp <button class=\"btn btn-danger btn-xs s_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.dkbc_s_others_text').html(h);\n          // $('#organ_results').html('').show().removeClass('organ-result');//Used to hide organ the suggstion box\n          // $(\"#organ_name\").val('');\n          // $(\"#organ_name\").attr('placeholder', 'Enter other organ name');\n          //$(\"#disease_loader\").hide();\n          $('#system_name').attr('diseaseOther', diseaseOther);\n          $('#system_name').focus();\n          $('#system_id').removeAttr('value');\n        } else {\n          $('.dkbc_clear_class').show();\n          var base_url1 = _environment.default.APP.lumen_api_url + 'systemorgan/' + systemid;\n          var base_url = base_url1 + '?datalist=datalist';\n          $.ajax({\n            method: 'GET',\n            url: base_url,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#organ_loader').show();\n            },\n            success: function (organ_response) {\n              var html = '';\n              html += '<ul class=\"system-list\">';\n              if (organ_response.length > 0) {\n                $.each(organ_response, function (index, val) {\n                  html += '<li class=\"organdata text-capitalize btn-default\" data-systemId=\"' + val.system_id + '\" data-organId=\"' + val.organ_id + '\" data-systemName=\"' + val.name + '\">' + val.organ.name + '</li>';\n                });\n              } else {\n                html += '<li class=\"text-capitalize btn-default\">No system name found</li>';\n              }\n              html += '<li class=\"organdata text-capitalize btn-default\" data-diseaseOther=\"3\">Other</li>';\n              html += '</ul>';\n              $('#organ_results').html(html).show().addClass('organ-result');\n            },\n            complete: function (res) {\n              $('#organ_loader').hide();\n              //console.log('Execution complete');\n            }\n          });\n          $('#system_name').removeAttr('diseaseOther');\n          $('#system_name').val(item);\n          $('#system_id').attr('value', systemid);\n          $('#system_results').html('').show().removeClass('system-result'); //Used to hide system the suggstion box\n          $('#organ_name').addClass('organ_name_input');\n          $('#organ_name').attr('placeholder', 'Organ Name');\n          $('.dkbc_o_others_text').html('');\n        }\n      });\n      $(document).on('click', '.organdata', function (event) {\n        // Clear ICD suggstion bog\n        //ECT.Handler.clear(\"1\");\n        //$(\"#icd_code\").val('');\n        //$(\"#icd_major_condition\").prop('checked', false);\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 15-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var system_name = $('#system_name').val();\n        var diseaseOther = $(this).data('diseaseother');\n        var organid = $(this).data('organid');\n        var systemid = $(this).data('systemid');\n        var systemname = $(this).data('systemname');\n        $('.dkbc_clear_class').show();\n        var item = item.trim();\n        if (diseaseOther == 3) {\n          var h = '';\n          $('.dkbc_clear_class').hide();\n          // $('#disease_results').html('').show().removeClass('disease-result');//Used to hide disease the suggstion box\n          // $(\"#disease_name\").val('');\n          // $(\"#disease_name\").attr('placeholder', 'Enter other disease name');\n          // $('#system_results').html('').show().removeClass('system-result');//Used to hide system the suggstion box\n          // $(\"#system_name\").val('');\n          // $(\"#system_name\").attr('placeholder', 'Enter other system name');\n          $('#organ_results').html('').show().removeClass('organ-result'); //Used to hide organ the suggstion box\n          $('#organ_name').val('');\n          $('#organ_id').val('');\n          $('#organ_name').attr('placeholder', 'Enter other organ name');\n          $('#organ_name').removeClass('organ_name_input');\n          h += '<span>Organ Others &nbsp <button class=\"btn btn-danger btn-xs o_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.dkbc_o_others_text').html(h);\n          //$(\"#organ_loader\").hide();\n          $('#organ_name').attr('diseaseOther', diseaseOther);\n          $('#organ_name').focus();\n          $('#organ_id').removeAttr('value');\n        } else {\n          $('.dkbc_clear_class').show();\n          if (system_name != systemname) {\n            //var base_url = ENV.APP.lumen_api_url + 'organdisease';\n            var base_url = _environment.default.APP.lumen_api_url + 'organsystem';\n            var base_url = base_url + '?organ=' + organid;\n            $.ajax({\n              method: 'GET',\n              url: base_url,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#system_loader').show();\n              },\n              success: function (system_response) {\n                var html = '';\n                html += '<ul class=\"organ-disease-list\">';\n                if (system_response.length > 0) {\n                  $.each(system_response, function (index, val) {\n                    var system_name = val[0].name;\n                    html += '<li class=\"systemdiseasedata text-capitalize btn-default\" data-organId=\"' + organid + '\" data-systemId=\"' + val[0].id + '\">' + system_name + '</li>';\n                  });\n                } else {\n                  html += '<li class=\"text-capitalize btn-default\">No system name found</li>';\n                }\n                html += '<li class=\"systemdiseasedata text-capitalize btn-default\" data-diseaseOther=\"1\">Other</li>';\n                html += '</ul>';\n                $('#system_results').html(html).show().addClass('system-result');\n              },\n              complete: function (res) {\n                $('#system_loader').hide();\n                //console.log('Execution complete');\n              }\n            });\n          } else {\n            var base_url = _environment.default.APP.lumen_api_url + 'organdisease';\n            var base_url = base_url + '?system=' + systemid + '&organ=' + organid;\n            $.ajax({\n              method: 'GET',\n              url: base_url,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#disease_loader').show();\n              },\n              success: function (organ_response) {\n                var html = '';\n                html += '<ul class=\"organ-disease-list\">';\n                if (organ_response.length > 0) {\n                  $.each(organ_response, function (index, val) {\n                    var disease_name = val.name + ', ' + val.organ.name + ', ' + val.system.name;\n                    html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseId=\"' + val.id + '\" data-organId=\"' + val.organ.id + '\" data-organName=\"' + val.organ.name + '\" data-systemId=\"' + val.system.id + '\" data-systemName=\"' + val.system.name + '\">' + disease_name + '</li>';\n                  });\n                } else {\n                  html += '<li class=\"text-capitalize btn-default\">No disease name found</li>';\n                }\n                html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseOther=\"1\">Other</li>';\n                html += '</ul>';\n                $('#disease_results').html(html).show().addClass('disease-result');\n              },\n              complete: function (res) {\n                $('#disease_loader').hide();\n                //console.log('Execution complete');\n              }\n            });\n          }\n          $('#organ_name').removeAttr('diseaseOther');\n          $('#organ_name').val(item);\n          $('#organ_id').attr('value', organid);\n          $('#organ_results').html('').show().removeClass('organ-result'); //Used to hide system the suggstion box\n          $('#disease_name').addClass('disease_name_input');\n          $('#system_name').addClass('system_name_input');\n          $('.dkbc_d_others_text').html('');\n          $('.dkbc_s_others_text').html('');\n          $('#system_name').attr('placeholder', 'System Name');\n          $('#disease_name').attr('placeholder', 'Select/Type disease name');\n        }\n      });\n      ////////////////////////////////////////////////////////////////////////////\n      $(document).on('click', '.systemdiseasedata', function (event) {\n        stopAjaxSearch = true; //Nishant 15-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var diseaseOther = $(this).data('diseaseother');\n        var organid = $(this).data('organid');\n        var systemid = $(this).data('systemid');\n        //var systemname = $(this).data('systemname');\n        $('.dkbc_clear_class').show();\n        var item = item.trim();\n        if (diseaseOther == 3) {\n          var h = '';\n          $('.dkbc_clear_class').hide();\n          $('#organ_results').html('').show().removeClass('organ-result'); //Used to hide organ the suggstion box\n          $('#organ_name').val('');\n          $('#organ_name').attr('placeholder', 'Enter other organ name');\n          $('#organ_name').removeClass('organ_name_input');\n          h += '<span>Organ Others &nbsp <button class=\"btn btn-danger btn-xs o_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.dkbc_o_others_text').html(h);\n          //$(\"#organ_loader\").hide();\n          $('#organ_name').attr('diseaseOther', diseaseOther);\n          $('#organ_name').focus();\n          $('#organ_id').removeAttr('value');\n        } else {\n          $('.dkbc_clear_class').show();\n          var base_url = _environment.default.APP.lumen_api_url + 'organdisease';\n          var base_url = base_url + '?system=' + systemid + '&organ=' + organid;\n          $.ajax({\n            method: 'GET',\n            url: base_url,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#disease_loader').show();\n            },\n            success: function (organ_response) {\n              var html = '';\n              html += '<ul class=\"organ-disease-list\">';\n              if (organ_response.length > 0) {\n                $.each(organ_response, function (index, val) {\n                  var disease_name = val.name + ', ' + val.organ.name + ', ' + val.system.name;\n                  html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseId=\"' + val.id + '\" data-organId=\"' + val.organ.id + '\" data-organName=\"' + val.organ.name + '\" data-systemId=\"' + val.system.id + '\" data-systemName=\"' + val.system.name + '\">' + disease_name + '</li>';\n                });\n              } else {\n                html += '<li class=\"text-capitalize btn-default\">No disease name found</li>';\n              }\n              html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseOther=\"1\">Other</li>';\n              html += '</ul>';\n              $('#disease_results').html(html).show().addClass('disease-result');\n            },\n            complete: function (res) {\n              $('#disease_loader').hide();\n              //console.log('Execution complete');\n            }\n          });\n          $('#system_name').removeAttr('diseaseOther');\n          $('#system_name').val(item);\n          $('#organ_id').attr('value', organid);\n          $('#system_id').attr('value', systemid);\n          $('#system_results').html('').show().removeClass('system-result'); //Used to hide system the suggstion box\n          $('#disease_name').addClass('disease_name_input');\n          $('#system_name').addClass('system_name_input');\n          $('.dkbc_d_others_text').html('');\n          $('.dkbc_s_others_text').html('');\n          $('#system_name').attr('placeholder', 'System Name');\n          $('#disease_name').attr('placeholder', 'Select/Type disease name');\n        }\n      });\n      ///////////////////////////////////////////////////////////////////////////\n      $(document).on('change', '.hdosage_instruction', function (event) {\n        var intruction_id = $(this).attr('id');\n        var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n        var serial = intruction_id.replace('drug_instruction', '');\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n        if (initialText != 'Other') {\n          $('.hotherOption' + serial).removeAttr('value');\n          $('.hotherOption' + serial).val(initialText);\n          $('.hotherOption' + serial).show();\n          $('.hotherOption' + serial).focus();\n        } else {\n          $('.hotherOption' + serial).removeAttr('value');\n          $('.hotherOption' + serial).val('');\n          $('.hotherOption' + serial).attr('placeholder', 'Please enter other value');\n          $('.hotherOption' + serial).show();\n          $('.hotherOption' + serial).focus();\n        }\n      });\n      $(document).on('change', '.nhdosage_instruction', function (event) {\n        var intruction_id = $(this).attr('id');\n        var serial = intruction_id.replace('non_drug_instruction', '');\n        var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n        if (initialText != 'Other') {\n          $('.nhotherOption' + serial).removeAttr('value');\n          $('.nhotherOption' + serial).val(initialText);\n          $('.nhotherOption' + serial).show();\n          $('.nhotherOption' + serial).focus();\n        } else {\n          $('.nhotherOption' + serial).removeAttr('value');\n          $('.nhotherOption' + serial).val('');\n          $('.nhotherOption' + serial).attr('placeholder', 'Please enter other value');\n          $('.nhotherOption' + serial).show();\n          $('.nhotherOption' + serial).focus();\n        }\n      });\n      $(document).on('click', '.parent_history', function (event) {\n        var appointment = [];\n        var billing = [];\n        var medicine = [];\n        var casetakenappointment = [];\n        var casetaken = [];\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n          billing.push($(this).data('billing'));\n          medicine.push($(this).data('medicineid'));\n        });\n        $.each($(\"input[name='casetaken_history']:checked\"), function () {\n          casetakenappointment.push($(this).data('casetakenappointment'));\n          casetaken.push($(this).data('casetakenid'));\n        });\n        if (appointment.length > 0 && casetakenappointment.length > 0) {\n          //Both Medicine and Case taking import\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id1 = $('input[type=hidden][name=appointment_id]').val();\n          var base_url1 = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines.' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            }\n            //Nishant: 27-08-2022 case taking import was called in both options ealier, so converted to function taken the code out of above if condition\n            importCaseTaking(base_url1, casetakenappointmentId, casetakenId, appointment_id1);\n          })();\n        } else if (appointment.length > 0) {\n          //Only medicine import, no case taking\n          var appointment_id = appointment;\n          var med_id = medicine;\n          var bill = billing;\n          var base_url = _environment.default.APP.lumen_api_url + 'billing/importhistory';\n          $('#visithistoryPopup').modal('hide');\n          // inputOptions can be an object or Promise\n          (async () => {\n            const inputOptions = new Promise(resolve => {\n              resolve({\n                1: 'Append these medicines to the end of existing medicines and assign new serial number.',\n                2: 'Retain the serial numbers of these medicines. ' + '<span style=\"color: red; font-weight: bold;\">Serial numbers of medicines already added will not be changed, you will have to manually assign correct numbers.</span>'\n              });\n            });\n            const {\n              value: optionValue\n            } = await Swal.fire({\n              icon: 'question',\n              title: 'Import Visit History',\n              text: 'How do you want to handle the imported medicines?',\n              input: 'radio',\n              inputOptions: inputOptions,\n              width: 750,\n              allowOutsideClick: false,\n              showCancelButton: true,\n              cancelButtonColor: '#d33',\n              confirmButtonColor: '#3085d6',\n              confirmButtonText: 'Yes, import it!',\n              cancelButtonText: 'No, cancel!',\n              inputValidator: value => {\n                if (!value) {\n                  return 'You need to choose something!';\n                }\n              }\n            });\n            $('#visithistoryPopup').modal('show');\n            //Nishant: 27-08-2022 - refactored below code to convert to functions for easy readability\n            if (optionValue == 1) {\n              appendMedicine(base_url, appointment_id, med_id, bill);\n            } else if (optionValue == 2) {\n              retainSerialNos(base_url, appointment_id, med_id, bill);\n            } else {\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n            }\n            //no case taking import in this case.\n          })();\n        } else if (casetakenappointment.length > 0) {\n          //Only Case taking import\n          var casetakenappointmentId = casetakenappointment;\n          var casetakenId = casetaken;\n          var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n          var base_url = _environment.default.APP.lumen_api_url + 'icpattend/importcasehistory';\n          $('#visithistoryPopup').modal('hide');\n          Swal.fire({\n            icon: 'warning',\n            html: 'Are you sure you want import case history?',\n            width: 650,\n            showCancelButton: true,\n            confirmButtonColor: '#3085d6',\n            cancelButtonColor: '#d33',\n            confirmButtonText: 'Ok',\n            allowOutsideClick: false\n          }).then(result => {\n            if (result.isConfirmed) {\n              //console.log(casetakenId);\n              $.ajax({\n                url: base_url,\n                method: 'POST',\n                data: {\n                  casetakenappointmentId: casetakenappointmentId,\n                  casetakenId: casetakenId,\n                  appointment_id: appointment_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (case_response) {\n                  if (case_response.error == false && case_response.actions == 'imported') {\n                    $('html, body').animate({\n                      scrollTop: $('#casetakenmessage').position().top\n                    }, 1000);\n                    $('#casetakenmessage').html('<div class=\"alert alert-success\">' + case_response.message + '</div>');\n                    $('#casetakenmessage .alert').fadeToggle(10000);\n                    _this.controllerFor('icpattend').send('getCaseTakenList', case_response.appointment_id);\n                    $('li :checkbox').prop('checked', false);\n                  }\n                }\n              });\n            } else if (result.isDismissed && result.dismiss === Swal.DismissReason.cancel) {\n              $('#visithistoryPopup').modal('hide');\n              $('#loading').removeClass('in');\n              $('li :checkbox').prop('checked', false);\n              $('.clearcheckbox').prop('checked', false);\n              $('.cleartable').prop('checked', false);\n              $('.modal-backdrop').remove();\n              $('body').removeClass('modal-open');\n            }\n          });\n        } else {\n          _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent('Please select visit history', 'visitmessage');\n          //$('#visitmessage').html('<div class=\"alert alert-danger\"> Please select visit history </div>');\n          //$('#visitmessage .alert').fadeToggle(10000);\n        }\n      });\n\n      /* Below this event used for Enable/disable medicine serial number on click checkbox of Sort Medicine by Serial Number when saving 31 Dec 2020*/\n      $(document).on('click', '.sort-serial', function () {\n        var checkedValue = $('#sort-serial').is(':checked');\n        if (checkedValue == true) {\n          $('.srnoItem').attr('readonly', false);\n        } else {\n          $('.srnoItem').attr('readonly', true);\n        }\n        //console.log(checkedValue);\n      });\n\n      /* Below this event used for change onthefly/mix name 03 Feb 2021 */\n      $(document).on('change paste', '.medicineMixItem', function () {\n        var inputVal = $(this).val().trim();\n        //console.log(inputVal);\n        if (inputVal != '') {\n          var currentRowId = $(this).attr('id');\n          $('#' + currentRowId).attr('value', inputVal);\n          var mix_name = $('#' + currentRowId).val().trim();\n          var mix_id = currentRowId.split('-')[1];\n          //console.log(mix_id);\n          $('#' + currentRowId).attr('name', 'medicineItem[' + mix_id + '][' + inputVal + ']');\n          $('#srno-' + mix_id).attr('name', 'srnoItem[' + mix_id + '][' + inputVal + ']');\n          var mix_type = $('#medicine_type-' + mix_id).val();\n          $('#medicine_id-' + mix_id).attr('name', 'medicine_id[' + mix_id + '][' + inputVal + '][' + mix_type + ']');\n          $('.mixname_change').each(function () {\n            var currentMixRowId = $(this).attr('data-ontheflyId');\n            //console.log(currentMixRowId);\n            $('#medicine_name-' + mix_id + currentMixRowId).attr('name', 'medicineItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#medicine_id-' + mix_id + currentMixRowId).attr('name', 'medicine_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency-' + mix_id + currentMixRowId).attr('name', 'potencyItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#potency_id-' + mix_id + currentMixRowId).attr('name', 'potency_id[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n            $('#dilution-' + mix_id + currentMixRowId).attr('name', 'dilutionItem[' + mix_id + '][' + mix_name + '][' + currentMixRowId + ']');\n          });\n        } else {\n          Swal.fire({\n            icon: 'warning',\n            html: '<b class=\"pop-message-class\">Please enter mix name. </b>',\n            width: 450,\n            allowOutsideClick: false\n          });\n        }\n      });\n      /* Below this event used for only allow numeric alphabate serial number of medicine 31 Dec 2020 */\n      $(document).on('change paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n            $(this).closest('tr').attr('data-order', inputVal.toUpperCase());\n            var currentRowId = $(this).attr('id');\n            $('#' + currentRowId).attr('value', inputVal.toUpperCase());\n            //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n            $('#' + currentRowId).attr('data-uniqueserial', inputVal.toUpperCase());\n            //$(\"#\"+currentRowId).attr('id', 'id-'+max_count).trigger('change');\n\n            //var MedcineRowNum = currentRowId.split('-')[1];\n            //$(this).closest(\"tr\").attr('id', MedcineRowNum);\n          }\n        }\n      });\n      $(document).on('change', '[id^=\"instruction-\"]', function () {\n        var intruction_id = $(this).attr('id');\n        var MedcineRowNum = intruction_id.split('-')[1];\n        var initialText = $('#instruction-' + MedcineRowNum + ' option:selected').text().trim();\n        var editable_val = $('.editOption-' + MedcineRowNum).val();\n        var find_other_value = $('#instruction-' + MedcineRowNum).find('option[value=\"' + editable_val + '\"]').val();\n        if (find_other_value == undefined) {\n          var select = initialText;\n        } else {\n          var select = initialText;\n        }\n        //console.log(find_other_value);\n        // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 25 March 2021\n        //console.log(initialText);\n        if (initialText == 'Select Instruction') {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('#instruction-' + MedcineRowNum).addClass('has-error');\n          $('.editOption-' + MedcineRowNum).attr('placeholder', 'Select Instruction');\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', '');\n          $('.editable-' + MedcineRowNum).removeAttr('selected');\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        } else if (initialText != 'Other') {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).removeAttr('placeholder');\n          $('#instruction-' + MedcineRowNum).removeClass('has-error');\n          $('.editable-' + MedcineRowNum).removeAttr('selected');\n          $('#edit_instruction-' + MedcineRowNum).removeAttr('value');\n          $('.editOption-' + MedcineRowNum).val(select);\n          $('.editOption-' + MedcineRowNum).attr('value', initialText);\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', initialText);\n          $('#instruction-' + MedcineRowNum).val(initialText).find('option[value=\"' + initialText + '\"]').attr('selected', true);\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        } else {\n          $('.editOption-' + MedcineRowNum).removeAttr('value');\n          $('.editable-' + MedcineRowNum).removeAttr('selected');\n          $('.editOption-' + MedcineRowNum).val('');\n          $('.editOption-' + MedcineRowNum).attr('placeholder', 'Please enter other value');\n          $('.editOption-' + MedcineRowNum).attr('data-original-title', '');\n          //$('#instruction-' + MedcineRowNum).val(initialText).find('option[value=\"' + initialText + '\"]').attr('selected', true);\n          $('#instruction-' + MedcineRowNum).addClass('has-error');\n          $('.editOption-' + MedcineRowNum).show();\n          $('.editOption-' + MedcineRowNum).focus();\n        }\n      });\n      /*This script is used for remove selected table row July 24 2019 Shubh Tiwari */\n      $(document).on('click', '.delete-row', function (event) {\n        var lengthOfUnchecked = $('#prescriptionmedicine tbody td input:checkbox:not(:checked)').length;\n        var checkNum = $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').length;\n        // console.log(checkNum);\n        if (checkNum == 0) {\n          swal({\n            text: 'Please select at-least one row to remove.',\n            icon: 'info',\n            buttons: 'Ok'\n          });\n        } else if (lengthOfUnchecked > 0) {\n          swal({\n            title: 'Are you sure you want to remove selected medicines?',\n            icon: 'warning',\n            buttons: true,\n            dangerMode: true\n          }).then(willDelete => {\n            if (willDelete) {\n              $('#prescriptionmedicine tbody td').find('input[name=\"check\"]:checked').each(function () {\n                /* Remove duplicate class from mix medicine row shubh tiwari 07 jan 2021*/\n                var p = $(this).closest('tr').attr('data-mixid');\n                $(\"[data-mixid^='\" + p + \"']\").map(function () {\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#' + idNum).removeClass('duplicate');\n                });\n                /* Remove duplicate class from single medicine row shubh tiwari 07 jan 2021*/\n                var serialNo = $(this).closest('tr').attr('data-medform');\n                var tableRow = $('.tableRow').filter(function () {\n                  return $(this).data('medform') == serialNo; // where value == product id to find\n                });\n                tableRow.removeClass('duplicate');\n                $(this).closest('tr').remove();\n              });\n            }\n          });\n        } else {\n          $('#prescriptionmedicine tbody td input[type=\"checkbox\"]').prop('checked', false);\n          $('.checkAll').prop('checked', false);\n          swal({\n            text: \"Sorry!! You can't remove all the rows!\",\n            icon: 'warning',\n            buttons: 'Ok'\n          });\n        }\n      });\n      /*This script is used for checked and unchecked visit history July 20 2019 Shubh Tiwari */\n      $(document).on('click', 'li :checkbox', function (event) {\n        var $chk = $(this),\n          $li = $chk.closest('li'),\n          $ul,\n          $parent;\n        if ($li.has('table-data ul')) {\n          $li.find(':checkbox').not(this).prop('checked', this.checked);\n        }\n        do {\n          $ul = $li.parent();\n          $parent = $ul.siblings(':checkbox');\n          if ($chk.is(':checked')) {\n            $parent.prop('checked', $ul.has(':checkbox:not(:checked)').length == 0);\n          } else {\n            $parent.prop('checked', false);\n          }\n          $chk = $parent;\n          $li = $chk.closest('li');\n        } while ($ul.is(':not(.someclass)'));\n      });\n      /*This script is used for unchecked visit history on click clear button July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.cleartable', function (event) {\n        var appointment = [];\n        var table_row = '';\n        var instructionselect = '';\n        //$('#visithistoryPopup').modal('hide');\n        $('.cleartable li :checkbox').prop('checked', false);\n        $.each($(\"input[name='parent_history']:checked\"), function () {\n          appointment.push($(this).data('appointment'));\n        });\n      });\n      var stopAjaxSearch = false;\n      /*This script is used for set medicine search data on click July 20 2019 Shubh Tiwari */\n      $(document).on('click', '.formdata', function (event) {\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 6-mar-2023: if clicked, then we stop the ajax search.\n        var item = $(event.target).text();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        var potency_name = $(this).data('potencyname');\n        var dilution = $(this).data('dilution');\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').removeClass('has-error');\n        //var appointment_id = $('input[type=hidden][name=appointment_id]').val();\n        var item = item.trim();\n        var medicinename = item.split(',')[0]; //This below line of code  is used for getting the only medicine name, Rahul Khan, 16 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-medicine', item); //This line is used for adding new attribute with value as medicine name in suggestion box, Rahul Khan, 16 aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n        //$(this).closest(\".cw-search-box\").find('medicine_type').val(medicine_type);\n\n        //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 10 Aug 2019\n        $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n        var clickedid = $(this).closest('.cw-search-box').find('input[type=\"text\"]').attr('id');\n        // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n        if (clickedid !== undefined) {\n          var targetid = clickedid.split('-');\n          var cnt = targetid[1];\n          var next = targetid[1];\n          //var appointment_id = targetid[2];\n          //console.log(appointment_id);\n          //This below code is used for getting the first added medicine form to coping for all added medicine default, Rahul Khan , 27 Aug 2019\n          var firstRowMedicineForm = $('#prescriptionmedicine').find(\"tr[id^='id-']:first\").attr('id');\n          var MedcineRowNum = firstRowMedicineForm.split('-')[1];\n          var selectedForm = $('#prescribeform-' + MedcineRowNum).val();\n          var selectedOptionText = $('#prescribeform-' + MedcineRowNum + \" option[value^='\" + selectedForm + \"']\").text();\n          if (medicine_type == 'single') {\n            var selectedFactor = $('#factor-' + MedcineRowNum).val();\n            var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n            //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n            _this.factorCarryForward(selectedFactor, medicinevial, cnt);\n            $('.potency-' + cnt).val(potency_name);\n            $('.potency-' + cnt).attr('readonly', true); //This line of code is used for setting the potency box disabled, Rahul Khan, 16 Aug 2019\n            $('#potency_id-' + cnt).val(potency_id);\n            $('#medicine_id-' + cnt).val(medicine_id);\n            $('.dilution-' + cnt).val(dilution);\n            $('.dilution-' + cnt).attr('readonly', true); //This line of code is used for setting the dilution box disabled, Rahul Khan, 16 Aug 2019\n            $('#medicine_type-' + cnt).val(medicine_type);\n            //ajax call for get form list\n            var singleformArray = [];\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'billing/formlist',\n              data: {\n                potency: potency_id,\n                medicine: medicine_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('.slectform-' + cnt).empty();\n                //$('.slectform-' + cnt).focus().addClass('has-error');\n                //$('.slectform-' + cnt).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  //var id = response[i]['fId'];\n                  var name = response[i]['fName'];\n                  var fcode = response[i]['fcode'];\n                  var gId = response[i]['gId'];\n                  var serial_no = $('#srno-' + cnt).val();\n                  var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                  var selectedObject = {};\n                  if (selectedOptionText == fcode) {\n                    var selected = 'selected';\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = selectedOptionText;\n                    singleformArray.push(selectedObject);\n                  } else {\n                    selectedObject['selected'] = selected;\n                    selectedObject['form_code'] = fcode;\n                    singleformArray.push(selectedObject);\n                  }\n                  $('.slectform-' + cnt).append(\"<option value='\" + gId + '-' + fcode + '-' + name + \"' \" + selected + '>' + fcode + '</option>');\n                  //This added class is used for getting seprated the layout for single and mix, Shubh Tiwari, 09 July 2019\n                  $('#prescriptionmedicine').addClass('singletemplate');\n                }\n                var formCode = _this.multiSort(singleformArray, {\n                  form_code: 'asc'\n                });\n                _this.getSelectedTableRow(formCode, medicine_id, cnt);\n              }\n            });\n            /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n            var error = '';\n            var duplicateMedicineArray = [];\n            //This Row id used for getting the row number\n            var currenyRowidNum = cnt;\n            var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n            //console.log(currenyRowidNum);\n            //console.log(currentMedicneValue);\n            //var currentMedicineForm = $(\"#prescribeform-\" + currenyRowidNum).val();\n            //console.log(currentMedicineForm);\n            var currentMedicineFormValue = selectedOptionText;\n            //console.log(currentMedicineFormValue);\n            var duplicateRow = $('.medicineItem').map(function () {\n              // var medicineName  = $(this).attr('data-medicine').trim();\n              var medicineName = $(this).attr('data-medicine');\n              //console.log(medicineName);\n              var medicineRowId = $(this).attr('id');\n              //console.log(medicineRowId);\n              var MedicinwRowNum = medicineRowId.split('-')[1];\n              var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n              var MedicineRowFormValue = $('#prescribeform-' + MedicinwRowNum + \" option[value^='\" + MedicineRowForm + \"']\").text();\n              //console.log(MedicineRowFormValue);\n              if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n                duplicateMedicineArray.push(currenyRowidNum);\n                duplicateMedicineArray.push(MedicinwRowNum);\n                return MedicinwRowNum;\n              }\n            }).get();\n            duplicateMedicineArray.forEach(function (item) {\n              $('#id-' + item).addClass('duplicate');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              var formName = _this.getFormName(currentMedicineFormValue);\n              //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n              error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n              Swal.fire({\n                icon: 'error',\n                title: 'Oops...',\n                html: error,\n                width: 600,\n                showCloseButton: true,\n                allowOutsideClick: false,\n                confirmButtonText: `Ok`\n              });\n            } else {\n              $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n                //console.log(this.id);\n                var idNum = this.id.replace('medicine_name-', '');\n                $('#id-' + idNum).removeClass('duplicate');\n              });\n            }\n          }\n          if (medicine_type == 'mix') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'mix') {\n              //console.log('mix-a');\n              var common_serial = 1;\n              //ajax call for geting mix medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      $('#id-' + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"1\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  $('#prescriptionmedicine').children('tbody:first').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                  var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                  //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                  _this.factorCarryForward(selectedFactor, medicinevial, next);\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            } else {\n              //console.log('mix-b');\n              var max = _this.rowMaxSerialNo();\n              var common_serial = parseInt(max, 10);\n              var p = $(this).closest('tr').attr('data-order');\n              //ajax call for geting mix medicine data\n              var onspot_mix_duplicateMedicineArray = [];\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/mixmedicine',\n                data: {\n                  mix_medicine_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (mixresponse) {\n                  $('#loader').hide();\n                  var mix_template = '';\n                  var subhtml = '';\n                  var selecthtml = '';\n                  var mix_instruc_val = '';\n                  var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n                  var instructionValue = $('.instructionItem option:selected').val();\n                  subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + item + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" data-med=\"' + medicine_id + '\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + item + '\"/><input name=\"medicine_type[' + next + ']\"  id=\"medicine_type-' + next + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + next + '][' + item + '][' + medicine_type + ']\"  id=\"medicine_id-' + next + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                  var j = 0;\n                  mixresponse.forEach(function (item_medicine, index) {\n                    j++;\n                    if (item_medicine.medicine && item_medicine.form) {\n                      var medicine = item_medicine.medicine.mixMedicineName;\n                      var medicine_id = item_medicine.medicine.medId;\n                      var potency_id = item_medicine.medicine.pId;\n                      var fId = item_medicine.medicine.fId;\n                      var potency = item_medicine.medicine.potencyname;\n                      var dilution = item_medicine.medicine.dilution;\n                      var medicinename = medicine.split(',')[0];\n                      //$(\"#id-\" + next).remove();\n                      subhtml += '<tr data-ontheflyrow=\"' + next + '\" data-mixrowid=\"' + next + next + '\" class=' + medicine_type + '-' + next + '><td><input class=\"form-control mixname_change medicine_name-' + next + j + '\"  data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + next + '][' + item + '][' + j + ']\" id=\"medicine_name-' + next + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicinename + '\" data-medicine=\"' + medicinename + ', ' + potency + ' (' + dilution + ')\"/> <input type=\"hidden\" class=\"medicine_id-' + next + j + '\" id=\"medicine_id-' + next + j + '\" name=\"medicine_id[' + next + '][' + item + '][' + j + ']\" value=\"' + medicine_id + '\"/></td><td><input name=\"potencyItem[' + next + '][' + item + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + next + j + '\" class=\"form-control potency-' + next + j + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" class=\"potency_id-' + next + j + '\" id=\"potency_id-' + next + j + '\"  name=\"potency_id[' + next + '][' + item + '][' + j + ']\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + item + '][' + j + ']\" class=\"form-control dilution-' + next + j + '\" readonly=\"readonly\" id=\"dilution-' + next + j + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n                    }\n                  });\n                  subhtml += '</table>';\n                  /********This Ajax Request used for getting the all the avaible form for Mix *******/\n                  var mixformArray = [];\n                  $.ajax({\n                    method: 'GET',\n                    url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                    dataType: 'json',\n                    async: false,\n                    headers: {\n                      \"Authorization\": `Bearer ${utoken}`\n                    },\n                    success: function (res) {\n                      // console.log(res);\n                      selecthtml = '<select name=\"formItem[' + next + ']\" class=\"form-control prescribeform-' + next + ' formItem mixFormItem\" id=\"prescribeform-' + next + '\">';\n                      res.forEach(function (form) {\n                        var selected = ' '; //This condition is used to set selected the form as per first medicine,\n                        var selectedObject = {};\n                        if (selectedOptionText == form.form_code) {\n                          var selected = 'selected';\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = selectedOptionText;\n                          mixformArray.push(selectedObject);\n                        } else {\n                          selectedObject['selected'] = selected;\n                          selectedObject['form_code'] = form.form_code;\n                          mixformArray.push(selectedObject);\n                        }\n                        selecthtml += '<option value=\"' + form.group + '-' + form.form_code + '-' + form.name + '\" ' + selected + '>' + form.form_code + '</option>';\n                      });\n                      selecthtml += '</select>';\n                    },\n                    error: function (error, x, y) {}\n                  });\n                  /************************/\n                  mix_template += '<tr id=\"id-' + next + '\" title=\"Mix medicine\" class=\"cw-mix-medicine-' + next + ' ' + medicine_type + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-order=\"' + common_serial + '\">';\n                  mix_template += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n                  mix_template += '<td><input data-uniqueserial=\"' + common_serial + '\" name=\"srnoItem[' + next + '][' + item + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" value=\"' + common_serial + '\" type=\"text\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                  mix_template += '<td colspan=\"3\">' + subhtml + '</td>';\n                  mix_template += '<td>' + selecthtml + '</td>';\n                  mix_template += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factor-[' + next + '] factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevial-[' + next + '] medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + selectedFactor + '\"/></td>';\n                  mix_template += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" placeholder=\"Select Instruction\"></td></tr>';\n\n                  //$('#prescriptionmedicine').append(mix_template);\n                  //$('#prescriptionmedicine > tbody.tbody > tr').eq(common_serial).after(mix_template);\n                  $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + next).after(mix_template);\n                  $('#id-' + next).attr('data-order', p).remove();\n                  $('#id-' + next).attr('data-order', p);\n                  $('#srno-' + next).val(p);\n                  $('#srno-' + next).attr('value', p);\n                  $('#srno-' + next).attr('data-uniqueserial', p);\n                  var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                  var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                  //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                  _this.factorCarryForward(selectedFactor, medicinevial, next);\n                  //var p =  $('#prescriptionmedicine > tbody.tbody > tr').attr('id');\n                  //console.log(p);\n                  //$('#prescriptionmedicine').children('tbody:last').append(mix_template);\n                  var formCode = _this.multiSort(mixformArray, {\n                    form_code: 'asc'\n                  });\n                  _this.getSelectedTableRow(formCode, medicine_id, next);\n                  _this.checkEnableCheckbox();\n                }\n              });\n              /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n              var error = '';\n              var onspot_mix_currenyRowidNum = cnt;\n              var onspot_mix_currentMedicneValue = medicine_id;\n              //console.log(onspot_mix_currentMedicneValue);\n              var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n              //console.log(onspot_mix_currentMedicineForm);\n              var onspot_mix_currentMedicineFormValue = selectedOptionText;\n              var duplicateRow = $('.medicineMixItem').map(function () {\n                var onspot_mix_medicineName = $(this).attr('data-med');\n                var onspot_mix_medicineRowId = $(this).attr('id');\n                var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n                var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n                var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n                if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n                  onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n                  return onspot_mix_MedicinwRowNum;\n                }\n              }).get();\n              var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n                return index === self.indexOf(elem);\n              });\n              var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n              //console.log(onspot_mix_sortduplicateMedicineArray);\n\n              onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n                setTimeout(function () {\n                  $('#id-' + item).addClass('duplicate');\n                  //var number = $(\"#srno-\" + item).data(\"uniqueserial\");\n                  //$(\"#srno-\" + item).val(number);\n                }, 1000);\n              });\n              if (onspot_mix_duplicateMedicineArray.length > 0) {\n                var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n                //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n                error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + item + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n                Swal.fire({\n                  icon: 'error',\n                  title: 'Oops...',\n                  html: error,\n                  width: 600,\n                  showCloseButton: true,\n                  allowOutsideClick: false,\n                  confirmButtonText: `Ok`\n                });\n              } else {\n                //currentMedicneValue\n                $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n                  //console.log(this.id);\n                  var idNum = this.id.replace('mix_medicine_name-', '');\n                  $('#id-' + idNum).removeClass('duplicate');\n                });\n              }\n            }\n            //console.log(first_table_rows);\n          } //This below condition is used for adding the template Medicine/Mix for prescription, Shubh Tiwari\n          if (medicine_type == 'template') {\n            var first_table_rows = $('#prescriptionmedicine tbody.tbody tr:eq(0) td:eq(2)').closest('.cw-search-box').find('input[type=\"text\"]').attr('data-type');\n            if (first_table_rows !== undefined && first_table_rows == 'template') {\n              //console.log(first_table_rows);\n              //console.log('Template-a');\n              //ajax call for geting template medicine data\n              $('#prescriptionmedicine tbody.tbody').find('tr:gt(0)').remove();\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var instruction_array = _this.get('instruction');\n                  $.each(template_response, function (index, val) {\n                    var html = '';\n                    var subhtml = '';\n                    var formselect = '';\n                    var instructionselect = '';\n                    var edit_instructionselect = '';\n                    //var serial_no = Date.now().toString().substr(6);\n                    var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                    var medicine_type = val.mtype;\n                    var medicine_id = val.medId;\n                    var template_id = val.tempId;\n                    var potency_id = val.pId;\n                    var single_serial_no = val.mserialNo;\n                    var potency = val.potency_name;\n                    var medicine = val.medicine_name;\n                    var dilution = val.dilution_name;\n                    var f_code = val.f_code;\n                    var medform = parseInt(medicine_id) + f_code;\n                    if (val.Iname != '') {\n                      var instruction_name = val.Iname;\n                    } else {\n                      var instruction_name = val.Oname;\n                    }\n                    var factor = 1;\n                    var fact = parseInt(factor);\n                    var vial_value = 1;\n                    var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                    if (vial_check_value == 0) {\n                      var vial = 1;\n                    } else if (vial_check_value == 1) {\n                      var vial = 1;\n                    } else {\n                      var vial = vial_check_value;\n                    }\n                    var mix_name = medicine;\n\n                    // form selected html code\n                    formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                    for (var i = 0; i < val.form.length; i++) {\n                      var form_name = val.form[i].form_name;\n                      var group_id = val.form[i].group_id;\n                      var form_code = val.form[i].form_code;\n                      if (form_code == f_code) {\n                        formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      } else {\n                        formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                      }\n                    }\n                    formselect += '</select>';\n                    // instruction selected html code\n                    instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                    for (var i = 0; i < instruction_array.length; i++) {\n                      //var instruc_id = instruction_array[i].id;\n                      var instruc_name = instruction_array[i].instruction_name.trim();\n                      if (instruction_name != '' && instruction_name == instruc_name) {\n                        instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      } else {\n                        instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                      }\n                    }\n                    instructionselect += '</select>';\n                    if (instruction_name != '') {\n                      edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                    }\n                    instructionselect += edit_instructionselect;\n                    if (val.mtype == 'mix') {\n                      var title = 'Mix medicine';\n                    } else {\n                      var title = 'On the fly mix medicine';\n                    }\n                    /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                    if (fact < 1) {\n                      var Zerofactor = 'zerofactor';\n                      $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                    } else {\n                      var Zerofactor = '';\n                    }\n                    var j = 0;\n                    if (val.mix.length > 0) {\n                      subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                      for (var i = 0; i < val.mix.length; i++) {\n                        j++;\n                        var mix_potency = val.mix[i].potencyname;\n                        var mix_medicine = val.mix[i].mixMedicineName;\n                        var mix_medicine_id = val.mix[i].medId;\n                        var mix_potency_id = val.mix[i].pId;\n                        var mix_dilution = val.mix[i].dilution;\n                        subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                        subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                        subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                        subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                        subhtml += '</tr>';\n                      }\n                      subhtml += '</table>';\n                      html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td colspan=\"3\">' + subhtml + '</td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    } else {\n                      html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + single_serial_no + '\" data-medform=\"' + medform + '\">';\n                      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                      html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + single_serial_no + '\" data-uniqueserial=\"' + single_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                      html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                      html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                      html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                      html += '<td>' + formselect + '</td>';\n                      html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                      html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                      html += '<td>' + instructionselect + '</td>';\n                      html += '</tr>';\n                    }\n                    $('#prescriptionmedicine').children('tbody:first').append(html);\n                    var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                    var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                    //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                    _this.factorCarryForward(selectedFactor, medicinevial, serial_no);\n                    _this.checkEnableCheckbox();\n                  });\n                }\n              });\n            } else {\n              $('#precribe_pharmacy_instruction').html('');\n              $('#loader').show();\n              var duplicateRow = $('.tableRow').map(function () {\n                return $(this).data('medform');\n              }).get();\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'billing/templatemedicine',\n                data: {\n                  template_id: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (template_response) {\n                  $('#loader').hide();\n                  $('#id-' + next).remove();\n                  var error = '';\n                  var existing_medicine = '';\n                  var remaining_medicine = '';\n                  var duplicateMedicineArray = [];\n                  var tableRowIdArray = [];\n                  var serialnumberArray = [];\n                  var remaining_name = [];\n                  var dmf_tableRowIdArray = [];\n                  var dmf_serialnumberArray = [];\n                  var instruction_array = _this.get('instruction');\n\n                  //console.log(duplicateRow);\n                  template_response.forEach(function (value) {\n                    var formData = parseInt(value.medId) + value.f_code;\n                    if (duplicateRow.indexOf(formData) != -1) {\n                      if (value.mtype == 'single') {\n                        var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.f_name;\n                      } else {\n                        var med_name = value.medicine_name + ' with form ' + value.f_name;\n                      }\n                      duplicateMedicineArray.push(med_name);\n                    }\n                  });\n\n                  //console.log(duplicateMedicineArray);\n\n                  if (duplicateMedicineArray.length > 0) {\n                    var max = _this.rowMaxSerialNo();\n                    var j = 0;\n                    for (var i = 0; i < template_response.length; i++) {\n                      var obj_original = template_response[i];\n                      if (obj_original.mtype == 'single') {\n                        var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.f_name;\n                      } else {\n                        var med_name = obj_original.medicine_name + ' with form ' + obj_original.f_name;\n                      }\n                      if (duplicateMedicineArray.indexOf(med_name) !== -1) {\n                        var p = j++;\n                        existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                        //console.log('duplicate-message-a'+med_name);\n                      } else {\n                        remaining_name.push(med_name);\n                        //console.log('duplicate-message-b'+remaining_name);\n                      }\n                    }\n                    if (remaining_name.length > 0) {\n                      var commaList = _this.arrayToText(remaining_name);\n                      remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n                    }\n                    error = \"<div class='alert alert-danger'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n                    Swal.fire({\n                      icon: 'error',\n                      title: 'Oops...',\n                      html: error,\n                      width: 650,\n                      showCancelButton: true,\n                      confirmButtonColor: '#3085d6',\n                      cancelButtonColor: '#d33',\n                      confirmButtonText: 'Ok',\n                      allowOutsideClick: false\n                    }).then(result => {\n                      if (result.isConfirmed) {\n                        for (var i = 0; i < template_response.length; i++) {\n                          var obj = template_response[i];\n                          var formData = parseInt(obj.medId) + obj.f_code;\n                          if (duplicateRow.indexOf(formData) !== -1) {\n                            template_response.splice(i, 1);\n                            i--;\n                          }\n                        }\n                        $.each(template_response, function (index, val) {\n                          //console.log('b-template');\n                          var increase_number = index + 1;\n                          var html = '';\n                          var subhtml = '';\n                          var formselect = '';\n                          var instructionselect = '';\n                          var edit_instructionselect = '';\n                          var common_serial = parseInt(max, 10) + increase_number;\n                          var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                          var medicine_type = val.mtype;\n                          var medicine_id = val.medId;\n                          var template_id = val.tempId;\n                          var potency_id = val.pId;\n                          var single_serial_no = val.mserialNo;\n                          var potency = val.potency_name;\n                          var medicine = val.medicine_name;\n                          var dilution = val.dilution_name;\n                          var f_code = val.f_code;\n                          var medform = parseInt(medicine_id) + f_code;\n                          if (val.Iname != '') {\n                            var instruction_name = val.Iname;\n                          } else {\n                            var instruction_name = val.Oname;\n                          }\n                          var factor = 1;\n                          var fact = parseInt(factor);\n                          var vial_value = 1;\n                          var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                          if (vial_check_value == 0) {\n                            var vial = 1;\n                          } else if (vial_check_value == 1) {\n                            var vial = 1;\n                          } else {\n                            var vial = vial_check_value;\n                          }\n                          var mix_name = medicine;\n\n                          // form selected html code\n                          formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                          for (var i = 0; i < val.form.length; i++) {\n                            var form_name = val.form[i].form_name;\n                            var group_id = val.form[i].group_id;\n                            var form_code = val.form[i].form_code;\n                            if (form_code == f_code) {\n                              formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            } else {\n                              formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                            }\n                          }\n                          formselect += '</select>';\n                          // instruction selected html code\n                          instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                          for (var i = 0; i < instruction_array.length; i++) {\n                            //var instruc_id = instruction_array[i].id;\n                            var instruc_name = instruction_array[i].instruction_name.trim();\n                            if (instruction_name != '' && instruction_name == instruc_name) {\n                              instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            } else {\n                              instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                            }\n                          }\n                          instructionselect += '</select>';\n                          if (instruction_name != '') {\n                            edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                          }\n                          instructionselect += edit_instructionselect;\n                          if (val.mtype == 'mix') {\n                            var title = 'Mix medicine';\n                          } else {\n                            var title = 'On the fly mix medicine';\n                          }\n                          /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                          if (fact < 1) {\n                            var Zerofactor = 'zerofactor';\n                            $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                          } else {\n                            var Zerofactor = '';\n                          }\n                          var j = 0;\n                          if (val.mix.length > 0) {\n                            subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                            for (var i = 0; i < val.mix.length; i++) {\n                              j++;\n                              var mix_potency = val.mix[i].potencyname;\n                              var mix_medicine = val.mix[i].mixMedicineName;\n                              var mix_medicine_id = val.mix[i].medId;\n                              var mix_potency_id = val.mix[i].pId;\n                              var mix_dilution = val.mix[i].dilution;\n                              subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                              subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                              subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                              subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                              subhtml += '</tr>';\n                            }\n                            subhtml += '</table>';\n                            html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                            html += '<td colspan=\"3\">' + subhtml + '</td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          } else {\n                            html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                            html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                            html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                            html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                            html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                            html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                            html += '<td>' + formselect + '</td>';\n                            html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                            html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                            html += '<td>' + instructionselect + '</td>';\n                            html += '</tr>';\n                          }\n                          //$('#prescriptionmedicine').append(html);\n                          $('#prescriptionmedicine').children('tbody:last').append(html);\n                          _this.checkEnableCheckbox();\n                          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                          _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                          var selectedFactor = $('#factor-' + MedcineRowNum).val();\n                          var medicinevial = $('#medicinevial-' + MedcineRowNum).val();\n                          //This condition is used for checking factor carry forward Shubh Tiwari 06 July 2023\n                          _this.factorCarryForward(selectedFactor, medicinevial, serial_no);\n                        });\n                      }\n                    });\n                  } else {\n                    var max = _this.rowMaxSerialNo();\n                    $.each(template_response, function (index, val) {\n                      //console.log('c-template');\n                      var increase_number = index + 1;\n                      var html = '';\n                      var subhtml = '';\n                      var formselect = '';\n                      var instructionselect = '';\n                      var edit_instructionselect = '';\n                      var common_serial = parseInt(max, 10) + increase_number;\n                      var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                      var medicine_type = val.mtype;\n                      var medicine_id = val.medId;\n                      var template_id = val.tempId;\n                      var potency_id = val.pId;\n                      var single_serial_no = val.mserialNo;\n                      var potency = val.potency_name;\n                      var medicine = val.medicine_name;\n                      var dilution = val.dilution_name;\n                      var f_code = val.f_code;\n                      var medform = parseInt(medicine_id) + f_code;\n                      if (val.Iname != '') {\n                        var instruction_name = val.Iname;\n                      } else {\n                        var instruction_name = val.Oname;\n                      }\n                      var factor = 1;\n                      var fact = parseInt(factor);\n                      var vial_value = 1;\n                      var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                      if (vial_check_value == 0) {\n                        var vial = 1;\n                      } else if (vial_check_value == 1) {\n                        var vial = 1;\n                      } else {\n                        var vial = vial_check_value;\n                      }\n                      var mix_name = medicine;\n\n                      // form selected html code\n                      formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                      for (var i = 0; i < val.form.length; i++) {\n                        var form_name = val.form[i].form_name;\n                        var group_id = val.form[i].group_id;\n                        var form_code = val.form[i].form_code;\n                        if (form_code == f_code) {\n                          formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        } else {\n                          formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                        }\n                      }\n                      formselect += '</select>';\n                      // instruction selected html code\n                      instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                      for (var i = 0; i < instruction_array.length; i++) {\n                        //var instruc_id = instruction_array[i].id;\n                        var instruc_name = instruction_array[i].instruction_name.trim();\n                        if (instruction_name != '' && instruction_name == instruc_name) {\n                          instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        } else {\n                          instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                        }\n                      }\n                      instructionselect += '</select>';\n                      if (instruction_name != '') {\n                        edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                      }\n                      instructionselect += edit_instructionselect;\n                      if (val.mtype == 'mix') {\n                        var title = 'Mix medicine';\n                      } else {\n                        var title = 'On the fly mix medicine';\n                      }\n                      /*This below condition used for highting zero factor medicine,  Shubh Tiwari, 25 July 2019*/\n                      if (fact < 1) {\n                        var Zerofactor = 'zerofactor';\n                        $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                      } else {\n                        var Zerofactor = '';\n                      }\n                      var j = 0;\n                      if (val.mix.length > 0) {\n                        subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + medicine_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\" /></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                        for (var i = 0; i < val.mix.length; i++) {\n                          j++;\n                          var mix_potency = val.mix[i].potencyname;\n                          var mix_medicine = val.mix[i].mixMedicineName;\n                          var mix_medicine_id = val.mix[i].medId;\n                          var mix_potency_id = val.mix[i].pId;\n                          var mix_dilution = val.mix[i].dilution;\n                          subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                          subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                          subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                          subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                          subhtml += '</tr>';\n                        }\n                        subhtml += '</table>';\n                        html += '<tr title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' cw_mix_row tableRow previousRow\" data-mixid=\"' + medicine_id + '\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                        html += '<td colspan=\"3\">' + subhtml + '</td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      } else {\n                        html += '<tr id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow previousRow\" data-tempid=\"' + template_id + '\" data-order=\"' + common_serial + '\" data-medform=\"' + medform + '\">';\n                        html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                        html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\" /></td>';\n                        html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                        html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                        html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                        html += '<td>' + formselect + '</td>';\n                        html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                        html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                        html += '<td>' + instructionselect + '</td>';\n                        html += '</tr>';\n                      }\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      _this.checkEnableCheckbox();\n                      /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray);\n                      /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 11 jan 2020 Shubh Tiwari*/\n                      _this.mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray);\n                    });\n                  }\n                }\n              });\n            }\n          }\n          $('#results' + cnt).html('').show().removeClass('searchresult'); //Used to hide the suggstion box\n          // clear form select dropdown list\n          $(document).on('change', '#prescribeform-' + cnt, function () {\n            $('.slectform-' + cnt).removeClass('has-error');\n          });\n        }\n      });\n      $(function () {\n        $(document).on('keyup', '#disease_name', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n          //if(isDoubleClicked($(this))) return;\n          var set_icd_name = $('#disease_name').attr('diseaseother');\n          if (search_data === '' && set_icd_name == '1') {\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            $('.dkbc_clear_class').addClass('d_other');\n          }\n        });\n\n        // Returns a function, that, as long as it continues to be invoked, will not\n        // be triggered. The function will be called after it stops being called for\n        // N milliseconds. If `immediate` is passed, trigger the function on the\n        // leading edge, instead of the trailing.\n        function debounce(func, wait, immediate) {\n          var timeout;\n          return function (e) {\n            var context = this,\n              args = arguments;\n            var later = function () {\n              timeout = null;\n              if (!immediate) func.apply(context, args);\n            };\n            var callNow = immediate && !timeout;\n            clearTimeout(timeout);\n            timeout = setTimeout(later, wait);\n            if (callNow) func.apply(context, args);\n          };\n        }\n        ;\n\n        // keep track latest AJAX call's timestamp\n        var latestAjaxCallDateTime;\n        var diseaseSearch = debounce(function (search_data) {\n          //var set_icd_name = $('#icd_name').attr('data-icdname');\n          if (search_data === '') {\n            $('#disease_results').empty().show().removeClass('disease-result');\n            $('.show-error').addClass('has-error');\n            $('.text-error-message').show();\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            if (search_data.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'diseasesearch',\n                data: {\n                  search: search_data\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#disease_loader').show();\n                },\n                success: function (disease_response) {\n                  // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                  // if current timestamp is older than the latest timestamp, then\n                  // omit the request\n                  // or if one of the results was selected then stop ajax search\n                  if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                    console.log('returned');\n                    return;\n                  }\n                  var html = '';\n                  html += '<ul class=\"disease-list\">';\n                  if (disease_response.length > 0) {\n                    $.each(disease_response, function (index, val) {\n                      var disease_nme = val.name + ', ' + val.organ.name + ', ' + val.system.name;\n                      html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseId=\"' + val.id + '\" data-organId=\"' + val.organ.id + '\" data-organName=\"' + val.organ.name + '\" data-systemId=\"' + val.system.id + '\" data-systemName=\"' + val.system.name + '\">' + disease_nme + '</li>';\n                    });\n                  } else {\n                    html += '<li class=\"text-capitalize btn-default\">No disease name found</li>';\n                  }\n                  html += '<li class=\"diseasedata text-capitalize btn-default\" data-diseaseOther=\"1\">Other</li>';\n                  html += '</ul>';\n                  $('#disease_results').html(html).show().addClass('disease-result');\n                },\n                complete: function () {\n                  $('#disease_loader').hide();\n                }\n              });\n            }\n          }\n        }, 250);\n        $(document).on('keyup', '.disease_name_input', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          diseaseSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var systemSearch = debounce(function (search_data) {\n          //var set_icd_name = $('#icd_name').attr('data-icdname');\n          if (search_data === '') {\n            $('#system_results').empty().show().removeClass('system-result');\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            if (search_data.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'systemsearch',\n                data: {\n                  search: search_data\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#system_loader').show();\n                },\n                success: function (system_response) {\n                  // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                  // if current timestamp is older than the latest timestamp, then\n                  // omit the request\n                  // or if one of the results was selected then stop ajax search\n                  if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                    //console.log('returned');\n                    return;\n                  }\n                  var html = '';\n                  html += '<ul class=\"system-list\">';\n                  if (system_response.length > 0) {\n                    $.each(system_response, function (index, val) {\n                      html += '<li class=\"systemdata text-capitalize btn-default\" data-systemId=\"' + val.id + '\">' + val.name + '</li>';\n                    });\n                  } else {\n                    html += '<li class=\"text-capitalize btn-default\">No system name found</li>';\n                  }\n                  html += '<li class=\"systemdata text-capitalize btn-default\" data-diseaseOther=\"2\">Other</li>';\n                  html += '</ul>';\n                  $('#system_results').html(html).show().addClass('system-result');\n                },\n                complete: function () {\n                  $('#system_loader').hide();\n                }\n              });\n            }\n          }\n        }, 250);\n        $(document).on('keyup', '.system_name_input', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          systemSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var organSearch = debounce(function (search_data) {\n          //var set_icd_name = $('#icd_name').attr('data-icdname');\n          if (search_data === '') {\n            $('#organ_results').empty().show().removeClass('organ-result');\n            $('.dkbc_clear_class').hide();\n          } else {\n            $('.dkbc_clear_class').show();\n            if (search_data.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'organsearch',\n                data: {\n                  search: search_data\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                beforeSend: function () {\n                  $('#organ_loader').show();\n                },\n                success: function (disease_response) {\n                  // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                  // if current timestamp is older than the latest timestamp, then\n                  // omit the request\n                  // or if one of the results was selected then stop ajax search\n                  if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                    //console.log('returned');\n                    return;\n                  }\n                  var html = '';\n                  html += '<ul class=\"organ-list\">';\n                  if (disease_response.length > 0) {\n                    $.each(disease_response, function (index, val) {\n                      html += '<li class=\"organdata text-capitalize btn-default\" data-organId=\"' + val.id + '\"  data-systemId=\"' + val.organsystems[0].system_id + '\" data-systemName=\"' + val.organsystems[0].systems.name + '\">' + val.name + '</li>';\n                    });\n                  } else {\n                    html += '<li class=\"text-capitalize btn-default\">No organ name found</li>';\n                  }\n                  html += '<li class=\"organdata text-capitalize btn-default\" data-diseaseOther=\"3\">Other</li>';\n                  html += '</ul>';\n                  $('#organ_results').html(html).show().addClass('organ-result');\n                },\n                complete: function () {\n                  $('#organ_loader').hide();\n                }\n              });\n            }\n          }\n        }, 250);\n        $(document).on('keyup', '.organ_name_input', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          organSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var diagnosticAjaxSearch = debounce(function (search_data) {\n          if (search_data.length >= _environment.default.CONSTANTS.search_trigger_length && search_data != '') {\n            // before executing the AJAX call, store the latest timestamp\n            latestAjaxCallDateTime = moment();\n            // console.log(searchkey + ':'+latestAjaxCallDateTime);\n            // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n            // as the latest timestamp\n            var currentAjaxCallDateTime = latestAjaxCallDateTime;\n            $.ajax({\n              type: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'diagnostic?searchdata=' + search_data,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#diagnostic_loader').show();\n              },\n              success: function (res) {\n                // console.log(search_data + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime +':::'+ stopAjaxSearch);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  //console.log('returned');\n                  return;\n                }\n                var html = '';\n                html += '<ul class=\"diagnostic-search-list\">';\n                if (res.data.length > 0) {\n                  $.each(res.data, function (index, val) {\n                    if (val.status == '1' && val.id != '') {\n                      html += '<li class=\"diagnosticOutComes text-capitalize btn-default\" data-imaging=\"' + val.imaging + '\" data-parentid=\"' + val.parent_id + '\" data-type=\"' + val.datatype + '\" data-unitid=\"' + val.outcomes_uom_id + '\" data-unit=\"' + val.unit_name + '\" data-rangeType=\"' + val.range_type + '\" data-lower=\"' + val.lower_range + '\" data-upper=\"' + val.upper_range + '\" data-groupId=\"' + val.dtg_id + '\" data-groupName=\"' + val.group_name + '\" data-diagnosticid=\"' + val.diagnostic_test_id + '\" data-diagnosticname=\"' + val.name + '\">' + val.test_name + '</li>';\n                    } else {\n                      html += '<li class=\"diagnosticOutComes text-capitalize btn-default\" data-parentid=\"' + val.parent_id + '\" data-type=\"' + val.datatype + '\" data-groupId=\"' + val.gid + '\" data-groupName=\"' + val.gname + '\">' + val.test_name + '</li>';\n                    }\n                  });\n                } else {\n                  html += '<li class=\"text-capitalize btn-primary\">No test / group found</li>';\n                }\n                html += '</ul>';\n                $('#diagnostic_results').html(html).show().addClass('diagnostic-search-result');\n              },\n              complete: function () {\n                $('#diagnostic_loader').hide();\n              }\n            });\n          } else if (search_data.length == 0) {\n            $('#diagnostic_results').val('');\n            $('#diagnostic_results').html('').hide().removeClass('diagnostic-search-result');\n          }\n        }, 250);\n        // Double percentage base search function on click, Shubh Tiwari 30-01-2024\n        $(document).on('click', '#diagnostictree', function (event) {\n          event.preventDefault();\n          var val = $(this).data('tree-value');\n          var search_data = val.trim();\n          stopAjaxSearch = false;\n          diagnosticAjaxSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        $(document).on('keyup', '.diagnostic_test_name', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          diagnosticAjaxSearch(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n        var ajaxSearch = debounce(function (searchkey, input_id) {\n          if (searchkey === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('prescribe-medicine-search-result');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            // Minimum three character serach, Shubh Tiwari, 16 Nov 2022\n            if (searchkey.length > _environment.default.CONSTANTS.search_trigger_length) {\n              // before executing the AJAX call, store the latest timestamp\n              latestAjaxCallDateTime = moment();\n              // console.log(searchkey + ':'+latestAjaxCallDateTime);\n              // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n              // as the latest timestamp\n              var currentAjaxCallDateTime = latestAjaxCallDateTime;\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'billing/prescribemedicinesearch',\n                data: {\n                  query: searchkey\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                }\n              }).done(function (data) {\n                // console.log(searchkey + ':'+latestAjaxCallDateTime + ':'+ currentAjaxCallDateTime);\n                // if current timestamp is older than the latest timestamp, then\n                // omit the request\n                // or if one of the results was selected then stop ajax search\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  // console.log('returned');\n                  return;\n                }\n                $('[id^=\"results\"]').empty();\n                $('#results' + input_id[1]).html(data).show().addClass('prescribe-medicine-search-result');\n                var input_top = $('#results' + input_id[1]).find('ul.medicine-list').position().top;\n                //Find the scroll position of the div if user has scrolled the medicine grid\n                var scrollFromTop = Math.ceil($('.inner_table').scrollTop());\n\n                //adjust the Top position of the the results element by subtracting amount of scroll.\n                var results_top = parseFloat(input_top) - parseFloat(scrollFromTop);\n                // console.log(\"scrollFromTop=\"+scrollFromTop);\n                // console.log(\"ulli_height=\"+ulli_height);\n                // console.log(\"results_top=\"+results_top);\n                // console.log(\"input_top=\"+input_top);\n                $('#results' + input_id[1]).find('ul.medicine-list').css('top', parseFloat(results_top));\n              });\n            }\n          }\n        }, 250); //wait 250ms to ensure user has stopped typing.\n\n        $(document).on('keyup', '.prescribeinput', function (e) {\n          if (e.which == 37 || e.which == 38 || e.which == 39 || e.which == 40) {\n            return false;\n          }\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          //console.log(input_id[2]);\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 10 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          stopAjaxSearch = false; //Nishant 6-mar-2023: re-enable search on keyup.\n          //Nishant 26-Feb-2023: call this function when user has stopped typing instead of doing on every keystroke.\n          ajaxSearch(val, input_id);\n          //Shubh 19-May-2023: call this function to prevent duplicate ajax request when user back or forward to the icpattend or doctor-dashbaord .\n          e.preventDefault();\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          return false;\n        });\n\n        /*This script is used for Check or Uncheck All checkboxes July 25 2019 Shubh Tiwari */\n        $(document).on('change', '.checkAll', function () {\n          var checked = $(this).is(':checked');\n          $('.geometry').prop('checked', checked);\n          $('.checkAll').prop('checked', checked); // Sync both header and footer checkboxes\n        });\n\n        /*This script is used for Changing state of checkAll checkbox July 25 2019 Shubh Tiwari */\n        $(document).on('click', '.geometry', function () {\n          var allChecked = $('.geometry').length === $('.geometry:checked').length;\n          $('.checkAll').prop('checked', allChecked); // Update both header and footer\n        });\n\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.cw-Medicine', function (event) {\n          $('#prescribe_medmix_name').val('');\n          //This below code is used for prevent the user to mix a medicine with mix, Rahul khan, 12 Sept 2019\n          var medicineMixCheck = [];\n          var medicineSingleCheck = [];\n          var formFind = [];\n          var medicineEmpty = [];\n          var mixMedicineDupli = [];\n          var formArray = [];\n          var appointment_id = $('input[name=appointment_id]').val();\n          $('#cwPrescribeForm' + appointment_id + ' tbody td input:checked').each(function () {\n            var checkBoxId = $(this).attr('id');\n            var RowidNum = checkBoxId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + RowidNum).val();\n            var medicineName = $('#medicine_name-' + RowidNum).val();\n            var medicineDataValue = $('#medicine_name-' + RowidNum).attr('data-medicine');\n            var medicineData = $('.cw-search-box').find(\"input[data-medicine*='\" + medicineDataValue + \"']\");\n            var med_form = $('#prescribeform-' + RowidNum).val();\n            var from_text = $('#prescribeform-' + RowidNum).find(\"option[value = '\" + med_form + \"']\").text();\n            formArray.push(from_text);\n            if (medicineData.length > 1) {\n              var dupliMedicine = $(medicineData).attr('id');\n              var dupliMedicineId = dupliMedicine.replace('medicine_name-', '');\n              var checkedLenght = $('input#checkboxid-' + dupliMedicineId + ':checked').length;\n              if (checkedLenght > 0) {\n                mixMedicineDupli.push(dupliMedicineId);\n              }\n            }\n            if (medicineName == '') {\n              medicineEmpty.push(RowidNum);\n            } else if (medicineType != 'single') {\n              medicineMixCheck.push(checkBoxId);\n            } else {\n              medicineSingleCheck.push(RowidNum);\n            }\n          });\n          var duplicate_form = formArray.every((val, i, arr) => val === arr[0]);\n          //console.log(duplicate_form);\n          var firstMedicineId = medicineSingleCheck[0];\n          $('#prescribeform-' + firstMedicineId + ' option').each(function () {\n            var formText = $(this).text();\n            medicineSingleCheck.forEach(function (id) {\n              if (id != firstMedicineId) {\n                var form = $('#prescribeform-' + id).find(\"option[value*='-\" + formText + \"-']\");\n                var formCode = form.text();\n                var indexvalue = formFind.indexOf(formCode);\n                //console.log(form.length);\n                if (form.length > 0) {\n                  // console.log(formCode);\n                  if (indexvalue == -1) {\n                    // console.log(\"Tet\");\n                    formFind.push(formCode);\n                    //console.log(formFind);\n                  }\n                } else {\n                  if (formCode != '') {\n                    formFind.splice(formFind.indexOf(formCode), 1);\n                  }\n                }\n              }\n            });\n          });\n          // return false;\n          //console.log(formFind);\n          // return false;\n          var checked = $('#cwPrescribeForm' + appointment_id + ' tbody td input:checked').length >= 2;\n          if (medicineEmpty.length > 0) {\n            swal({\n              text: 'Please select medicine for all rows, which you want to mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (mixMedicineDupli.length > 1) {\n            swal({\n              text: 'You cannot add same medicine into mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (formFind.length == 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (medicineMixCheck.length > 0) {\n            swal({\n              text: 'You cannot add a medicine into a mix. Kindly unmix first and then select all medicines to add to the mix.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (duplicate_form == false) {\n            swal({\n              text: 'These medicines cannot be mixed as forms do not match.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            Swal.fire({\n              title: 'Are you sure?',\n              text: 'Do you want to mix these medicines?',\n              icon: 'warning',\n              width: 600,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              allowOutsideClick: false,\n              confirmButtonText: 'Yes, mix it!'\n            }).then(result => {\n              if (result.isConfirmed) {\n                _this.mixMedicineRow();\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              } else {\n                $('.geometry').prop('checked', false);\n                $('.checkAll').prop('checked', false);\n              }\n            });\n          }\n        });\n\n        /*This script is used for Expand and Collaps view history and prescribe table both July 20 2019 Shubh Tiwari */\n        $('.btn2').click(function () {\n          $('#sidebar').addClass('active');\n          $('#sidebar li a span').hide();\n          //$('a.nav-h').css('display', 'none');\n          $('#cw-details-table').toggleClass('cwtable-expand');\n          var arrowClass = $('.navbar-btn').find('.fa-arrow-left');\n          if (arrowClass.length > 0) {\n            $('#sidebarCollapse').find($('.fas')).removeClass('fa-arrow-left');\n            $('#sidebarCollapse').find($('.fas')).addClass('fa-arrow-right');\n          }\n          var checkClass = $('#sidebar').hasClass('active');\n          //console.log(checkClass);\n          if (checkClass == true) {\n            $('#left-content').removeClass('col-md-2');\n            $('.fr-note').removeClass('expand-urgent-button');\n            $('.fr-note').addClass('collapse-urgent-button');\n            $('#left-content').addClass('col-md-1');\n            $('#right-content').removeClass('col-md-10');\n            $('#right-content').addClass('col-md-11');\n            // for vital blood type filter\n            $('.bt-filter').removeClass('e-vt-bt');\n            $('.bt-filter').addClass('c-vt-bt');\n            // for vital height filter\n            $('.h-filter').removeClass('e-vt-h');\n            $('.h-filter').addClass('c-vt-h');\n            // for vital weight filter\n            $('.w-filter').removeClass('e-vt-w');\n            $('.w-filter').addClass('c-vt-w');\n            // for vital body temp filter\n            $('.btp-filter').removeClass('e-vt-btp');\n            $('.btp-filter').removeClass('text-label-last');\n            $('.btp-filter').addClass('c-vt-btp');\n            // for message log doctor dropdown\n            $('#assign_doctor').removeClass('e-re-assign-doctor');\n            $('#assign_doctor').addClass('c-re-assign-doctor');\n            // for message log list\n            $('.mlg-list').removeClass('e-message-div');\n            $('.mlg-list').addClass('c-message-div');\n          } else {\n            $('.fr-note').removeClass('collapse-urgent-button');\n            $('.fr-note').addClass('expand-urgent-button');\n            $('#left-content').removeClass('col-md-1');\n            $('#left-content').addClass('col-md-2');\n            $('#right-content').removeClass('col-md-11');\n            $('#right-content').addClass('col-md-10');\n            // for vital blood type filter\n            $('.bt-filter').addClass('e-vt-bt');\n            $('.bt-filter').removeClass('c-vt-bt');\n            // for vital height filter\n            $('.h-filter').addClass('e-vt-h');\n            $('.h-filter').removeClass('c-vt-h');\n            // for vital weight filter\n            $('.w-filter').addClass('e-vt-w');\n            $('.w-filter').removeClass('c-vt-w');\n            // for vital body temp filter\n            $('.btp-filter').addClass('e-vt-btp');\n            $('.btp-filter').addClass('text-label-last');\n            $('.btp-filter').removeClass('c-vt-btp');\n            // for message log doctor dropdown\n            $('#assign_doctor').addClass('e-re-assign-doctor');\n            $('#assign_doctor').removeClass('c-re-assign-doctor');\n            // for message log list\n            $('.mlg-list').addClass('e-message-div');\n            $('.mlg-list').removeClass('c-message-div');\n          }\n          jQuery.noConflict();\n          $('#visithistoryPopup').modal('show');\n        });\n        /*This script is used for Unmix atleast one mix checkbox July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.undo-delete-row', function (event) {\n          // here added appointment_id because prescription form id is dynamic, Written as on 13 April 2022 by Shubh Tiwari\n          var appointment_id = $('input[name=appointment_id]').val();\n          var checked = $('#cwPrescribeForm' + appointment_id + ' tbody td input:checked').length > 0;\n          var singleMedicine = [];\n          $('#cwPrescribeForm' + appointment_id + ' tbody td input:checked').each(function () {\n            var rowId = $(this).attr('id');\n            var rowidNum = rowId.replace('checkboxid-', '');\n            var medicineType = $('#medicine_type-' + rowidNum).val();\n            if (medicineType == 'single') {\n              singleMedicine.push(rowidNum);\n            }\n          });\n          if (singleMedicine.length > 0) {\n            $('.checkAll').prop('checked', false);\n            $('.geometry').prop('checked', false);\n            swal({\n              text: 'Please select only mix medicine to unmix.',\n              icon: 'info',\n              buttons: 'Ok'\n            });\n            return false;\n          } else if (!checked) {\n            event.preventDefault();\n            swal({\n              text: 'Please check at least one mix checkbox to unmix medicine',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            swal({\n              title: 'Are you sure you want to unmix medicine?',\n              icon: 'warning',\n              buttons: true,\n              dangerMode: true\n            }).then(willDelete => {\n              if (willDelete) {\n                var uniqueserialnumberArray = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).closest('tr').attr('data-order');\n                }).get();\n                //console.log(uniqueserialnumberArray);\n                var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n                  return $(this).val();\n                }).get();\n                //console.log(arrays);\n                arrays.forEach(function (index) {\n                  var table1 = $('#mixtale-' + index);\n                  $(table1).find('tr:gt(0)').each(function () {\n                    //var max_count = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase()\n                    //var serial_no = max_count;\n                    var cnt = $(this).data('mixrowid');\n                    //console.log(cnt);\n                    var table_row_id = $(this).data('ontheflyrow');\n                    var serial_no = table_row_id;\n                    //console.log(table_row_id);\n                    var medicine = $('.medicine_name-' + cnt).val();\n                    var max = _this.rowMaxSerialNo();\n                    var next_serial_no = parseInt(max) + 1;\n                    var original_serial_no = $('.medicine_name-' + cnt).attr('data-uniqueserial');\n                    var singleMedicineform = $('.medicine_name-' + cnt).attr('data-singleMedicineform');\n                    var formcode = singleMedicineform.replace(/\\d+/g, '');\n                    var potency = $('.potency-' + cnt).val();\n                    var potency_id = $('#potency_id-' + cnt).val();\n                    var dilution = $('.dilution-' + cnt).val();\n                    var medicine_id = $('#medicine_id-' + cnt).val();\n                    var prescribeform = $('.prescribeform-' + cnt).clone().attr('id', 'prescribeform-' + cnt);\n                    //console.log(prescribeform);\n                    var instruction = $('.instructionItem').clone().attr('id', 'instruction-' + cnt);\n                    var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + cnt).find('option:selected').val();\n                    //console.log(originalSelects);\n                    var factor = 1;\n                    var html = '';\n                    html += '<tr id=\"id-' + serial_no + '\" class=\"tableRow previousRow\" data-order=\"' + original_serial_no + '\" data-medform=\"' + singleMedicineform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + original_serial_no + '\" data-uniqueserial=\"' + original_serial_no + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" autocomplete=\"off\" id=\"medicine_name-' + serial_no + '\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-type=\"single\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" /> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\" id=\"medicine_type-' + serial_no + '\" value=\"single\"/> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"/><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td> <input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" value=\"' + potency + '\" type=\"text\" readonly=\"readonly\" /> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td> <input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" value=\"' + dilution + '\" type=\"text\" readonly=\"readonly\"/></td>';\n                    /**************This below function is used for getting the all form for perticular medicine******************/\n                    $.ajax({\n                      type: 'POST',\n                      url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                      data: {\n                        potency: potency_id,\n                        medicine: medicine_id\n                      },\n                      headers: {\n                        \"Authorization\": `Bearer ${utoken}`\n                      },\n                      success: function (response) {\n                        $('#prescribeform-' + serial_no).empty();\n                        response.forEach(function (form) {\n                          if (form.fcode == formcode) {\n                            var selected = 'selected';\n                          } else {\n                            var selected = '';\n                          }\n                          $('#prescribeform-' + serial_no).append('<option  ' + selected + ' value=\"' + form.gId + '-' + form.fcode + '-' + form.fname + '\">' + form.fcode + '</option>');\n                        });\n                      }\n                    });\n                    /***********End********************/\n                    //This below code line is Responsible for Medicine form listing\n                    // html += '<td> <select name=\"formItem['+serial_no+']\" class=\"form-control formItem\" id=\"prescribeform-'+serial_no+'\">'+prescribeform[0].innerHTML+'</select></td>';\n                    html += '<td> <select name=\"formItem[' + serial_no + ']\" class=\"form-control formItem\" id=\"prescribeform-' + serial_no + '\"><option value=\"10-G-Globule\">G</select></td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td> <input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevialItem\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + factor + '\"/></td>';\n                    html += '<td><select name=\"instructionItem[' + serial_no + ']\" class=\"form-control cwareinstruction-' + serial_no + ' iother-' + serial_no + ' instructionItem\" id=\"instruction-' + serial_no + '\">' + instruction[0].innerHTML + '</select><input  id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n                    var p = $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + table_row_id).after(html);\n                    if (p.length == 0) {\n                      var max = _this.rowMaxSerialNo();\n                      var next_serial_no = parseInt(max) + 1;\n                      $('#prescriptionmedicine').children('tbody:last').append(html);\n                      $('#srno-' + serial_no).val(next_serial_no);\n                      $('#id-' + serial_no).attr('data-order', next_serial_no);\n                      $('#srno-' + serial_no).attr('value', next_serial_no);\n                      $('#srno-' + serial_no).attr('data-uniqueserial', next_serial_no);\n                    }\n                    _this.checkEnableCheckbox();\n                    // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n                    $('.editOption-' + serial_no).show();\n                    $('.editOption-' + serial_no).attr('placeholder', 'Select Instruction');\n                  });\n                  $('.cw-mix-medicine-' + index).remove();\n                  $('.checkAll').prop('checked', false);\n                });\n              } else {\n                $('.checkAll').prop('checked', false);\n                $('.geometry').prop('checked', false);\n              }\n            });\n          }\n        });\n        /*This script is used for check at least two checkbox and open mix medicine popup July 20 2019 Shubh Tiwari */\n        $(document).on('click', '.combo-prescription', function (event) {\n          $('#prescribe_dosage_instruction').val('');\n          $('#selecteddosage').empty();\n          $('.otherOption').hide();\n          var appointment_id = $('input[name=appointment_id]').val();\n          // Appointment ID added here because on icpattend page due to tab change, Appointment ID added to Form ID of prescription, Written as on 13 April 2022 by Shubh Tiwari\n          var checked = $('#cwPrescribeForm' + appointment_id + ' tbody td input:checked').length >= 2;\n          if (!checked) {\n            swal({\n              text: 'Please check at least two checkbox',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            return false;\n          } else {\n            event.preventDefault();\n            jQuery.noConflict();\n            var arrays = $('#prescriptionmedicine tbody td input[type=checkbox]:checked').map(function (index) {\n              return $(this).val();\n            }).get();\n            _this.controllerFor('billing').send('getCheckedVaue', arrays);\n            $('#cwComboInstruction').modal('show');\n            $('#prescribe_dosage_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit 17 July 2025 Shubh Tiwari */\n        // Create a mapping object for correcting instructions\n        const instructionMapping = {\n          \"1 & 2 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"1, 2 and 3 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"1, 2, 3 & 4 alternately every 1.5 hours\": \"alternately every 1.5 hours\",\n          \"1, 2, 3 and 4 alternately every 2 hours\": \"alternately every 2 hours\",\n          \"2 & 3 alternately every 3 hours\": \"alternately every 3 hours\",\n          \"2, 3, 4 alternately every 2 hours\": \"alternately every 2 hours\"\n        };\n        $('#dosage_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          let serialIdArray = [];\n          let serialNumbers = [];\n          let error = '';\n          const dosageVal = $('#prescribe_dosage_instruction option:selected').text().trim();\n          let instructionName = '';\n\n          // Check if 'Other' is selected or if a custom instruction is given\n          if (dosageVal === 'Other' || dosageVal !== 'Select Instruction') {\n            instructionName = $('.otherOption').val().trim();\n          }\n          console.log('instructionName before correction:', instructionName);\n\n          // Replace the incorrect instruction with the correct one based on the mapping\n          if (instructionMapping[instructionName]) {\n            instructionName = instructionMapping[instructionName];\n          }\n          console.log('instructionName after correction:', instructionName);\n          if (!instructionName) {\n            error = '<p>Enter Pharmacy Instruction</p>';\n            $('#prescribe_dosage_instruction').focus();\n          }\n          if (error) {\n            $('#dosageerror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#dosageerror .alert').fadeToggle(5000);\n            return; // Exit early on error\n          }\n          $('#cwComboInstruction').modal('hide');\n          $('.geometry, .checkAll').prop('checked', false);\n\n          // Collect serial numbers from the table\n          $('#cwarecombo td.rowvalue').each(function () {\n            const rowId = this.id;\n            const serialNumber = $(this).text().trim();\n            console.log('Row ID:', rowId, 'Serial Number:', serialNumber);\n            serialIdArray.push(rowId);\n            serialNumbers.push(serialNumber);\n          });\n\n          // Format serial numbers as \"1, 2 & 3\"\n          const formattedSerials = formatSerialNumbers([...serialNumbers]);\n          const fullInstruction = formattedSerials + ' ' + instructionName;\n\n          // Update the instruction for each serial ID\n          serialIdArray.forEach(serialId => {\n            const $instructionSelect = $('#instruction-' + serialId);\n            let $editOption = $('.editOption-' + serialId);\n\n            // Clear current selection\n            $instructionSelect.find('option:selected').removeAttr('selected');\n            if ($editOption.length === 0) {\n              const inputHtml = `<input \n                      id=\"edit_instruction-${serialId}\" \n                      name=\"instruction[${serialId}]\" \n                      class=\"editOption-${serialId} inst_other\"\n                      value=\"${fullInstruction}\" \n                      data-toggle=\"tooltip\" \n                      data-placement=\"bottom\" \n                      data-original-title=\"${fullInstruction}\"\n                  >`;\n              $instructionSelect.closest('td').append(inputHtml);\n            } else {\n              $editOption.val(fullInstruction).attr('value', fullInstruction).attr('data-original-title', fullInstruction).show();\n            }\n\n            // Set the select value\n            $instructionSelect.val(fullInstruction).find('option[value=\"' + fullInstruction + '\"]').attr('selected', true);\n          });\n          $('#prescribe_dosage_instruction').val('');\n          $('#other_combo_prescription').val('');\n          $('.other_combo_prescription').hide(100);\n        });\n\n        // Function to format serial numbers as \"1, 2 & 3\"\n        function formatSerialNumbers(serialNumbers) {\n          if (serialNumbers.length === 1) {\n            return serialNumbers[0];\n          }\n          const last = serialNumbers.pop();\n          return serialNumbers.join(', ') + ' & ' + last;\n        }\n\n        /*This script is used for other instruction popup July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.cware_other', function (event) {\n          $('#other_instruction').val('');\n          $('#otherinstructionid').empty();\n          var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n          var dropdown_id = dropdown_parent_id.split('-');\n          var dropdown_option_id = $(this).val();\n          if (dropdown_id != '' && dropdown_option_id == 1) {\n            event.preventDefault();\n            jQuery.noConflict();\n            _this.controllerFor('billing').send('setDropdownId', dropdown_id[1]);\n            $('#OtherInstruction').modal('show');\n            $('#other_instruction').focus();\n          }\n        });\n\n        /*This script is used for Dosage Instruction popup form submit July 20 2019 Shubh Tiwari */\n        $('#other_instructionForm').on('submit', function (event) {\n          event.preventDefault();\n          $('#other_instruction').empty();\n          var error = '';\n          var other_val = $('#other_instruction').val();\n          var insid = $('#otherinstructionid :input').val();\n          var other_value = $('.iother-' + insid + ' ' + 'option:selected').val();\n          if (other_val == '') {\n            error += '<p>Please enter other instruction</p>';\n            $('#other_instruction').focus();\n          }\n          if (error == '') {\n            $('#OtherInstruction').modal('hide');\n            if (other_value == 1) {\n              $('.iother-' + insid).append(\"<option selected=selected value='\" + other_val + \"' >\" + other_val + '</option>');\n            }\n            $('#other_instruction').val('');\n          } else {\n            $('#othererror').html('<div class=\"alert alert-danger\">' + error + '</div>');\n            $('#othererror .alert').fadeToggle(8000);\n          }\n        });\n\n        // This below jquery code is used to predefind instruction edit for combo Prescription Shubh Tiwari, 16 June 2023\n        $(document).on('keyup', '.otherOption', function (event) {\n          var initialText = $(this).val();\n          $('.otherOption').removeAttr('value');\n          $('.otherOption').val(initialText);\n          $('.otherOption').attr('value', initialText);\n          $('.otherOption').attr('data-original-title', initialText);\n        });\n\n        //This below Jquery code is used to make the drop down list of the Medicine instructions field - editable after selecting an instruction from the drop down list Shubh Tiwari, 10 Sept 2020\n        $(document).on('change', '#prescribe_dosage_instruction', function (event) {\n          var intruction_id = $(this).attr('id');\n          var initialText = $('#' + intruction_id + ' option:selected').text().trim();\n          // This condtion is used for clear other value when selcet other form INSTRUCTION dropdown Shubh Tiwari 1 April 2021\n          if (initialText !== 'Other') {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val(initialText);\n            $('.otherOption').attr('value', initialText);\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          } else {\n            $('.otherOption').removeAttr('value');\n            $('.otherOption').val('');\n            $('.otherOption').attr('value', '');\n            $('.otherOption').attr('placeholder', 'Please enter other value');\n            $('.otherOption').show();\n            $('.otherOption').focus();\n          }\n        });\n\n        /*This script is used for check dublicate medicine,potency,dilution and form July 20 2019 Shubh Tiwari */\n        $(document).on('change', '.formItem', function (ele) {\n          var error = '';\n          var duplicateMedicineArray = [];\n          var tableRowIdArray = [];\n          var serialnumberArray = [];\n          var dmf_tableRowIdArray = [];\n          var dmf_serialnumberArray = [];\n          var onspot_mix_duplicateMedicineArray = [];\n          $('.formItem').each(function () {\n            var factor_input_id = $(this).attr('id').split('-')[1];\n            var selectedForm = $('#prescribeform-' + factor_input_id).val();\n            var selectedOptionText = $('#prescribeform-' + factor_input_id + \" option[value^='\" + selectedForm + \"']\").text();\n            if (selectedOptionText != '') {\n              $('#medicinevial-' + factor_input_id).val('');\n              if (selectedOptionText == 'L') {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v = fvalue / 2;\n                var b = Math.ceil(v);\n                $('#medicinevial-' + factor_input_id).val(b);\n              } else {\n                var fvalue = $('#factor-' + factor_input_id).val();\n                var v1 = Math.ceil(fvalue / 4);\n                $('#medicinevial-' + factor_input_id).val(v1);\n              }\n            }\n          });\n          /* This code is used for changing data of table row medForm */\n          var currentRowId = ele.target.id.replace('prescribeform-', '');\n          var currentMedicineId = $('#medicine_id-' + currentRowId).val();\n          var selectedForm = $('#prescribeform-' + currentRowId).val();\n          var selectedOptionText = $('#prescribeform-' + currentRowId + \" option[value^='\" + selectedForm + \"']\").text();\n          var form_unique = parseInt(currentMedicineId, 10) + selectedOptionText;\n          $('#id-' + currentRowId).attr('data-medForm', form_unique);\n\n          /*Start code for checking single medicine dublicate medicine name, potency, dilution and form 24 Dec 2020 Shubh Tiwari*/\n          //This Row id used for getting the row number\n          var currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          // var currentMedicneValue  = $(\"#medicine_name-\"+currenyRowidNum).attr('data-medicine').trim();\n          var currentMedicneValue = $('#medicine_name-' + currenyRowidNum).attr('data-medicine');\n          var currentMedicineForm = $('#prescribeform-' + currenyRowidNum).val();\n          var currentMedicineFormValue = currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineItem').map(function () {\n            // var medicineName  = $(this).attr('data-medicine').trim();\n            var medicineName = $(this).attr('data-medicine');\n            var medicineRowId = $(this).attr('id');\n            var MedicinwRowNum = medicineRowId.split('-')[1];\n            var MedicineRowForm = $('#prescribeform-' + MedicinwRowNum).val();\n            var MedicineRowFormValue = MedicineRowForm.split('-')[1];\n            if (currenyRowidNum != MedicinwRowNum && currentMedicineFormValue == MedicineRowFormValue && currentMedicneValue == medicineName) {\n              duplicateMedicineArray.push(currenyRowidNum);\n              duplicateMedicineArray.push(MedicinwRowNum);\n              return MedicinwRowNum;\n            }\n          }).get();\n          var uniqueduplicateMedicineArray = duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortduplicateMedicineArray = uniqueduplicateMedicineArray.sort();\n          sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (duplicateMedicineArray.length > 0) {\n            var formName = _this.getFormName(currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + currentMedicneValue + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-medicine^='\" + currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, single medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var d_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n          var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n          var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n          var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n          $('.medicineItem').map(function () {\n            var d_medicineName = $(this).attr('data-medicine');\n            var d_medicineRowId = $(this).attr('id');\n            var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n            var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n            var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n            if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n              tableRowIdArray.push(d_currentRowidNum);\n              tableRowIdArray.push(d_MedicinwRowNum);\n              serialnumberArray.push(currentMedicineSerial_no);\n              serialnumberArray.push(previousMedicineSerial_no);\n              return d_MedicinwRowNum;\n            }\n          }).get();\n          var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var sortserialnumber = uniqueserialnumberArray.sort();\n          var sortTableRowIdArray = uniquetableRowIdArray.sort();\n          // console.log(sortserialnumber);\n          // console.log(sortTableRowIdArray);\n          if (sortserialnumber.length > 0) {\n            var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n            //console.log(getminimumserialnumber);\n            for (var i = 0; i < sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = getminimumserialnumber + getChar;\n              $('#srno-' + sortTableRowIdArray[i]).val(p);\n              $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n          /*Start code for checking onspot mix medicine dublicate and form 24 Dec 2020 Shubh Tiwari*/\n          var onspot_mix_currenyRowidNum = ele.target.id.replace('prescribeform-', '');\n          var onspot_mix_currentMedicneName = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicneValue = $('#mix_medicine_name-' + onspot_mix_currenyRowidNum).attr('data-med');\n          var onspot_mix_currentMedicineForm = $('#prescribeform-' + onspot_mix_currenyRowidNum).val();\n          var onspot_mix_currentMedicineFormValue = onspot_mix_currentMedicineForm.split('-')[1];\n          var duplicateRow = $('.medicineMixItem').map(function () {\n            var onspot_mix_medicineName = $(this).attr('data-med');\n            var onspot_mix_medicineRowId = $(this).attr('id');\n            var onspot_mix_MedicinwRowNum = onspot_mix_medicineRowId.split('-')[1];\n            var onspot_mix_MedicineRowForm = $('#prescribeform-' + onspot_mix_MedicinwRowNum).val();\n            var onspot_mix_MedicineRowFormValue = onspot_mix_MedicineRowForm.split('-')[1];\n            if (onspot_mix_currenyRowidNum != onspot_mix_MedicinwRowNum && onspot_mix_currentMedicineFormValue == onspot_mix_MedicineRowFormValue && onspot_mix_currentMedicneValue == onspot_mix_medicineName) {\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_currenyRowidNum);\n              onspot_mix_duplicateMedicineArray.push(onspot_mix_MedicinwRowNum);\n              return onspot_mix_MedicinwRowNum;\n            }\n          }).get();\n          var onspot_mix_uniqueduplicateMedicineArray = onspot_mix_duplicateMedicineArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var onspot_mix_sortduplicateMedicineArray = onspot_mix_uniqueduplicateMedicineArray.sort();\n          onspot_mix_sortduplicateMedicineArray.forEach(function (item) {\n            $('#id-' + item).addClass('duplicate');\n            var number = $('#srno-' + item).data('uniqueserial');\n            $('#srno-' + item).val(number);\n          });\n          if (onspot_mix_duplicateMedicineArray.length > 0) {\n            var error = '';\n            var formName = _this.getFormName(onspot_mix_currentMedicineFormValue);\n            //swal(\"Duplicate\", \"This row medicine is already added with this form and you can\\'t add the medicine with same form. Please change the Form.\", \"warning\");\n            error += \"<div class='alert alert-danger'><p class='error-font'>\" + '<b>' + onspot_mix_currentMedicneName + '</b>' + ' is already added with ' + '<b>' + formName + '</b>' + ' form, you cannot add it again with same form. Please change the form or remove this medicine.</p></div>';\n            Swal.fire({\n              icon: 'error',\n              title: 'Oops...',\n              html: error,\n              width: 600,\n              showCloseButton: true,\n              allowOutsideClick: false,\n              confirmButtonText: `Ok`\n            });\n          } else {\n            //currentMedicneValue\n            $(\"[data-med^='\" + onspot_mix_currentMedicneValue + \"']\").map(function () {\n              //console.log(this.id);\n              var idNum = this.id.replace('mix_medicine_name-', '');\n              $('#id-' + idNum).removeClass('duplicate');\n            });\n          }\n          /* Start code, mix medicine Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n          var dmf_currentRowidNum = ele.target.id.replace('prescribeform-', '');\n          var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n          var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n          var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n          var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n          $('.medicineMixItem').map(function () {\n            var dmf_medicineName = $(this).attr('data-med');\n            var dmf_medicineRowId = $(this).attr('id');\n            var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n            var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n            var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n            var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n            if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n              dmf_tableRowIdArray.push(dmf_currentRowidNum);\n              dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n              dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n              dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n              return dmf_MedicinwRowNum;\n            }\n          }).get();\n          var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n            return index === self.indexOf(elem);\n          });\n          var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n          var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n          // console.log(dmf_sortserialnumber);\n          // console.log(dmf_sortTableRowIdArray);\n          if (dmf_sortserialnumber.length > 0) {\n            var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n            //console.log(dmf_getminimumserialnumber);\n            for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n              var getChar = String.fromCharCode('A'.charCodeAt() + i);\n              var p = dmf_getminimumserialnumber + getChar;\n              $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n              $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n            }\n          }\n          /* End code, Checking medicine,potency,dilution are same but form diffrent 24 Dec 2020 Shubh Tiwari*/\n        });\n        // allow enter only numbers\n        _this.recalculateAmount.allowOnlyNumber();\n        //This below code block is added for prevent duplicate Medicine/Mix serial Number, 08 Aug 2019\n        $(document).on('keyup paste', '.srnoItem', function () {\n          $('.srnoItem').each(function () {\n            var value1 = $(this).val();\n            var id1 = $(this).attr('id');\n            var duplicateRow = $('.srnoItem').map(function () {\n              var value2 = $(this).val();\n              var id2 = $(this).attr('id');\n              if (id1 != id2 && value1 == value2) {\n                return value2;\n              }\n            }).get();\n            if (duplicateRow.length > 0) {\n              swal('Duplicate!', 'This medicine/Mix seriel number is occupied by already added Medcine/Mix.', 'error');\n              $('#' + id1).addClass('duplicate_serial');\n            } else {\n              $('#' + id1).removeClass('duplicate_serial');\n            }\n          });\n        });\n        /*This below script is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019 */\n        $(document).on('keyup keypress change paste', '.factorItem', function () {\n          $('.factorItem').each(function () {\n            var qty = $(this).val();\n            var table_row_id = $(this).parent().parent().attr('id');\n            var factor_id = $(this).attr('id');\n            // replace(/[^\\d.]/g, '');\n            var factor_input_id = $(this).attr('id');\n            var factor_id_code = factor_input_id.split('-')[1];\n            // Change factor value on change, Shubh Tiwari 05 July 2023\n            $('#factor-' + factor_id_code).removeAttr('value');\n            $('#factor-' + factor_id_code).val(qty);\n            $('#factor-' + factor_id_code).attr('value', qty);\n            $('#medicinevial-' + factor_id_code).removeAttr('value');\n            $('#medicinevial-' + factor_id_code).val(qty);\n            $('#medicinevial-' + factor_id_code).attr('value', qty);\n            var selectedForm = $('#prescribeform-' + factor_id_code).val();\n            var selectedOptionText = $('#prescribeform-' + factor_id_code + \" option[value^='\" + selectedForm + \"']\").text();\n            //This below condition is used to highlighted the zero factor medicine, Shubh Tiwari, 13 Aug 2019\n            if (qty > 1 || qty < 300) {\n              if (selectedOptionText != '') {\n                $('#medicinevial-' + factor_id_code).val('');\n                if (selectedOptionText == 'L') {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v = fvalue / 2;\n                  var b = Math.ceil(v);\n                  $('#medicinevial-' + factor_id_code).val(b);\n                } else {\n                  var fvalue = $('#factor-' + factor_id_code).val();\n                  var v1 = Math.ceil(fvalue / 4);\n                  $('#medicinevial-' + factor_id_code).val(v1);\n                }\n              }\n            }\n            if (qty > 300) {\n              swal({\n                text: 'Factor value cannot exceed 300.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + factor_id).val(1);\n              $('#medicinevial-' + factor_id_code).val(1);\n              var qty = 1;\n            }\n            if (qty < 1) {\n              $('#' + factor_id).val(0);\n              $('#medicinevial-' + factor_id_code).val(0);\n              var qty = 0;\n              $('#' + table_row_id).addClass('zerofactor');\n              $('#' + table_row_id).attr('title', 'None billing medicine');\n            } else {\n              $('#' + table_row_id).removeClass('zerofactor');\n              $('#' + table_row_id).removeAttr('title');\n            }\n          });\n        });\n        $(document).on('keyup keypress change paste', '.medicinevialItem ', function () {\n          $('.medicinevialItem').each(function () {\n            var vial = $(this).val();\n            var vaial_id = $(this).attr('id');\n            if (vial > 100) {\n              swal({\n                text: 'Vial value cannot exceed 100.',\n                icon: 'warning',\n                buttons: 'Ok'\n              });\n              $('#' + vaial_id).val(1);\n              var vial = 1;\n            }\n            if (vial < 1) {\n              $('#' + vaial_id).val(1);\n              var vial = 0;\n            }\n          });\n        });\n        $(document).bind('keyup', function (e) {\n          //This below code is used for avoding the double trigger issue\n          if (e.keyCode === 13) {\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            $('#disease_results').html('').show().removeClass('disease-result');\n            $('#system_results').html('').show().removeClass('system-result');\n            $('#organ_results').html('').show().removeClass('organ-result');\n          }\n        });\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          //This below code is used for avoding the double trigger issue\n          if (e.altKey && e.which == 65) {\n            //This condition is used for add New medicine by shortcut Alt+A\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.add-prescription-medicine').trigger('click');\n          } else if (e.altKey && e.which == 68) {\n            //This condition is used for removing the selected medicines by shortcut Alt+D\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.delete-row').trigger('click');\n          } else if (e.altKey && e.which == 77) {\n            //This condition is used for adding the on the fly Mix medicine by shortcut Alt+M\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.cw-Medicine').trigger('click');\n          } else if (e.altKey && e.which == 78) {\n            //This condition is used for unmixing the selected mix by shortcut Alt+N\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.undo-delete-row').trigger('click');\n          } else if (e.altKey && e.which == 67) {\n            //This condition is used for appling combo prescription mix by shortcut Alt+C\n            e.preventDefault();\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            // this.addPrescriptionMedicine();\n            $('.combo-prescription').trigger('click');\n          } else if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_name-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              //console.log(\"#results\" + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n        var advisedSearchReport = debounce(function (search_data) {\n          //console.log(search_data);\n          if (search_data.length > _environment.default.CONSTANTS.search_trigger_length && search_data != '') {\n            // before executing the AJAX call, store the latest timestamp\n            latestAjaxCallDateTime = moment();\n            // console.log(searchkey + ':'+latestAjaxCallDateTime);\n            // set the \"soon-to-be-executed\" AJAX call's timestamp to be the same\n            // as the latest timestamp\n            var currentAjaxCallDateTime = latestAjaxCallDateTime;\n            $.ajax({\n              type: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'diagnostic?searchdata=' + search_data,\n              //data: { search: search_data },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              beforeSend: function () {\n                $('#advised_report_loader').show();\n              },\n              success: function (res) {\n                if (currentAjaxCallDateTime.isBefore(latestAjaxCallDateTime) || stopAjaxSearch === true) {\n                  //console.log('returned');\n                  return;\n                }\n                // var html = '';\n                // html += '<ul class=\"report-list\">';\n                // if (res.data.length > 0) {\n                //   $.each(res.data, function (index, val) {\n                //     if (val.status == '1') {\n                //       html +=\n                //         '<li class=\"diagnosticdata text-capitalize btn-default\" data-diagnosticid=\"' +\n                //         val.id +\n                //         '\" data-diagnosticname=\"' +\n                //         val.name +\n                //         '\">' +\n                //         val.name +\n                //         '</li>';\n                //     }\n                //   });\n                //   html +=\n                //     '<li class=\"diagnosticdata text-capitalize btn-default\" data-diagnosticother=\"0\">Other</li>';\n                // } else {\n                //   html +=\n                //     '<li class=\"text-capitalize btn-default\">No diagnostic name found</li>';\n                // }\n                // html += '</ul>';\n                //$('#report_results').html(html).show().addClass('diagnostic-result');\n                var html = '';\n                html += '<ul class=\"diagnostic-search-list\">';\n                if (res.data.length > 0) {\n                  $.each(res.data, function (index, val) {\n                    if (val.status == '1' && val.id != '') {\n                      html += '<li class=\"diagnosticdata text-capitalize btn-default\" data-diagnosticid=\"' + val.diagnostic_test_id + '\" data-diagnosticname=\"' + val.name + '\"  data-tree=\"' + val.test_name + '\">' + val.test_name + '</li>';\n                    } else {\n                      html += '<li class=\"diagnosticdata text-capitalize btn-default\" data-parentid=\"' + val.parent_id + '\" data-type=\"' + val.datatype + '\" data-groupId=\"' + val.gid + '\" data-groupName=\"' + val.gname + '\" data-tree=\"' + val.test_name + '\">' + val.test_name + '</li>';\n                    }\n                  });\n                  html += '<li class=\"diagnosticdata text-capitalize btn-default\" data-diagnosticother=\"0\">Other</li>';\n                } else {\n                  html += '<li class=\"text-capitalize btn-primary\">No test / group found</li>';\n                }\n                html += '</ul>';\n                $('#report_results').html(html).show().addClass('diagnostic-result');\n              },\n              complete: function () {\n                $('#advised_report_loader').hide();\n              }\n            });\n          } else {\n            $('#report_results').empty().hide().removeClass('diagnostic-result');\n          }\n        }, 250);\n        $(document).on('keyup', '.advised_report_name', function (event) {\n          event.preventDefault();\n          var val = $(this).val();\n          var search_data = val.trim();\n          stopAjaxSearch = false; //Shubh Tiwari 19-may-2023: re-enable search on keyup.\n          advisedSearchReport(search_data);\n          jQuery.noConflict();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          return false;\n        });\n      });\n      $(document).on('click', '.Ad_other', function (event) {\n        event.preventDefault();\n        $('#advised_report_name').addClass('advised_report_name');\n        $('.reports_other').html('');\n      });\n      $(document).on('click', '.diagnosticdata', function (event) {\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 2-may-2023: if clicked, then we stop the ajax search.\n        var groupname = $.trim($(this).data('groupname'));\n        var diagnosticId = $.trim($(this).data('diagnosticid'));\n        var diagnosticOther = $.trim($(this).data('diagnosticother'));\n        var diagnosticName = $.trim($(this).data('diagnosticname'));\n        var plainText = $.trim($(this).data('tree'));\n        var treeName = $('<div>').html(plainText).text();\n        if (diagnosticName !== undefined && diagnosticName !== \"\") {\n          //var item = diagnosticName;\n          var item = treeName;\n        } else if (groupname !== undefined && groupname !== \"\") {\n          //var item = groupname;\n          var item = treeName;\n        } else {\n          var item = $.trim($(event.target).text());\n        }\n        if (diagnosticOther == '0') {\n          var h = '';\n          $('#advised_report_name').val('');\n          $('#advised_report_id').val('');\n          $('#advised_report_name_o').val('');\n          $('#advised_report_name').focus();\n          $('#advised_report_name').removeClass('advised_report_name');\n          h += '<span>Other Report &nbsp <button class=\"btn btn-danger btn-xs Ad_other\"><i class=\"fas fa-times\"></i></button></span>';\n          $('.reports_other').html(h);\n        } else {\n          $('#advised_report_name').val(item);\n          $('#advised_report_id').val(diagnosticId);\n          $('#advised_report_name_o').val(diagnosticName);\n        }\n        $('#report_results').html('').hide().removeClass('diagnostic-result');\n      });\n      $(document).on('click', '.diagnosticOutComes', async function (event) {\n        //This function is used for not double click, Writen By Shubh Tiwari as on 16-05-2023\n        if (isDoubleClicked($(this))) return;\n        stopAjaxSearch = true; //Nishant 2-may-2023: if clicked, then we stop the ajax search.\n        var item = $.trim($(event.target).text());\n        var html = '';\n        var rangetype = $.trim($(this).data('rangetype'));\n        var dataType = $.trim($(this).data('type'));\n        var groupid = $.trim($(this).data('groupid'));\n        var groupname = $.trim($(this).data('groupname'));\n        var parentid = $.trim($(this).data('parentid'));\n        var diagnosticname = $.trim($(this).data('diagnosticname'));\n        var test_id = $.trim($(this).data('diagnosticid'));\n        var unit_id = $.trim($(this).data('unitid'));\n        var unit = $.trim($(this).data('unit'));\n        var lower = $.trim($(this).data('lower'));\n        var upper = $.trim($(this).data('upper'));\n        var imaging = $.trim($(this).data('imaging'));\n        if (item.lastIndexOf('>') > 0) {\n          //Only if we had groups, then we show group names\n          item = item.substr(0, item.lastIndexOf('>') + 1); //Truncate the last part of string to remove redundant group name as we show it in input box also\n          $('#grouppath').html('<i>' + item + '</i>');\n        }\n        if (dataType == 'from_group') {\n          $.ajax({\n            type: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'grouptest',\n            data: {\n              gid: groupid\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('.row-second').css('display', 'none');\n              $('.row-seven').css('display', 'block');\n              $('#diagnostic_loader').show();\n            },\n            success: function (res) {\n              $('#diagnostic_loader').hide();\n              $('#group_tests_list').empty();\n              $('#tests_list').empty();\n              $('#dnorecod').html('');\n              var html = '';\n              //console.log(\"res:\"+res.data);\n              var group_data = res.data;\n              $('#diagnostic_test_name').val(groupname);\n              $('#group_id').val(groupid);\n              $('#parent_group_id').val(parentid);\n              if (group_data.length > 0) {\n                group_data.forEach(async function (val, index) {\n                  var binary = '';\n                  var threshold = '';\n                  var imagingHTML = '';\n                  var cflHTML = '';\n                  if (val.range_type == 'bnr') {\n                    // Binary html\n                    binary = getBinaryHTML(binary, index, val); //nishant 23-jan-2023: refactor code\n                  } else if (val.range_type == 'th') {\n                    // Threshold html\n                    threshold = getThresholdHTML(threshold, index, val);\n                  } else if (val.range_type == 'img') {\n                    // imaging html - nishant 29-aug-2022\n                    imagingHTML = getImagingHTML(imagingHTML, index, val);\n                  } else if (val.range_type == 'cfl') {\n                    // choose from list html\n                    await getCflHTML(index, val, val.diagnostic_test_id, function retval(d) {\n                      cflHTML = d;\n                    });\n                  }\n                  html += '<div class=\"row form-group\" id=\"' + (index + 1) + '\">';\n                  html += '<label class=\"col-sm-3 dmargin\" for=\"urgent\"><input type=\"hidden\" name=\"test_id[' + (index + 1) + ']\" value=\"' + val.diagnostic_test_id + '\"><input type=\"hidden\" name=\"test_name[' + (index + 1) + ']\" value=\"' + val.name + '\">' + val.name + '</label>';\n                  if (val.range_type == 'bnr') {\n                    // Here Append Binary Html\n                    html += binary;\n                  } else if (val.range_type == 'th') {\n                    // Append Threshold html\n                    html += threshold;\n                  } else if (val.range_type == 'img') {\n                    // Append imaging html\n                    html += imagingHTML;\n                  } else if (val.range_type == 'cfl') {\n                    // Append choose from list html\n                    html += cflHTML;\n                  }\n                  html += '</div>';\n                  $('#group_tests_list').html(html);\n                  index++;\n                });\n              } else {\n                var text = 'No record found in ' + groupname;\n                var message = '<span class=\"help-block\">' + text + '</span>';\n                $('#dnorecod').html(message);\n                $('#group_tests_list').empty();\n              }\n            },\n            complete: function (res) {\n              //console.log('complete log');\n            },\n            error: function (res) {\n              //console.log(res);\n            }\n          });\n        } else if (dataType == 'from_tests') {\n          var html = '';\n          var binary = '';\n          var imagingHTML = '';\n          var threshold = '';\n          var cflHTML = 'loading...';\n          $('#dnorecod').html('');\n          $('.row-second').css('display', 'block');\n          $('.row-seven').css('display', 'none');\n          $('#group_tests_list').empty();\n\n          //Nishant 23-Jan-2023: Create val object similar to 'from_group' case for rafactoring code and reusing same functions\n          var val = {\n            lower_range: lower,\n            upper_range: upper,\n            outcomes_uom_id: unit_id,\n            range_type: rangetype,\n            imaging: imaging,\n            unit_name: unit\n          };\n          if (rangetype == 'bnr') {\n            // Binary html\n            binary = getBinaryHTML(binary, 0, val); //Index is always 0 as there is only 1 entry when selecting a test\n          } else if (rangetype == 'th') {\n            // Threshold html\n            threshold = getThresholdHTML(threshold, 0, val);\n          } else if (rangetype == 'img') {\n            // imaging html\n            imagingHTML = getImagingHTML(imagingHTML, 0, val);\n          } else if (rangetype == 'cfl') {\n            // choose from list html\n            await getCflHTML(0, val, test_id, function retval(d) {\n              cflHTML = d;\n            });\n          }\n          $('#diagnostic_test_name').val(groupname);\n          $('#group_id').val(groupid);\n          $('#parent_group_id').val(parentid);\n          html += '<div class=\"row form-group\">';\n          html += '<label class=\"col-sm-3 dmargin\" for=\"urgent\"><input type=\"hidden\" name=\"test_id[1]\" value=\"' + test_id + '\"><input type=\"hidden\" name=\"test_name[1]\" value=\"' + diagnosticname + '\">' + diagnosticname + '</label>';\n          if (rangetype == 'bnr') {\n            // Here Append Binary Html\n            html += binary;\n          } else if (rangetype == 'th') {\n            // Append Threshold html\n            html += threshold;\n          } else if (rangetype == 'img') {\n            // Append Threshold html\n            html += imagingHTML;\n          } else if (rangetype == 'cfl') {\n            // Append choose from list html\n            html += cflHTML;\n          }\n          html += '</div>';\n          $('#tests_list').html(html);\n        }\n        $('#diagnostic_results').html('').hide().removeClass('diagnostic-search-result');\n      });\n      $(document).on('click', '#addAdbisedReport', function () {\n        alert('ddd');\n        var find_id = $('#advisedReport').find('advised_report_name');\n        //console.log(find_id);\n      });\n      function retainSerialNos(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        var p = $(this).closest('tr').attr('data-order');\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var medicineSerialNo = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            //console.log(history_duplicateRow);\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                var array_elements = _this.multiSort(history_response, {\n                  id: 'desc'\n                });\n                //console.log(array_elements+'shubh');\n                //console.log(array_elements);\n                var max = _this.rowMaxSerialNo();\n                array_elements.forEach(function (val) {\n                  //console.log('a'+val.id);\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var common_serial = val.medicine_serial_no.toUpperCase();\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (fact == 0) {\n                    var vial = 0;\n                  } else if (fact == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                    var ontheflymix_id = val.id;\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var ontheflymix_id = val.id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  } else {\n                    var ontheflymix_id = medicine_id;\n                    var medform = parseInt(ontheflymix_id) + f_code;\n                  }\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + ontheflymix_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" data-ontheflyId=\"' + j + '\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  var single_prescription_input_value = $('tr.clear_prescription').find('td').eq(2).find('.prescribeinput').val();\n                  //console.log(single_prescription_input_value);\n                  if (single_prescription_input_value == undefined || single_prescription_input_value == \"\") {\n                    $('.clear_prescription').remove(); //by shubh tiwari as on 19-07-2023\n                  }\n                  //$('#prescriptionmedicine').prepend(html);\n                  //console.log(html);\n                  //$('#prescriptionmedicine > tbody.tbody > tr:first').before(html);\n                  $(html).prependTo('#prescriptionmedicine > tbody.tbody');\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  _this.checkEnableCheckbox();\n                  $('.importRow').each(function () {\n                    var serialNo = $(this).find('td').eq(1).find('.srnoItem').val();\n                    medicineSerialNo.push(parseInt(serialNo));\n                  });\n                  //console.log(medicineSerialNo);\n                  //var getminimumserialnumber = Math.max.apply(Math,medicineSerialNo);\n                  //console.log(getminimumserialnumber);\n                  // var imported_distinct_medicine_serial_no_array = medicineSerialNo.filter(function(itm, i, medicineSerialNo) {\n                  //   return i == medicineSerialNo.indexOf(itm);\n                  //  });\n                  var previousTableRowArray = $('.previousRow').map(function () {\n                    return $(this).attr('id');\n                  }).get();\n                  previousTableRowArray.forEach(function (item, index) {\n                    var number = index + 1;\n                    //console.log(common_serial);\n                    //console.log(number);\n                    //console.log(max);\n                    //return parseInt(max, 10)+1;\n                    //var previousSerialNo =parseInt(getminimumserialnumber) + parseInt(number);\n                    //console.log(previousSerialNo);\n                    var rowsId = item.split('-')[1];\n                    // Write below this code for resolved this issue(When we import medicines from a previous visit, and choose to retain old serial numbers, the newly added medicines (on the current visit) are given numbers after the highest number of the imported medicines, even if the numbers are different. For example if I have entered medicine numbers 5 and 6 as new medicines for the current prescription and then import and choose to retain old serial numbers of imported medicines which are 1, 2 and 3 the new medicines already entered are given numbers 4 & 5 instead of just staying with 5 & 6 as entered)\n                    var previousSerialNo = $('#' + item).attr('data-order');\n                    // console.log(imported_distinct_medicine_serial_no_array);\n                    // if (imported_distinct_medicine_serial_no_array.indexOf(previousSerialNo) !== -1) {\n\n                    // }\n                    $('#id-' + rowsId).attr('data-order', previousSerialNo);\n                    $('#srno-' + rowsId).val(previousSerialNo);\n                    $('#srno-' + rowsId).attr('value', previousSerialNo);\n                    $('#srno-' + rowsId).attr('data-uniqueserial', previousSerialNo);\n                  });\n                  //console.log(previousTableRowArray);\n                });\n                // case taking (27-Aug-2022) moved out of the functions as it was called in both cases\n                //importCaseTaking(base_url1, casetakenappointmentId, casetakenId, appointment_id1);\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      function appendMedicine(base_url, appointment_id, med_id, bill) {\n        $('#loader').show();\n        $('#visithistoryPopup').modal('hide');\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            appointment_id: appointment_id,\n            med_id: med_id,\n            billing_id: bill\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (history_response) {\n            $('#loader').hide();\n            $('#visithistoryPopup').modal('hide');\n            var instruction_array = _this.get('instruction');\n            // Serial number start with 1 when click on clear prescriptin button then import prescription with first option(Append these medicines to the end of existing medicines and assign new serial number.) Written by Shubh Tiwari as on 11-05-2023\n            var clear_p_serial_no = $('.clear_prescription').closest('tr').attr('data-order');\n            if (clear_p_serial_no !== undefined && clear_p_serial_no == 1) {\n              var single_prescription_input_value = $('tr.clear_prescription').find('td').eq(2).find('.prescribeinput').val();\n              //console.log(single_prescription_input_value);\n              if (single_prescription_input_value == undefined || single_prescription_input_value == \"\") {\n                var max = 0; //by shubh tiwari as on 19-07-2023\n              } else {\n                var max = _this.rowMaxSerialNo();\n              }\n            } else {\n              var max = _this.rowMaxSerialNo();\n            }\n\n            //console.log(max);\n            var error = '';\n            var remaining_medicine = '';\n            var existing_medicine = '';\n            var history_duplicateMedicineArray = [];\n            var remaining_name = [];\n            var history_duplicateRow = $('.medicineItem,.medicineMixItem').map(function () {\n              return $(this).data('med');\n            }).get();\n            history_response.forEach(function (value) {\n              if (value.midicine_type == 'ontheflymix') {\n                var duplicate_id = value.id;\n              } else {\n                var duplicate_id = value.medicine_id;\n              }\n              if (history_duplicateRow.indexOf(duplicate_id) != -1) {\n                if (value.midicine_type == 'single') {\n                  var med_name = value.medicine_name + ' ' + value.potency_name + ' ' + value.dilution_name + ' with form ' + value.form_name;\n                } else {\n                  var med_name = value.medicine_name + ' with form ' + value.form_name;\n                }\n                history_duplicateMedicineArray.push(med_name);\n              }\n            });\n\n            //console.log(history_duplicateMedicineArray);\n            var j = 0;\n            for (var i = 0; i < history_response.length; i++) {\n              var obj_original = history_response[i];\n              if (obj_original.midicine_type == 'single') {\n                var med_name = obj_original.medicine_name + ' ' + obj_original.potency_name + ' ' + obj_original.dilution_name + ' with form ' + obj_original.form_name;\n              } else {\n                var med_name = obj_original.medicine_name + ' with form ' + obj_original.form_name;\n              }\n              if (history_duplicateMedicineArray.indexOf(med_name) !== -1) {\n                var p = j++;\n                existing_medicine += \"<p class='error-font'>\" + (p + 1) + '.' + ' ' + '<b>' + med_name + '</b>' + ' medicine is already added</p>';\n\n                //console.log('history-duplicate-message-a'+med_name);\n              } else {\n                remaining_name.push(med_name);\n                //console.log('history-duplicate-message-b'+remaining_name);\n              }\n            }\n            if (history_duplicateMedicineArray.length > 0) {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'>so only \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            } else {\n              if (remaining_name.length > 0) {\n                var commaList = _this.arrayToText(remaining_name);\n                remaining_medicine += \"<p class='error-font'> \" + '<b>' + commaList + '</b>' + ' medicine of the template will be added.</p>';\n              }\n            }\n\n            //Nishant 27-08-2022 setting message classes appropriately\n            if (existing_medicine == '') {\n              var msg_icon = 'info';\n              var msg_title = 'Success!';\n              var msg_class = 'alert alert-success';\n            } else {\n              var msg_icon = 'error';\n              var msg_title = 'Oops...';\n              var msg_class = 'alert alert-danger';\n            }\n            error = \"<div class='\" + msg_class + \"'>\" + existing_medicine + '' + remaining_medicine + '</div>';\n            Swal.fire({\n              icon: msg_icon,\n              title: msg_title,\n              html: error,\n              width: 650,\n              showCancelButton: true,\n              confirmButtonColor: '#3085d6',\n              cancelButtonColor: '#d33',\n              confirmButtonText: 'Ok',\n              allowOutsideClick: false\n            }).then(result => {\n              //console.log(result.isDenied);\n              if (result.isConfirmed) {\n                //console.log('ok button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                for (var i = 0; i < history_response.length; i++) {\n                  var obj = history_response[i];\n                  if (obj.midicine_type == 'ontheflymix') {\n                    var duplicate_id = obj.id;\n                  } else {\n                    var duplicate_id = obj.medicine_id;\n                  }\n                  if (history_duplicateRow.indexOf(duplicate_id) !== -1) {\n                    history_response.splice(i, 1);\n                    i--;\n                  }\n                }\n                $.each(history_response, function (index, val) {\n                  var html = '';\n                  var subhtml = '';\n                  var formselect = '';\n                  var instructionselect = '';\n                  var edit_instructionselect = '';\n                  var number = index + 1;\n                  console.log(number);\n                  var common_serial = parseInt(max, 10) + number;\n                  console.log(max);\n                  console.log(common_serial);\n                  //var serial_no = Date.now().toString().substr(6);\n                  var serial_no = (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();\n                  var medicine_type = val.midicine_type;\n                  var medicine_id = val.medicine_id;\n                  var potency_id = val.potency_id;\n                  var single_serial_no = val.medicine_serial_no;\n                  var potency = val.potency_name;\n                  var medicine = val.medicine_name;\n                  var dilution = val.dilution_name;\n                  var f_code = val.form_code;\n                  if (val.instruction_name != '') {\n                    var instruction_name = val.instruction_name;\n                  } else {\n                    var instruction_name = val.instruction_other_value;\n                  }\n                  var factor = val.factor;\n                  var fact = parseInt(factor);\n                  var vial_value = val.vial;\n                  var appointment_id = val.appointment_id;\n                  var vial_check_value = isNaN(vial_value) ? 1 : vial_value;\n                  if (fact == 0) {\n                    var vial = 0;\n                  } else if (fact == 1) {\n                    var vial = 1;\n                  } else {\n                    var vial = vial_check_value;\n                  }\n                  var mix_name = medicine;\n                  // form selected html code\n                  formselect += '<select name=\"formItem[' + serial_no + ']\"  class=\"form-control slectform-' + serial_no + ' formItem prescribeform-' + serial_no + '\" id=\"prescribeform-' + serial_no + '\">';\n                  for (var i = 0; i < val.form.length; i++) {\n                    var form_name = val.form[i].form_name;\n                    var group_id = val.form[i].group_id;\n                    var form_code = val.form[i].form_code;\n                    if (form_code == f_code) {\n                      formselect += '<option selected=\"selected\" value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    } else {\n                      formselect += '<option  value=\"' + group_id + '-' + form_code + '-' + form_name + '\">' + form_code + '</option>';\n                    }\n                  }\n                  formselect += '</select>';\n                  // instruction selected html code\n                  instructionselect += '<select name=\"instructionItem[' + serial_no + ']\" class=\"form-control instructionItem cwareinstruction-' + serial_no + ' iother-' + serial_no + '\" id=\"instruction-' + serial_no + '\">';\n                  for (var i = 0; i < instruction_array.length; i++) {\n                    //var instruc_id = instruction_array[i].id;\n                    var instruc_name = instruction_array[i].instruction_name.trim();\n                    if (instruction_name != '' && instruction_name == instruc_name) {\n                      instructionselect += '<option selected=\"selected\" class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    } else {\n                      instructionselect += '<option class=\"editable-' + serial_no + '\" value=\"' + instruc_name + '\">' + instruc_name + '</option>';\n                    }\n                  }\n                  // if (instruction_other != '') {\n                  //   instructionselect += '<option class=\"editable-' + serial_no + '\" selected=\"selected\" value=\"' + instruction_other + '\">' + instruction_other + '</option>';\n                  // }\n                  instructionselect += '</select>';\n                  if (instruction_name != '') {\n                    edit_instructionselect += '<input id=\"edit_instruction-' + serial_no + '\" name=\"instruction[' + serial_no + ']\" class=\"editOption-' + serial_no + ' inst_other\" value=\"' + instruction_name + '\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"' + instruction_name + '\">';\n                  }\n                  // if (instruction_other != '') {\n                  //   edit_instructionselect += '<input class=\"editOption-' + serial_no + '\" value=\"' + instruction_other + '\">';\n                  // }\n                  instructionselect += edit_instructionselect;\n                  if (val.midicine_type == 'mix') {\n                    var title = 'Mix medicine';\n                  } else {\n                    var title = 'On the fly mix medicine';\n                  }\n                  if (val.midicine_type == 'ontheflymix') {\n                    var common_id = val.id;\n                    var medform = parseInt(common_id) + f_code;\n                  } else {\n                    var common_id = medicine_id;\n                    var medform = parseInt(common_id) + f_code;\n                  }\n\n                  /*This below condition used for highting zero factor medicine,  Rahul Khan, 25 July 2019*/\n                  if (fact < 1) {\n                    var Zerofactor = 'zerofactor';\n                    $('.' + Zerofactor).attr('title', 'Non billing medicine');\n                  } else {\n                    var Zerofactor = '';\n                  }\n                  var j = 0;\n                  if (val.mix.length > 0) {\n                    subhtml += '<table id=\"mixtale-' + serial_no + '\"  class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control dosage-' + serial_no + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + serial_no + '\" type=\"text\" value=\"' + mix_name + '\" data-med=\"' + common_id + '\"/><input name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_type + '\"/>  <input name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + medicine_type + ']\"  id=\"medicine_id-' + serial_no + '\" type=\"hidden\" value=\"' + medicine_id + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n                    for (var i = 0; i < val.mix.length; i++) {\n                      j++;\n                      var mix_potency = val.mix[i].potency_name;\n                      var mix_medicine = val.mix[i].medicine_name;\n                      var mix_medicine_id = val.mix[i].medicine_id;\n                      var mix_potency_id = val.mix[i].potency_id;\n                      var mix_dilution = val.mix[i].dilution_name;\n                      subhtml += '<tr data-ontheflyrow=\"' + j + '\" data-mixrowid=\"' + serial_no + j + '\" class=' + medicine_type + '-' + serial_no + '>';\n                      subhtml += '<td><input class=\"form-control mixname_change medicine_name-' + serial_no + j + '\" data-ontheflyId=\"' + j + '\" name=\"medicineItem[' + serial_no + '][' + mix_name + '][' + j + ']\" id=\"medicine_name-' + serial_no + j + '\" placeholder=\"Med ' + j + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + mix_medicine + '\"/> <input type=\"hidden\" class=\"medicine_id-' + serial_no + j + '\" id=\"medicine_id-' + serial_no + j + '\" name=\"medicine_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_medicine_id + '\"></td>';\n                      subhtml += '<td><input name=\"potencyItem[' + serial_no + '][' + mix_name + '][' + j + ']\" readonly=\"readonly\" id=\"potency-' + serial_no + j + '\" class=\"form-control potency-' + serial_no + j + '\" type=\"text\" value=\"' + mix_potency + '\"/> <input type=\"hidden\" calss=\"potency_id-' + serial_no + j + '\" id=\"potency_id-' + serial_no + j + '\" name=\"potency_id[' + serial_no + '][' + mix_name + '][' + j + ']\" value=\"' + mix_potency_id + '\"></td>';\n                      subhtml += '<td><input name=\"dilutionItem[' + serial_no + '][' + mix_name + '][' + j + ']\" class=\"form-control dilution-' + serial_no + j + '\" readonly=\"readonly\" id=\"dilution-' + serial_no + j + '\" type=\"text\" value=\"' + mix_dilution + '\"/></td>';\n                      subhtml += '</tr>';\n                    }\n                    subhtml += '</table>';\n                    html += '<tr data-order=\"' + common_serial + '\" title=\"' + title + '\"  id=\"id-' + serial_no + '\" class=\"cw-mix-medicine-' + serial_no + ' ' + medicine_type + ' ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry\"  name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input name=\"srnoItem[' + serial_no + '][' + mix_name + ']\" class=\"form-control srnoItem\" id=\"srno-' + serial_no + '\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td colspan=\"3\">' + subhtml + '</td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td> <input name=\"factorItem[' + serial_no + ']\" class=\"form-control factorItem factor-' + serial_no + ' onlynumeric\" id=\"factor-' + serial_no + '\" type=\"text\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" id=\"medicinevial-' + serial_no + '\" type=\"text\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  } else {\n                    html += '<tr data-order=\"' + common_serial + '\" id=\"id-' + serial_no + '\" class=\"single ' + Zerofactor + ' tableRow importRow\" data-medform=\"' + medform + '\">';\n                    html += '<td><input type=\"checkbox\" id=\"checkboxid-' + serial_no + '\" class=\"geometry checkItem\" data-id=\"' + serial_no + '\" name=\"check\" value=\"' + serial_no + '\"/></td>';\n                    html += '<td><input class=\"form-control srno-' + serial_no + ' srnoItem\" id=\"srno-' + serial_no + '\" name=\"srnoItem[' + serial_no + ']\" type=\"text\" value=\"' + common_serial + '\" data-uniqueserial=\"' + common_serial + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n                    html += '<td class=\"cw-search-box\"><input name=\"medicineItem[' + serial_no + ']\" class=\"form-control prescribeinput dosage-' + serial_no + ' medicineItem\" id=\"medicine_name-' + serial_no + '\" autocomplete=\"off\" type=\"text\" placeholder=\"Type min 3 char to search\" value=\"' + medicine + '\" data-med=\"' + medicine_id + '\" data-poten=\"' + potency_id + '\" data-medicine=\"' + medicine + ', ' + potency + ' (' + dilution + ')\" data-type=\"' + medicine_type + '\"/> <input type=\"hidden\" name=\"medicine_type[' + serial_no + ']\"  id=\"medicine_type-' + serial_no + '\" value=\"' + medicine_type + '\"> <input type=\"hidden\" name=\"medicine_id[' + serial_no + ']\" id=\"medicine_id-' + serial_no + '\" value=\"' + medicine_id + '\"><p id=\"results' + serial_no + '\"></p></td>';\n                    html += '<td><input readonly name=\"potencyItem[' + serial_no + ']\" class=\"form-control potency-' + serial_no + ' potencyItem\" id=\"potency-' + serial_no + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + serial_no + ']\" id=\"potency_id-' + serial_no + '\" value=\"' + potency_id + '\"></td>';\n                    html += '<td><input readonly name=\"dilutionItem[' + serial_no + ']\" class=\"form-control dilution-' + serial_no + ' dilutionItem\" id=\"dilution-' + serial_no + '\" type=\"text\" value=\"' + dilution + '\"/></td>';\n                    html += '<td>' + formselect + '</td>';\n                    html += '<td><input name=\"factorItem[' + serial_no + ']\" class=\"form-control factor-' + serial_no + ' factorItem onlynumeric\" type=\"text\" id=\"factor-' + serial_no + '\" value=\"' + fact + '\"/></td>';\n                    html += '<td><input name=\"medicineVial[' + serial_no + ']\" class=\"form-control medicinevial-' + serial_no + ' medicinevialItem onlynumeric\" type=\"text\" id=\"medicinevial-' + serial_no + '\" value=\"' + parseInt(vial) + '\"/></td>';\n                    html += '<td>' + instructionselect + '</td>';\n                    html += '</tr>';\n                  }\n                  var single_prescription_input_value = $('tr.clear_prescription').find('td').eq(2).find('.prescribeinput').val();\n                  //console.log(single_prescription_input_value);\n                  if (single_prescription_input_value == undefined || single_prescription_input_value == \"\") {\n                    $('.clear_prescription').remove(); //by shubh tiwari as on 19-07-2023\n                  }\n                  $('#prescriptionmedicine').last().append(html);\n                  $('#importvisitid').val(appointment_id);\n                  $('.cleartable li :checkbox').prop('checked', false);\n                  $('#visitmessage').html('<div class=\"alert alert-success\"> Visit history imported successfully! </div>');\n                  $('#visitmessage .alert').fadeToggle(10000);\n                  _this.checkEnableCheckbox();\n                });\n                // case taking (27-Aug-2022) moved out of the functions as it was called in both cases\n                //importCaseTaking(base_url1, casetakenappointmentId, casetakenId, appointment_id1);\n              }\n              if (result.isDenied == false) {\n                //console.log('cancel button');\n                //$('#loader').hide();\n                $('#visithistoryPopup').modal('hide');\n                $('#loading').removeClass('in');\n                //$('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n              }\n            });\n          }\n        });\n      }\n      function importCaseTaking(base_url1, casetakenappointmentId, casetakenId, appointment_id1) {\n        let utoken = this.session.getToken();\n        $.ajax({\n          url: base_url1,\n          method: 'POST',\n          data: {\n            casetakenappointmentId: casetakenappointmentId,\n            casetakenId: casetakenId,\n            appointment_id: appointment_id1\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (case_response) {\n            if (case_response.error == false && case_response.actions == 'imported') {\n              _this.controllerFor('icpattend').send('getCaseTakenList', case_response.appointment_id);\n              $('li :checkbox').prop('checked', false);\n            }\n          }\n        });\n      }\n    },\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n      this.controllerFor('icpattend').send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n    },\n    getFormattedDateDiff(date1, date2) {\n      var b = moment(date1),\n        a = moment(date2),\n        intervals = ['years', 'months', 'weeks', 'days'],\n        out = [];\n      for (var i = 0; i < intervals.length; i++) {\n        var diff = a.diff(b, intervals[i]);\n        b.add(diff, intervals[i]);\n        out.push(diff + ' ' + intervals[i]);\n      }\n      return out.join(', ');\n    },\n    ResetCaseTakenPopupValue() {\n      _icd11ect.default.Handler.clear('1');\n      $('#icd_name').val('');\n      $('#icd_code').val('');\n      //$(\"#icd_major_condition\").prop('checked', false);\n      $('#disease_name').val('');\n      $('#disease_id').val('');\n      $('#system_name').val('');\n      $('#system_id').val('');\n      $('#organ_name').val('');\n      $('#organ_id').val('');\n      //$('#dkbc_db_major_condition').prop('checked', false);\n      $('#certificate_name').val('');\n      $('.d_sympton').val('');\n      $('#symptom_duration').val('');\n      $('.drugs').val('');\n      //$('#patient_status').val('');\n      $('.remove_row').remove();\n      $('.hotherOption1').val('');\n      $('.hotherOption1').attr('placeholder', 'Select instruction');\n      $('.nhotherOption1').val('');\n      $('.nhotherOption1').attr('placeholder', 'Select instruction');\n      $('#caseTakenUpdate').text('Save & Close');\n      $('#caseTakenUpdate').addClass('case-pull-left');\n      $('#caseTakenUpdate').removeAttr('style');\n      $('#casetaken_title').text('Add Case Taking');\n      $('#case_taken_id').removeAttr('value');\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    sortFn(a, b) {\n      var regex = /^([a-z]*)(\\d*)/i;\n      var _a = a.match(regex);\n      var _b = b.match(regex);\n\n      // if the alphabetic part of a is less than that of b => -1\n\n      if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n      // if the alphabetic part of a is greater than that of b => 1\n\n      if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n      // if the alphabetic parts are equal, check the number parts\n\n      var _n = parseInt(_a[2]) - parseInt(_b[2]);\n      if (_n == 0)\n        // if the number parts are equal start a recursive test on the rest\n\n        return sortFn(a.substr(_a[0].length), b.substr(_b[0].length));\n\n      // else, just sort using the numbers parts\n\n      return _n;\n    },\n    /**\n     * Sorts an array of objects by column/property.\n     * @param {Array} array - The array of objects.\n     * @param {object} sortObject - The object that contains the sort order keys with directions (asc/desc). e.g. { age: 'desc', name: 'asc' }\n     * @returns {Array} The sorted array.\n     */\n    multiSort(array, sortObject = {}) {\n      const sortKeys = Object.keys(sortObject);\n\n      // Return array if no sort object is supplied.\n      if (!sortKeys.length) {\n        return array;\n      }\n\n      // Change the values of the sortObject keys to -1, 0, or 1.\n      for (let key in sortObject) {\n        sortObject[key] = sortObject[key] === 'desc' || sortObject[key] === -1 ? -1 : sortObject[key] === 'skip' || sortObject[key] === 0 ? 0 : 1;\n      }\n      const keySort = (a, b, direction) => {\n        direction = direction !== null ? direction : 1;\n        if (a === b) {\n          // If the values are the same, do not switch positions.\n          return 0;\n        }\n\n        // If b > a, multiply by -1 to get the reverse direction.\n        return a > b ? direction : -1 * direction;\n      };\n      return array.sort((a, b) => {\n        let sorted = 0;\n        let index = 0;\n\n        // Loop until sorted (-1 or 1) or until the sort keys have been processed.\n        while (sorted === 0 && index < sortKeys.length) {\n          const key = sortKeys[index];\n          if (key) {\n            const direction = sortObject[key];\n            sorted = keySort(a[key], b[key], direction);\n            index++;\n          }\n        }\n        return sorted;\n      });\n    },\n    nextChar(check_number) {\n      var u = check_number.toUpperCase();\n      //console.log(check_number);\n      if (this.same(u, 'Z')) {\n        var txt = '';\n        var i = u.length;\n        while (i--) {\n          txt += 'A';\n        }\n        return txt + 'A';\n      } else {\n        var p = '';\n        var q = '';\n        if (u.length > 1) {\n          p = u.substring(0, u.length - 1);\n          q = String.fromCharCode(p.slice(-1).charCodeAt(0));\n        }\n        var l = u.slice(-1).charCodeAt(0);\n        var z = this.nextLetter(l);\n        if (z === 'A') {\n          return p.slice(0, -1) + this.nextLetter(q.slice(-1).charCodeAt(0)) + z;\n        } else {\n          return p + z;\n        }\n      }\n    },\n    nextLetter(l) {\n      if (l < 90) {\n        return String.fromCharCode(l + 1);\n      } else {\n        return 'A';\n      }\n    },\n    same(str, char) {\n      var i = str.length;\n      while (i--) {\n        if (str[i] !== char) {\n          return false;\n        }\n      }\n      return true;\n    },\n    getSelectedTableRow(formCode, medicine_id, next) {\n      //console.log(formCode);\n      //console.log(formCode[0]['form_code']);\n      var resultObject = this.search('selected', formCode);\n      //console.log(resultObject);\n      if (resultObject == undefined) {\n        var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      } else if (resultObject.selected == 'selected') {\n        var form_unique = parseInt(medicine_id, 10) + resultObject.form_code;\n      }\n      $('#id-' + next).attr('data-medForm', form_unique);\n      // formCode.forEach(function(item){\n      //   if(item.selected=='selected'){\n      //     var form_unique = parseInt(medicine_id, 10) + item.form_code;\n      //   } else{\n      //     var form_unique = parseInt(medicine_id, 10) + formCode[0]['form_code'];\n      //   }\n      //   $(\"#id-\" + next).attr('data-medForm', form_unique);\n      // });\n    },\n    search(nameKey, myArray) {\n      for (var i = 0; i < myArray.length; i++) {\n        if (myArray[i].selected === nameKey) {\n          return myArray[i];\n        }\n      }\n    },\n    renderTemplate: function () {\n      this.render('doctor-dashboard.icpattend', {\n        controller: 'icpattend'\n      });\n    },\n    sortMedicineRow(tableId) {\n      var _this = this;\n      var $tbody = $('#' + tableId);\n      //console.log($tbody);\n      var regex = /^([a-z]*)(\\d*)/i;\n      $tbody.find('tr.tableRow').sort(function (a, b) {\n        var tda = $(a).attr('data-order'); // target order attribute\n        var tdb = $(b).attr('data-order'); // target order attribute\n        var _a = tda.match(regex);\n        var _b = tdb.match(regex);\n\n        // if the alphabetic part of a is less than that of b => -1\n\n        if (_a[1].toLowerCase() < _b[1].toLowerCase()) return -1;\n\n        // if the alphabetic part of a is greater than that of b => 1\n\n        if (_a[1].toLowerCase() > _b[1].toLowerCase()) return 1;\n\n        // if the alphabetic parts are equal, check the number parts\n\n        var _n = parseInt(_a[2]) - parseInt(_b[2]);\n        if (_n == 0)\n          // if the number parts are equal start a recursive test on the rest\n\n          return _this.sortFn(tda.substr(_a[0].length), tdb.substr(_b[0].length));\n\n        // else, just sort using the numbers parts\n\n        return _n;\n      }).appendTo($tbody);\n    },\n    duplicateValueCount(array_elements) {\n      //sort the array\n      array_elements = this.multiSort(array_elements, {\n        serialNo: 'asc'\n      });\n      //console.log(array_elements);\n      var count = {};\n      var sortedSerialNoArray = [];\n      var PrevSerialNo = array_elements[0].serialNo;\n      var PrevtableRowId = '';\n      //console.log(PrevSerialNo);\n      array_elements.forEach(function (item) {\n        var jsObjectRefno = {};\n        jsObjectRefno['value'] = parseInt(item.serialNo);\n        jsObjectRefno['count'] = count[parseInt(item.serialNo)] = (count[parseInt(item.serialNo)] || 0) + 1;\n        jsObjectRefno['serialNo'] = parseInt(item.serialNo);\n        jsObjectRefno['dataOrder'] = item.dataOrder;\n        jsObjectRefno['tableRowId'] = item.tableRowId;\n        if (item.serialNo == PrevSerialNo) {\n          sortedSerialNoArray.pop();\n          jsObjectRefno['tableRowId'] = PrevtableRowId + ',' + item.tableRowId;\n        }\n        sortedSerialNoArray.push(jsObjectRefno);\n        PrevSerialNo = item.serialNo;\n        PrevtableRowId = jsObjectRefno['tableRowId'];\n      });\n      //console.log(count);\n      //console.log(sortedSerialNoArray);\n      sortedSerialNoArray.forEach(function (item, index) {\n        var i = 0;\n        var increase_number = index + 1;\n        if (item.count > 1 && item.value) {\n          //console.log('a');\n          var tableIds = item.tableRowId;\n          var individualTableRows = tableIds.replace(/^,|,$/g, '');\n          //console.log(individualTableRows);\n          var arr = individualTableRows.split(',');\n          //console.log(arr);\n          for (i; i < item.count; i++) {\n            var getChar = String.fromCharCode('A'.charCodeAt() + i);\n            //console.log(arr[i].split('-')[1]);\n            var id = arr[i].split('-')[1];\n            //console.log(id);\n            $('#srno-' + id).val(item.value + getChar);\n            $('#id-' + id).attr('data-order', item.value + getChar);\n            $('#srno-' + id).attr('value', item.value + getChar);\n            $('#srno-' + id).attr('data-uniqueserial', item.value + getChar);\n            //console.log(item.value+getChar);\n          }\n        } else {\n          //console.log('b');\n          var id = item.tableRowId.split('-')[1];\n          //console.log(id);\n          $('#srno-' + id).val(increase_number);\n          $('#id-' + id).attr('data-order', increase_number);\n          $('#srno-' + id).attr('value', increase_number);\n          $('#srno-' + id).attr('data-uniqueserial', increase_number);\n          //console.log(increase_number);\n        }\n      });\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    factorCarryForward(factor, vial, table_row) {\n      //console.log(factor);\n      //console.log(vial);\n      //console.log(table_row);\n      if (factor > 0 || vial > 0) {\n        $('#medicinevial-' + table_row).parent().parent().removeClass('zerofactor');\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n      } else if (factor == 0 || vial == 0) {\n        $('#factor-' + table_row).val(factor);\n        $('#medicinevial-' + table_row).val(vial);\n        $('#medicinevial-' + table_row).parent().parent().addClass('zerofactor');\n      } else if (factor == undefined || vial == undefined) {\n        $('#factor-' + table_row).val(1);\n        $('#medicinevial-' + table_row).val(1);\n      }\n    },\n    checkEnableCheckbox() {\n      var checkedValue = $('#sort-serial').is(':checked');\n      if (checkedValue == true) {\n        $('.srnoItem').attr('readonly', false);\n      } else {\n        $('.srnoItem').attr('readonly', true);\n      }\n    },\n    arrayToText(a) {\n      if (a.length <= 2) {\n        return a.join(' and ');\n      } else {\n        return a.slice(0, -1).join(', ') + ' and ' + a[a.length - 1];\n      }\n    },\n    singleMedicineWithFormDifferentSerialNo(serial_no, tableRowIdArray, serialnumberArray) {\n      var d_currentRowidNum = serial_no;\n      var d_currentMedicneValue = $('#medicine_name-' + d_currentRowidNum).attr('data-medicine');\n      var d_currentMedicineForm = $('#prescribeform-' + d_currentRowidNum).val();\n      var currentMedicineSerial_value = $('#srno-' + d_currentRowidNum).val();\n      var currentMedicineSerial_no = currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var d_currentMedicineFormValue = d_currentMedicineForm.split('-')[1];\n      $('.medicineItem').map(function () {\n        var d_medicineName = $(this).attr('data-medicine');\n        var d_medicineRowId = $(this).attr('id');\n        var d_MedicinwRowNum = d_medicineRowId.split('-')[1];\n        var d_MedicineRowForm = $('#prescribeform-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_value = $('#srno-' + d_MedicinwRowNum).val();\n        var previousMedicineSerial_no = previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var d_MedicineRowFormValue = d_MedicineRowForm.split('-')[1];\n        if (d_currentRowidNum != d_MedicinwRowNum && d_currentMedicineFormValue != d_MedicineRowFormValue && d_currentMedicneValue == d_medicineName) {\n          tableRowIdArray.push(d_currentRowidNum);\n          tableRowIdArray.push(d_MedicinwRowNum);\n          serialnumberArray.push(currentMedicineSerial_no);\n          serialnumberArray.push(previousMedicineSerial_no);\n          return d_MedicinwRowNum;\n        }\n      }).get();\n      var uniqueserialnumberArray = serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var uniquetableRowIdArray = tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var sortTableRowIdArray = uniquetableRowIdArray.sort();\n      //console.log(sortserialnumber);\n      //console.log(sortTableRowIdArray);\n      if (sortserialnumber.length > 0) {\n        var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n        //console.log(getminimumserialnumber);\n        for (var i = 0; i < sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = getminimumserialnumber + getChar;\n          $('#srno-' + sortTableRowIdArray[i]).val(p);\n          $('#srno-' + sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    mixMedicineRow() {\n      var _this = this;\n      var mix_medicine = '';\n      var mix_val = '';\n      var mix_medicine_val = '';\n      var appointment_id = $('input[name=appointment_id]').val();\n      var checkbox_checked_vaue = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return $(this).val();\n      }).get();\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        var medicine = $('.dosage-' + checkbox_checked_vaue[i]).val().trim();\n        var potency = $('.potency-' + checkbox_checked_vaue[i]).val().trim();\n        mix_medicine += medicine + ' ' + potency + ' ' + '+' + ' ';\n      }\n      mix_medicine_val = mix_medicine.trim();\n      mix_val = mix_medicine_val.slice(0, -2);\n      //console.log(checkbox_checked_vaue[0]);\n      var max = _this.rowMaxSerialNo();\n      var next_serial_no = parseInt(max) + 1;\n      var uniqueserialnumberArray = $('#prescriptionmedicine td input[type=checkbox]:checked').map(function (index) {\n        return parseInt($(this).closest('tr').attr('data-order'));\n      }).get();\n      //console.log(uniqueserialnumberArray);\n      var sortserialnumber = uniqueserialnumberArray.sort();\n      var getminimumserialnumber = Math.min.apply(Math, sortserialnumber);\n      //console.log(getminimumserialnumber);\n      // Due to this $(':checkbox:checked:first') script value was getting undefined, Written as on 13 April 2022 by Shubh Tiwari\n      //var checked_last_id = $(':checkbox:checked:first');\n      var checked_last_id = $('#prescriptionmedicine td input[type=checkbox]:checked:first').attr('id');\n      var next_sr_no = checked_last_id.split('-');\n      var next = next_sr_no[1];\n      var medform = $('#id-' + next).attr('data-medform');\n      var ppp = $('.instructionItem').clone().attr('id', 'instruction-' + next);\n      var originalSelects = $('.instructionItem').clone().attr('id', 'instruction-' + next).find('option:selected').val();\n      //console.log(originalSelects);\n      var selectedValue = $('#prescribeform-' + next).val();\n      var prescribeform = $('#prescribeform-' + next).clone().attr('id', 'prescribeform-' + next);\n      prescribeform.find(\"option[value = '\" + selectedValue + \"']\").attr('selected', 'selected');\n      var selectedFactor = $('#factor-' + next).val();\n      var medicinevial = $('#medicinevial-' + next).val();\n      //This condition is used for checking factor carry forward Shubh Tiwari 07 July 2023\n      if (selectedFactor > 0 || medicinevial > 0) {\n        var zerofactor = '';\n        var factor = selectedFactor;\n      } else if (selectedFactor == 0 || medicinevial == 0) {\n        var factor = selectedFactor;\n        var zerofactor = 'zerofactor';\n      }\n      //var factor = 1;\n      /********This Array is initaised for stroring the combination of medicineId and potency id********/\n      var midicinePotencty = [];\n      var html = '';\n      var subhtml = '';\n      subhtml += '<table id=\"mixtale-' + next + '\" class=\"table table-striped table-bordered table-hover\" width=\"100%\"><tr><th width=\"63.6%\"><input name=\"medicineItem[' + next + '][' + mix_val + ']\" class=\"form-control dosage-' + next + ' medicineMixItem\" placeholder=\"Mix Name\" id=\"mix_medicine_name-' + next + '\" type=\"text\" value=\"' + mix_val + '\"/><input type=\"hidden\" name=\"medicine_type[' + next + ']\" value=\"ontheflymix\" id=\"medicine_type-' + next + '\"/></th><th width=\"20.7%\"></th><th width=\"16.6%\"></th></tr>';\n      $('#prescriptionmedicine td input[type=checkbox]:checked').each(function (index) {\n        var row = $(this).closest('tr')[0];\n        var tableDataOrder = $(this).closest('tr').attr('data-order');\n        var table_row_id = row.id.replace('id-', '');\n        var singleMedicineform = $('#id-' + table_row_id).attr('data-medform');\n        var medicine = $('#medicine_name-' + table_row_id).val();\n        var medicine_id = $('#medicine_id-' + table_row_id).val();\n        var medicine_type = $('#medicine_type-' + table_row_id).val();\n        var potency = $('#potency-' + table_row_id).val();\n        var dilution = $('#dilution-' + table_row_id).val();\n        var potency_id = $('#potency_id-' + table_row_id).val();\n        /***********This code is used for storing the medicine and potency in same array*************/\n        //  var id = $(this).attr(\"id\");\n        var potency_mix = $('#medicine_name-' + table_row_id).attr('data-poten');\n        var medicine_mix = $('#medicine_name-' + table_row_id).attr('data-med');\n        var value = $('#medicine_name-' + table_row_id).val();\n        var combination = medicine_mix + '_' + potency_mix;\n        if (potency != undefined && medicine != undefined && value != '') {\n          midicinePotencty.push(combination);\n        }\n        $('#medi_potn_combo').val(midicinePotencty);\n        /*********End*************/\n        //$(\"#id-\" + table_row_id).detach();\n        //  subhtml +='<tr data-ontheflyrow=\"'+table_row_id+'\" data-mixrowid=\"'+next+table_row_id+'\"><td><input name=\"medicineItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control medicineItem medicine_name-'+next+table_row_id+'\" id=\"medicine_name-'+next+table_row_id+'\" placeholder=\"Med '+table_row_id+' in mix\" type=\"text\" readonly=\"readonly\" value=\"'+medicine+'\"/><input type=\"hidden\" name=\"medicine_type['+table_row_id+']\" value=\"ontheflymix\" id=\"medicine_type-'+table_row_id+'\"> <input type=\"hidden\" class=\"medicine_id-'+table_row_id+'\" name=\"medicine_id['+next+']['+mix_val+']['+table_row_id+']\" value=\"'+medicine_id+'\" id=\"medicine_id-'+table_row_id+'\"></td><td><input name=\"potencyItem['+next+']['+mix_val+']['+table_row_id+']\" readonly=\"readonly\" id=\"potency-'+next+table_row_id+'\" class=\"form-control potencyItem potency-'+next+table_row_id+'\" type=\"text\" value=\"'+potency+'\"/> <input type=\"hidden\" name=\"potency_id['+next+']['+mix_val+']['+table_row_id+']\" class=\"potency_id-'+table_row_id+'\" id=\"potency_id-'+table_row_id+'\" value=\"'+potency_id+'\"></td><td><input name=\"dilutionItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control dilutionItem dilution-'+next+table_row_id+'\" readonly=\"readonly\" id=\"dilution-'+next+table_row_id+'\" type=\"text\" value=\"'+dilution+'\"/></td><td><select name=\"formItem['+next+']['+mix_val+']['+table_row_id+']\" class=\"form-control formItem prescribeform-'+next+table_row_id+' inputreadonly\" id=\"prescribeform-'+next+table_row_id+'\" readonly=\"readonly\">'+prescribeform[0].innerHTML+'</select></td></tr>';\n        subhtml += '<tr data-ontheflyrow=\"' + table_row_id + '\" data-mixrowid=\"' + next + table_row_id + '\"><td><input name=\"medicineItem[' + next + '][' + mix_val + '][' + table_row_id + ']\"  data-ontheflyId=\"' + table_row_id + '\" class=\"form-control medicineItem mixname_change medicine_name-' + next + table_row_id + '\" id=\"medicine_name-' + next + table_row_id + '\" placeholder=\"Med ' + table_row_id + ' in mix\" type=\"text\" readonly=\"readonly\" value=\"' + medicine + '\" data-uniqueserial=\"' + tableDataOrder + '\" data-singlemedicineform=\"' + singleMedicineform + '\" /><input type=\"hidden\" name=\"medicine_type[' + table_row_id + ']\" value=\"ontheflymix\" id=\"medicine_type-' + table_row_id + '\"> <input type=\"hidden\" class=\"medicine_id-' + next + table_row_id + '\" name=\"medicine_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" value=\"' + medicine_id + '\" id=\"medicine_id-' + next + table_row_id + '\"></td><td><input name=\"potencyItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" readonly=\"readonly\" id=\"potency-' + next + table_row_id + '\" class=\"form-control potencyItem potency-' + next + table_row_id + '\" type=\"text\" value=\"' + potency + '\"/> <input type=\"hidden\" name=\"potency_id[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"potency_id-' + next + table_row_id + '\" id=\"potency_id-' + next + table_row_id + '\" value=\"' + potency_id + '\"></td><td><input name=\"dilutionItem[' + next + '][' + mix_val + '][' + table_row_id + ']\" class=\"form-control dilutionItem dilution-' + next + table_row_id + '\" readonly=\"readonly\" id=\"dilution-' + next + table_row_id + '\" type=\"text\" value=\"' + dilution + '\"/></td></tr>';\n      });\n      $('#medi_potn_combo').val(midicinePotencty);\n      $('#medi_potn_combo').removeClass();\n      $('#medi_potn_combo').addClass('mix_' + next);\n      subhtml += '</table>';\n      html += '<tr title=\"On the fly mix medicine\" id=\"id-' + next + '\" class=\"cw-mix-medicine-' + next + ' ontheflymix tableRow previousRow ' + zerofactor + '\" data-order=\"' + getminimumserialnumber + '\" data-form=\"' + medform + '\">';\n      html += '<td><input type=\"checkbox\" id=\"checkboxid-' + next + '\" class=\"geometry\"  name=\"check\" value=\"' + next + '\"/></td>';\n      html += '<td><input name=\"srnoItem[' + next + '][' + mix_val + ']\" class=\"form-control srnoItem\" id=\"srno-' + next + '\" type=\"text\"  value=\"' + getminimumserialnumber + '\" readonly minlength=\"1\" maxlength=\"4\"/></td>';\n      html += '<td colspan=\"3\">' + subhtml + '</td>';\n\n      //This line is reposnsible for form dropdown\n      html += '<td><select name=\"formItem[' + next + ']\" class=\"form-control formItem prescribeform-' + next + ' \" id=\"prescribeform-' + next + '\" >' + prescribeform[0].innerHTML + '</select></td>';\n      html += '<td> <input name=\"factorItem[' + next + ']\" class=\"form-control factorItem onlynumeric\" id=\"factor-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td> <input name=\"medicineVial[' + next + ']\" class=\"form-control medicinevialItem onlynumeric\" id=\"medicinevial-' + next + '\" type=\"text\" value=\"' + factor + '\"/></td>';\n      html += '<td><select name=\"instructionItem[' + next + ']\" class=\"form-control cwareinstruction-' + next + ' iother-' + next + ' instructionItem\" id=\"instruction-' + next + '\">' + ppp[0].innerHTML + '</select><input id=\"edit_instruction-' + next + '\" name=\"instruction[' + next + ']\" class=\"editOption-' + next + ' inst_other\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-original-title=\"\" style=\"display:none\"></td></tr>';\n\n      //$('#prescriptionmedicine').children('tbody:last').append(html);\n      //$('#prescriptionmedicine > tbody.tbody > tr').eq(getminimumserialnumber).after(html);\n      $('#prescriptionmedicine > tbody.tbody').find('tr#id-' + checkbox_checked_vaue[0]).after(html);\n      for (var i = 0; i < checkbox_checked_vaue.length; i++) {\n        $('#id-' + checkbox_checked_vaue[i]).remove();\n      }\n      // Added placeholder attribute when input value will be blank 25 March 2021 Shubh Tiwari\n      $('.editOption-' + next).show();\n      $('.editOption-' + next).attr('placeholder', 'Select Instruction');\n      _this.checkEnableCheckbox();\n      /*This below line code is used for trigger the button which called the function for getting all possible forms for medicine, Rahul Khan, 10 Sept 2019 */\n      //$(\"#getformbuttom\").trigger(\"click\");//This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n    },\n    getFormName(formCode) {\n      var Formname = function (code, name) {\n        this.code = code;\n        this.name = name;\n      };\n      var formArray = [new Formname('G', 'Globule'), new Formname('L', 'Liquid'), new Formname('O', 'Ounce'), new Formname('P', 'Powder')];\n      var utils = {};\n      // Could create a utility function to do this\n      utils.inArray = function (searchFor, property) {\n        var retVal = -1;\n        var self = this;\n        for (var index = 0; index < self.length; index++) {\n          var item = self[index];\n          if (item.hasOwnProperty(property)) {\n            if (item[property].toLowerCase() === searchFor.toLowerCase()) {\n              retVal = index;\n              return retVal;\n            }\n          }\n        }\n        return retVal;\n      };\n\n      // or we could create a function on the Array prototype indirectly\n      Array.prototype.inArray = utils.inArray;\n\n      // let's use the prototype for now\n      var i = formArray.inArray(formCode, 'code');\n      return formArray[i].name;\n    },\n    mixMedicineWithFormDifferentSerialNo(serial_no, dmf_tableRowIdArray, dmf_serialnumberArray) {\n      var dmf_currentRowidNum = serial_no;\n      var dmf_currentMedicneValue = $('#mix_medicine_name-' + dmf_currentRowidNum).attr('data-med');\n      var dmf_currentMedicineForm = $('#prescribeform-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_value = $('#srno-' + dmf_currentRowidNum).val();\n      var dmf_currentMedicineSerial_no = dmf_currentMedicineSerial_value.replace(/[^0-9]/g, '');\n      var dmf_currentMedicineFormValue = dmf_currentMedicineForm.split('-')[1];\n      $('.medicineMixItem').map(function () {\n        var dmf_medicineName = $(this).attr('data-med');\n        var dmf_medicineRowId = $(this).attr('id');\n        var dmf_MedicinwRowNum = dmf_medicineRowId.split('-')[1];\n        var dmf_MedicineRowForm = $('#prescribeform-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_value = $('#srno-' + dmf_MedicinwRowNum).val();\n        var dmf_previousMedicineSerial_no = dmf_previousMedicineSerial_value.replace(/[^0-9]/g, '');\n        var dmf_MedicineRowFormValue = dmf_MedicineRowForm.split('-')[1];\n        if (dmf_currentRowidNum != dmf_MedicinwRowNum && dmf_currentMedicineFormValue != dmf_MedicineRowFormValue && dmf_currentMedicneValue == dmf_medicineName) {\n          dmf_tableRowIdArray.push(dmf_currentRowidNum);\n          dmf_tableRowIdArray.push(dmf_MedicinwRowNum);\n          dmf_serialnumberArray.push(dmf_currentMedicineSerial_no);\n          dmf_serialnumberArray.push(dmf_previousMedicineSerial_no);\n          return dmf_MedicinwRowNum;\n        }\n      }).get();\n      var dmf_uniqueserialnumberArray = dmf_serialnumberArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_uniquetableRowIdArray = dmf_tableRowIdArray.filter(function (elem, index, self) {\n        return index === self.indexOf(elem);\n      });\n      var dmf_sortserialnumber = dmf_uniqueserialnumberArray.sort();\n      var dmf_sortTableRowIdArray = dmf_uniquetableRowIdArray.sort();\n      // console.log(dmf_sortserialnumber);\n      // console.log(dmf_sortTableRowIdArray);\n      if (dmf_sortserialnumber.length > 0) {\n        var dmf_getminimumserialnumber = Math.min.apply(Math, dmf_sortserialnumber);\n        //console.log(dmf_getminimumserialnumber);\n        for (var i = 0; i < dmf_sortTableRowIdArray.length; i++) {\n          var getChar = String.fromCharCode('A'.charCodeAt() + i);\n          var p = dmf_getminimumserialnumber + getChar;\n          $('#srno-' + dmf_sortTableRowIdArray[i]).val(p);\n          $('#srno-' + dmf_sortTableRowIdArray[i]).closest('tr').attr('data-order', p);\n        }\n      }\n    },\n    getTabList: function (user_id, branch_id, shift_id) {\n      this.controllerFor('icpattend').send('getTabsList', user_id, branch_id, shift_id);\n    },\n    // getDoctorDropdownList: function (user_id, branch_id) {\n    //   this.controllerFor('icpattend').send('getDoctorDropdownList',user_id,branch_id);\n    // },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      this.controllerFor('icpattend').send('doctorCounter', doctor_id, shift_id, branch_id);\n    }\n  }); //Nishant 23-Jan-2023: refactor code for generating diagnostic test list in popup\n  function getBinaryHTML(binary, index, val) {\n    binary += ' <div class=\"col-sm-9\">';\n    binary += '<div class=\"col-sm-6\">';\n    binary += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    binary += '<select name=\"range_value[' + (index + 1) + ']\" data-id=\"' + (index + 1) + '\" class=\"form-control changeAbnormalVal\">';\n    binary += '<option value=\"\">--Select--</option>';\n    binary += '<option value=\"' + val.lower_range + '\">' + val.lower_range + '</option>';\n    binary += '<option value=\"' + val.upper_range + '\">' + val.upper_range + '</option>';\n    binary += '</select>';\n    binary += '</div>';\n    binary += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    binary += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value = \"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n    binary += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name.toUpperCase() + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n    binary += '</div>';\n    binary += '</div>';\n    return binary;\n  }\n  function getThresholdHTML(threshold, index, val) {\n    threshold += '<div class=\"col-sm-9\">';\n    threshold += '<div class=\"col-sm-6\">';\n    threshold += '<input type=\"text\" class=\"form-control decimalremove\" data-id=\"' + (index + 1) + '\" id=\"decimalremove\" maxlength=\"7\" name=\"range_value[' + (index + 1) + ']\" placeholder=\"Range value ' + (index + 1) + '\">';\n    threshold += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    threshold += '</div>';\n    threshold += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    threshold += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value=\"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n    threshold += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n    threshold += '</div>';\n    threshold += '</div>';\n    return threshold;\n  }\n  function getImagingHTML(imagingHTML, index, val) {\n    imagingHTML += '<div class=\"col-sm-6\">';\n    imagingHTML += '<div class=\"col-sm-6\">';\n    imagingHTML += '<input type=\"hidden\" class=\"form-control decimalremove\" data-id=\"' + (index + 1) + '\" id=\"decimalremove\" name=\"range_value[' + (index + 1) + ']\" placeholder=\"Range value ' + (index + 1) + '\" value=\"0\">';\n    imagingHTML += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n    imagingHTML += '</div>';\n    imagingHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n    imagingHTML += '<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value=\"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span>';\n    imagingHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name + '\"></span>';\n    imagingHTML += '</div>';\n    imagingHTML += '</div>';\n    return imagingHTML;\n  }\n  async function getCflHTML(index, val, test_id, retval) {\n    //Function to get Choose from list dropdown options\n    let utoken = this.session.getToken();\n    var cflHTML = '';\n    await $.ajax({\n      method: 'GET',\n      url: _environment.default.APP.lumen_api_url + 'diagnostic/' + test_id,\n      dataType: 'json',\n      async: true,\n      headers: {\n        \"Authorization\": `Bearer ${utoken}`\n      },\n      beforeSend: function () {\n        $('#diagnostic_loader').show();\n      },\n      success: function (res) {\n        $('#diagnostic_loader').hide();\n        var gdata = [];\n        var report_data = res.data;\n        var cfl_list = res.cfl_list;\n        // console.log(cfl_list);\n        //console.log(cfl_list.length);\n        if (cfl_list.length > 0) {\n          cflHTML += ' <div class=\"col-sm-9\">';\n          cflHTML += '<div class=\"col-sm-6\">';\n          cflHTML += '<input type=\"hidden\" class=\"form-control setabnormal' + (index + 1) + '\" name=\"abnormal_value[' + (index + 1) + ']\">';\n          cflHTML += '<select name=\"range_value[' + (index + 1) + ']\" data-id=\"' + (index + 1) + '\" class=\"form-control changeAbnormalVal\">';\n          cflHTML += '<option value=\"\">--Select--</option>';\n          cfl_list.forEach(function (options, index) {\n            cflHTML += '<option value=\"' + options.label_name + '\">' + options.label_name + '</option>';\n          });\n          cflHTML += '</select>';\n          cflHTML += '</div>';\n          cflHTML += '<div class=\"col-sm-5 dmargin dmargin-right\">';\n          cflHTML += '(<span for=\"lower_threshold\"><input type=\"hidden\" name=\"lower_range[' + (index + 1) + ']\" value = \"' + val.lower_range + '\"><input type=\"hidden\" name=\"range_type[' + (index + 1) + ']\" value=\"' + val.range_type + '\"><input type=\"hidden\" name=\"imaging[' + (index + 1) + ']\" value=\"' + val.imaging + '\">' + val.lower_range + '</span> - ';\n          cflHTML += '<span for=\"upper_threshold\"><input type=\"hidden\" name=\"upper_range[' + (index + 1) + ']\" value=\"' + val.upper_range + '\"><input type=\"hidden\" name=\"unit_name[' + (index + 1) + ']\" value=\"' + val.unit_name.toUpperCase() + '\"><input type=\"hidden\" name=\"unit_id[' + (index + 1) + ']\" value=\"' + val.outcomes_uom_id + '\">' + val.upper_range + ' ' + val.unit_name + '</span>)';\n          cflHTML += '</div>';\n          cflHTML += '</div>';\n          retval(cflHTML);\n        }\n      },\n      complete: function (res) {\n        //console.log('Execution complete3');\n      },\n      error: function (error, x, y) {\n        cflHTML += 'There was an error fetching list of options' + error;\n        retval(cflHTML);\n      }\n    });\n  }\n  function isDoubleClicked(element) {\n    //if already clicked return TRUE to indicate this click is not allowed\n    if (element.attr(\"isclicked\")) return true;\n\n    //mark as clicked for 1 second\n    element.attr(\"isclicked\", true);\n    setTimeout(function () {\n      element.removeAttr(\"isclicked\");\n    }, 1000);\n\n    //return FALSE to indicate this click was allowed\n    return false;\n  }\n});","define(\"clinic-dev/routes/doctor-dashboard/icpattend/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class DoctorDashboardIcpattendIndexRoute extends Ember.Route {}\n  _exports.default = DoctorDashboardIcpattendIndexRoute;\n});","define(\"clinic-dev/routes/doctor-dashboard/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('doctor-dashboard.list');\n      var permission = this.session.getPermissionList();\n      this.controllerFor('doctor-dashboard').set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/routes/doctor-dashboard/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var page_route = _this.controllerFor('application');\n      page_route.set('lastScroll', undefined);\n      var permission = this.session.getPermissionList();\n      var logged_user = _this.get('session').getLoggedInUserName();\n      var doctor_id = this.session.getLoggedInUserId();\n      var utoken = this.get('session').getToken();\n      if (utoken == null) {\n        alert('You are not authorised.');\n        this.transitionTo('login');\n      }\n      _this.controllerFor('doctor-dashboard').set('logged_user', logged_user);\n      _this.controllerFor('doctor-dashboard').set('page', 'home');\n      _this.controllerFor('doctor-dashboard').set('permission_arr', permission);\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.childModalClose();\n      _this.controllerFor('doctor-dashboard').set('user_id', _this.session.getLoggedInUserId());\n      var stage_billing = 0;\n      var stage_billing_complete = 2;\n      //This Below code line is used for getting shift id for login user\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      var user_id = _this.get('session').getLoggedInUserId();\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      _this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage_billing);\n      _this.getTabList(user_id, branch_id, shift_id);\n      _this.getPresctibeCaseTakenTabList(branch_id, shift_id);\n      _this.getDoctorDropdownList(user_id, branch_id);\n      _this.doctorCounter(doctor_id, shift_id, branch_id);\n      $(document).on('click', '.cancelDashboardPatient', function (event) {\n        //console.log('Testing');\n        event.preventDefault();\n        jQuery.noConflict();\n        $('#notebox').modal('show');\n        $('#notebox').modal({\n          backdrop: 'static',\n          keyboard: false\n        });\n      });\n    },\n    actions: {\n      getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n        this.getClinicPatientsIncomplete(user_id, shift_id, branch_id, stage);\n      },\n      getTabList: function (user_id, branch_id, shift_id) {\n        this.getTabList(user_id, branch_id, shift_id);\n      },\n      getPresctibeCaseTakenTabList: function (branch_id, shift_id) {\n        this.getPresctibeCaseTakenTabList(branch_id, shift_id);\n      },\n      getDoctorDropdownList: function (user_id, branch_id) {\n        this.getDoctorDropdownList(user_id, branch_id);\n      },\n      doctorCounter: function (doctor_id, shift_id, branch_id) {\n        this.doctorCounter(doctor_id, shift_id, branch_id);\n      },\n      bindScrolling() {\n        Ember.$(document).bind('vital', this.scrolled);\n        Ember.$(window).bind('scroll', this.scrolled);\n      },\n      unbindScrolling() {\n        Ember.$(window).unbind('scroll', this.scrolled);\n        Ember.$(document).unbind('vital', this.scrolled);\n      }\n    },\n    getClinicPatientsIncomplete: function (user_id, shift_id, branch_id, stage) {\n      this.controllerFor('doctor-dashboard').send('getClinicPatientsIncomplete', user_id, shift_id, branch_id, stage);\n    },\n    getTabList: function (user_id, branch_id, shift_id) {\n      this.controllerFor('doctor-dashboard').send('getTabsList', user_id, branch_id, shift_id);\n    },\n    getPresctibeCaseTakenTabList: function (branch_id, shift_id) {\n      this.controllerFor('doctor-dashboard').send('getPresctibeCaseTakenTabList', branch_id, shift_id);\n    },\n    getDoctorDropdownList: function (user_id, branch_id) {\n      this.controllerFor('doctor-dashboard').send('getDoctorDropdownList', user_id, branch_id);\n    },\n    doctorCounter: function (doctor_id, shift_id, branch_id) {\n      this.controllerFor('doctor-dashboard').send('doctorCounter', doctor_id, shift_id, branch_id);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('doctor-dashboard/list', role_route_permission);\n      this.controllerFor('doctor-dashboard').set('route_access', route_access);\n      this.recalculateAmount.checkAjaxRequest();\n      $(document).ready(function () {\n        setTimeout(function () {\n          $('html, body').scrollTop(0);\n        }, 1000);\n      });\n    },\n    renderTemplate: function () {\n      this.render('doctor-dashboard.list', {\n        controller: 'doctor-dashboard'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/forgot-password\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('forgot-password', {\n        controller: 'login'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/home\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('home').set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/routes/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    redirect: function () {\n      this.transitionTo('login');\n    }\n  });\n});","define(\"clinic-dev/routes/login\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    idleTimer: Ember.inject.service(),\n    session: Ember.inject.service(),\n    beforeModel() {\n      let utoken = this.session.getToken();\n      let status = 1;\n      let _this = this;\n\n      // If token exists, go to dashboard directly\n      if (utoken) {\n        this.transitionTo('dashboard');\n        return; // Prevent unnecessary AJAX call\n      }\n\n      // Fetch branch list for login screen\n      $.ajax({\n        method: 'GET',\n        url: `${_environment.default.APP.lumen_api_url}branch?activerecord=${status}`,\n        dataType: 'json',\n        success(res) {\n          _this.controller.set('branches', res);\n        },\n        error(err) {\n          console.error(err);\n          _this.controller.set('branches', []);\n        }\n      });\n    },\n    // Disable idle timer when on login page\n    activate() {\n      this.idleTimer.stopTracking();\n    },\n    // Re-enable idle timer when leaving login page\n    deactivate() {\n      this.idleTimer.startTracking();\n    }\n  });\n});","define(\"clinic-dev/routes/logout\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.session.end();\n      this.controllerFor('application').set('isLogin', '');\n      this.controllerFor('application').set('branchName', '');\n      this.controllerFor('application').set('shiftDetail', '');\n      this.controllerFor('application').set('pDetails', '');\n      this.controllerFor('application').set('role_route_p', '');\n      this.controllerFor('application').set('loginUser', '');\n      this.controllerFor('login').set('username', '');\n      this.controllerFor('login').set('password', '');\n      this.transitionTo('login');\n      $.ajax({\n        method: 'GET',\n        url: ENV.APP.api_url + 'users/logout',\n        success: function (res) {}\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/manage-appointment/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('manage-appointment.manage-appointment').set('page', 'Manage Appointments');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('manage-appointment.manage-appointment').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      //console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess('manage-appointment', role_route_permission);\n      this.controllerFor('manage-appointment.manage-appointment').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('manage-appointment.index', {\n        controller: 'manage-appointment.manage-appointment'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/manage-transaction/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('manage-transaction.list');\n      var permission = this.session.getPermissionList();\n      this.controllerFor('manage-transaction.manage-transaction').set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/routes/manage-transaction/list\", [\"exports\", \"clinic-dev/config/environment\", \"qunit\"], function (_exports, _environment, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"qunit\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var page_route = _this.controllerFor('application');\n      controller.set('page', 'Manage Transaction');\n      page_route.set('lastRoute', 'managetransaction');\n      var utoken = _this.session.getToken();\n      var permission = _this.session.getPermissionList();\n      controller.set('permission_arr', permission);\n      controller.send('getRecords');\n      controller.send('getPendingPatientRecords');\n      controller.send('getPaymentMode');\n      controller.send('getPreviousPendingAmount');\n      controller.send('getPreviousBillAmount');\n      controller.send('getPrescribeDetail');\n      controller.send('getChargeList');\n      controller.send('getPreviousVisitCharges');\n      controller.send('getApplyMedicineDiscount');\n      controller.send('getApplyConsultancyWaived');\n      controller.send('getAfterVisitPendingAmount');\n      //controller.send('getPreviousPaymentCharge');\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      // calculate total after add different-2 payment mode\n      _this.recalculateAmount.changePasteKeyup();\n      _this.recalculateAmount.previousBalanceReasonAllowAlphanumeric();\n      _this.recalculateAmount.calculatePGChargeOnKeyUp();\n      _this.recalculateAmount.calculatePGChargeOnClick();\n      _this.recalculateAmount.alertMessagePopupClose();\n      _this.recalculateAmount.allowTwoDecimalFloatNumber();\n      $(document).on('focus', '.datepicker', function () {\n        $(this).datepicker({\n          dateFormat: 'yy-mm-dd',\n          changeMonth: true,\n          changeYear: true,\n          maxDate: 0\n        });\n      });\n      // for Advanced paid amount by Patient but frontdesk user is cancel for that patient due to any reason, writen by shubh tiwari as on 18 August 2022\n      $(document).on('click', '.payAdvanceAmountButCancelPopup', function () {\n        var OldRegistrationNo = $(this).attr('data-OldRegistrationNo');\n        var billing_id = $(this).attr('data-billing_id');\n        var appointment_id = $(this).attr('data-appointment_id');\n        var patient_id = $(this).attr('data-patient_id');\n        var first_name = $(this).attr('data-first_name');\n        var middle_name = $(this).attr('data-middle_name');\n        var last_name = $(this).attr('data-last_name');\n        var consultancy_fee = $(this).attr('data-consultancy_fees');\n        var consultancy_print_code = $(this).attr('data-consultancy_print_code');\n        var medicine_print_code = $(this).attr('data-medicine_print_code');\n        var total_visit = $(this).attr('data-visit_due_amount');\n        var received = $(this).attr('data-recieved_amount');\n        var receive_amount = isNaN(received) ? 0 : received;\n        //var credit = $(this).attr('data-credit_amount');\n        //var credit_amount = isNaN(credit) ? 0 : credit;\n        //var debit = $(this).attr('data-debit_amount');\n        //var debit_amount = isNaN(debit) ? 0 : debit;\n        var total_received = receive_amount;\n        var pg_amount = $(this).attr('data-pg_amount');\n        var page_name = $(this).attr('data-page_name');\n        var prescribe_doctor = $(this).attr('data-doctor_id');\n        var previous_bill_paid = $(this).attr('data-previous-bill-paid');\n        var prescribed_shift = $(this).attr('data-prescribed_shift');\n        var prescribed_branch = $(this).attr('data-prescribed_branch');\n        controller.send('AdvanceAmountPaymentPopup', OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, total_visit, total_received, pg_amount, page_name, prescribe_doctor, previous_bill_paid, prescribed_shift, prescribed_branch);\n      });\n      // for paylater paid amount popup, writen by shubh tiwari as on 18 August 2022\n      $(document).on('click', '.payAdvanceButAcceptLaterPayment', function () {\n        var OldRegistrationNo = $(this).attr('data-OldRegistrationNo');\n        var appointment_id = $(this).attr('data-appointment_id');\n        var patient_id = $(this).attr('data-patient_id');\n        var first_name = $(this).attr('data-first_name');\n        var middle_name = $(this).attr('data-middle_name');\n        var last_name = $(this).attr('data-last_name');\n        var doctor_id = $(this).attr('data-doctor_id');\n        var redirect_page = 'manage_transaction';\n        controller.send('getDoctorCharges', doctor_id);\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'appointments/getchargecode',\n          data: {\n            id: appointment_id\n          },\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            $('#loader').hide();\n            var chargeCode = res.data[0]['charge_code'];\n            var advanced_pgcharge = res.data[0]['advanced_pgcharge'];\n            var advanced_pgamount = res.data[0]['advanced_pgamount'];\n            var credit_amount = res.data[0]['credit_amount'];\n            var total_visit = res.data[0]['credit_amount'];\n            controller.send('openPayTransactionPopup', appointment_id, patient_id, OldRegistrationNo, first_name, middle_name, last_name, credit_amount, 'appointment', doctor_id, chargeCode, total_visit, redirect_page);\n          }\n        });\n      });\n      // for pending/partial payment paid amount popup, writen by shubh tiwari as on 18 August 2022\n      $(document).on('click', '.pendingAmountPopup', function () {\n        var OldRegistrationNo = $(this).attr('data-OldRegistrationNo');\n        var billing_id = $(this).attr('data-billing_id');\n        var appointment_id = $(this).attr('data-appointment_id');\n        var patient_id = $(this).attr('data-patient_id');\n        var first_name = $(this).attr('data-first_name');\n        var middle_name = $(this).attr('data-middle_name');\n        var last_name = $(this).attr('data-last_name');\n        var consultancy_fee = $(this).attr('data-consultancy_fees');\n        var consultancy_print_code = $(this).attr('data-consultancy_print_code');\n        var medicine_print_code = $(this).attr('data-medicine_print_code');\n        var total_visit = $(this).attr('data-visit_due_amount');\n        var credit = $(this).attr('data-credit_amount');\n        var credit_amount = isNaN(credit) ? 0 : credit;\n        var debit = $(this).attr('data-debit_amount');\n        var debit_amount = isNaN(debit) ? 0 : debit;\n        var total_received = Math.abs(parseFloat(credit_amount) - parseFloat(debit_amount));\n        var pg_amount = $(this).attr('data-pg_amount');\n        var page_name = $(this).attr('data-page_name');\n        var prescribe_doctor = $(this).attr('data-doctor_id');\n        var previous_bill_paid = $(this).attr('data-previous-bill-paid');\n        var prescribed_shift = $(this).attr('data-prescribed_shift');\n        var prescribed_branch = $(this).attr('data-prescribed_branch');\n        controller.send('pendingAmountPaymentPopup', OldRegistrationNo, billing_id, appointment_id, patient_id, first_name, middle_name, last_name, consultancy_fee, consultancy_print_code, medicine_print_code, total_visit, total_received, pg_amount, page_name, prescribe_doctor, previous_bill_paid, prescribed_shift, prescribed_branch);\n      });\n      // for online payment paid amount details popup, writen by shubh tiwari as on 14 May 2026\n      $(document).on('click', '.showPaymentDetailsPopup', function () {\n        var orderId = $(this).attr('data-order-id');\n        var billingCount = $(this).attr('data-billing-count') || 1;\n        if (orderId == 'null' || orderId == '' || orderId == undefined) {\n          swal('No online payment found for this transaction!');\n          return false;\n        }\n        controller.send('showPaymentDetailsPopup', orderId, billingCount);\n      });\n    },\n    afterModel() {\n      var _this = this;\n      var controller = _this.controllerFor('billing');\n      var role_route_permission = _this.session.getRoleRouteList();\n      //console.log(role_route_permission);\n      var current_browser_name = _this.routeName;\n      //console.log(current_browser_name);\n      var route_access = _this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      controller.set('route_access', route_access);\n      // This below code used for hide/show cancel and reschedule button and set data-pending-amount for showing amount in cancel popup, Written by shubh tiwari as on 20 August 2022\n      // Initialize both buttons as disabled until a valid row is selected.\n      controller.set('cancelTransactionButtonDisabled', true);\n      controller.set('rescheduleTransactionButtonDisabled', true);\n      $(document).off('click.manageTransactionButtonState');\n      $(document).on('click.manageTransactionButtonState', '.checkenabledisablecancelandreschedulebutton', function () {\n        controller.updateManageTransactionButtonState();\n      });\n    },\n    deactivate() {\n      $(document).off('click.manageTransactionButtonState');\n      let controller = this.controllerFor('billing');\n      if (controller) {\n        controller.set('sourceLookupCache', null);\n        controller.set('currentCancelMode', null);\n        controller.set('_sourceLookupRequestId', 0);\n      }\n    },\n    renderTemplate: function () {\n      this.render('manage-transaction.list', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/mfa-setup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MfaSetupRoute = _exports.default = (_dec = Ember.inject.service, _class = class MfaSetupRoute extends Ember.Route {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"idleTimer\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        user_id: {\n          refreshModel: true\n        },\n        mfa_enabled: {\n          refreshModel: true\n        }\n      });\n    }\n    model(params) {\n      console.log('User ID:', params.user_id);\n      // Use params.user_id as needed\n      return params;\n    }\n    renderTemplate() {\n      this.render();\n    }\n\n    // Disable idle logout timer when this route is active\n    activate() {\n      this.idleTimer.stopTracking();\n    }\n\n    // Re-enable idle logout timer when leaving this route\n    deactivate() {\n      this.idleTimer.startTracking();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"idleTimer\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/routes/otp-verification\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let OtpVerificationRoute = _exports.default = (_dec = Ember.inject.service, _class = class OtpVerificationRoute extends Ember.Route {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"idleTimer\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        user_id: {\n          refreshModel: true\n        },\n        mfa_enabled: {\n          refreshModel: true\n        }\n      });\n    }\n    model(params) {\n      //console.log('User ID:', params.user_id);\n      return params;\n    }\n    renderTemplate() {\n      this.render();\n    }\n\n    // Disable idle logout timer when this route is active\n    activate() {\n      this.idleTimer.stopTracking();\n    }\n\n    // Re-enable idle logout timer when leaving this route\n    deactivate() {\n      this.idleTimer.startTracking();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"idleTimer\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/routes/patient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/patient/details\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('patient').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('patient').set('page', 'Patient Details');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'patients/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        async: false,\n        success: function (res) {\n          _this.controllerFor('patient').set('patient_data', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      _this.controllerFor('patient').send('getAllPatientAppointments', params.id);\n      var current_date = moment().format(\"YYYY-MM-DD\");\n      _this.controllerFor('patient').set('current_date', current_date);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('patient').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('patient.details', {\n        controller: 'patient'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/patient/edit\", [\"exports\", \"clinic-dev/config/environment\", \"qunit\"], function (_exports, _environment, _qunit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\",0,\"qunit\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    actions: {\n      didTransition() {}\n    },\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('patient').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      //date of birth select action\n      $('body').on('change', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('patient').send('setDateOfBirth');\n      });\n      $('body').on('keyup', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('patient').send('setDateOfBirth');\n      });\n      $('body').on('keyup', '.patient_age', function () {\n        var years = $('#age_years').val();\n        var months = $('#age_months').val();\n        var days = $('#age_days').val();\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          month: months,\n          day: days\n        };\n        _this.controllerFor('patient').send('getDateofBirth', date);\n      });\n\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.controllerFor('patient').set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      /*in Below line code are getting all the discount categories, Rahul Khan 12_june_2019 */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/discount_catgories',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        dataType: 'json',\n        success: function (res) {\n          _this.controllerFor('patient').set('discount_categories', res);\n        },\n        error: function (error, x, y) {}\n      });\n      this.controllerFor('patient').set('page', 'Edit');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected patient id to patient_id\n      this.controllerFor('patient').set('patient_id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'patients/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var patient_data = res.data[0];\n          /* Resolve the edit form data loading  */\n          // _this.controllerFor('patient').set('mode',patient_data.mode);\n\n          _this.controllerFor('patient').set('title_prefix', patient_data.title_prefix);\n          _this.controllerFor('patient').set('first_name', patient_data.first_name);\n          _this.controllerFor('patient').set('middle_name', patient_data.middle_name);\n          _this.controllerFor('patient').set('last_name', patient_data.last_name);\n          _this.controllerFor('patient').set('gender', patient_data.gender);\n          _this.controllerFor('patient').set('phone_1', patient_data.phone_res);\n          _this.controllerFor('patient').set('phone_2', patient_data.mobile_res);\n          _this.controllerFor('patient').set('email_id', patient_data.email_id);\n          _this.controllerFor('patient').set('address_1', patient_data.full_address_per);\n          _this.controllerFor('patient').set('address_2', patient_data.full_address_res);\n          _this.controllerFor('patient').set('selected_city', patient_data.city_id_per);\n          _this.controllerFor('patient').set('selected_state', patient_data.state_id_per);\n          _this.controllerFor('patient').set('selected_country', patient_data.country_id_per);\n          _this.controllerFor('patient').set('zip', patient_data.pincode_per);\n          _this.controllerFor('patient').set('mode', patient_data.mode);\n          _this.controllerFor('patient').set('priority', patient_data.priority);\n          _this.controllerFor('patient').set('blood_type', patient_data.blood_type);\n          _this.controllerFor('patient').set('category', patient_data.category);\n          _this.controllerFor('patient').set('selected_discount_category', patient_data.discount_category);\n          _this.controllerFor('patient').set('note', patient_data.note);\n          _this.controllerFor('patient').set('whatsapp_notification', patient_data.notification_whatsapp);\n          _this.controllerFor('patient').set('email_notification', patient_data.notification_email);\n          _this.controllerFor('patient').send('setPhoneCode', patient_data.mobile_country_code);\n          if (patient_data.date_of_birth == '' || patient_data.date_of_birth == null) {\n            _this.controllerFor('patient').set('date_of_birth', '');\n          } else {\n            _this.controllerFor('patient').set('date_of_birth', moment(patient_data.date_of_birth).format('MM/DD/YYYY'));\n          }\n          if (patient_data.age_years == '0') {\n            _this.controllerFor('patient').set('age_years', '');\n          } else {\n            _this.controllerFor('patient').set('age_years', patient_data.age_years);\n          }\n          if (patient_data.age_months == '0') {\n            _this.controllerFor('patient').set('age_months', '');\n          } else {\n            _this.controllerFor('patient').set('age_months', patient_data.age_months);\n          }\n          if (patient_data.age_days == '0') {\n            _this.controllerFor('patient').set('age_days', '');\n          } else {\n            _this.controllerFor('patient').set('age_days', patient_data.age_days);\n          }\n          _this.controllerFor('patient').set('shipping_address_1', patient_data.shipping_full_address_per);\n          _this.controllerFor('patient').set('shipping_address_2', patient_data.shipping_full_address_res);\n          _this.controllerFor('patient').set('shipping_selected_country', patient_data.shipping_country_id);\n          _this.controllerFor('patient').set('shipping_selected_state', patient_data.shipping_state_id);\n          _this.controllerFor('patient').set('shipping_selected_city', patient_data.shipping_city_id);\n          _this.controllerFor('patient').set('shipping_zip', patient_data.shipping_pin_code);\n          _this.controllerFor('patient').set('shipping_mob', patient_data.shipping_mobile);\n\n          /*This below code is used for gettting selected options */\n          // if(_this.get('mode')!='' || _this.get('mode') !=null){\n          $('#mode option[value=\"email\"]').prop('selected', true);\n          // }#\n\n          if (patient_data.same_as_shipping == 0) {\n            setTimeout(function () {\n              $('#same_to_ship').prop('checked', false).trigger('change');\n              if ($('#same_to_ship').is(':checked')) {\n                $('#shipping_address_box').hide();\n              } else {\n                $('#shipping_address_box').show();\n              }\n            }, 1000);\n          } else {\n            setTimeout(function () {\n              $('#same_to_ship').prop('checked', true).trigger('change');\n              if ($('#same_to_ship').is(':checked')) {\n                $('#shipping_address_box').hide();\n              }\n            }, 1000);\n          }\n        },\n        error: function (error, x, y) {}\n      });\n      var country_id = this.controllerFor('patient').get('selected_country');\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        data: {\n          country_id: country_id\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('patient').set('states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      var state_id = this.controllerFor('patient').get('selected_state');\n      var city_id = this.controllerFor('patient').get('selected_city');\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        data: {\n          state_id: state_id\n        },\n        async: false,\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('patient').set('cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      var country_id = this.controllerFor('patient').get('shipping_selected_country');\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/states',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        data: {\n          country_id: country_id\n        },\n        async: false,\n        dataType: 'json',\n        success: function (res) {\n          _this.controllerFor('patient').set('shipping_states', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      var state_id = this.controllerFor('patient').get('shipping_selected_state');\n      /* AJAX call */\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/cities',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        data: {\n          state_id: state_id\n        },\n        async: false,\n        dataType: 'json',\n        success: function (res) {\n          _this.controllerFor('patient').set('shipping_cities', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('patient').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('patient.register', {\n        controller: 'patient'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/patient/index\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('patient.index', {\n        controller: 'patient'\n      });\n    },\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('patient').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('patient').set('sorted_by', 'Registration Number (Desc)');\n      var _this = this;\n      var page = 1;\n      var sort = 'registration_number';\n      var order = 'DESC';\n      var q = '';\n      $.ajax({\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        url: _environment.default.APP.api_url + 'patients/stats',\n        data: {\n          q: q\n        },\n        success: function (res) {\n          _this.controllerFor('patient').set('stats', res);\n        },\n        error: function (res) {\n          // console.error(res);\n        }\n      });\n\n      //populate table\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'patients',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        data: {\n          p: page,\n          order: order,\n          sort: sort,\n          q: q\n        },\n        success: function (res) {\n          // console.error(res);\n          _this.controllerFor('patient').set('patients', res.data);\n        },\n        error: function (res) {\n          // console.error(res);\n        }\n      });\n    },\n    init() {\n      this._super(...arguments);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('patient', role_route_permission);\n      this.controllerFor('patient').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/patient/register\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('patient').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      //reset values to null\n      this.controllerFor('patient').set('other_city', '');\n      this.controllerFor('patient').set('other_state', '');\n      this.controllerFor('patient').set('state', '');\n      this.controllerFor('patient').set('country', '');\n      this.controllerFor('patient').set('phone_1', '');\n      this.controllerFor('patient').set('phone_2', '');\n      this.controllerFor('patient').set('gender', '');\n      this.controllerFor('patient').set('title_prefix', '');\n      this.controllerFor('patient').set('first_name', '');\n      this.controllerFor('patient').set('middle_name', '');\n      this.controllerFor('patient').set('last_name', '');\n      this.controllerFor('patient').set('address_1', '');\n      this.controllerFor('patient').set('address_2', '');\n      this.controllerFor('patient').set('zip', '');\n      this.controllerFor('patient').set('mode', '');\n      this.controllerFor('patient').set('note', '');\n      this.controllerFor('patient').set('selected_city', null);\n      this.controllerFor('patient').set('selected_state', null);\n      this.controllerFor('patient').set('selected_country', null);\n      this.controllerFor('patient').set('priority', 'normal');\n      this.controllerFor('patient').set('category', '');\n      this.controllerFor('patient').set('date_of_birth', '');\n      this.controllerFor('patient').set('age_years', '');\n      this.controllerFor('patient').set('age_months', '');\n      this.controllerFor('patient').set('age_days', '');\n      this.controllerFor('patient').set('whatsapp_notification', 0);\n      this.controllerFor('patient').set('email_notification', 0);\n      this.controllerFor('patient').set('selected_phonecode', 91);\n      var _this = this;\n      //date of birth select action\n      $('body').on('change', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('patient').send('setDateOfBirth');\n      });\n      $('body').on('keyup', 'input[name=date_of_birth]', function () {\n        _this.controllerFor('patient').send('setDateOfBirth');\n      });\n      $('body').on('keyup', '.patient_age', function () {\n        var years = $('#age_years').val();\n        var months = $('#age_months').val();\n        var days = $('#age_days').val();\n        if (!(years >= 0 && years < 120)) {\n          alert('Please Valid age in years.');\n          return false;\n        }\n        if (!(months >= 0 && months <= 12)) {\n          alert('Please Valid age in Months.');\n          return false;\n        }\n        if (!(days >= 0 && days <= 31)) {\n          alert('Please Valid age in Days.');\n          return false;\n        }\n        var date = {\n          year: years,\n          month: months,\n          day: days\n        };\n        _this.controllerFor('patient').send('getDateofBirth', date);\n      });\n      /* AJAX call */\n\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'info/countries',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // console.log(res)\n          _this.controllerFor('patient').set('countries', res.data);\n        },\n        error: function (error, x, y) {}\n      });\n      /*in Below line code are getting all the discount categories, Rahul Khan 12_june_2019 */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/discount_catgories',\n        dataType: 'json',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('patient').set('discount_categories', res);\n        },\n        error: function (error, x, y) {}\n      });\n      this.controllerFor('patient').set('page', 'Register');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('patient').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('patient.register', {\n        controller: 'patient'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('pharmacy').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var _this = this;\n      $(document).on('change', '.medicineVial', function () {\n        var vial_data = '';\n        vial_data = $('.medicineVial').map(function () {\n          var $this = $(this);\n          var jsObjectvial = {};\n          jsObjectvial['medicine_vial'] = $this.val();\n          return jsObjectvial;\n        }).get();\n        _this.controllerFor('billing').send('getVialData', vial_data);\n        $('.medicineVial').each(function () {\n          var vial = $(this).val();\n          var vaial_id = $(this).attr('id');\n          if (vial > 100) {\n            swal({\n              text: 'Vial value cannot exceed 100.',\n              icon: 'warning',\n              buttons: 'Ok'\n            });\n            $('#' + vaial_id).val(1);\n            var vial = 1;\n          }\n          if (vial < 1) {\n            $('#' + vaial_id).val(0);\n            var vial = 0;\n          }\n        });\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy/details\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('billing').set('permission_arr', permission);\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      // allow enter only numbers Shubh Tiwari 28 Nov 2022\n      _this.recalculateAmount.allowOnlyNumber();\n      _this.controllerFor('billing').set('page', 'Detail Medication');\n      _this.controllerFor('billing').send('getRecords');\n      _this.controllerFor('billing').send('getPrescribeDetail');\n      _this.controllerFor('billing').send('getChargeList');\n      _this.controllerFor('billing').send('getTotalTransaction');\n    },\n    model(param) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('billing').send('getTotalTransaction', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getAppointmentId', param.appointment_id);\n      _this.controllerFor('billing').send('getRecords', param.appointment_id, param.billing_id);\n      //_this.controllerFor('billing').send('getPreviousPendingRecord', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPrescribeDetail', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getVisitCharges', param.appointment_id, param.billing_id);\n\n      //This below code is used for getting the phamacy instruction at phamacy patient view page\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'billing/pharmacy_ins/' + param.billing_id,\n        method: 'GET',\n        async: true,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // _this.controllerFor('billing').set('page', \"Process Medication\");\n          _this.controllerFor('billing').set('pharmacy_page_instruction', res.pharmacy_instruction);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('pharmacy.details', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy/history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('pharmacy.history', {\n        controller: 'billing'\n      });\n    },\n    beforeModel() {\n      var stage_billing = 3;\n      var date = 'All';\n      this.controllerFor('billing').set('page', 'Patient History');\n      let shift_id = this.session.getLoggedInUserShift(); //getIncompleteVisits\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n      //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n      this.getClinicPatientsIncomplete(shift_id, branch_id, stage_billing, date);\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    getClinicPatientsIncomplete: function (shift_id, branch_id, stage, date) {\n      this.controllerFor('billing').send('getClinicPatientsIncomplete', shift_id, branch_id, stage, date);\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('pharmacy.list');\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('pharmacy.list', {\n        controller: 'billing'\n      });\n    },\n    // This below beforeModel block functions run Before Model Loading, Rahul Khan 10_may_2019\n    beforeModel() {\n      //These below defined variable are used for defining the required status for Pharmecy dashboard\n      var permission = this.session.getPermissionList();\n      this.controllerFor('billing').set('permission_arr', permission);\n      // var result = get(this, 'haspermissions').canRouteAccess(permission);\n      // alert(result);\n      // if(result!=true){\n      //    swal(\"You do not have permission to access this page\");\n      //    this.transitionTo('login');\n      // }\n      var stage_billing = 1;\n      var stage_billing_complete = 3;\n      this.controllerFor('billing').set('page', 'Pharmacy Dashboard');\n      //This Below code line is used for getting shift id for login user\n      let shift_id = this.session.getLoggedInUserShift();\n      //This Below code line is used for getting Branch id for login user\n      let branch_id = this.session.getLocation().split('-')[0];\n\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which not completed\n      this.getIncompletePharmacyList(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting inclinic Patients in at Billing Dashboard which complete billing process\n      this.getCompletePharmacyList(shift_id, branch_id, stage_billing_complete);\n\n      //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n      this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting Patients in Medicine Queue at Billling Dashboard which complete billing process\n      this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n\n      //This below code function is used for getting Patients in Email Repeat Medicine Queue at Billing Dashboard which not completed\n      this.getEmailRMedicineQueuePatientsIncomplete(shift_id, branch_id, stage_billing);\n\n      //This below code function is used for getting Patients in Email Repeat Medicine Queue at Billling Dashboard which complete billing process\n      this.getEmailRMedicineQueuePatientsComplete(shift_id, branch_id, stage_billing_complete);\n      $(document).ready(function () {\n        setTimeout(function () {\n          //$('html, body').scrollTop({ top: 200, behavior: 'smooth' });\n          $('html, body').scrollTop(0);\n          //$('html,body').animate({ scrollTop: -200 }, 'smooth');\n        }, 1000);\n      });\n    },\n    //This below Block functions are called when we trigger event in this router, Rahul Khan 10_may_2019\n    actions: {\n      getIncompletePharmacyList: function (shift_id, branch_id, stage) {\n        this.getIncompletePharmacyList(shift_id, branch_id, stage);\n      },\n      getCompletePharmacyList: function (shift_id, branch_id, stage) {\n        this.getCompletePharmacyList(shift_id, branch_id, stage);\n      },\n      getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsIncomplete(shift_id, branch_id, stage);\n      },\n      getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n        this.getEmailRMedicineQueuePatientsComplete(shift_id, branch_id, stage);\n      },\n      openBillingList: function (list_name, event) {\n        var i, tabcontent, tablinks;\n        tabcontent = document.getElementsByClassName(\"tabcontent\");\n        for (i = 0; i < tabcontent.length; i++) {\n          tabcontent[i].style.display = \"none\";\n        }\n        tablinks = document.getElementsByClassName(\"tablinks\");\n        for (i = 0; i < tablinks.length; i++) {\n          tablinks[i].className = tablinks[i].className.replace(\" active\", \"\");\n        }\n        document.getElementById(list_name).style.display = \"block\";\n        var x = document.getElementsByClassName(list_name);\n        var i;\n        for (i = 0; i < x.length; i++) {\n          x[i].className += ' active'; // WITH space added\n        }\n      }\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    getIncompletePharmacyList: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getIncompletePharmacyList', shift_id, branch_id, stage);\n    },\n    //This below function is behave like independent and run when we call function using this in this current route., Rahul Khan 10_may_2019\n    getCompletePharmacyList: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getCompletePharmacyList', shift_id, branch_id, stage);\n    },\n    //This below code function is used for getting Patients in Medicine Queue at Billing Dashboard which not completed\n    getMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getMedicineQueuePatientsIncomplete', shift_id, branch_id, stage);\n    },\n    getMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getMedicineQueuePatientsComplete', shift_id, branch_id, stage);\n    },\n    //This below code function is used for getting Patients in Email Repeat Medicine Queue at Billing Dashboard which not completed\n    getEmailRMedicineQueuePatientsIncomplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getEmailRMedicineQueuePatientsIncomplete', shift_id, branch_id, stage);\n    },\n    getEmailRMedicineQueuePatientsComplete: function (shift_id, branch_id, stage) {\n      this.controllerFor('billing').send('getEmailRMedicineQueuePatientsComplete', shift_id, branch_id, stage);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var route_access = this.route_permission.canRouteAccess('pharmacy/list', role_route_permission);\n      this.controllerFor('billing').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/pharmacy/view\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('billing').set('permission_arr', permission);\n      var _this = this;\n      var utoken = _this.get('session').getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        _this.transitionTo('login');\n      }\n      _this.controllerFor('billing').set('page', 'Process Medication');\n      _this.controllerFor('billing').send('getRecords');\n      _this.controllerFor('billing').send('getPrescribeDetail');\n      _this.controllerFor('billing').send('getChargeList');\n      _this.recalculateAmount.alertMessagePopupClose();\n      // allow enter only numbers Shubh Tiwari 28 Nov 2022\n      _this.recalculateAmount.allowOnlyNumber();\n      _this.recalculateAmount.childModalClose();\n    },\n    model(param) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('billing').send('getBPLocation', param.billing_id);\n      _this.controllerFor('billing').send('getTotalTransaction', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getRecords', param.appointment_id, param.billing_id);\n      //_this.controllerFor('billing').send('getPreviousPendingRecord', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPrescribeDetail', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getVisitCharges', param.appointment_id, param.billing_id);\n      _this.controllerFor('billing').send('getPatientAddress', param.patient_id, param.appointment_id);\n      //This below code is used for getting the phamacy instruction at phamacy patient view page\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'billing/pharmacy_ins/' + param.billing_id,\n        method: 'GET',\n        async: true,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          // _this.controllerFor('billing').set('page', \"Process Medication\");\n          _this.controllerFor('billing').set('pharmacy_page_instruction', res.pharmacy_instruction);\n        },\n        complete: function (res) {\n          //console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      this.recalculateAmount.checkAjaxRequest();\n    },\n    renderTemplate: function () {\n      this.render('pharmacy.view', {\n        controller: 'billing'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/refund-dashboard\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('refund-dashboard', {\n        controller: 'appointment'\n      });\n    },\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    model() {\n      var _this = this;\n      var utoken = this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches',\n          data: {\n            per_page: 10\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              resolve(res);\n            } else {\n              console.warn('Refund dashboard API error:', res.message);\n              resolve({\n                data: []\n              });\n            }\n          },\n          error: function (xhr) {\n            console.warn('Refund dashboard API failed:', xhr.status, xhr.statusText);\n            resolve({\n              data: []\n            });\n          }\n        });\n      });\n    },\n    afterModel(response) {\n      var batches = response.data || [];\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('appointment').set('route_access', route_access);\n      this.controllerFor('appointment').set('batchesList', batches);\n      this.controllerFor('appointment').set('activeRefundTab', 'batches');\n      this.controllerFor('appointment').set('autoRefundsList', []);\n      this.controllerFor('appointment').set('autoRefundPagination', null);\n      var currentPage = response.current_page || 1;\n      var lastPage = response.last_page || 1;\n      this.controllerFor('appointment').set('pagination', {\n        current_page: currentPage,\n        last_page: lastPage,\n        per_page: response.per_page || 10,\n        total: response.total || 0,\n        prev_page_url: currentPage > 1 ? 'prev' : null,\n        next_page_url: currentPage < lastPage ? 'next' : null\n      });\n    },\n    actions: {\n      showPagination(page, status) {\n        var _this = this;\n        var utoken = this.session.getToken();\n        var url = _environment.default.APP.lumen_api_url + 'v1/cancellation-batches';\n        var params = {\n          page: page,\n          per_page: 10\n        };\n        if (status === 'prev' && this.controllerFor('appointment').get('pagination.current_page') > 1) {\n          params.page = this.controllerFor('appointment').get('pagination.current_page') - 1;\n        } else if (status === 'next') {\n          params.page = this.controllerFor('appointment').get('pagination.current_page') + 1;\n        }\n        $.ajax({\n          method: 'GET',\n          url: url,\n          data: params,\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              _this.controllerFor('appointment').set('batchesList', res.data || []);\n              var cp = res.current_page || 1;\n              var lp = res.last_page || 1;\n              _this.controllerFor('appointment').set('pagination', {\n                current_page: cp,\n                last_page: lp,\n                per_page: res.per_page || 10,\n                total: res.total || 0,\n                prev_page_url: cp > 1 ? 'prev' : null,\n                next_page_url: cp < lp ? 'next' : null\n              });\n            }\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/refund-dashboard/batch\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('refund-dashboard.batch', {\n        into: 'application',\n        controller: 'appointment'\n      });\n    },\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    model(params) {\n      var _this = this;\n      var utoken = this.session.getToken();\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'v1/cancellation-batches/' + params.batch_id + '/status',\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            if (res.error === false) {\n              resolve(res);\n            } else {\n              console.warn('Batch details API error:', res.message);\n              resolve({\n                batch: null,\n                refunds: []\n              });\n            }\n          },\n          error: function (xhr) {\n            console.warn('Batch details API failed:', xhr.status, xhr.statusText);\n            resolve({\n              batch: null,\n              refunds: []\n            });\n          }\n        });\n      });\n    },\n    afterModel(modelData) {\n      let batch = modelData.batch;\n      let refunds = modelData.refunds || [];\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('appointment').set('route_access', route_access);\n      this.controllerFor('appointment').set('currentBatch', batch);\n      this.controllerFor('appointment').set('currentRefunds', refunds);\n      this.controllerFor('appointment').set('refundPage', 1);\n      let controller = this.controllerFor('appointment');\n      if (this._pollingInterval) {\n        clearInterval(this._pollingInterval);\n      }\n      if (batch && batch.status !== 'completed' && batch.status !== 'completed_with_errors') {\n        this._pollingInterval = setInterval(function () {\n          let currentBatch = controller.get('currentBatch');\n          if (!currentBatch || currentBatch.status === 'completed' || currentBatch.status === 'completed_with_errors') {\n            clearInterval(this._pollingInterval);\n            return;\n          }\n          if (typeof controller.refreshCurrentBatch === 'function') {\n            controller.refreshCurrentBatch();\n          }\n        }.bind(this), 20000);\n      }\n    },\n    deactivate() {\n      if (this._pollingInterval) {\n        clearInterval(this._pollingInterval);\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/reports-list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/reports\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('reports').set('page', 'Reports List');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('reports').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      // var _this = this;\n      // $.ajax({\n      //       method: \"GET\",\n      //       url: ENV.APP.lumen_api_url+\"/reportlist\",\n      //       data : {},\n      //       dataType:'json',\n      //       success: function(res){\n      //       _this.controller.set('report_list', res);\n      //    },\n      //     error: function(error, x, y){\n      //         _this.controller.set('report_list', y);\n      //     }\n      //   });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('reports', role_route_permission);\n      this.controllerFor('reports').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('reports-list', {\n        controller: 'reports'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/schedule\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('schedule').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    model() {}\n  });\n});","define(\"clinic-dev/routes/schedule/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('schedule').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    init() {\n      this._super(...arguments);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('schedule', role_route_permission);\n      this.controllerFor('schedule').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('schedule.index', {\n        controller: 'schedule'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/schedule/max-slots\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    queryParams: {\n      refresh: {\n        refreshModel: true\n      }\n    },\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('schedule').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    init() {\n      this._super(...arguments);\n    },\n    async model() {\n      let token = this.session.getToken();\n\n      // Fetch both usertimeslot and vc-configurations in parallel so the\n      // page renders with up-to-date data every time the model runs.\n      const [usertimeslotRes, vcConfigRes] = await Promise.all([$.ajax({\n        url: `${_environment.default.APP.lumen_api_url}usertimeslot`,\n        type: \"GET\",\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        }\n      }), $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}vc-configurations`,\n        type: \"GET\",\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        }\n      }).catch(e => {\n        console.warn(\"VC configurations endpoint unavailable; rendering without overview.\", e);\n        return {\n          success: false,\n          data: []\n        };\n      })]);\n      return {\n        doctors: usertimeslotRes.data || [],\n        vcConfigurations: vcConfigRes && vcConfigRes.success && Array.isArray(vcConfigRes.data) ? vcConfigRes.data : []\n      };\n    },\n    afterModel(model) {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      let controller = this.controllerFor('schedule');\n      controller.set('route_access', route_access);\n      if (model) {\n        if (Array.isArray(model.doctors)) {\n          controller.set('model', model.doctors);\n        }\n        if (Array.isArray(model.vcConfigurations)) {\n          controller.set('vcConfigurations', model.vcConfigurations);\n        }\n      }\n    },\n    renderTemplate: function () {\n      this.render('schedule.max-slots', {\n        controller: 'schedule'\n      });\n    },\n    actions: {\n      refreshModel() {\n        return this.refresh();\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/schedule/max-slots/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      let utoken = this.session.getToken();\n      let permission = this.session.getPermissionList();\n      this.controllerFor('schedule').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    async model(params) {\n      let token = this.session.getToken();\n      let doctorId = params.doctor_id;\n      let configResponse = await $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}vc-configurations/${doctorId}`,\n        type: \"GET\",\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        }\n      });\n      let doctorListResponse = await $.ajax({\n        url: `${_environment.default.APP.lumen_api_url}usertimeslot`,\n        type: \"GET\",\n        headers: {\n          \"Authorization\": `Bearer ${token}`\n        }\n      });\n      return {\n        config: configResponse.data,\n        doctorList: doctorListResponse.data\n      };\n    },\n    setupController(controller, model) {\n      controller.set('vcConfig', model.config);\n      controller.set('doctorList', model.doctorList);\n      controller.set('vcConfigDays', Ember.A(model.config && model.config.days || []));\n      controller.set('isSavingVcConfig', false);\n    },\n    afterModel() {\n      let role_route_permission = this.session.getRoleRouteList();\n      let current_browser_name = this.routeName;\n      let route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('schedule.max-slots.edit').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('schedule.max-slots-edit', {\n        into: 'application',\n        controller: 'schedule.max-slots.edit'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/schedule/upload\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    schedule: Ember.inject.service('schedule'),\n    activeDoctor: null,\n    renderTemplate: function () {\n      this.render('schedule.upload', {\n        controller: 'schedule'\n      });\n    },\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('schedule').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    model(params) {\n      let doctorId = params.id;\n      return this.schedule.getDoctorDetails(doctorId).then(doctor => {\n        // Parallel fetching of non-OCP and OCP schedules\n        return Promise.all([this.schedule.getDoctorSchedules(doctor.user_id),\n        // Non-OCP\n        this.schedule.getDoctorOCPSchedules(doctor.user_id) // OCP\n        ]).then(([nonOcpSchedules, ocpSchedules]) => {\n          return {\n            doctor,\n            nonOcpSchedules,\n            ocpSchedules\n          };\n        });\n      });\n    },\n    setupController(controller, model) {\n      this._super(controller, model);\n      this.controllerFor('schedule').set('model', model.doctor);\n      this.controllerFor('schedule').set('nonOcpSchedules', model.nonOcpSchedules);\n      this.controllerFor('schedule').set('ocpSchedules', model.ocpSchedules);\n    },\n    actions: {\n      // goBack() {\n      //   history.go(-1);\n      // },\n      //This below function is used for sunmmiting the doctor schedule\n      // submitRegularSchedule(doctor_id) {\n      //   var _file = $('#regular_schedule')[0].files[0];\n      //   console.log(_file);\n      //   if (_file == undefined) {\n      //     alert('Please select a file.');\n      //     return false;\n      //   }\n\n      //   var _this = this;\n      //   var utoken = this.session.getLoggedInUserId();\n      //   var user_id = utoken;\n      //   var data_1 = new FormData();\n      //   data_1.append('schedule', _file);\n      //   data_1.append('doctor_id', doctor_id);\n      //   data_1.append('user_id', user_id);\n\n      //   $.ajax({\n      //     method: 'POST',\n      //     url: ENV.APP.api_url + 'schedule/regular',\n      //     // headers: {\"token\": utoken},\n      //     data: data_1,\n      //     cache: false,\n      //     mimeType: 'multipart/form-data', //Property added in 1.5.1\n      //     contentType: 'multipart/form-data',\n      //     dataType: 'json',\n      //     processData: false, // Don't process the files\n      //     contentType: false, // Set content type to false as jQuery will tell the server its a query string request\n      //     beforeSend: function (x) {\n      //       var name = _file.name.split('.');\n      //       if (\n      //         $.trim(name[1]) != 'xls' &&\n      //         $.trim(name[1]) != 'xlsx' &&\n      //         $.trim(name[1]) != 'XLS' &&\n      //         $.trim(name[1]) != 'XLSX'\n      //       ) {\n      //         alert('Invalid file type. Only xls & xlsx file type allowed.');\n      //         return false;\n      //       }\n\n      //       if (x && x.overrideMimeType) {\n      //         x.overrideMimeType('multipart/form-data');\n      //       }\n      //       $('#loading').addClass('in');\n      //       $('#loading').css('display', 'block');\n      //       $('body').addClass('modal-open');\n      //     },\n      //     success: function (res) {\n      //       if (res.status == 'ok') {\n      //         alert('File uploaded successfully.');\n      //         _this.transitionTo('schedule');\n      //       }\n      //     },\n      //     error: function (res) {\n      //       console.error(res);\n      //     },\n      //     complete: function (res) {\n      //       setTimeout(function () {\n      //         $('#loading').removeClass('in');\n      //         $('#loading').css('display', 'none');\n      //         $('.modal-backdrop').remove();\n      //         $('body').removeClass('modal-open');\n      //       }, 500);\n      //     },\n      //   });\n      // },\n      // submitScheduleAdjustments(doctor_id) {\n      //   var _file = $('#schedule_adjustments')[0].files[0];\n      //   var from_date = moment($('#from_date').val()).format('YYYY-MM-DD');\n      //   var from_input_date = $('#from_date').val();\n      //   var to_date = moment($('#to_date').val()).format('YYYY-MM-DD');\n      //   var to_input_date = $('#to_date').val();\n      //   if (_file == undefined) {\n      //     alert('Please select a file.');\n      //     return false;\n      //   }\n\n      //   if ($.trim(from_input_date) == '') {\n      //     alert('Please select From date');\n      //     return false;\n      //   }\n      //   if ($.trim(to_input_date) == '') {\n      //     alert('Please select To date');\n      //     return false;\n      //   }\n      //   var _this = this;\n      //   var utoken = this.session.getLoggedInUserId();\n      //   var user_id = utoken;\n      //   var data_1 = new FormData();\n\n      //   data_1.append('schedule', _file);\n      //   data_1.append('doctor_id', doctor_id);\n      //   data_1.append('user_id', user_id);\n      //   data_1.append('from_date', from_date);\n      //   data_1.append('to_date', to_date);\n\n      //   $.ajax({\n      //     method: 'POST',\n      //     url: ENV.APP.api_url + 'schedule/adjustment',\n      //     // headers: {\"token\": utoken},\n      //     data: data_1,\n      //     cache: false,\n      //     mimeType: 'multipart/form-data', //Property added in 1.5.1\n      //     contentType: 'multipart/form-data',\n      //     dataType: 'json',\n      //     processData: false, // Don't process the files\n      //     contentType: false, // Set content type to false as jQuery will tell the server its a query string request\n      //     beforeSend: function (x) {\n      //       var name = _file.name.split('.');\n      //       if (\n      //         $.trim(name[1]) != 'xls' &&\n      //         $.trim(name[1]) != 'xlsx' &&\n      //         $.trim(name[1]) != 'XLS' &&\n      //         $.trim(name[1]) != 'XLSX'\n      //       ) {\n      //         alert('Invalid file type. Only xls & xlsx file type allowed.');\n      //         return false;\n      //       }\n\n      //       if (x && x.overrideMimeType) {\n      //         x.overrideMimeType('multipart/form-data');\n      //       }\n      //       $('#loading').addClass('in');\n      //       $('#loading').css('display', 'block');\n      //       $('body').addClass('modal-open');\n      //     },\n      //     success: function (res) {\n      //       if (res.status == 'ok') {\n      //         alert('File uploaded successfully.');\n      //         _this.transitionTo('schedule');\n      //       } else {\n      //         alert(res.error_message);\n      //       }\n      //     },\n      //     error: function (res) {\n      //       console.error(res);\n      //     },\n      //     complete: function (res) {\n      //       setTimeout(function () {\n      //         $('#loading').removeClass('in');\n      //         $('#loading').css('display', 'none');\n      //         $('.modal-backdrop').remove();\n      //         $('body').removeClass('modal-open');\n      //       }, 500);\n      //     },\n      //   });\n      // },\n    },\n    afterModel() {\n      //   var role_route_permission = this.get('session').getRoleRouteList();\n      //  var current_browser_name = this.get('routeName');\n      //  console.log(current_browser_name);\n      //  var route_access = this.get('route_permission').canRouteAccess(current_browser_name, role_route_permission);\n      //  this.controllerFor('schedule').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/settings\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings').set('permission_arr', permission);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/branch/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('branch').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      //reset values to null\n      this.controllerFor('branch').set('branch_name', '');\n      this.controllerFor('branch').set('branch_code', '');\n      this.controllerFor('branch').set('branch_full_name', '');\n      this.controllerFor('branch').set('branch_status', '');\n      this.controllerFor('branch').set('morning_shift_start', '');\n      this.controllerFor('branch').set('morning_shift_end', '');\n      this.controllerFor('branch').set('morning_charity_status', '');\n      this.controllerFor('branch').set('evening_shift_start', '');\n      this.controllerFor('branch').set('evening_shift_end', '');\n      this.controllerFor('branch').set('evening_charity_status', '');\n      this.controllerFor('branch').set('id', '');\n      this.controllerFor('branch').set('page', 'Add Branch');\n      this.controllerFor('branch').set('vali_errors', '');\n      this.controllerFor('branch').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('branch').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.branch.add', {\n        controller: 'branch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/branch/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('branch').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('branch').set('page', 'Edit Branch');\n      this.controllerFor('branch').set('vali_errors', '');\n      this.controllerFor('branch').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var branches_data = res;\n          _this.controllerFor('branch').set('branch_name', branches_data.title);\n          _this.controllerFor('branch').set('branch_code', branches_data.branch_code);\n          _this.controllerFor('branch').set('branch_full_name', branches_data.fullname);\n          _this.controllerFor('branch').set('branch_status', branches_data.status);\n          _this.controllerFor('branch').set('id', branches_data.id);\n          var s = _this.set('status', branches_data.status);\n          _this.controllerFor('branch').set('morning_shift_start', branches_data.shifts.morning_shift_start);\n          _this.controllerFor('branch').set('morning_shift_end', branches_data.shifts.morning_shift_end);\n          _this.controllerFor('branch').set('morning_charity_status', branches_data.shifts.morning_charity_status);\n          _this.controllerFor('branch').set('evening_shift_start', branches_data.shifts.evening_shift_start);\n          _this.controllerFor('branch').set('evening_shift_end', branches_data.shifts.evening_shift_end);\n          _this.controllerFor('branch').set('evening_charity_status', branches_data.shifts.evening_charity_status);\n          _this.controllerFor('branch').set('latitude', branches_data.latitude);\n          _this.controllerFor('branch').set('longitude', branches_data.longitude);\n          if (branches_data.shifts.evening_charity_status > 0) {\n            $(\"input[name='evening_charity_status']\").attr('checked', 'checked');\n          }\n          if (branches_data.shifts.morning_charity_status > 0) {\n            $(\"input[name='morning_charity_status']\").attr('checked', 'checked');\n          }\n          $(document).ready(function () {\n            if (branches_data.shifts.evening_charity_status > 0) {\n              $(\"input[name='evening_charity_status']\").attr('checked', 'checked');\n            }\n            if (branches_data.shifts.morning_charity_status > 0) {\n              $(\"input[name='morning_charity_status']\").attr('checked', 'checked');\n            }\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('branch').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.branch.add', {\n        controller: 'branch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/branch/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('branch').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      var _this = this;\n      this.controllerFor('branch').set('page', 'Branch List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('branch').send('getBranch', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('branch').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.branch.list', {\n        controller: 'branch'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/doctors\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    doctors: null,\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel(transition) {\n      var permission = this.session.getPermissionList();\n      let headers = {};\n      this.controllerFor('settings').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      if (utoken) {\n        headers[\"Authorization\"] = `Bearer ${utoken}`;\n      }\n      var location = this.session.getLocation().split('-');\n      var branch_id = location[0];\n      var branch_name = location[1];\n      var shift_id = this.session.getLoggedInUserShift();\n      var _this = this;\n      var all_branches = [];\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'branches',\n        data: {},\n        dataType: 'json',\n        headers: headers,\n        async: false,\n        success: function (res) {\n          all_branches = res.data;\n        },\n        error: function (error, x, y) {}\n      });\n      var temp = {};\n      for (var i = 0; i < all_branches.length; i++) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/doctors',\n          data: {\n            branch_id: all_branches[i].id,\n            shift_id: 1,\n            doc_status: 1\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          success: function (res) {\n            temp[all_branches[i].title] = {};\n            temp[all_branches[i].title]['morning'] = res;\n          }\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/doctors',\n          data: {\n            branch_id: all_branches[i].id,\n            shift_id: 2,\n            doc_status: 1\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          success: function (res) {\n            temp[all_branches[i].title]['evening'] = res;\n          }\n        });\n        _this.controllerFor('settings').set('doctors', temp);\n      }\n    },\n    actions: {\n      updateList() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var shift_id = this.session.getLoggedInUserShift();\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var all_branches = [];\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'branches',\n          data: {},\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          success: function (res) {\n            all_branches = res.data;\n          },\n          error: function (error, x, y) {}\n        });\n        var temp = {};\n        for (var i = 0; i < all_branches.length; i++) {\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'users/doctors',\n            data: {\n              branch_id: all_branches[i].id,\n              shift_id: 1,\n              doc_status: 1\n            },\n            async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              temp[all_branches[i].title] = {};\n              temp[all_branches[i].title]['morning'] = res;\n            }\n          });\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.api_url + 'users/doctors',\n            data: {\n              branch_id: all_branches[i].id,\n              shift_id: 2,\n              doc_status: 1\n            },\n            async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              temp[all_branches[i].title]['evening'] = res;\n            }\n          });\n          _this.controllerFor('settings').set('doctors', temp);\n        }\n      },\n      toggleDoctorStatus(user_id, current_status, shift_id, branch_id, label) {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var kiosk;\n        var other_branch;\n        var other_shift;\n        if (branch_id == 1) {\n          other_branch = 2;\n        } else {\n          other_branch = 1;\n        }\n        if (current_status == 0) {\n          if ($('.' + label + '-' + other_branch + '-' + shift_id).data('avail') == '1') {\n            alert('Please disable the doctor from other branch first.');\n            return false;\n          }\n          kiosk = 1;\n        } else if (current_status == 1) {\n          kiosk = 0;\n        }\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/kiosk-doctor-status',\n          data: {\n            branch_id: branch_id,\n            user_id: user_id,\n            kiosk: kiosk,\n            shift_id: shift_id\n          },\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            //          $(\"#loading\").addClass('in');\n            // $(\"#loading\").css('display','block');\n            // $('body').addClass('modal-open');\n          },\n          complete: function () {\n            //          setTimeout(function(){$(\"#loading\").removeClass('in');\n            // $(\"#loading\").css('display','none');\n            // $('.modal-backdrop').remove();\n            // $('body').removeClass('modal-open');},500);\n          },\n          success: function (res) {\n            console.log(res);\n            _this.send('updateList');\n          }\n        });\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var route_access = this.route_permission.canRouteAccess('settings/doctors', role_route_permission);\n      this.controllerFor('settings').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.doctors', {\n        controller: 'settings'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/settings/masters/charges/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.charges').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.charges').set('page', 'Add Charge');\n      this.controllerFor('settings.masters.charges').set('charge_type', '');\n      this.controllerFor('settings.masters.charges').set('charge_cost', '');\n      this.controllerFor('settings.masters.charges').set('charge_code', '');\n      this.controllerFor('settings.masters.charges').set('print_code', '');\n      this.controllerFor('settings.masters.charges').set('doctor_related', '');\n      this.controllerFor('settings.masters.charges').set('description', '');\n      this.controllerFor('settings.masters.charges').set('status', '');\n      this.controllerFor('settings.masters.charges').set('id', '');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.charges').set('vali_errors', '');\n      this.controllerFor('settings.masters.charges').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.charges').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.charges.add', {\n        controller: 'settings.masters.charges'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/charges/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.charges').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.charges').set('page', 'Edit Charge');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.charges').set('vali_errors', '');\n      this.controllerFor('settings.masters.charges').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      this.controllerFor('settings.masters.charges').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/charge/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var charge_data = res;\n          _this.controllerFor('settings.masters.charges').set('charge_type', charge_data.charge_type);\n          _this.controllerFor('settings.masters.charges').set('charge_cost', charge_data.charge_cost);\n          _this.controllerFor('settings.masters.charges').set('charge_code', charge_data.charge_code);\n          _this.controllerFor('settings.masters.charges').set('print_code', charge_data.print_code);\n          _this.controllerFor('settings.masters.charges').set('doctor_related', charge_data.doctor_related);\n          _this.controllerFor('settings.masters.charges').set('shipping_related', charge_data.shipping_related);\n          _this.controllerFor('settings.masters.charges').set('description', charge_data.description);\n          _this.controllerFor('settings.masters.charges').set('status', charge_data.status);\n          // _this.controllerFor('settings.masters.form').set('id',form_data.id);doctor_related\n          $(document).ready(function () {\n            if (charge_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n            /* For checking related to doctor */\n            if (charge_data.doctor_related == 1) {\n              $('#doctor_related').prop('checked', true);\n            }\n            if (charge_data.shipping_related == 1) {\n              $('#shipping_related').prop('checked', true);\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.charges').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.charges.add', {\n        controller: 'settings.masters.charges'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/charges/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.charges.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/charges/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.charges').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.recalculateAmount.alertMessagePopupClose();\n      this.controllerFor('settings.masters.charges').set('page', 'Charges List');\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.charges.list', {\n        controller: 'settings.masters.charges'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.charges').set('route_access', route_access);\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.charges').send('getRecords', page, status);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/diagnostic/add\", [\"exports\", \"clinic-dev/config/environment\", \"slim-select\"], function (_exports, _environment, _slimSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\",0,\"slim-select\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.diagnostic').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.diagnostic').set('page', 'Add Diagnostic Test / Outcome');\n      this.controllerFor('settings.masters.diagnostic').set('selectedGroupOption', '');\n      this.controllerFor('settings.masters.diagnostic').set('test_name', '');\n      this.controllerFor('settings.masters.diagnostic').set('unit_name', '');\n      this.controllerFor('settings.masters.diagnostic').set('upper_range', '');\n      this.controllerFor('settings.masters.diagnostic').set('lower_range', '');\n      this.controllerFor('settings.masters.diagnostic').set('range_type', '');\n      this.controllerFor('settings.masters.diagnostic').set('imaging', '');\n      this.controllerFor('settings.masters.diagnostic').set('status', '');\n      this.controllerFor('settings.masters.diagnostic').set('id', '');\n      this.controllerFor('settings.masters.diagnostic').set('vali_errors', '');\n      this.controllerFor('settings.masters.diagnostic').set('errors', '');\n      this.controllerFor('settings.masters.diagnostic').set('cfl', 'display:none');\n      this.controllerFor('settings.masters.diagnostic').set('test_notes', '');\n      this.controllerFor('settings.masters.diagnostic').set('cfl_list', '');\n      this.recalculateAmount.alertMessagePopupClose();\n      // Only 2 desimal value\n      $(document).on('keypress', '.decimalvalue', function (e) {\n        var variableType = $(this).parent().parent().parent().parent().find('.variable_type:checked').val();\n        if (variableType == 'th') {\n          if ((e.which != 46 || $(this).val().indexOf('.') != -1) && (e.which < 48 || e.which > 57) && e.which != 0 && e.which != 8) {\n            e.preventDefault();\n          }\n          var text = $(this).val();\n          if (text.indexOf('.') != -1 && text.substring(text.indexOf('.')).length > 2 && e.which != 0 && e.which != 8 && $(this)[0].selectionStart >= text.length - 2) {\n            e.preventDefault();\n          }\n        }\n      });\n      $(document).on('click', '#mixMedicineRow', function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n        event.stopImmediatePropagation();\n        var removeNum = $(this).data('row');\n        $('#cflAdd' + removeNum).remove();\n      });\n      $(document).ready(function () {\n        new _slimSelect.default({\n          select: '#taxonomy',\n          placeholder: 'Select Groups',\n          searchText: 'Sorry couldnt find anything'\n          // onChange: (info) => {\n          //   console.log(info)\n          //   this.$().set('selectedGroupOption', info || []);\n          // }\n        });\n      });\n    },\n    model() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      // This ajax call to get parent group up to nth level\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'activegroup',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.diagnostic').set('groupList', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      // This ajax call to get unit data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'outcomesuom?datalist=datalist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.diagnostic').set('units_list', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.diagnostic').set('route_access', route_access);\n    },\n    actions: {},\n    renderTemplate: function () {\n      this.render('settings.masters.diagnostic.add', {\n        controller: 'settings.masters.diagnostic'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/diagnostic/edit\", [\"exports\", \"clinic-dev/config/environment\", \"slim-select\", \"jquery\"], function (_exports, _environment, _slimSelect, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\",0,\"slim-select\",0,\"jquery\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.diagnostic').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.diagnostic').set('page', 'Edit Diagnostic Report');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.diagnostic').set('vali_errors', '');\n      this.controllerFor('settings.masters.diagnostic').set('errors', '');\n      $(document).on('click', '.removeDiagnoticRow', function (e) {\n        //console.log(this);\n        e.preventDefault();\n        var rownum = $(this).data('row');\n        $('.variable_row' + rownum).remove();\n      });\n      $(document).on('change', '.variable_type', function (e) {\n        //console.log(this);\n        e.preventDefault();\n        var index = $(this).data('row');\n        var type = $(this).data('type');\n        $('input.upper' + index).val('');\n        $('input.lower' + index).val('');\n        if (type == 'bnr') {\n          $('label.upper' + index).text('Red');\n          $('input.upper' + index).attr('placeholder', 'Red');\n          $('label.lower' + index).text('Green');\n          $('input.lower' + index).attr('placeholder', 'Green');\n        } else {\n          $('label.upper' + index).text('Upper');\n          $('input.upper' + index).attr('placeholder', 'Upper');\n          $('label.lower' + index).text('Lower');\n          $('input.lower' + index).attr('placeholder', 'Lower');\n        }\n\n        // $(\".disease\"+rownum).remove();\n      });\n\n      // Only 2 desimal value\n      $(document).on('keypress', '.decimalvalue', function (e) {\n        var variableType = $(this).parent().parent().parent().parent().parent().find('.variable_type:checked').val();\n        console.log(variableType);\n        if (variableType == 'th') {\n          if ((e.which != 46 || $(this).val().indexOf('.') != -1) && (e.which < 48 || e.which > 57) && e.which != 0 && e.which != 8) {\n            e.preventDefault();\n          }\n          var text = $(this).val();\n          if (text.indexOf('.') != -1 && text.substring(text.indexOf('.')).length > 2 && e.which != 0 && e.which != 8 && $(this)[0].selectionStart >= text.length - 2) {\n            e.preventDefault();\n          }\n        }\n      });\n    },\n    model(params) {\n      var _this = this;\n      _this.getRecordsDetails(params);\n    },\n    getRecordsDetails: function (params) {\n      //console.log(params);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('settings.masters.diagnostic').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'diagnostic/' + params.id,\n        dataType: 'json',\n        async: true,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var gdata = [];\n          var report_data = res.data;\n          var cfl_list = res.cfl_list;\n          $.each(report_data, function (key, val) {\n            // var objGPush = {};\n            // objGPush.text = val.group_name;\n            // objGPush.value = val.dtg_id;\n            gdata.push(val.dtg_id);\n          });\n          console.log(gdata);\n          // console.log(cfl_list);\n          _this.controllerFor('settings.masters.diagnostic').set('test_name', report_data[0].name);\n          _this.controllerFor('settings.masters.diagnostic').set('unit_name', report_data[0].outcomes_uom_id);\n          _this.controllerFor('settings.masters.diagnostic').set('upper_range', report_data[0].upper_range);\n          _this.controllerFor('settings.masters.diagnostic').set('imaging', report_data[0].imaging);\n          _this.controllerFor('settings.masters.diagnostic').set('selectedGroupOption', gdata);\n          _this.controllerFor('settings.masters.diagnostic').set('lower_range', report_data[0].lower_range);\n          _this.controllerFor('settings.masters.diagnostic').set('range_type', report_data[0].range_type);\n          _this.controllerFor('settings.masters.diagnostic').set('test_notes', report_data[0].test_notes);\n          _this.controllerFor('settings.masters.diagnostic').set('cfl_list', cfl_list);\n          $(document).ready(function () {\n            if (report_data[0].dt_status == 1) {\n              $('input:radio#Active').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio#Inactive').prop('checked', true).trigger('click');\n            }\n            if (report_data[0].range_type == 'th') {\n              $('input:radio#th').prop('checked', true).trigger('click');\n            } else if (report_data[0].range_type == 'cfl') {\n              $('input:radio#cfl').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio#bnr').prop('checked', true).trigger('click');\n            }\n            const $mySelect = new _slimSelect.default({\n              select: '#taxonomy',\n              placeholder: 'Select Groups',\n              searchText: 'Sorry couldnt find anything'\n            });\n            $mySelect.set(gdata);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete3');\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.diagnostic').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.diagnostic.add', {\n        controller: 'settings.masters.diagnostic'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/diagnostic/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      //console.log(permission);\n      this.controllerFor('settings.masters.diagnostic').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.diagnostic').set('page', 'Diagnostic Tests / Outcomes');\n      this.controllerFor('settings.masters.diagnostic').set('vali_errors', '');\n      this.controllerFor('settings.masters.diagnostic').set('errors', '');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.diagnostic').set('route_access', route_access);\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'activegroup',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.diagnostic').set('groupList', res);\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            //_this.getRecordsDetails(params);\n          }, 500);\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.diagnostic.list', {\n        controller: 'settings.masters.diagnostic'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.diagnostic').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.diagnostic').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/disease/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.disease').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.disease').set('page', 'Add Disease');\n      this.controllerFor('settings.masters.disease').set('name', '');\n      this.controllerFor('settings.masters.disease').set('status', '');\n      this.controllerFor('settings.masters.disease').set('isSerious', '');\n      this.controllerFor('settings.masters.disease').set('id', '');\n      this.controllerFor('settings.masters.disease').set('system', '');\n      this.controllerFor('settings.masters.disease').get('selectedItems').clear();\n      this.controllerFor('settings.masters.disease').set('organ', '');\n      this.controllerFor('settings.masters.disease').set('vali_errors', '');\n      this.controllerFor('settings.masters.disease').set('errors', '');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?datalist=datalist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.disease').set('systems', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      $(document).on('click', '.removeDiseaseRow', function () {\n        //\tconsole.log(this);\n        var rownum = $(this).data('row');\n        var rowCount = $('.diseaselist').find('.row').length;\n        if (rowCount > 1) {\n          $('.disease' + rownum).remove();\n        }\n        if (rowCount == 1) {\n          $('.disease' + rownum).find('.diseasename').val('');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.disease').set('route_access', route_access);\n    },\n    actions: {\n      addMoreRows: function () {\n        var appointment = [];\n        $('.ordering').each(function () {\n          var stval = $(this).val();\n          appointment.push(stval);\n        });\n        if (appointment.length == 0 || appointment.length == undefined) {\n          appointment.push(0);\n        }\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"row disease' + rowCount + '\" style=\"margin-top:5px;\"><div class=\"col-xs-6\"><input type=\"hidden\" value=\"' + rowCount + '\" class=\"ordering\"><input type=\"text\" class=\"form-control diseasename\" id=\"name\" placeholder=\"Enter Disease Name\" name=\"disease[]\"></div><div class=\"col-xs-4 marginleft5\"><button class=\"btn btn-danger removeDiseaseRow\" data-row=\"' + rowCount + '\" type=\"button\"> <i class=\"fa fa-minus-circle\" aria-hidden=\"true\"></i></button></div></div>';\n        $('.diseaselist').append(recRow);\n      }\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.disease.add', {\n        controller: 'settings.masters.disease'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/disease/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.disease').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.disease').set('page', 'Edit Disease');\n      this.controllerFor('settings.masters.disease').get('selectedItems').clear();\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.disease').set('vali_errors', '');\n      this.controllerFor('settings.masters.disease').set('system', '');\n      this.controllerFor('settings.masters.disease').set('organ', '');\n      this.controllerFor('settings.masters.disease').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?editlist=edit',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.disease').set('systems', res);\n        },\n        complete: function (res) {\n          //setTimeout(function(){\n          _this.getRecordsDetails(params);\n          //}, 500);\n        }\n      });\n    },\n    getRecordsDetails: function (params) {\n      //console.log(params);\n\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('settings.masters.disease').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'disease/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var organ_data = res;\n          var diseases = organ_data;\n          _this.controllerFor('settings.masters.disease').set('name', organ_data.name);\n          _this.controllerFor('settings.masters.disease').set('isSerious', organ_data[0].is_serious);\n          // _this.controllerFor('settings.masters.disease').set('id',organ_data.id);\n          setTimeout(function () {\n            diseases.forEach(function (item, index) {\n              //console.log(item.system.name);\n              if (index == 0) {\n                _this.controllerFor('settings.masters.disease').send('selectSystem', item.system.id, item.system.name);\n                setTimeout(function () {\n                  _this.controllerFor('settings.masters.disease').set('organ', item.system.id);\n                  $(\"input[name='organ'][value='\" + item.organ + \"']\").prop('checked', true);\n                  $(\"input[name='organ'][value='\" + item.organ + \"']\").attr('checked', 'checked');\n                  $(\"input[name='system'][value='\" + item.system.id + \"']\").prop('checked', true);\n                  $(\"input[name='system'][value='\" + item.system.id + \"']\").attr('checked', 'checked');\n                  $('.organ2' + item.system.id).css('display', 'block');\n                  $('.organ2' + item.organ).css('display', 'block');\n                  _this.controllerFor('settings.masters.disease').send('selectOrganSystem', item.organ, true);\n                  $('.disease1').find('input.diseasename').val(item.name);\n                }, 300);\n              } else {\n                var appointment = [];\n                $('.ordering').each(function () {\n                  var stval = $(this).val();\n                  appointment.push(stval);\n                });\n                var max_count = parseInt(Math.max.apply(Math, appointment));\n                var rowCount = parseInt(max_count) + 1;\n                var recRow = '<div class=\"row disease' + rowCount + '\" style=\"margin-top:5px;\"><div class=\"col-xs-6\"><input type=\"hidden\" value=\"' + rowCount + '\" class=\"ordering\"><input type=\"text\" class=\"form-control diseasename\" id=\"name\" placeholder=\"Enter Disease Name\" name=\"disease[]\" value=\"' + item.name + '\"></div><div class=\"col-xs-4 marginleft5\"><button class=\"btn btn-danger removeDiseaseRow\" data-row=\"' + rowCount + '\" type=\"button\"> <i class=\"fa fa-minus-circle\" aria-hidden=\"true\"></i></button></div></div>';\n                $('.diseaselist').append(recRow);\n                //console.log(item);\n                $('.organ2' + item.organ).css('display', 'block');\n              }\n            });\n          }, 500);\n          $(document).ready(function () {\n            if (organ_data[0].status == 1) {\n              $('input:radio#Active').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio#Inactive').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.disease').set('route_access', route_access);\n    },\n    actions: {\n      addMoreRows: function () {\n        var appointment = [];\n        $('.ordering').each(function () {\n          var stval = $(this).val();\n          appointment.push(stval);\n        });\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"row disease' + rowCount + '\" style=\"margin-top:5px;\"><div class=\"col-xs-6\"><input type=\"hidden\" value=\"' + rowCount + '\" class=\"ordering\"><input type=\"text\" class=\"form-control diseasename\" id=\"name\" placeholder=\"Enter Disease Name\" name=\"disease[]\"></div><div class=\"col-xs-4 marginleft5\"><button class=\"btn btn-danger removeDiseaseRow\" data-row=\"' + rowCount + '\" type=\"button\"> <i class=\"fa fa-minus-circle\" aria-hidden=\"true\"></i></button></div></div>';\n        $('.diseaselist').append(recRow);\n      }\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.disease.add', {\n        controller: 'settings.masters.disease'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/disease/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      console.log(permission);\n      this.controllerFor('settings.masters.disease').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.disease').set('page', 'Disease List');\n      this.controllerFor('settings.masters.disease').set('vali_errors', '');\n      this.controllerFor('settings.masters.disease').set('errors', '');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?datalist=all',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.disease').set('systems', res);\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            //_this.getRecordsDetails(params);\n          }, 500);\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.disease').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.disease.list', {\n        controller: 'settings.masters.disease'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.disease').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.disease').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-level/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.doctor-level').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.doctor-level').set('page', 'Add Doctor Level');\n      this.controllerFor('settings.masters.doctor-level').set('charge_name_list', []);\n      this.controllerFor('settings.masters.doctor-level').set('name', '');\n      this.controllerFor('settings.masters.doctor-level').set('seniority_level', '');\n      this.controllerFor('settings.masters.doctor-level').set('status', '');\n      this.controllerFor('settings.masters.doctor-level').set('id', '');\n      this.controllerFor('settings.masters.doctor-level').set('vali_errors', '');\n      this.controllerFor('settings.masters.doctor-level').set('errors', '');\n      this.recalculateAmount.alertMessagePopupClose();\n      var _this = this;\n      _this.controllerFor('settings.masters.doctor-level').send('getDoctorCharge');\n      _this.controllerFor('settings.masters.doctor-level').send('getLocation');\n      _this.controllerFor('settings.masters.doctor-level').get('addedlocationList').clear();\n      _this.controllerFor('settings.masters.doctor-level').get('chargeselectedItems').clear();\n      $(document).on('click', '.charge_enable', function (event) {\n        //event.preventDefault();\n        var checked_id = $(this).attr('id');\n        var charge_location_id = checked_id.split('_')[2];\n        var charge_id = checked_id.split('_')[3];\n        if ($('#' + checked_id).is(':checked')) {\n          $('#charge_' + charge_location_id + '_' + charge_id).removeAttr('readonly');\n        } else {\n          $('#charge_' + charge_location_id + '_' + charge_id).attr('readonly', 'readonly');\n        }\n      });\n      $(document).on('keyup', '.checkbox_charge', function (event) {\n        //event.preventDefault();\n        var charge = $(this).val();\n        var checked_id = $(this).attr('id');\n        var charge_location_id = checked_id.split('_')[1];\n        var charge_id = checked_id.split('_')[2];\n        $('#charge_checkbox_' + charge_location_id + '_' + charge_id).removeAttr('value');\n        $('#charge_checkbox_' + charge_location_id + '_' + charge_id).attr('value', charge);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-level').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-level.add', {\n        controller: 'settings.masters.doctor-level'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-level/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.doctor-level').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.doctor-level').set('page', 'Edit Doctor Level');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.doctor-level').set('vali_errors', '');\n      this.controllerFor('settings.masters.doctor-level').set('errors', '');\n      this.controllerFor('settings.masters.doctor-level').send('getDoctorCharge');\n      this.controllerFor('settings.masters.doctor-level').send('getLocation');\n      this.recalculateAmount.alertMessagePopupClose();\n      this.controllerFor('settings.masters.doctor-level').get('chargeselectedItems').clear();\n      this.controllerFor('settings.masters.doctor-level').get('addedlocationList').clear();\n      $(document).on('click', '.charge_enable', function (event) {\n        //event.preventDefault();\n        var checked_id = $(this).attr('id');\n        var charge_location_id = checked_id.split('_')[2];\n        var charge_id = checked_id.split('_')[3];\n        if ($('#' + checked_id).is(':checked')) {\n          $('#charge_' + charge_location_id + '_' + charge_id).removeAttr('readonly');\n        } else {\n          $('#charge_checkbox_' + charge_location_id + '_' + charge_id).removeAttr('checked');\n          $('#charge_' + charge_location_id + '_' + charge_id).attr('readonly', 'readonly');\n        }\n      });\n      $(document).on('keyup', '.checkbox_charge', function (event) {\n        //event.preventDefault();\n        var charge = $(this).val();\n        var checked_id = $(this).attr('id');\n        var charge_location_id = checked_id.split('_')[1];\n        var charge_id = checked_id.split('_')[2];\n        $('#charge_checkbox_' + charge_location_id + '_' + charge_id).removeAttr('value');\n        $('#charge_checkbox_' + charge_location_id + '_' + charge_id).attr('value', charge);\n      });\n    },\n    model(params) {\n      var _this = this;\n      this.controllerFor('settings.masters.doctor-level').set('id', params.id);\n      _this.controllerFor('settings.masters.doctor-level').send('getRecordOfDoctorLevel', params.id);\n\n      // $.ajax({\n      //     method: \"GET\",\n      //     url: ENV.APP.lumen_api_url+\"doctor-level/\"+params.id,\n      //     dataType:'json',\n      //     async:false,\n      //     success: function(res){\n      //         var system_data = res;\n      //         _this.controllerFor('settings.masters.system').set('name',system_data.name);\n      //         _this.controllerFor('settings.masters.system').set('status',system_data.status);\n\n      //        // _this.controllerFor('settings.masters.form').set('id',form_data.id);doctor_related\n      //         $(document).ready(function() {\n      //             if(system_data.status==1){\n      //                 $(\"input:radio:first\").prop(\"checked\", true).trigger(\"click\");\n      //             }else{\n      //                 $(\"input:radio:last\").prop(\"checked\", true).trigger(\"click\");\n      //             }\n      //           });\n      //     },\n      //       error: function(error, x, y){\n      //     }\n      //   });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-level').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-level.edit', {\n        controller: 'settings.masters.doctor-level'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-level/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      //console.log(permission);\n      this.controllerFor('settings.masters.doctor-level').set('permission_arr', permission);\n      this.controllerFor('settings.masters.doctor-level').set('query_string', '');\n      this.controllerFor('settings.masters.doctor-level').set('vali_errors', '');\n      this.controllerFor('settings.masters.doctor-level').set('errors', '');\n      this.controllerFor('settings.masters.doctor-level').get('chargeselectedItems').clear();\n      this.controllerFor('settings.masters.doctor-level').get('addedlocationList').clear();\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.doctor-level').set('page', 'Doctor Level List');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-level').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-level.list', {\n        controller: 'settings.masters.doctor-level'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.doctor-level').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.doctor-level').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-management/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.doctor-management').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.doctor-management').set('user_name', '');\n      _this.controllerFor('settings.masters.doctor-management').set('id', '');\n      _this.controllerFor('settings.masters.doctor-management').set('username', '');\n      _this.controllerFor('settings.masters.doctor-management').set('email_id', '');\n      _this.controllerFor('settings.masters.doctor-management').set('password', '');\n      _this.controllerFor('settings.masters.doctor-management').set('confirm_password', '');\n      _this.controllerFor('settings.masters.doctor-management').set('employee_code', '');\n      _this.controllerFor('settings.masters.doctor-management').set('designation', '');\n      _this.controllerFor('settings.masters.doctor-management').set('imagePreview', null);\n      _this.controllerFor('settings.masters.doctor-management').set('remove_image', 0);\n      _this.controllerFor('settings.masters.doctor-management').set('mobile_no', '');\n      _this.controllerFor('settings.masters.doctor-management').set('user_status', '');\n      _this.controllerFor('settings.masters.doctor-management').set('user_label', '');\n      _this.controllerFor('settings.masters.doctor-management').set('user_order', '');\n      _this.controllerFor('settings.masters.doctor-management').set('user_color', '');\n      _this.controllerFor('settings.masters.doctor-management').get('selectedItems').clear();\n      _this.controllerFor('settings.masters.doctor-management').get('roleselectedItems').clear();\n      _this.controllerFor('settings.masters.doctor-management').get('branchselectedItems').clear();\n      _this.controllerFor('settings.masters.doctor-management').set('page', 'Add User');\n      _this.controllerFor('settings.masters.doctor-management').set('vali_errors', '');\n      _this.controllerFor('settings.masters.doctor-management').set('errors', '');\n      $(document).ready(function () {\n        $('.doctor_show').hide();\n      });\n      var status = 1;\n      // ajax call for branch  list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('branches', res);\n          //_this.controllerFor('settings.masters.users').set('branches', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for permission list\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.lumen_api_url + 'categorywisepermissions',\n      //   success: function (res) {\n      //     _this\n      //       .controllerFor('settings.masters.doctor-management')\n      //       .set('permissions', res);\n      //   },\n      //   complete: function (res) {\n      //     console.log('Execution complete');\n      //   },\n      // });\n\n      // ajax call for roles list\n\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //_this.controllerFor('settings.masters.users').set('roles', res.data);\n          _this.controllerFor('settings.masters.doctor-management').set('roles', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      /*This below function is used for getting all the doctors related charges, Rahul Khan */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('doc_charges', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      //This below Ajax request is used for getting the available Prescription print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getPRS',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('prescriptionformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the All available Receipt print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getRCP',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('receiptformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-management').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-management.add', {\n        controller: 'settings.masters.doctor-management'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-management/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.doctor-management').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.doctor-management').set('page', 'Edit User');\n      this.controllerFor('settings.masters.doctor-management').set('vali_errors', '');\n      this.controllerFor('settings.masters.doctor-management').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      this.controllerFor('settings.masters.doctor-management').set('user_id', params.id);\n\n      // ajax call for branch  list\n      //In This below Ajax request We have added a activerecord and passed status parameter two get only active branches in profile page, Rahul Khan, 19 July 2019\n      // Also change the return res.data to res.\n      var status = 1;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('branches', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for permission list\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.lumen_api_url + 'categorywisepermissions',\n      //   success: function (res) {\n      //     _this\n      //       .controllerFor('settings.masters.doctor-management')\n      //       .set('permissions', res);\n      //     //_this.controllerFor('settings.masters.role').set('selectedItems', res);\n      //   },\n      //   complete: function (res) {\n      //     console.log('Execution complete');\n      //   },\n      // });\n      /*This below function is used for getting all the doctors related charges, Rahul Khan */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('doc_charges', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      // ajax call for fetch record for role table\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'user/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var user_data = res;\n          //console.log(res);\n          // doctor_image and user_id coming from API\n          if (user_data.doctor_image) {\n            _this.controllerFor('settings.masters.doctor-management').set('imagePreview', _environment.default.APP.doctor_url + user_data.doctor_image);\n          } else {\n            _this.controllerFor('settings.masters.doctor-management').set('imagePreview', null);\n          }\n          _this.controllerFor('settings.masters.doctor-management').set('showInTimeslot', user_data.showInTimeslot);\n          _this.controllerFor('settings.masters.doctor-management').set('user_name', user_data.Name);\n          _this.controllerFor('settings.masters.doctor-management').set('username', user_data.username);\n          _this.controllerFor('settings.masters.doctor-management').set('email_id', user_data.email);\n          _this.controllerFor('settings.masters.doctor-management').set('mobile_no', user_data.mobile_no);\n          let d = user_data.designation;\n          _this.controllerFor('settings.masters.doctor-management').set('designation', d && d !== 'null' ? d : '');\n          _this.controllerFor('settings.masters.doctor-management').set('user_status', user_data.status);\n          _this.controllerFor('settings.masters.doctor-management').set('id', user_data.user_id);\n          _this.controllerFor('settings.masters.doctor-management').set('user_type', user_data.user_type);\n          _this.controllerFor('settings.masters.doctor-management').set('user_order', user_data.ordering);\n          _this.controllerFor('settings.masters.doctor-management').set('user_label', user_data.label);\n          _this.controllerFor('settings.masters.doctor-management').set('consultancy_fees', user_data.consultancy_fees);\n          _this.controllerFor('settings.masters.doctor-management').set('user_color', user_data.color);\n          _this.controllerFor('settings.masters.doctor-management').set('employee_code', user_data.employee_code);\n          _this.controllerFor('settings.masters.doctor-management').set('doctorLevel', user_data.doctor_level);\n\n          //This code is used for getting the Print formats\n          _this.controllerFor('settings.masters.doctor-management').set('pres_print', user_data.presformat);\n          _this.controllerFor('settings.masters.doctor-management').set('rcp_print', user_data.rescpformat);\n          var s = _this.set('status', user_data.status);\n          $(document).ready(function () {\n            // alert(user_data.doctor_level);\n            $('#doctor_level').val(user_data.doctor_level).trigger('change');\n            if (user_data.user_type == 2) {\n              $('#user_type').prop('checked', true);\n              $('#user_type').val(2);\n              $('.doctor_show').show();\n            } else {\n              $('.doctor_show').hide();\n            }\n            if (s == 1) {\n              $('input[name=\"user_status\"]:radio:first').prop('checked', true).trigger('click');\n              //$('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n            } else {\n              $('input[name=\"user_status\"]:radio:last').prop('checked', true).trigger('click');\n              // $('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n\n      // ajax call for role permission list\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.lumen_api_url + 'userpermission/' + params.id,\n      //   success: function (res) {\n      //     res.forEach(function (item, index) {\n      //       $(\n      //         'input:radio[name=' +\n      //           item.permission +\n      //           '][value=' +\n      //           item.value +\n      //           ']'\n      //       ).prop('checked', true);\n      //       //$(\"#\" + item).prop('checked',true);\n      //     });\n      //   },\n      //   complete: function (res) {\n      //     console.log('Execution complete');\n      //   },\n      // });\n      //This below code is used for getting the data of doctors' charges price , Rahul Khan\n      var location_id = this.session.getLocation().split('-')[0];\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + params.id + '/' + location_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          res.forEach(function (item) {\n            $('#charge_' + item.charge_id).val(item.price);\n            //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n            //$(\"#\" + item).prop('checked',true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below code is used for getting the user prescription formate\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.lumen_api_url + 'user/doctorcharges/' + params.id+'/'+location_id,\n      //   success: function (res) {\n      //     //console.log(res);\n      //     res.forEach(function (item) {\n      //       $('#charge_' + item.charge_id).val(item.price);\n      //       //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n      //       //$(\"#\" + item).prop('checked',true);\n      //     });\n      //   },\n      //   complete: function (res) {\n      //     console.log('Execution complete');\n      //   },\n      // });\n\n      // ajax call for roles list\n      //In This below Ajax request We have added a activerecord and passed status parameter two get only active roles in profile page, Rahul Khan, 19 July 2019\n      // Also change the return res.data to res.\n      var status = 1;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('roles', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for user branch map list from cl_user_branch_map\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'userbranch/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('branchselectedItems', res);\n          res.forEach(function (item, index) {\n            $('#' + item).prop('checked', true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for user roles list  from cl_user_roles\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'userrole/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('roleselectedItems', res);\n          res.forEach(function (item, index) {\n            $('#' + item).prop('checked', true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the available Prescription print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getPRS',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('prescriptionformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the All available Receipt print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getRCP',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.doctor-management').set('receiptformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-management').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-management.edit', {\n        controller: 'settings.masters.doctor-management'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/doctor-management/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.doctor-management').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.controllerFor('settings.masters.doctor-management').set('page', 'Doctor Management');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.doctor-management').send('getUsers', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.doctor-management').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.doctor-management.list', {\n        controller: 'settings.masters.doctor-management'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/dtg/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.dtg.dtg').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.dtg.dtg').set('page', 'Add DTG');\n      this.controllerFor('settings.masters.dtg.dtg').set('group_name', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('group_color', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('parent_id', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('showColor', 'block');\n      this.controllerFor('settings.masters.dtg.dtg').set('status', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('id', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('vali_errors', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('errors', '');\n      // This below event is used for add more group field, Written by Shubh Tiwari as on 10 May 2022\n      $(document).on('click', '.addMoreRows', function (e) {\n        e.preventDefault();\n        e.stopPropagation();\n        e.stopImmediatePropagation();\n        var appointment = [];\n        $(this).siblings('.sminus').show();\n        $(this).hide();\n        $('.ordering').each(function () {\n          var stval = $(this).val();\n          appointment.push(stval);\n        });\n        if (appointment.length == 0 || appointment.length == undefined) {\n          appointment.push(0);\n        }\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"form-group row\" id=\"group_row' + rowCount + '\"><label class=\"col-xs-4 text-right control-label\" for=\"group_name\">Group Name <span class=\"required\">*</span></label><div class=\"col-xs-4\"><input type=\"hidden\" class=\"ordering\" id=\"ordering' + rowCount + '\" value=\"' + rowCount + '\"><input type=\"text\" class=\"form-control group_name\" id=\"groupname' + rowCount + '\" placeholder=\"Group Name\" name=\"group_name[]\" ><span class=\"help-block error_message' + rowCount + '\"></span></div><div class=\"col-xs-1 maxwidth50px \"><button class=\"btn btn-danger marginleft5 removeGroupRow sminus\" id=\"removeGroupRow' + rowCount + '\" data-row=\"' + rowCount + '\" type=\"button\"> <i class=\"fa fa-minus-circle\" aria-hidden=\"true\"></i></button><button class=\"btn btn-success marginleft5 addMoreRows\" type=\"button\"> <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i></button></div></div>';\n        $('.groups_list').append(recRow);\n      });\n\n      // This below event is used for remove group field, Written by Shubh Tiwari as on 10 May 2022\n      $(document).on('click', '.removeGroupRow', function (e) {\n        e.preventDefault();\n        var rownum = $(this).data('row');\n        $('#group_row' + rownum).remove();\n      });\n    },\n    model() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      // This ajax call to get parent group up to nth level\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'groups',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.controllerFor('settings.masters.dtg.dtg').set('groupList', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.dtg.dtg').set('route_access', route_access);\n    },\n    actions: {},\n    renderTemplate: function () {\n      this.render('settings.masters.dtg.add', {\n        controller: 'settings.masters.dtg.dtg'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/dtg/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel(transition) {\n      var permission = this.session.getPermissionList();\n      console.log(transition.to.queryParams.page);\n      this.controllerFor('settings.masters.dtg.dtg').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.dtg.dtg').set('page', 'Edit DTG');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.dtg.dtg').set('vali_errors', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('settings.masters.dtg.dtg').set('id', params.id);\n      // This ajax call to get parent group up to nth level\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'groups',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.dtg.dtg').set('groupList', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // This ajax call to get individual group name record using id\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'dtg/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.dtg.dtg').set('group_name', res.name);\n          if (res.parent_id == 0) {\n            _this.controllerFor('settings.masters.dtg.dtg').set('showColor', 'block');\n            _this.controllerFor('settings.masters.dtg.dtg').set('group_color', res.group_color);\n          } else {\n            _this.controllerFor('settings.masters.dtg.dtg').set('showColor', 'none');\n          }\n          _this.controllerFor('settings.masters.dtg.dtg').set('group_name', res.name);\n          _this.controllerFor('settings.masters.dtg.dtg').set('parent_id', res.parent_id);\n          $(document).ready(function () {\n            if (res.status == 1) {\n              $('input:radio#Active').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio#Inactive').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.dtg.dtg').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.dtg.add', {\n        controller: 'settings.masters.dtg.dtg'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/dtg/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    queryParams: {\n      page: 1\n    },\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.dtg.dtg').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      //this.getItems();\n      this.controllerFor('settings.masters.dtg.dtg').set('page', 'DTG List');\n      this.controllerFor('settings.masters.dtg.dtg').set('vali_errors', '');\n      this.controllerFor('settings.masters.dtg.dtg').set('errors', '');\n      var current = this;\n      $(document).ready(function () {\n        var _this = this;\n        $('.sortable-column').click(function (e) {\n          e.preventDefault();\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          //_this.getSortedItems(page_on, 'self', name, sorttype);\n        });\n      });\n    },\n    model: function (params) {\n      if (params.page == undefined) {\n        var page = 1;\n      } else {\n        var page = params.page;\n      }\n      this.controllerFor('settings.masters.dtg.dtg').send('getRecords', page, 'self');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.dtg.dtg').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.dtg.list', {\n        controller: 'settings.masters.dtg.dtg'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.dtg.dtg').send('getRecords', page, status);\n    }\n    // getSortedItems: function (page, status, searchtext, name, sorttype) {\n    //   this.controllerFor('settings.masters.dtg.dtg').send('getRecords',page, status, searchtext, name, sorttype);\n    // },\n  });\n});","define(\"clinic-dev/routes/settings/masters/form/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.form').set('page', 'Add Form');\n      this.controllerFor('settings.masters.form').set('name', '');\n      this.controllerFor('settings.masters.form').set('form_code', '');\n      this.controllerFor('settings.masters.form').set('description', '');\n      this.controllerFor('settings.masters.form').set('status', '');\n      this.controllerFor('settings.masters.form').set('id', '');\n      this.controllerFor('settings.masters.form').set('vali_errors', '');\n      this.controllerFor('settings.masters.form').set('errors', '');\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.form.add', {\n        controller: 'settings.masters.form'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/form/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel(params) {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.form').set('page', 'Edit Form');\n      this.controllerFor('settings.masters.form').set('vali_errors', '');\n      this.controllerFor('settings.masters.form').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      console.log(params.id);\n      this.controllerFor('settings.masters.form').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/form/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var form_data = res;\n          _this.controllerFor('settings.masters.form').set('name', form_data.name);\n          _this.controllerFor('settings.masters.form').set('form_code', form_data.form_code);\n          _this.controllerFor('settings.masters.form').set('description', form_data.description);\n          _this.controllerFor('settings.masters.form').set('status', form_data.status);\n          // _this.controllerFor('settings.masters.form').set('id',form_data.id);\n          $(document).ready(function () {\n            if (form_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.form.add', {\n        controller: 'settings.masters.form'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/form/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.form.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/form/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.form').set('page', 'Form List');\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.form.list', {\n        controller: 'settings.masters.form'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.form').send('getRecords', page, status);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.diagnostic.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.medicines.medicine.add');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/instruction/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.instruction').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.instruction').set('page', 'Add Instruction');\n      this.controllerFor('settings.masters.medicines.instruction').set('instruction_name', '');\n      this.controllerFor('settings.masters.medicines.instruction').set('id', '');\n      this.controllerFor('settings.masters.medicines.instruction').set('status', '');\n      this.controllerFor('settings.masters.medicines.instruction').set('vali_errors', '');\n      this.controllerFor('settings.masters.medicines.instruction').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.instruction').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.instruction.add', {\n        controller: 'settings.masters.medicines.instruction'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/instruction/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.instruction').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.instruction').set('page', 'Edit Instruction');\n      this.controllerFor('settings.masters.medicines.instruction').set('vali_errors', '');\n      this.controllerFor('settings.masters.medicines.instruction').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      /// get instruction data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var instruction_data = res;\n          _this.controllerFor('settings.masters.medicines.instruction').set('instruction_name', instruction_data.instruction_name);\n          _this.controllerFor('settings.masters.medicines.instruction').set('status', instruction_data.status);\n          _this.controllerFor('settings.masters.medicines.instruction').set('id', instruction_data.id);\n          var s = _this.set('status', instruction_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.instruction').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.instruction.add', {\n        controller: 'settings.masters.medicines.instruction'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/instruction/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.instruction').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.instruction').set('page', 'Instructions List');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.instruction').set('medicine_instruction', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {\n          fnInit: function (oSettings, nPaging, fnCallbackDraw) {\n            $(nPaging).prepend($('<ul class=\"pagination\"></ul>'));\n            var ul = $('ul', $(nPaging));\n            var nFirst = document.createElement('li');\n            var nPrevious = document.createElement('li');\n            var nNext = document.createElement('li');\n            $(nPrevious).append($('<span>' + oSettings.oLanguage.oPaginate.sPrevious + '</span>'));\n            $(nFirst).append($('<span>1</span>'));\n            $(nNext).append($('<span>' + oSettings.oLanguage.oPaginate.sNext + '</span>'));\n            nFirst.className = 'paginate_button first active';\n            nPrevious.className = 'paginate_button previous';\n            nNext.className = 'paginate_button next';\n            ul.append(nPrevious);\n            ul.append(nFirst);\n            ul.append(nNext);\n            $(nFirst).click(function () {\n              oSettings.oApi._fnPageChange(oSettings, 'first');\n              fnCallbackDraw(oSettings);\n            });\n            $(nPrevious).click(function () {\n              if (!(oSettings._iDisplayStart === 0)) {\n                oSettings.oApi._fnPageChange(oSettings, 'previous');\n                fnCallbackDraw(oSettings);\n              }\n            });\n            $(nNext).click(function () {\n              if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength)) {\n                oSettings.oApi._fnPageChange(oSettings, 'next');\n                fnCallbackDraw(oSettings);\n              }\n            });\n\n            /* Disallow text selection */\n            $(nFirst).bind('selectstart', function () {\n              return false;\n            });\n            $(nPrevious).bind('selectstart', function () {\n              return false;\n            });\n            $(nNext).bind('selectstart', function () {\n              return false;\n            });\n\n            // Reset dynamically generated pages on length/filter change.\n            $(oSettings.nTable).DataTable().on('length.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n            $(oSettings.nTable).DataTable().on('search.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n          },\n          /*\n           * Function: oPagination.simple_incremental_bootstrap.fnUpdate\n           * Purpose:  Update the list of page buttons shows\n           * Inputs:   object:oSettings - dataTables settings object\n           *           function:fnCallbackDraw - draw function which must be called on update\n           */\n          fnUpdate: function (oSettings, fnCallbackDraw) {\n            if (!oSettings.aanFeatures.p) {\n              return;\n            }\n\n            /* Loop over each instance of the pager */\n            var an = oSettings.aanFeatures.p;\n            for (var i = 0, iLen = an.length; i < iLen; i++) {\n              var buttons = an[i].getElementsByTagName('li');\n              $(buttons).removeClass('active');\n              if (oSettings._iDisplayStart === 0) {\n                buttons[0].className = 'paginate_buttons disabled previous';\n                buttons[buttons.length - 1].className = 'paginate_button enabled next';\n              } else {\n                buttons[0].className = 'paginate_buttons enabled previous';\n              }\n              var page = Math.round(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;\n              if (page == buttons.length - 1 && oSettings.aiDisplay.length > 0) {\n                var $new = $('<li class=\"dynamic_page_item active\"><span>' + page + '</span></li>');\n                $(buttons[buttons.length - 1]).before($new);\n                $new.click(function () {\n                  $(oSettings.nTable).DataTable().page(page - 1);\n                  fnCallbackDraw(oSettings);\n                });\n              } else $(buttons[page]).addClass('active');\n              if (oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength) {\n                buttons[buttons.length - 1].className = 'paginate_button disabled next';\n              }\n            }\n          }\n        };\n        setTimeout(function () {\n          $('#instructions').DataTable({\n            pagingType: 'simple_incremental_bootstrap',\n            iDisplayLength: 10,\n            order: [[3, 'asc']],\n            language: {\n              searchPlaceholder: 'Search instructions'\n            }\n          });\n          $('div.dataTables_filter input').addClass('form-control');\n          $('div.dataTables_length select').addClass('form-control');\n        }, 500);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.instruction').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.instruction.list', {\n        controller: 'settings.masters.medicines.instruction'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/medicine/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.medicine').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      // this.getcontroller();\n      this.controllerFor('settings.masters.medicines.medicine').set('page', 'Add Medicine');\n      this.controllerFor('settings.masters.medicines.medicine').set('name', '');\n      this.controllerFor('settings.masters.medicines.medicine').set('id', '');\n      this.controllerFor('settings.masters.medicines.medicine').set('status', '');\n      this.controllerFor('settings.masters.medicines.medicine').get('selectedItems').clear();\n      this.controllerFor('settings.masters.medicines.medicine').set('selectedPotency', '');\n      //this.controllerFor('settings.masters.medicines.medicine').get('vali_errors').clear();\n      this.controllerFor('settings.masters.medicines.medicine').set('vali_errors', '');\n      this.controllerFor('settings.masters.medicines.medicine').set('errors', '');\n      var para = 'all';\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.controllerFor('settings.masters.medicines.medicine').set('pricegroups', res);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    actions: {\n      applyFilter: function () {\n        //console.log(\"oncheck function calle \");\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.medicine').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.medicine.add', {\n        controller: 'settings.masters.medicines.medicine'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/medicine/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.medicine').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.medicine').set('page', 'Edit Medicine');\n      this.controllerFor('settings.masters.medicines.medicine').set('vali_errors', '');\n      this.controllerFor('settings.masters.medicines.medicine').set('errors', '');\n      var para = 'all';\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.controllerFor('settings.masters.medicines.medicine').set('pricegroups', res);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      /// get medicine data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/single/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var medicine_data = res;\n          _this.controllerFor('settings.masters.medicines.medicine').set('name', medicine_data.name);\n          _this.controllerFor('settings.masters.medicines.medicine').set('status', medicine_data.status);\n          _this.controllerFor('settings.masters.medicines.medicine').set('id', medicine_data.id);\n          var s = _this.set('status', medicine_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n\n      // ajax call for price group for medicine\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroups/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.medicine').set('selectedItems', res);\n          res.forEach(function (item, index) {\n            $('#pricegroup' + item).prop('checked', true);\n          });\n          //get potecy of selected price group\n          var data = {\n            pricegroup: res\n          };\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'medicine/getpotency',\n            data: data,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (result) {\n              _this.controllerFor('settings.masters.medicines.medicine').set('selectedPotency', result);\n              var total_form = new Array();\n              var total_potency = new Array();\n              $.each(result, function (key, value) {\n                // extract group id\n                var group = value.group_id;\n                $.each(value, function (key1, value1) {\n                  $.each(value1.potency, function (key2, potency_value2) {\n                    $.each(potency_value2, function (key3, pmainvalue) {\n                      // extract potency id\n                      var potency = 'potency' + pmainvalue.id + '_' + 'group' + res[key];\n                      // var class_name = potency;\n                      total_potency.push(potency);\n                      $.each(value1.form, function (key3, form_value2) {\n                        $.each(form_value2, function (key4, for_main_data) {\n                          var form = for_main_data.id;\n                          var class_name = parseInt(potency + '' + form);\n                          total_form.push(class_name);\n                        });\n                      });\n                    });\n                  });\n                });\n              });\n              //get potecy of selected price group\n              var data = {\n                pricegroup: res,\n                medicine_id: params.id\n              };\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'medicine/getselectedpotencyform',\n                data: data,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (presult) {\n                  //console.log(presult)\n                  $('[class^=potency]').removeAttr('checked');\n\n                  //potencyform\n                  var selected_potency = new Array();\n                  //   $.each(presult, function (i) {\n                  $.each(presult, function (key, groupValue) {\n                    //  {\n                    var current_group_id = groupValue.group.group_id;\n                    $.each(groupValue.group.potency, function (key, potency) {\n                      //console.log(potency.potency_id);\n                      var current_potency_id = potency.potency_id;\n                      $.each(potency.form, function (key, form) {\n                        // console.log(form.form_id)\n                        var current_form_id = form.form_id;\n                        // potency5_group11_form3\n                        //   $(\"div[class^='cw-potency']\").addClass(\"uncheckall\");\n                        // $( \".cw-potency\"+current_potency_id).addClass(\"uncheckall\");\n                        $('.potencyform' + current_potency_id).attr('disabled', true);\n                        // $().attr('disabled', true);\n                        // potency4_group_form10\n                        var formselectClass = 'potency' + current_potency_id + '_group' + current_group_id + '_form' + current_form_id;\n                        var potencyClass = 'potency' + current_potency_id + '_group_potency' + current_group_id;\n                        var potencySelectClass = 'potency' + current_potency_id + '_group_potency' + current_group_id;\n                        var formClass = 'potency' + current_group_id + '_group_form' + current_form_id;\n                        var formSelectClass = 'potency' + current_potency_id + '_group_form' + current_group_id;\n                        // console.log(formSelectClass);\n                        // $( \".cw-potency\"+current_potency_id).removeClass(\"uncheckall\");\n                        $('.' + formSelectClass).removeAttr('disabled');\n                        //  $('.'+formClass).attr('disabled', true);\n                        $('.' + formselectClass).attr('checked', true);\n                        $('.' + potencyClass).attr('checked', true);\n                      });\n                    });\n                  });\n                }\n              });\n            }\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.medicine').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.medicine.add', {\n        controller: 'settings.masters.medicines.medicine'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/medicine/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/settings/masters/medicines/medicine/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.medicine').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.medicine').set('page', 'Medicine List');\n      this.controllerFor('settings.masters.medicines.medicine').set('selectedPotency_array', '');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/single',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.medicine').set('single_medicine', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      var format_inactive = function (callback, medicine_id) {\n        $.ajax({\n          type: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'medicine/singlemedicinedetails',\n          data: {\n            medicine_id: medicine_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (data) {\n            var tbody = '';\n            for (var i = 0; i < data.length; i++) {\n              tbody += '<tr>';\n              tbody += '<td></td><td>' + data[i]['potencyname'] + '</td><td>' + data[i]['dName'] + '</td>';\n              tbody += '<td>' + data[i]['pricegroup_name'] + '</td>';\n              tbody += '<td></td>';\n              tbody += '<td></td>';\n              tbody += '</tr>';\n            }\n            callback($(tbody)).show();\n          },\n          error: function (jqXHR, textStatus) {\n            console.log('Request failed: ' + textStatus);\n          }\n        });\n      };\n      $(document).ready(function () {\n        jQuery.noConflict();\n        $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {\n          fnInit: function (oSettings, nPaging, fnCallbackDraw) {\n            $(nPaging).prepend($('<ul class=\"pagination\"></ul>'));\n            var ul = $('ul', $(nPaging));\n            var nFirst = document.createElement('li');\n            var nPrevious = document.createElement('li');\n            var nNext = document.createElement('li');\n            $(nPrevious).append($('<span>' + oSettings.oLanguage.oPaginate.sPrevious + '</span>'));\n            $(nFirst).append($('<span>1</span>'));\n            $(nNext).append($('<span>' + oSettings.oLanguage.oPaginate.sNext + '</span>'));\n            nFirst.className = 'paginate_button first active';\n            nPrevious.className = 'paginate_button previous';\n            nNext.className = 'paginate_button next';\n            ul.append(nPrevious);\n            ul.append(nFirst);\n            ul.append(nNext);\n            $(nFirst).click(function () {\n              oSettings.oApi._fnPageChange(oSettings, 'first');\n              fnCallbackDraw(oSettings);\n            });\n            $(nPrevious).click(function () {\n              if (!(oSettings._iDisplayStart === 0)) {\n                oSettings.oApi._fnPageChange(oSettings, 'previous');\n                fnCallbackDraw(oSettings);\n              }\n            });\n            $(nNext).click(function () {\n              if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength)) {\n                oSettings.oApi._fnPageChange(oSettings, 'next');\n                fnCallbackDraw(oSettings);\n              }\n            });\n\n            /* Disallow text selection */\n            $(nFirst).bind('selectstart', function () {\n              return false;\n            });\n            $(nPrevious).bind('selectstart', function () {\n              return false;\n            });\n            $(nNext).bind('selectstart', function () {\n              return false;\n            });\n\n            // Reset dynamically generated pages on length/filter change.\n            $(oSettings.nTable).DataTable().on('length.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n            $(oSettings.nTable).DataTable().on('search.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n          },\n          /*\n           * Function: oPagination.simple_incremental_bootstrap.fnUpdate\n           * Purpose:  Update the list of page buttons shows\n           * Inputs:   object:oSettings - dataTables settings object\n           *           function:fnCallbackDraw - draw function which must be called on update\n           */\n          fnUpdate: function (oSettings, fnCallbackDraw) {\n            if (!oSettings.aanFeatures.p) {\n              return;\n            }\n\n            /* Loop over each instance of the pager */\n            var an = oSettings.aanFeatures.p;\n            for (var i = 0, iLen = an.length; i < iLen; i++) {\n              var buttons = an[i].getElementsByTagName('li');\n              $(buttons).removeClass('active');\n              if (oSettings._iDisplayStart === 0) {\n                buttons[0].className = 'paginate_buttons disabled previous';\n                buttons[buttons.length - 1].className = 'paginate_button enabled next';\n              } else {\n                buttons[0].className = 'paginate_buttons enabled previous';\n              }\n              var page = Math.round(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;\n              if (page == buttons.length - 1 && oSettings.aiDisplay.length > 0) {\n                var $new = $('<li class=\"dynamic_page_item active\"><span>' + page + '</span></li>');\n                $(buttons[buttons.length - 1]).before($new);\n                $new.click(function () {\n                  $(oSettings.nTable).DataTable().page(page - 1);\n                  fnCallbackDraw(oSettings);\n                });\n              } else $(buttons[page]).addClass('active');\n              if (oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength) {\n                buttons[buttons.length - 1].className = 'paginate_button disabled next';\n              }\n            }\n          }\n        };\n        setTimeout(function () {\n          var inactive_table = $('#singlemedicine').DataTable({\n            pagingType: 'simple_incremental_bootstrap',\n            iDisplayLength: 10,\n            order: [[3, 'asc']],\n            language: {\n              searchPlaceholder: 'Search medicine'\n            }\n          });\n          $('div.dataTables_filter input').addClass('form-control');\n          $('div.dataTables_length select').addClass('form-control');\n          $('#singlemedicine tbody').on('click', '#medicineDetails', function () {\n            var tr = $(this).closest('tr');\n            var row = inactive_table.row(tr);\n            var medicine_id = $(this).attr('data-medicine');\n            if (row.child.isShown()) {\n              // This row is already open - close it\n              row.child.hide();\n              tr.removeClass('shown');\n            } else {\n              // Open this row\n              format_inactive(row.child, medicine_id);\n              tr.addClass('shown');\n            }\n          });\n        }, 1000);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.medicine').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.medicine.list', {\n        controller: 'settings.masters.medicines.medicine'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/mix/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      let utoken = this.session.getToken();\n      this.controllerFor('settings.masters.medicines.mix').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var rowCount = 1;\n      this.controllerFor('settings.masters.medicines.mix').set('page', 'Add Mix Medicine');\n      this.controllerFor('settings.masters.medicines.mix').set('mix_medicine_name', '');\n      this.controllerFor('settings.masters.medicines.mix').set('pharmacy_instruction', '');\n      this.controllerFor('settings.masters.medicines.mix').set('medicine_mixture-1', '');\n      this.controllerFor('settings.masters.medicines.mix').set('id', '');\n      this.controllerFor('settings.masters.medicines.mix').set('status', '');\n      this.controllerFor('settings.masters.medicines.mix').set('errors', '');\n      this.controllerFor('settings.masters.medicines.mix').set('mix-hightlight*', '');\n      $(document).ready(function () {\n        //sets the chosen value into the input\n        $(document).unbind('click').on('click', '.formdata', function (event) {\n          //These below line code is used for preventing the event to fire multiple time\n          event.preventDefault();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          var item = $(event.target).text();\n          //This below code is used for getting the values of medicine name, potency and dilution in different fields\n          //let i18n = this.get('i18n');\n          var potency = $(this).data('poten');\n          var medicine = $(this).data('med');\n          var potencyname = $(this).data('potencyname');\n          var dilution = $(this).data('dilution');\n          var item = item.trim();\n          $(this).parents('.search-box').find('input[type=\"text\"]').val(item);\n          $(this).parents('.search-box').find('input[type=\"text\"]').attr('data-med', medicine);\n          $(this).parents('.search-box').find('input[type=\"text\"]').attr('data-poten', potency);\n          //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 09 Aug 2019\n          $(this).parents('.search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n          var clickedid = $(this).parents('.search-box').find('input[type=\"text\"]').attr('id');\n          // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n          if (clickedid !== undefined) {\n            var targetid = clickedid.split('-');\n            $('#medicine_mixture-' + targetid[1]).attr('data-medicine', item);\n\n            //This below line code is used for creating a blank array\n            var duplicateMedicineArray = [];\n            //These below array used for getting all set of medicine and potency,\n\n            var medicine_duplicate = 'This medicine is already added, Please select the other.';\n            // var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n            $(\"[id^='medicine_mixture-']\").map(function () {\n              var currentid = this.id;\n              var idnum = currentid.replace('medicine_mixture-', '');\n              var current_med = $(this).attr('data-medicine');\n              var medicineRowId = $(this).attr('id');\n              if (current_med == item && clickedid != medicineRowId) {\n                duplicateMedicineArray.push(idnum);\n                return idnum;\n              }\n              //return this.val;\n            }).get();\n            if (duplicateMedicineArray.length == 0) {\n              //$(\"[class^='mix-hightlight']\").text(\"\");\n              //$(\"[class^='mix-hightligh']\").parent().removeClass('has-error');\n            }\n            duplicateMedicineArray.forEach(function (item) {\n              // swal(medicine_duplicate,'error');\n              swal('Duplicate!', medicine_duplicate, 'warning');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              return false;\n            }\n            //End code here\n\n            // $(this).parents(\".search-box\").find('input[type=\"text\"]').val(item);\n            // $(this).parents(\".search-box\").find('input[type=\"text\"]').attr('data-med', medicine);\n            // $(this).parents(\".search-box\").find('input[type=\"text\"]').attr('data-poten', potency);\n            //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 09 Aug 2019\n            // $(this).parents(\".search-box\").find('input[type=\"text\"]').attr('medicine_status', \"set\");\n\n            //  var clickedid = $(this).parents(\".search-box\").find('input[type=\"text\"]').attr('id');\n            // var targetid = clickedid.split('-');\n\n            //$(this).parent(\".result\").empty();\n            $('#results' + targetid[1]).html('').show().removeClass('searchresult');\n            //This line is comment for prevent to removing the mix-hightlight class div. Bacause it required to show error messages, Rahul Khan 09 Aug 2019, Rahul Khan\n            // $('.mix-hightlight'+targetid[1]).remove();\n            //This code is used to reset the error message of midicine box,\n\n            //This code used for getting the row number\n            var medicinename = item.split(',')[0];\n            //This code set the values for medicine, potency and dilution\n            $('#mix_medicine_mixture_potency-' + targetid[1]).val(potencyname);\n            $('#mix_medicine_mixture_dilution-' + targetid[1]).val(dilution);\n            $('#medicine_mixture-' + targetid[1]).val(medicinename);\n            $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n            $('.mix-hightlight' + targetid[1]).text(' ');\n            $('#medicine_mixture-' + targetid[1]).parent().removeClass('has-error');\n            $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n            //  return false;\n            //medicine_mixture-\n\n            // ajax call for get form list\n            //This below Ajax request is used is old version of medicine mix, But now we used the above one, Rahul khan, 04 sept 2019\n            /* $.ajax({\n                    type: \"POST\",\n                    url:ENV.APP.lumen_api_url+\"mixmedicine/formlist\",\n                    data: {potency: potency, medicine:medicine},\n                    success: function(response) {\n                      console.log();\n                      var len = response.length;\n                      $(\"#mix_medicine_mixture_form-\"+targetid[1]).empty();\n                      //$(\"#mix_medicine_mixture_form-\"+targetid[1]).focus().addClass('has-error');\n                      //$(\"#mix_medicine_mixture_form-\"+targetid[1]).append(\"<option value=''> Select Form </option>\");\n                      for( var i = 0; i<len; i++){\n                          var group_id = response[i]['gId'];\n                          var group_name = response[i]['fname'];\n                          var form_code = response[i]['fcode'];\n                          $(\"#mix_medicine_mixture_form-\"+targetid[1]).append(\"<option data-formcode='\"+form_code+\"' value='\"+group_id+\"-\"+form_code+\"-\"+group_name+\"'>\"+group_name+\"</option>\");\n                          }\n                        var form_value= $(\"#mix_medicine_mixture_form-\"+targetid[1] +\" option:first\").data('formcode');\n                        var classname=\"med\"+medicine+\"form\"+form_value;\n                        $(\"#mixmedicineAdd1-\"+targetid[1]).addClass(classname);\n                      }\n                });*/\n            // clear select dropdown list\n            $(document).on('change', '#mix_medicine_mixture_form-' + targetid[1], function () {\n              $('#mix_medicine_mixture_form-' + targetid[1]).removeClass('has-error');\n            });\n          }\n        });\n\n        //On pressing a key in input field, this function will be called.\n        $(document).on('keyup focus', '.textinput', function () {\n          var id = $(this).attr('id');\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 09 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          if (val === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('searchresult');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            if (val.length > _environment.default.CONSTANTS.search_trigger_length) {\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixsearch',\n                data: {\n                  query: val\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (data) {\n                  $('[id^=\"results\"]').html('');\n                  $('#results' + input_id[1]).html(data).show().addClass('searchresult');\n                }\n              });\n            }\n          }\n        }); /*Rahul */\n        //This below jquery code is used for hidding the medicine suggestion box on focus out, Rahul Khan 12 sept 2019\n        /*  $(document).on('focusout', '.textinput',function(){\n                          var inputId = $(this).attr('id');\n                          var RowidNum = inputId.replace('medicine_mixture-','');\n                          setTimeout(function(){\n                             $('#results'+RowidNum).html('').show().removeClass('searchresult');\n                          }, 300)\n                       })*/\n\n        $(document).on('click', '#mixMedicineRow', function (event) {\n          event.preventDefault();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          var lengthOfmixmedicine = $(\"[id^='mixmedicineAdd']\").length;\n          var removeNum = $(this).data('row');\n          if (lengthOfmixmedicine < 3) {\n            swal(\"There is minimum two rows of medicines required, so you can't delete this.\");\n            return false;\n          } else {\n            $('#mixmedicineAdd' + removeNum).remove();\n            //This below loop is used for restting the order of medicine, Rahul khan, 07 Aug 2019\n            $(\"[id^='mixmedicineAdd']\").each(function () {\n              var currentRowid = '';\n              var ids = this.id;\n              var currentRowid = ids.replace('mixmedicineAdd', '');\n              if (currentRowid > removeNum) {\n                var textsrl = $('#' + ids + ' .srnoItem ').text();\n                var resetSrl = textsrl - 1;\n                $('#' + ids + ' .srnoItem ').text(resetSrl);\n                $('#' + ids + ' label').attr('for', 'medicine_mixture' + resetSrl); //used replace  div label\n                $('#medicine_mixture-' + currentRowid).attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n                $().attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n                $('#medicine_mixture-' + currentRowid).attr('id', 'medicine_mixture-' + resetSrl); //used replace div row id for input field\n                $('#results' + currentRowid).attr('id', 'results' + resetSrl); //used replace p id\n                $('#' + ids + ' .mix-hightlight' + currentRowid).attr('class', 'mix-hightlight' + resetSrl); //used replace p id\n                $('#mix_medicine_mixture_potency-' + currentRowid).attr('id', 'mix_medicine_mixture_potency-' + resetSrl); //used replace mixture\n                $('#mix_medicine_mixture_dilution-' + currentRowid).attr('id', 'mix_medicine_mixture_dilution-' + resetSrl); //used replace\n                $('#' + ids + ' #mixMedicineRowClear').attr('data-row', resetSrl); //used replace mixture form fiels value\n                $('#' + ids + ' #mixMedicineRow').attr('data-row', resetSrl); //used replace mixture form fiels value\n                $('#' + ids).attr('id', 'mixmedicineAdd' + resetSrl); //used replace div row id\n              }\n            });\n          }\n          $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n          //  var removeNum = $(this).data('row');\n          //  jQuery('#mixmedicineAdd'+removeNum).remove();\n          rowCount--;\n        });\n        $(document).on('click', '#mixMedicineRowClear', function () {\n          var clearNum = $(this).data('row');\n          jQuery('#medicine_mixture-' + clearNum).val('');\n          //This line of code is used to set the medicine row input field attribute medicine_status, Rahul Khan, 09 Aug 2019\n          //\n\n          jQuery('#medicine_mixture-' + clearNum).removeAttr('data-medicine');\n          jQuery('#medicine_mixture-' + clearNum).removeAttr('data-poten');\n          jQuery('#medicine_mixture-' + clearNum).removeAttr('data-med');\n          jQuery('#medicine_mixture-' + clearNum).attr('data-medicine', '');\n          jQuery('#medicine_mixture-' + clearNum).attr('data-poten', '');\n          jQuery('#medicine_mixture-' + clearNum).attr('data-med', '');\n          jQuery('#mix_medicine_mixture_potency-' + clearNum).val('');\n          jQuery('#mix_medicine_mixture_dilution-' + clearNum).val('');\n          jQuery('#medicine_mixture-' + clearNum).attr('medicine_status', 'notset');\n          jQuery('#results' + clearNum).empty();\n          jQuery('#mix_medicine_mixture_form-' + clearNum).empty();\n          jQuery('#mix_medicine_mixture_form-' + clearNum).removeClass('has-error');\n          jQuery('#mix_medicine_mixture_form-' + clearNum).append(\"<option value=''> Select Form </option>\");\n          $('.mix-hightlight' + clearNum).text('');\n          $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n        });\n        //This below function is used for checking the all forms are same or not, Rahul Khan. 09 Aug 2019\n        $(document).on('change', '[id^=\"mix_medicine_mixture_form\"]', function () {\n          var notSameForm = [];\n          $('[id^=\"mix_medicine_mixture_form\"]').each(function (index) {\n            var sr = index + 1;\n            //This below condition is used for checking, is form of medicines are same or not, Rahul Khan , 09 Aug 2019\n            var Formvalue = $('#mix_medicine_mixture_form-' + sr + ' option:selected').text().trim();\n            var firstFormvalue = $('#mix_medicine_mixture_form-1 option:selected').text().trim();\n            // if(firstFormvalue != Formvalue){\n            if (firstFormvalue != Formvalue && firstFormvalue != 'Select Form' && Formvalue != 'Select Form') {\n              notSameForm.push(Formvalue);\n              // swal(\"Forms are not same!\", \"The mix should be have the same forms for all selected medicine.\", \"warning\");\n              $(\"[id^='mix_medicine_mixture_form']\").addClass('duplicate_serial');\n              $(\"[id^='mix_medicine_mixture_form']\").attr('title', 'Form is not same as other medicine.');\n            }\n          });\n          if (notSameForm.length == 0) {\n            $(\"[id^='mix_medicine_mixture_form']\").removeClass('duplicate_serial');\n            $(\"[id^='mix_medicine_mixture_form']\").attr('title', '');\n          }\n        });\n\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            console.log('sdfss');\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_mixture-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              console.log('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n    },\n    actions: {\n      //This below function AddMoreRows is used for crearing the New Row of medicine, Rahul Khan\n      addMoreRows: function () {\n        var appointment = [];\n        $('.srnoItem').each(function () {\n          var stval = $(this).text();\n          appointment.push(stval);\n        });\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"form-group row\" id=\"mixmedicineAdd' + rowCount + '\"><label class=\"col-xs-4 text-right control-label\" for=\"medicine_mixture' + rowCount + '\">Med <span class=\"srnoItem\">' + rowCount + '</span> <span class=\"required\">*</span> </label> <div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"medicine_mixture[]\" id=\"medicine_mixture-' + rowCount + '\" autocomplete=\"off\" medicine_status=\"notset\"> <p id=\"results' + rowCount + '\"></p> <span class=\"mix-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_potency[]\" id=\"mix_medicine_mixture_potency-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_dilution[]\" id=\"mix_medicine_mixture_dilution-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med ' + rowCount + '\"></i> Delete </button></div></div>';\n        $('#addedRows').append(recRow);\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.mix').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.mix.add', {\n        controller: 'settings.masters.medicines.mix'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/mix/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.mix').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.mix').set('page', 'Edit Mix Medicine');\n      this.controllerFor('settings.masters.medicines.mix').set('errors', '');\n      this.controllerFor('settings.masters.medicines.mix').set('mix-hightlight*', '');\n      $(document).ready(function () {\n        //sets the chosen value into the input\n        $(document).on('click', '.formdata', function (event) {\n          event.preventDefault();\n          event.stopPropagation();\n          event.stopImmediatePropagation();\n          var item = $(event.target).text();\n          var potency = $(this).data('poten');\n          var medicine = $(this).data('med');\n          var potencyname = $(this).data('potencyname');\n          var dilution = $(this).data('dilution');\n          var clickedid = $(this).parents('.search-box').find('input[type=\"text\"]').attr('id');\n          // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n          if (clickedid !== undefined) {\n            var targetid = clickedid.split('-');\n            var item = item.trim();\n            $('#medicine_mixture-' + targetid[1]).attr('data-medicine', item);\n\n            //  $(\"#medicine_mixture-\"+targetid[1]).attr('data-medicine',item);\n            //This below line code is used for creating a blank array\n            var duplicateMedicineArray = [];\n            var medicine_duplicate = 'This medicine is already added, Please select the other.';\n            // var currentMedicine= $(\"#medicine_mixture-\"+sr).val();\n            $(\"[id^='medicine_mixture-']\").map(function () {\n              var currentid = this.id;\n              var idnum = currentid.replace('medicine_mixture-', '');\n              var current_med = $(this).attr('data-medicine');\n              var medicineRowId = $(this).attr('id');\n              if (current_med == item && clickedid != medicineRowId) {\n                duplicateMedicineArray.push(idnum);\n                return idnum;\n              }\n              //return this.val;\n            }).get();\n            if (duplicateMedicineArray.length == 0) {\n              //$(\"[class^='mix-hightlight']\").text(\"\");\n              //$(\"[class^='mix-hightligh']\").parent().removeClass('has-error');\n            }\n            duplicateMedicineArray.forEach(function (item) {\n              // swal(medicine_duplicate,'error');\n              swal('Duplicate!', medicine_duplicate, 'warning');\n              // $('.mix-hightlight'+item).text(medicine_duplicate);\n              // $('.mix-hightlight'+item).parent().addClass('has-error');\n            });\n            if (duplicateMedicineArray.length > 0) {\n              return false;\n            }\n            //End code here\n\n            // data-med\n            $(this).parents('.search-box').find('input[type=\"text\"]').val(item);\n            $(this).parents('.search-box').find('input[type=\"text\"]').removeAttr('data-med');\n            $(this).parents('.search-box').find('input[type=\"text\"]').removeAttr('data-poten');\n            $(this).parents('.search-box').find('input[type=\"text\"]').attr('data-med', medicine);\n            $(this).parents('.search-box').find('input[type=\"text\"]').attr('data-poten', potency);\n            //This below line of code is used for getting the unnessary string in medicine box, Rahul Khan. 09 Aug 2019\n            $(this).parents('.search-box').find('input[type=\"text\"]').attr('medicine_status', 'set');\n            var clickedid = $(this).parents('.search-box').find('input[type=\"text\"]').attr('id');\n            var targetid = clickedid.split('-');\n            //$(this).parent(\".result\").empty();\n            $('#results' + targetid[1]).html('').show().removeClass('searchresult');\n\n            //This code used for getting the row number\n            var medicinename = item.split(',')[0];\n            //This code set the values for medicine, potency and dilution\n            $('#mix_medicine_mixture_potency-' + targetid[1]).val(potencyname);\n            $('#mix_medicine_mixture_dilution-' + targetid[1]).val(dilution);\n            $('#medicine_mixture-' + targetid[1]).val(medicinename);\n            $(this).closest('.cw-search-box').find('input[type=\"text\"]').val(medicinename);\n            $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n\n            //This line is comment for prevent to removing the mix-hightlight class div. Bacause it required to show error messages, Rahul Khan 09 Aug 2019, Rahul Khan\n            // $('.mix-hightlight'+targetid[1]).remove();\n            //This code is used to reset the error message of midicine box,\n            $('.mix-hightlight' + targetid[1]).text(' ');\n            $('#medicine_mixture-' + targetid[1]).parent().removeClass('has-error');\n            // ajax call for get form list\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n              data: {\n                potency: potency,\n                medicine: medicine\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('#mix_medicine_mixture_form-' + targetid[1]).empty();\n                //$(\"#mix_medicine_mixture_form-\"+targetid[1]).focus().addClass('has-error');\n                //$(\"#mix_medicine_mixture_form-\"+targetid[1]).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  var group_id = response[i]['gId'];\n                  var group_name = response[i]['fname'];\n                  var form_code = response[i]['fcode'];\n                  $('#mix_medicine_mixture_form-' + targetid[1]).append(\"<option data-formcode='\" + form_code + \"' value='\" + group_id + '-' + form_code + '-' + group_name + \"'>\" + group_name + '</option>');\n                }\n              }\n            });\n            // clear select dropdown list\n            $(document).on('change', '#mix_medicine_mixture_form-' + targetid[1], function () {\n              $('#mix_medicine_mixture_form-' + targetid[1]).removeClass('has-error');\n            });\n          }\n        });\n\n        //On pressing a key in input field, this function will be called.\n        $(document).on('keyup focus', '.textinput', function () {\n          var id = $(this).attr('id');\n          //This below line of code is used for reset the value of attribute medicine_status not set for perricular medicine, Rahul Khan, 09 Aug 2019\n          $(this).attr('medicine_status', 'notset');\n          var input_id = id.split('-');\n          var val = $(this).val().trim();\n          if (val === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).empty().show().removeClass('searchresult');\n          } else {\n            $('#mixmedicineAdd' + input_id[1]).removeClass('has-error');\n            if (val.length > _environment.default.CONSTANTS.search_trigger_length) {\n              $.ajax({\n                type: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixsearch',\n                data: {\n                  query: val\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (data) {\n                  $('[id^=\"results\"]').html('');\n                  $('#results' + input_id[1]).html(data).show().addClass('searchresult');\n                }\n              });\n            }\n          }\n        });\n        //This below jquery code is used for hidding the medicine suggestion box on focus out, Rahul Khan 12 sept 2019\n        /*$(document).on('focusout', '.textinput',function(){\n                  var inputId = $(this).attr('id');\n                  var RowidNum = inputId.replace('medicine_mixture-','');\n                  setTimeout(function(){\n                     $('#results'+RowidNum).html('').show().removeClass('searchresult');\n                  }, 300)\n               });*/\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('medicine_mixture-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              console.log('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n    },\n    actions: {\n      //This below function AddMoreRows is used for creating the New Row, Rahul Khan\n      addMoreRows: function () {\n        var appointment = [];\n        $('.srnoItem').each(function () {\n          var stval = $(this).text();\n          appointment.push(stval);\n        });\n        var max_count = parseInt(Math.max.apply(Math, appointment));\n        var rowCount = parseInt(max_count) + 1;\n        //new\n        var recRow = '<div class=\"form-group row\" id=\"mixmedicineAdd' + rowCount + '\"><label class=\"col-xs-4 text-right control-label\" for=\"medicine_mixture' + rowCount + '\">Med <span class=\"srnoItem\">' + rowCount + '</span> <span class=\"required\">*</span> </label> <div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"medicine_mixture[]\" id=\"medicine_mixture-' + rowCount + '\" autocomplete=\"off\" medicine_status=\"notset\"> <p id=\"results' + rowCount + '\"></p> <span class=\"mix-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_potency[]\" id=\"mix_medicine_mixture_potency-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_dilution[]\" id=\"mix_medicine_mixture_dilution-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med ' + rowCount + '\"></i> Delete </button></div></div>';\n\n        //This old code 05 sept 2019\n        //var recRow = '<div class=\"form-group row\" id=\"mixmedicineAdd'+rowCount+'\"><label class=\"col-xs-4 text-right control-label\" for=\"medicine_mixture'+rowCount+'\">Med <span class=\"srnoItem\">'+rowCount+'</span> <span class=\"required\">*</span> </label> <div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med '+rowCount+'\" name=\"medicine_mixture[]\" id=\"medicine_mixture-'+rowCount+'\" autocomplete=\"off\" medicine_status=\"notset\"> <p id=\"results'+rowCount+'\" ></p> <span class=\"mix-hightlight'+rowCount+'\"></span> </div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><select name=\"mix_medicine_mixture_form[]\" id=\"mix_medicine_mixture_form-'+rowCount+'\" class=\"form-control\"><option value=\"\">Select Form</option></select></div><div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"'+rowCount+'\" id=\"mixMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med '+rowCount+'\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"'+rowCount+'\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med '+rowCount+'\"></i> Delete </button></div></div>';\n        $('#addedRows').append(recRow);\n      }\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      // get mix medicine form data\n      //Now we not need of this\n      /* $.ajax({\n                      method: \"GET\",\n                      url: ENV.APP.lumen_api_url+\"mixmedicine/formlist/\"+params.id,\n                      dataType:'json',\n                      async:false,\n                      success: function(res){\n                          _this.controllerFor('settings.masters.medicines.mix').set('mixform_list', res);\n                      },\n                          error: function(error, x, y){\n                      }\n            }); */\n\n      /// get mix medicine data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicinelist/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var medicine_data = res;\n          _this.controllerFor('settings.masters.medicines.mix').set('mix_medicine_name', medicine_data.medicineMixName);\n          // _this.controllerFor('settings.masters.medicines.mix').set('pharmacy_instruction',medicine_data.pharmacy_instruction);\n          _this.controllerFor('settings.masters.medicines.mix').set('status', medicine_data.status);\n          _this.controllerFor('settings.masters.medicines.mix').set('id', medicine_data.id);\n          var s = _this.set('status', medicine_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicinedetails/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.mix').set('mixture_list', res);\n          var rowCount = res.length;\n          $(document).on('click', '#addMoreRows', function () {\n            //alert(rowCount);\n            rowCount++;\n            var recRow = '<div class=\"form-group row\" id=\"mixmedicineAdd' + rowCount + '\"><label class=\"col-xs-4 text-right control-label\" for=\"medicine_mixture' + rowCount + '\">Med <span class=\"srnoItem\">' + rowCount + '</span> <span class=\"required\">*</span> </label> <div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"medicine_mixture[]\" id=\"medicine_mixture-' + rowCount + '\" autocomplete=\"off\" medicine_status=\"notset\"> <p id=\"results' + rowCount + '\"></p> <span class=\"mix-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_potency[]\" id=\"mix_medicine_mixture_potency-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><input type=\"text\" class=\"form-control\" name=\"mix_medicine_mixture_dilution[]\" id=\"mix_medicine_mixture_dilution-' + rowCount + '\" disabled=\"disabled\"> </div><div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med ' + rowCount + '\"></i> Delete </button></div></div>';\n\n            // var recRow = '<div class=\"form-group row\" id=\"mixmedicineAdd'+rowCount+'\"><label class=\"col-xs-4 text-right control-label\" for=\"medicine_mixture'+rowCount+'\">Med '+rowCount+' <span class=\"required\">*</span> </label> <div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med '+rowCount+'\" name=\"medicine_mixture[]\" id=\"medicine_mixture-'+rowCount+'\" autocomplete=\"off\" medicine_status=\"set\"> <p id=\"results'+rowCount+'\"></p></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><select name=\"mix_medicine_mixture_form[]\" id=\"mix_medicine_mixture_form-'+rowCount+'\" class=\"form-control\"><option value=\"\">Select Form</option></select></div><div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"'+rowCount+'\" id=\"mixMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med '+rowCount+'\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"'+rowCount+'\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med '+rowCount+'\"></i> Delete </button></div></div>';\n\n            jQuery('#addedRows').append(recRow);\n          });\n          $(document).on('click', '#mixMedicineRow', function (event) {\n            event.preventDefault();\n            event.stopPropagation();\n            event.stopImmediatePropagation();\n            var lengthOfmixmedicine = $(\"[id^='mixmedicineAdd']\").length;\n            var removeNum = $(this).data('row');\n            if (lengthOfmixmedicine < 3) {\n              swal(\"There is minimum two rows of medicines required, so you can't delete this.\");\n              return false;\n            } else {\n              $('#mixmedicineAdd' + removeNum).remove();\n              //This below loop is used for restting the order of medicine, Rahul khan, 07 Aug 2019\n              $(\"[id^='mixmedicineAdd']\").each(function () {\n                var currentRowid = '';\n                var ids = this.id;\n                var currentRowid = ids.replace('mixmedicineAdd', '');\n                //  mix_medicine_mixture_potency\n                if (currentRowid > removeNum) {\n                  var textsrl = $('#' + ids + ' .srnoItem ').text();\n                  var resetSrl = textsrl - 1;\n                  $('#' + ids + ' .srnoItem ').text(resetSrl);\n                  $('#' + ids + ' label').attr('for', 'medicine_mixture' + resetSrl); //used replace  div label\n                  $('#medicine_mixture-' + currentRowid).attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n                  $().attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n                  $('#medicine_mixture-' + currentRowid).attr('id', 'medicine_mixture-' + resetSrl); //used replace div row id for input field\n                  $('#results' + currentRowid).attr('id', 'results' + resetSrl); //used replace p id\n                  $('#' + ids + ' .mix-hightlight' + currentRowid).attr('class', 'mix-hightlight' + resetSrl); //used replace p id\n                  $('#mix_medicine_mixture_potency-' + currentRowid).attr('id', 'mix_medicine_mixture_potency-' + resetSrl); //used replace mixture\n                  $('#mix_medicine_mixture_dilution-' + currentRowid).attr('id', 'mix_medicine_mixture_dilution-' + resetSrl); //used replace mixture form fiels value\n                  $('#' + ids + ' #mixMedicineRowClear').attr('data-row', resetSrl); //used replace mixture form fiels value\n                  $('#' + ids + ' #mixMedicineRow').attr('data-row', resetSrl); //used replace mixture form fiels value\n                  $('#' + ids).attr('id', 'mixmedicineAdd' + resetSrl); //used replace div row id\n                }\n              });\n            }\n            $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n            //  if(removeNum == 1 || removeNum == 2){\n            //     swal(\"Cannot delete this row, If add other medicine than click on Clear button to clear existing data\");\n            //     return false;\n            //  }else{\n            //         $('#mixmedicineAdd'+removeNum).remove();\n            // }\n            rowCount--;\n          });\n          $(document).on('click', '#mixMedicineRowClear', function () {\n            var clearNum = $(this).data('row');\n            jQuery('#medicine_mixture-' + clearNum).removeAttr('data-medicine');\n            jQuery('#medicine_mixture-' + clearNum).removeAttr('data-poten');\n            jQuery('#medicine_mixture-' + clearNum).removeAttr('data-med');\n            jQuery('#medicine_mixture-' + clearNum).attr('data-medicine', '');\n            jQuery('#medicine_mixture-' + clearNum).attr('data-poten', '');\n            jQuery('#medicine_mixture-' + clearNum).attr('data-med', '');\n            jQuery('#mix_medicine_mixture_potency-' + clearNum).val('');\n            jQuery('#mix_medicine_mixture_dilution-' + clearNum).val('');\n            jQuery('#medicine_mixture-' + clearNum).val('');\n            //This line of code is used to set the medicine row input field attribute medicine_status, Rahul Khan, 09 Aug 2019\n            jQuery('#medicine_mixture-' + clearNum).attr('medicine_status', 'notset');\n            jQuery('#results' + clearNum).empty();\n            jQuery('#mix_medicine_mixture_form-' + clearNum).empty();\n            jQuery('#mix_medicine_mixture_form-' + clearNum).removeClass('has-error');\n            jQuery('#mix_medicine_mixture_form-' + clearNum).append(\"<option value=''> Select Form </option>\");\n            $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n            //This below code is used for resetting the error meassage div\n            $('.mix-hightlight' + clearNum).text('');\n          });\n\n          //This below function is used for checking the all forms are same or not, Rahul Khan. 09 Aug 2019\n          $(document).on('change', '[id^=\"mix_medicine_mixture_form\"]', function () {\n            var notSameForm = [];\n            $('[id^=\"mix_medicine_mixture_form\"]').each(function (index) {\n              var sr = index + 1;\n              //This below condition is used for checking, is form of medicines are same or not, Rahul Khan , 09 Aug 2019\n              var Formvalue = $('#mix_medicine_mixture_form-' + sr + ' option:selected').text().trim();\n              // if(index==0){\n              var firstFormvalue = $('#mix_medicine_mixture_form-1 option:selected').text().trim();\n              // }\n\n              // if(firstFormvalue != Formvalue){\n              if (firstFormvalue != Formvalue && firstFormvalue != 'Select Form' && Formvalue != 'Select Form') {\n                notSameForm.push(Formvalue);\n                // swal(\"Forms are not same!\", \"The mix should be have the same forms for all selected medicine.\", \"warning\");\n                $(\"[id^='mix_medicine_mixture_form']\").addClass('duplicate_serial');\n                $(\"[id^='mix_medicine_mixture_form']\").attr('title', 'Form is not same as other medicine.');\n              }\n            });\n            if (notSameForm.length == 0) {\n              $(\"[id^='mix_medicine_mixture_form']\").removeClass('duplicate_serial');\n              $(\"[id^='mix_medicine_mixture_form']\").attr('title', '');\n            }\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        },\n        error: function (error, x, y) {}\n      });\n      $(document).ready(function () {\n        $('#getformbuttom').trigger('click'); //This trigger the gerformButton for get the forms, Rahul khan 05 sept 2019\n        setTimeout(function () {\n          $.ajax({\n            method: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + params.id,\n            dataType: 'json',\n            async: false,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (res) {\n              res.forEach(function (form) {\n                $('input.mixform-' + form.form_code).attr('checked', true);\n              });\n            },\n            error: function (error, x, y) {}\n          });\n        }, 1000);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.mix').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.mix.edit', {\n        controller: 'settings.masters.medicines.mix'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/mix/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/settings/masters/medicines/mix/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.mix').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.mix').set('page', 'Mix Medicine List');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicinelist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.mix').set('mix_medicine', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      var format_inactive = function (callback, medicine_id) {\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicinedetails/' + medicine_id,\n          dataType: 'json',\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            var tbody = '';\n            res.forEach(function (form) {\n              tbody += '<tr>';\n              tbody += '<td></td><td>' + form.mixName + '</td><td>' + form.potencyname + '</td><td class=\"text-uppercase\">' + form.dilution + '</td>';\n              tbody += '<td></td>';\n              tbody += '<td></td>';\n              tbody += '<td></td>';\n              tbody += '</tr>';\n              callback($(tbody)).show();\n            });\n          },\n          complete: function (res) {\n            console.log('Execution complete');\n          },\n          error: function (error, x, y) {}\n        });\n        /*\t$.ajax({\n        \ttype: 'POST',\n        \turl:ENV.APP.lumen_api_url+\"mixmedicine/mixmedicinedetails\",\n        \tdata:{medicine_id : medicine_id},\n        \tdataType: 'json',\n        \tsuccess: function (data){\n                    var tbody = '';\n                    //<td>' + data[i]['form_rate'] + '</td>'\n        \t\t\t\t\tfor(var i=0;i<data.length;i++){\n                          tbody += '<tr>';\n                                  tbody += '<td></td><td>' + data[i]['mixName'] + '</td><td>' + data[i]['fName'] + '</td><td>' + data[i]['medicine_group_name'] + '</td>';\n                                  tbody += '<td></td>';\n                                  tbody += '<td></td>';\n                                  tbody += '<td></td>';\n                          tbody +='</tr>';\n        \t\t\t\t\t\t\t\t\t\t\t}\n        \t\t\tcallback($(tbody)).show();\n        \t\t\t},\n        \t\t\terror: function( jqXHR, textStatus ) {\n        \t\t\t\t\tconsole.log( \"Request failed: \" + textStatus );\n        \t\t\t}\n        \t\t\t}); */\n      };\n      $(document).ready(function () {\n        jQuery.noConflict();\n        //$.fn.dataTable.ext.classes.sPageButton = 'btn btn-primary btn-xs'; // Change Pagination Button Class\n        $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {\n          fnInit: function (oSettings, nPaging, fnCallbackDraw) {\n            $(nPaging).prepend($('<ul class=\"pagination\"></ul>'));\n            var ul = $('ul', $(nPaging));\n            var nFirst = document.createElement('li');\n            var nPrevious = document.createElement('li');\n            var nNext = document.createElement('li');\n            $(nPrevious).append($('<span>' + oSettings.oLanguage.oPaginate.sPrevious + '</span>'));\n            $(nFirst).append($('<span>1</span>'));\n            $(nNext).append($('<span>' + oSettings.oLanguage.oPaginate.sNext + '</span>'));\n            nFirst.className = 'paginate_button first active';\n            nPrevious.className = 'paginate_button previous';\n            nNext.className = 'paginate_button next';\n            ul.append(nPrevious);\n            ul.append(nFirst);\n            ul.append(nNext);\n            $(nFirst).click(function () {\n              oSettings.oApi._fnPageChange(oSettings, 'first');\n              fnCallbackDraw(oSettings);\n            });\n            $(nPrevious).click(function () {\n              if (!(oSettings._iDisplayStart === 0)) {\n                oSettings.oApi._fnPageChange(oSettings, 'previous');\n                fnCallbackDraw(oSettings);\n              }\n            });\n            $(nNext).click(function () {\n              if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength)) {\n                oSettings.oApi._fnPageChange(oSettings, 'next');\n                fnCallbackDraw(oSettings);\n              }\n            });\n\n            /* Disallow text selection */\n            $(nFirst).bind('selectstart', function () {\n              return false;\n            });\n            $(nPrevious).bind('selectstart', function () {\n              return false;\n            });\n            $(nNext).bind('selectstart', function () {\n              return false;\n            });\n\n            // Reset dynamically generated pages on length/filter change.\n            $(oSettings.nTable).DataTable().on('length.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n            $(oSettings.nTable).DataTable().on('search.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n          },\n          /*\n           * Function: oPagination.simple_incremental_bootstrap.fnUpdate\n           * Purpose:  Update the list of page buttons shows\n           * Inputs:   object:oSettings - dataTables settings object\n           *           function:fnCallbackDraw - draw function which must be called on update\n           */\n          fnUpdate: function (oSettings, fnCallbackDraw) {\n            if (!oSettings.aanFeatures.p) {\n              return;\n            }\n\n            /* Loop over each instance of the pager */\n            //var $new = null;\n            var an = oSettings.aanFeatures.p;\n            for (var i = 0, iLen = an.length; i < iLen; i++) {\n              var buttons = an[i].getElementsByTagName('li');\n              $(buttons).removeClass('active');\n              if (oSettings._iDisplayStart === 0) {\n                buttons[0].className = 'paginate_buttons disabled previous';\n                buttons[buttons.length - 1].className = 'paginate_button enabled next';\n              } else {\n                buttons[0].className = 'paginate_buttons enabled previous';\n              }\n              var page = Math.round(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;\n              if (page == buttons.length - 1 && oSettings.aiDisplay.length > 0) {\n                var $new = $('<li class=\"dynamic_page_item active\"><span>' + page + '</span></li>');\n                $(buttons[buttons.length - 1]).before($new);\n                $new.click(function () {\n                  $(oSettings.nTable).DataTable().page(page - 1);\n                  fnCallbackDraw(oSettings);\n                });\n              } else $(buttons[page]).addClass('active');\n              if (oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength) {\n                buttons[buttons.length - 1].className = 'paginate_button disabled next';\n              }\n            }\n          }\n        };\n        setTimeout(function () {\n          var inactive_table = $('#mixmedicine').DataTable({\n            pagingType: 'simple_incremental_bootstrap',\n            iDisplayLength: 10,\n            order: [[3, 'asc']],\n            language: {\n              searchPlaceholder: 'Search Mix medicine'\n            }\n          });\n          $('div.dataTables_filter input').addClass('form-control');\n          $('div.dataTables_length select').addClass('form-control');\n          $('#mixmedicine tbody').on('click', '#mixmedicineDetails', function () {\n            var tr = $(this).closest('tr');\n            var row = inactive_table.row(tr);\n            var medicine_id = $(this).attr('data-medicine');\n            if (row.child.isShown()) {\n              // This row is already open - close it\n              row.child.hide();\n              tr.removeClass('shown');\n            } else {\n              // Open this row\n              format_inactive(row.child, medicine_id);\n              tr.addClass('shown');\n            }\n          });\n        }, 1000);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.mix').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.mix.list', {\n        controller: 'settings.masters.medicines.mix'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/template/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.template').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var rowCount = 1;\n      this.controllerFor('settings.masters.medicines.template').set('page', 'Add Medicine Template');\n      this.controllerFor('settings.masters.medicines.template').set('template_name', '');\n      this.controllerFor('settings.masters.medicines.template').set('template_mixture', '');\n      this.controllerFor('settings.masters.medicines.template').set('template_pharmacy_instruction', '');\n      this.controllerFor('settings.masters.medicines.template').set('id', '');\n      this.controllerFor('settings.masters.medicines.template').set('status', '');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.medicines.template').set('vali_errors', ' ');\n      this.controllerFor('settings.masters.medicines.template').set('medicineTempName', '');\n      this.controllerFor('settings.masters.medicines.template').set('errors', '');\n      this.controllerFor('settings.masters.medicines.template').set('mix-hightlight*', '');\n      $(document).ready(function () {\n        $('.textinput').val('');\n      });\n      var para = 'all';\n      var _this = this;\n      //sets the chosen value into the input\n      $(document).on('click', '.formdata', function (event) {\n        var item = $(event.target).text();\n        var item = item.trim();\n        var potency_id = $(this).data('poten');\n        var medicine_id = $(this).data('med');\n        var medicine_type = $(this).data('type');\n        $(this).closest('.search-box').find('input[type=\"text\"]').val(item);\n        $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n        $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n        var clickedid = $(this).closest('.search-box').find('input[type=\"text\"]').attr('id');\n        $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n        // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n        if (clickedid !== undefined) {\n          var targetid = clickedid.split('-');\n          var cnt = targetid[1];\n          if (medicine_type == 'single') {\n            // ajax call for get form list\n            $.ajax({\n              type: 'POST',\n              url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n              data: {\n                potency: potency_id,\n                medicine: medicine_id\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('#template_mixture_form-' + cnt).empty();\n                // $(\"#template_mixture_form-\" + cnt).focus().addClass('has-error');\n                // $(\"#template_mixture_form-\" + cnt).append(\"<option value=''> Select Form </option>\");\n                for (var i = 0; i < len; i++) {\n                  var group_id = response[i]['gId'];\n                  var form_code = response[i]['fcode'];\n                  var form_name = response[i]['fname'];\n                  $('#template_mixture_form-' + cnt).append(\"<option value='\" + group_id + '-' + form_code + '-' + form_name + \"'>\" + form_name + '</option>');\n                }\n              }\n            });\n          }\n          if (medicine_type == 'mix') {\n            // $(\"#template_mixture_form-\"+cnt).addClass('inputreadonly')\n            // ajax call for get form list\n            /*\n            /********This Ajax Request used for getting the all the avaible form for Mix *******/\n            //var\n            $.ajax({\n              method: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n              dataType: 'json',\n              async: false,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                $('#template_mixture_form-' + cnt).empty();\n                res.forEach(function (form) {\n                  $('#template_mixture_form-' + cnt).append(\"<option value='\" + form.group + '-' + form.form_code + '-' + form.name + \"'>\" + form.name + '</option>');\n                });\n              },\n              error: function (error, x, y) {}\n            });\n            /************************\n                     **********This below code is used for old version************\n                       $.ajax({\n                        type: \"POST\",\n                        url:ENV.APP.lumen_api_url + \"mixmedicine/formlist\",\n                        data: { potency: potency_id, medicine: medicine_id },\n                        success: function (response) {\n                          $(\"#template_mixture_form-\" + cnt).empty();\n                          // $(\"#template_mixture_form-\" + cnt).focus().addClass('has-error');\n                          // $(\"#template_mixture_form-\" + cnt).append(\"<option value=''> Select Form </option>\");\n                              var group_id = response['gId'];\n                              var form_code = response['fcode'];\n                              var form_name = response['fname'];\n                              $(\"#template_mixture_form-\" + cnt).append(\"<option value='\"+group_id+\"-\"+form_code+\"-\"+form_name+\"'>\"+form_name+\"</option>\");\n                        }\n                      });*/\n          }\n          $('#results' + cnt).html('').show().removeClass('searchresult');\n          // ajax call for get instruction list\n          $.ajax({\n            type: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (response) {\n              var len = response.length;\n              $('#template_medicine_instruction-' + cnt).empty();\n              $('#template_medicine_instruction-' + cnt).focus().addClass('has-error');\n              $('#template_medicine_instruction-' + cnt).append(\"<option value=''> Select Instuctions </option>\");\n              for (var i = 0; i < len; i++) {\n                var id = response[i]['id'];\n                var name = response[i]['instruction_name'];\n                $('#template_medicine_instruction-' + cnt).append(\"<option value='\" + id + \"'>\" + name + '</option>');\n              }\n              //$(\"#template_medicine_instruction-\"+targetid[1]).append(\"<option value='-\"+targetid[1]+\"'>Other</option>\");\n            }\n          });\n\n          // clear form select dropdown list\n          $(document).on('change', '#template_mixture_form-' + cnt, function () {\n            // var option_value = $(\"#template_mixture_form-\"+cnt+\" \"+\"option:selected\").val();\n            // var medicine = $(\".textinput\").map(function(){return $(this).val();}).get();\n            // if(option_value==option_value && medicine.length>1){\n            //   alert('dublicate');\n            // }\n            $('#template_mixture_form-' + cnt).removeClass('has-error');\n          });\n\n          // clear instruction select dropdown list\n          $(document).on('change', '#template_medicine_instruction-' + cnt, function () {\n            var option_id = $(this).val();\n            if (option_id === '1') {\n              jQuery('#other' + cnt).show();\n            } else {\n              jQuery('#other' + cnt).hide();\n              jQuery('#other' + cnt).empty();\n              jQuery('#other' + cnt).val('');\n            }\n            //alert(option_id);\n            $('#template_medicine_instruction-' + cnt).removeClass('has-error');\n          });\n        }\n      });\n\n      //On pressing a key in input field, this function will be called.\n      $(document).on('keyup', '.textinput', function () {\n        var id = $(this).attr('id');\n        var input_id = id.split('-');\n        var val = $(this).val();\n        if (val === '') {\n          //Validating, if \"name\" is empty.\n          $('#results' + input_id[1]).html('').show().removeClass('searchresult');\n        } else {\n          $('#templateAdd' + input_id[1]).removeClass('has-error');\n          $.ajax({\n            type: 'GET',\n            url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempsearch',\n            data: {\n              query: val\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            success: function (data) {\n              // $('#results' + input_id[1]).empty();\n              $('[id^=\"results\"]').html('');\n              $('#results' + input_id[1]).html(data).show().addClass('searchresult');\n            }\n          });\n        }\n      });\n      //This below jquery code is used for hidding the medicine suggestion box on focus out, Rahul Khan 12 sept 2019\n      /*  $(document).on('focusout', '.textinput',function(){\n          var inputId = $(this).attr('id');\n          var RowidNum = inputId.replace('template_mixture-','');\n          setTimeout(function(){\n            $('#results'+RowidNum).html('').show().removeClass('searchresult');\n          }, 300)\n        })*/\n\n      // var rowCount = 1;\n      // $(document).on('click', '#addMoreRows', function (e) {\n      //   e.preventDefault();\n      //   rowCount++;\n      //   //alert(rowCount);\n      //   var recRow = '<div class=\"form-group row\" id=\"templateAdd' + rowCount + '\"><label class=\"col-xs-3 text-right control-label\" for=\"medicine_checkbox\"></label><div class=\"col-xs-1\" style=\"width:auto; margin-right:12px;\"><input type=\"checkbox\" class=\"check template_checkbox\" id=\"template_checkbox-' + rowCount + '\"  data-id=\"' + rowCount + '\" name=\"template_checkbox\" value=\"' + rowCount + '\"/></div><label class=\"col-xs-1 text-right control-label\" style=\"width:auto\" for=\"template_mixture_no' + rowCount + '\">Med <span class=\"required\">*</span></label><div class=\"col-xs-1 search-box\" style=\"margin-right:12px; width:50px\"><input type=\"text\" name=\"template_mixture_no[]\" class=\"form-control\" autocomplete=\"off\" id=\"template_mixture_no-' + rowCount + '\" value=\"' + rowCount + '\"></div><div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"template_mixture[]\" id=\"template_mixture-' + rowCount + '\" autocomplete=\"off\"> <p id=\"results' + rowCount + '\"></p></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><select name=\"template_mixture_form[]\" id=\"template_mixture_form-' + rowCount + '\" class=\"form-control\"><option value=\"\">Select Form</option></select></div> <div class=\"col-xs-2\" style=\"margin-right:12px;\"><select name=\"template_medicine_instruction[]\" id=\"template_medicine_instruction-' + rowCount + '\" class=\"form-control cwareinstruction-' + rowCount + ' cware_other iother-'+rowCount+'\"><option value=\"\">Select Instruction</option></select></div> <div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"templateMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"mixMedicineRow\"> <i  class=\"fa fa-trash\" title=\"Remove Med ' + rowCount + '\"></i> Delete </button></div></div>';\n      //   jQuery('#addedRows').append(recRow);\n      // });\n      $(document).on('click', '#tempMedicineRow', function (e) {\n        e.preventDefault();\n        jQuery.noConflict();\n        e.stopPropagation();\n        e.stopImmediatePropagation();\n        var lengthOfmixmedicine = $(\"[id^='templateAdd']\").length;\n        var removeNum = $(this).data('row');\n        if (lengthOfmixmedicine < 2) {\n          swal(\"Sorry!! You can't remove all the rows!\");\n          return false;\n        } else {\n          $('#templateAdd' + removeNum).remove();\n          //This below loop is used for restting the order of medicine, Rahul khan, 07 Aug 2019\n          $(\"[id^='templateAdd']\").each(function () {\n            var currentRowid = '';\n            var ids = this.id;\n            var currentRowid = ids.replace('templateAdd', '');\n            if (currentRowid > removeNum) {\n              var textsrl = $('#' + ids + ' .srnoItem').val();\n              var resetSrl = parseInt(textsrl) - 1;\n              $('#template_checkbox-' + currentRowid).attr('id', 'template_checkbox-' + resetSrl); //used replace mixture\n              $('#' + ids + ' .check').attr('data-id', resetSrl); //used replace mixture form fiels value\n              $('#' + ids + ' .check').val(resetSrl); //used replace mixture form fiels value\n              $('#' + ids + ' .srnoItem').val(resetSrl);\n              $('#' + ids + ' .srnoItem').attr('id', 'template_mixture_no-' + resetSrl);\n              //$(\"#template_mixture_no-\"+currentRowid).val(resetSrl);\n              $('#template_mixture-' + currentRowid).attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n              $('#template_mixture-' + currentRowid).attr('id', 'template_mixture-' + resetSrl); //used replace div row id for input field\n              $('#results' + currentRowid).attr('id', 'results' + resetSrl); //used replace p id\n              $('#' + ids + ' .serial-hightlight' + currentRowid).attr('class', 'serial-hightlight' + resetSrl); //used replace p id\n\n              $('#' + ids + ' .cwareinstruction-' + currentRowid).attr('class', 'form-control cwareinstruction-' + resetSrl + ' cware_other iother-' + resetSrl); //used replace p id\n\n              $('#' + ids + ' .medicine-hightlight' + currentRowid).attr('class', 'medicine-hightlight' + resetSrl); //used replace p id\n              $('#' + ids + ' .form-hightlight' + currentRowid).attr('class', 'form-hightlight' + resetSrl); //used replace p id\n              $('#' + ids + ' .instruction-hightlight' + currentRowid).attr('class', 'instruction-hightlight' + resetSrl); //used replace p id\n              $('#template_mixture-' + currentRowid).attr('id', 'template_mixture-' + resetSrl); //used replace mixture\n              $('#template_mixture_form-' + currentRowid).attr('id', 'template_mixture_form-' + resetSrl); //used replace\n              $('#template_medicine_instruction-' + currentRowid).attr('id', 'template_medicine_instruction-' + resetSrl); //used replace\n              $('#template_mixture_form-' + currentRowid).attr('id', 'template_mixture_form-' + resetSrl); //used replace\n              $('#' + ids + ' #templateMedicineRowClear').attr('data-row', resetSrl); //used replace mixture form fiels value\n              $('#' + ids + ' #tempMedicineRow').attr('data-row', resetSrl); //used replace mixture form fiels value\n              $('#' + ids).attr('id', 'templateAdd' + resetSrl); //used replace div row id\n              $('#' + ids + ' .search-box').parent().addClass('has-error');\n            }\n          });\n        }\n        /*\n        var removeNum = $(this).data('row');\n        jQuery('#templateAdd' + removeNum).remove();*/\n        //rowCount--;\n      });\n      $(document).on('click', '#templateMedicineRowClear', function () {\n        var clearNum = $(this).data('row');\n        jQuery('#template_mixture-' + clearNum).val('');\n        jQuery('#results' + clearNum).empty();\n        jQuery('#template_mixture_form-' + clearNum).empty();\n        jQuery('#template_mixture_form-' + clearNum).removeClass('has-error');\n        jQuery('#template_mixture_form-' + clearNum).append(\"<option value=''> Select Form </option>\");\n        jQuery('#template_medicine_instruction-' + clearNum).empty();\n        jQuery('#template_medicine_instruction-' + clearNum).removeClass('has-error');\n        jQuery('#template_medicine_instruction-' + clearNum).append(\"<option value=''> Select Instruction </option>\");\n        jQuery('#other' + clearNum).empty();\n        jQuery('#other' + clearNum).val('');\n        jQuery('#other' + clearNum).hide();\n        jQuery('.serial-hightlight' + clearNum).html('');\n        jQuery('.medicine-hightlight' + clearNum).html('');\n        jQuery('.form-hightlight' + clearNum).html('');\n        jQuery('.instruction-hightlight' + clearNum).html('');\n      });\n      // check at least two checkbox and open mix medicine popup\n      $(document).on('click', '.combo-prescription', function (event) {\n        event.preventDefault();\n        var checked_array = [];\n        $('#template_dosage_instruction').val('');\n        $('#selectedtemplatedosage').empty();\n        $.each($(\"input[name='template_checkbox']:checked\"), function () {\n          checked_array.push($(this).val());\n        });\n        var checked = checked_array.length >= 2;\n        if (!checked) {\n          swal('Please check at least two checkbox');\n          return false;\n        } else {\n          jQuery.noConflict();\n          var arrays = $('input:checkbox[name=template_checkbox]:checked').map(function (index) {\n            return $(this).val();\n          }).get();\n          _this.controllerFor('settings.masters.medicines.template').send('getCheckedVaue', arrays);\n          $('#cwTemplateComboInstruction').modal('show');\n        }\n      });\n      //other instruction popup\n      $(document).on('change', '.cware_other', function (event) {\n        $('#other_instruction').val('');\n        $('#otherinstructionid').empty();\n        var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n        var dropdown_id = dropdown_parent_id.split('-');\n        var dropdown_option_id = $(this).val();\n        if (dropdown_id != '' && dropdown_option_id == 1) {\n          event.preventDefault();\n          jQuery.noConflict();\n          _this.controllerFor('settings.masters.medicines.template').send('setDropdownId', dropdown_id[1]);\n          $('#OtherInstruction').modal('show');\n        }\n      });\n\n      //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n      $(document).bind('keydown', function (e) {\n        if (e.which == 40) {\n          //This condition is used for Down Arrow to select medicine from suggestion box\n          console.log('sdfss');\n          jQuery.noConflict();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          var focused = $(':focus');\n          var id = $(focused).attr('id');\n          if (id != undefined) {\n            var RowidNum = id.replace('template_mixture-', '');\n            $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n          } else {\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum) + 1;\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            console.log('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n            $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n          }\n        } else if (e.which == 38) {\n          //This condition is used for UP Key to to select the medicine from suggestion box\n          var focused = $(':focus');\n          var btnClass = $(focused).attr('data-order');\n          if (btnClass == undefined) {\n            return false;\n          }\n          var RowNum = btnClass.replace('cw_', '');\n          var RowNum = parseInt(RowNum);\n          var parentId = $(focused).closest('p').attr('id');\n          var RowidNum = parentId.replace('results', '');\n          if (RowNum == 1) {\n            $('#medicine_name-' + RowidNum).focus();\n          } else {\n            var RowNum = parseInt(RowNum) - 1;\n            $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n          }\n        }\n      });\n    },\n    actions: {\n      addMoreRows: function () {\n        var _this = this;\n        // var serial_no_array = [];\n        // $(\".srnoItem\").each(function () {\n        //   var stval = $(this).val();\n        //   var replace_string_value = stval.replace(/[^0-9]/g, '');\n        //   serial_no_array.push(parseInt(replace_string_value));\n        // });\n\n        /* This condition is used for auto generate serial no of template medicine, Shubh Tiwari , 07 Jun 2021 */\n        var max_count = _this.rowMaxSerialNo();\n        //var max_count = parseInt(Math.max.apply(Math, serial_no_array));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"form-group row\" id=\"templateAdd' + rowCount + '\"><label class=\"col-xs-3 text-right control-label\" for=\"medicine_checkbox\"></label><div class=\"col-xs-1\" style=\"width:auto; margin-right:12px;\"><input type=\"checkbox\" class=\"check template_checkbox\" id=\"template_checkbox-' + rowCount + '\"  data-id=\"' + rowCount + '\" name=\"template_checkbox\" value=\"' + rowCount + '\"/></div><label class=\"col-xs-1 text-right control-label\" style=\"width:auto\" for=\"template_mixture_no' + rowCount + '\">Med <span class=\"required\">*</span></label><div class=\"col-xs-1 search-box\" style=\"margin-right:12px; width:50px\"><input type=\"text\" name=\"template_mixture_no[]\" class=\"form-control srnoItem\" autocomplete=\"off\" id=\"template_mixture_no-' + rowCount + '\" value=\"' + rowCount + '\"><span class=\"serial-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"template_mixture[]\" id=\"template_mixture-' + rowCount + '\" autocomplete=\"off\"> <p id=\"results' + rowCount + '\"></p><span class=\"medicine-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><select name=\"template_mixture_form[]\" id=\"template_mixture_form-' + rowCount + '\" class=\"form-control medicine_form\"><option value=\"\">Select Form</option></select><span class=\"form-hightlight' + rowCount + '\"></span></div> <div class=\"col-xs-2\" style=\"margin-right:12px;\"><select name=\"template_medicine_instruction[]\" id=\"template_medicine_instruction-' + rowCount + '\" class=\"form-control cwareinstruction-' + rowCount + ' cware_other iother-' + rowCount + '\"><option value=\"\">Select Instruction</option></select><span class=\"instruction-hightlight' + rowCount + '\"></span></div> <div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"templateMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"tempMedicineRow\"> <i  class=\"fa fa-trash\"></i> Delete </button></div></div>';\n        jQuery('#addedRows').append(recRow);\n      }\n    },\n    afterModel() {\n      var _this = this;\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.template').set('route_access', route_access);\n      $(document).on('paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            console.log(currentRowId);\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n          }\n        }\n      });\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.template.add', {\n        controller: 'settings.masters.medicines.template'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/template/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.template').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var rowCount = 1;\n      this.controllerFor('settings.masters.medicines.template').set('page', 'Edit Medicine Template');\n      var para = 'all';\n      var _this = this;\n      $.ajax({\n        type: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (response) {\n          _this.controllerFor('settings.masters.medicines.template').set('instruction_list', response);\n        },\n        complete: function (response) {\n          console.log('Execution complete');\n        }\n      });\n      $(document).ready(function () {\n        //sets the chosen value into the input\n        $(document).on('click', '.formdata', function (event) {\n          var item = $(event.target).text();\n          var item = item.trim();\n          var potency_id = $(this).data('poten');\n          var medicine_id = $(this).data('med');\n          var medicine_type = $(this).data('type');\n          $(this).closest('.search-box').find('input[type=\"text\"]').val(item);\n          $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-med', medicine_id);\n          $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-poten', potency_id);\n          var clickedid = $(this).closest('.search-box').find('input[type=\"text\"]').attr('id');\n          $(this).closest('.search-box').find('input[type=\"text\"]').attr('data-type', medicine_type);\n          // Check here clickedid variable value is not empty or not undefined, Written by Shubh Tiwari as on 10 May 2023\n          if (clickedid !== undefined) {\n            var targetid = clickedid.split('-');\n            var cnt = targetid[1];\n            if (medicine_type == 'single') {\n              // ajax call for get form list\n              $.ajax({\n                type: 'POST',\n                url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                data: {\n                  potency: potency_id,\n                  medicine: medicine_id\n                },\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (response) {\n                  var len = response.length;\n                  $('#template_mixture_form-' + cnt).empty();\n                  //  $(\"#template_mixture_form-\" + cnt).focus().addClass('has-error');\n                  //  $(\"#template_mixture_form-\" + cnt).append(\"<option value=''> Select Form </option>\");\n                  for (var i = 0; i < len; i++) {\n                    var group_id = response[i]['gId'];\n                    var form_code = response[i]['fcode'];\n                    var form_name = response[i]['fname'];\n                    $('#template_mixture_form-' + cnt).append(\"<option value='\" + group_id + '-' + form_code + '-' + form_name + \"'>\" + form_name + '</option>');\n                  }\n                }\n              });\n            }\n            if (medicine_type == 'mix') {\n              // $(\"#template_mixture_form-\"+cnt).addClass('inputreadonly')\n              // ajax call for get form list\n              /*\n              /********This Ajax Request used for getting the all the avaible form for Mix *******/\n              //var\n              $.ajax({\n                method: 'GET',\n                url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + medicine_id,\n                dataType: 'json',\n                async: false,\n                headers: {\n                  \"Authorization\": `Bearer ${utoken}`\n                },\n                success: function (res) {\n                  $('#template_mixture_form-' + cnt).empty();\n                  res.forEach(function (form) {\n                    $('#template_mixture_form-' + cnt).append(\"<option value='\" + form.group + '-' + form.form_code + '-' + form.name + \"'>\" + form.name + '</option>');\n                  });\n                },\n                error: function (error, x, y) {}\n              });\n              /************************\n               **********This below code is used for old version************\n                $.ajax({\n                  type: \"POST\",\n                  url:ENV.APP.lumen_api_url + \"mixmedicine/formlist\",\n                  data: { potency: potency_id, medicine: medicine_id },\n                  success: function (response) {\n                    $(\"#template_mixture_form-\" + cnt).empty();\n                    // $(\"#template_mixture_form-\" + cnt).focus().addClass('has-error');\n                    // $(\"#template_mixture_form-\" + cnt).append(\"<option value=''> Select Form </option>\");\n                        var group_id = response['gId'];\n                        var form_code = response['fcode'];\n                        var form_name = response['fname'];\n                        $(\"#template_mixture_form-\" + cnt).append(\"<option value='\"+group_id+\"-\"+form_code+\"-\"+form_name+\"'>\"+form_name+\"</option>\");\n                  }\n                });*/\n            }\n            $('#results' + cnt).html('').show().removeClass('searchresult');\n            // ajax call for get instruction list\n            $.ajax({\n              type: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'instruction/instructionlist?datalist=' + para,\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (response) {\n                var len = response.length;\n                $('#template_medicine_instruction-' + cnt).empty();\n                $('#template_medicine_instruction-' + cnt).focus().addClass('has-error');\n                $('#template_medicine_instruction-' + cnt).append(\"<option value=''> Select Instuctions </option>\");\n                for (var i = 0; i < len; i++) {\n                  var id = response[i]['id'];\n                  var name = response[i]['instruction_name'];\n                  $('#template_medicine_instruction-' + cnt).append(\"<option value='\" + id + \"'>\" + name + '</option>');\n                }\n                //$(\"#template_medicine_instruction-\"+targetid[1]).append(\"<option value='-\"+targetid[1]+\"'>Other</option>\");\n              }\n            });\n            // clear form select dropdown list\n            $(document).on('change', '#template_mixture_form-' + cnt, function () {\n              $('#template_mixture_form-' + cnt).removeClass('has-error');\n            });\n            // clear instruction select dropdown list\n            $(document).on('change', '#template_medicine_instruction-' + cnt, function () {\n              var option_id = $(this).val();\n              if (option_id === '1') {\n                jQuery('#other' + cnt).show();\n              } else {\n                jQuery('#other' + cnt).hide();\n                jQuery('#other' + cnt).empty();\n                jQuery('#other' + cnt).val('');\n              }\n              //alert(option_id);\n              $('#template_medicine_instruction-' + cnt).removeClass('has-error');\n            });\n          }\n        });\n\n        //On pressing a key in input field, this function will be called.\n        $(document).on('keyup', '.textinput', function () {\n          var id = $(this).attr('id');\n          var input_id = id.split('-');\n          var val = $(this).val();\n          if (val === '') {\n            //Validating, if \"name\" is empty.\n            $('#results' + input_id[1]).html('').show().removeClass('searchresult');\n          } else {\n            $('#templateAdd' + input_id[1]).removeClass('has-error');\n            $.ajax({\n              type: 'GET',\n              url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempsearch',\n              data: {\n                query: val\n              },\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (data) {\n                // $('#results' + input_id[1]).empty();\n                $('[id^=\"results\"]').html('');\n                $('#results' + input_id[1]).html(data).show().addClass('searchresult');\n              }\n            });\n          }\n        });\n\n        //This below jquery code is used for hidding the medicine suggestion box on focus out, Rahul Khan 12 sept 2019\n        /* $(document).on('focusout', '.textinput',function(){\n                      var inputId = $(this).attr('id');\n                      var RowidNum = inputId.replace('template_mixture-','');\n                      setTimeout(function(){\n                      $('#results'+RowidNum).html('').show().removeClass('searchresult');\n                      }, 300)\n                  })*/\n\n        // check at least two checkbox and open mix medicine popup\n        $(document).on('click', '.combo-prescription', function (event) {\n          event.preventDefault();\n          var checked_array = [];\n          $('#template_dosage_instruction').val('');\n          $('#selectedtemplatedosage').empty();\n          $.each($(\"input[name='template_checkbox']:checked\"), function () {\n            checked_array.push($(this).val());\n          });\n          var checked = checked_array.length >= 2;\n          if (!checked) {\n            swal('Please check at least two checkbox');\n            return false;\n          } else {\n            jQuery.noConflict();\n            var arrays = $('input:checkbox[name=template_checkbox]:checked').map(function (index) {\n              return $(this).val();\n            }).get();\n            _this.controllerFor('settings.masters.medicines.template').send('getCheckedVaue', arrays);\n            $('#cwTemplateComboInstruction').modal('show');\n          }\n        });\n        //other instruction popup\n        $(document).on('change', '.cware_other', function (event) {\n          $('#other_instruction').val('');\n          $('#otherinstructionid').empty();\n          var dropdown_parent_id = $(event.target).closest('.cware_other').attr('id');\n          var dropdown_id = dropdown_parent_id.split('-');\n          var dropdown_option_id = $(this).val();\n          if (dropdown_id != '' && dropdown_option_id == 1) {\n            event.preventDefault();\n            jQuery.noConflict();\n            _this.controllerFor('settings.masters.medicines.template').send('setDropdownId', dropdown_id[1]);\n            $('#OtherInstruction').modal('show');\n          }\n        });\n        $(document).on('click', '#tempMedicineRow', function (e) {\n          jQuery.noConflict();\n          e.preventDefault();\n          e.stopPropagation();\n          e.stopImmediatePropagation();\n          var lengthOfmixmedicine = $(\"[id^='templateAdd']\").length;\n          var removeNum = $(this).data('row');\n          if (lengthOfmixmedicine < 2) {\n            swal(\"Sorry!! You can't remove all the rows!\");\n            return false;\n          } else {\n            $('#templateAdd' + removeNum).remove();\n            $(\"[id^='templateAdd']\").each(function () {\n              var currentRowid = '';\n              var ids = this.id;\n              var currentRowid = ids.replace('templateAdd', '');\n              if (currentRowid > removeNum) {\n                var textsrl = $('#' + ids + ' .srnoItem').val();\n                //var textsrl= $(\"#template_mixture_no-\"+currentRowid).val();\n                var resetSrl = parseInt(textsrl) - 1;\n                console.log(resetSrl);\n                $('#template_checkbox-' + currentRowid).attr('id', 'template_checkbox-' + resetSrl); //used replace mixture\n                $('#' + ids + ' .check').attr('data-id', resetSrl); //used replace mixture form fiels value\n                $('#' + ids + ' .check').val(resetSrl); //used replace mixture form fiels value\n                $('#' + ids + ' .srnoItem').val(resetSrl);\n                $('#' + ids + ' .srnoItem').attr('id', 'template_mixture_no-' + resetSrl);\n                //$(\"#template_mixture_no-\"+currentRowid).val(resetSrl);\n                $('#template_mixture-' + currentRowid).attr('placeholder', 'Search Med ' + resetSrl); //.placeholder();\n                $('#template_mixture-' + currentRowid).attr('id', 'template_mixture-' + resetSrl); //used replace div row id for input field\n                $('#results' + currentRowid).attr('id', 'results' + resetSrl); //used replace p id\n                $('#' + ids + ' .serial-hightlight' + currentRowid).attr('class', 'serial-hightlight' + resetSrl); //used replace p id\n                $('#' + ids + ' .cwareinstruction-' + currentRowid).attr('class', 'form-control cwareinstruction-' + resetSrl + ' cware_other iother-' + resetSrl); //used replace p id\n                $('#' + ids + ' .medicine-hightlight' + currentRowid).attr('class', 'medicine-hightlight' + resetSrl); //used replace p id\n                $('#' + ids + ' .form-hightlight' + currentRowid).attr('class', 'form-hightlight' + resetSrl); //used replace p id\n                $('#' + ids + ' .instruction-hightlight' + currentRowid).attr('class', 'instruction-hightlight' + resetSrl); //used replace p id\n                $('#template_mixture-' + currentRowid).attr('id', 'template_mixture-' + resetSrl); //used replace mixture\n                $('#template_mixture_form-' + currentRowid).attr('id', 'template_mixture_form-' + resetSrl); //used replace\n                $('#template_medicine_instruction-' + currentRowid).attr('id', 'template_medicine_instruction-' + resetSrl); //used replace\n                $('#' + ids + ' #templateMedicineRowClear').attr('data-row', resetSrl); //used replace mixture form fiels value\n                $('#' + ids + ' #tempMedicineRow').attr('data-row', resetSrl); //used replace mixture form fiels value\n                $('#' + ids).attr('id', 'templateAdd' + resetSrl); //used replace div row id\n              }\n            });\n          }\n          /* var removeNum = $(this).data('row');\n                              if(removeNum == 1){\n                                 swal(\"Cannot delete this row, If add other medicine than click on Clear button to clear existing data\");\n                                 return false;\n                              }else{\n                                     $('#templateAdd' + removeNum).remove();\n                              }*/\n          rowCount--;\n        });\n        $(document).on('click', '#templateMedicineRowClear', function () {\n          var clearNum = $(this).data('row');\n          jQuery('#template_mixture-' + clearNum).val('');\n          jQuery('#results' + clearNum).empty();\n          jQuery('#template_mixture_form-' + clearNum).empty();\n          jQuery('#template_mixture_form-' + clearNum).removeClass('has-error');\n          jQuery('#template_mixture_form-' + clearNum).append(\"<option value=''> Select Form </option>\");\n          jQuery('#template_medicine_instruction-' + clearNum).empty();\n          jQuery('#template_medicine_instruction-' + clearNum).removeClass('has-error');\n          jQuery('#template_medicine_instruction-' + clearNum).append(\"<option value=''> Select Instruction </option>\");\n          jQuery('#other' + clearNum).empty();\n          jQuery('#other' + clearNum).val('');\n          jQuery('#other' + clearNum).hide();\n          jQuery('.serial-hightlight' + clearNum).html('');\n          jQuery('.medicine-hightlight' + clearNum).html('');\n          jQuery('.form-hightlight' + clearNum).html('');\n          jQuery('.instruction-hightlight' + clearNum).html('');\n        });\n\n        //This below function is used for calling a fyunction according to keybaord short key Rahul Khan, 03 Sept 2019\n        $(document).bind('keydown', function (e) {\n          if (e.which == 40) {\n            //This condition is used for Down Arrow to select medicine from suggestion box\n            console.log('sdfss');\n            jQuery.noConflict();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            var focused = $(':focus');\n            var id = $(focused).attr('id');\n            if (id != undefined) {\n              var RowidNum = id.replace('template_mixture-', '');\n              $('#results' + RowidNum + \" button[data-order='cw_1']\").focus();\n            } else {\n              var focused = $(':focus');\n              var btnClass = $(focused).attr('data-order');\n              var RowNum = btnClass.replace('cw_', '');\n              var RowNum = parseInt(RowNum) + 1;\n              var parentId = $(focused).closest('p').attr('id');\n              var RowidNum = parentId.replace('results', '');\n              console.log('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\");\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          } else if (e.which == 38) {\n            //This condition is used for UP Key to to select the medicine from suggestion box\n            var focused = $(':focus');\n            var btnClass = $(focused).attr('data-order');\n            if (btnClass == undefined) {\n              return false;\n            }\n            var RowNum = btnClass.replace('cw_', '');\n            var RowNum = parseInt(RowNum);\n            var parentId = $(focused).closest('p').attr('id');\n            var RowidNum = parentId.replace('results', '');\n            if (RowNum == 1) {\n              $('#medicine_name-' + RowidNum).focus();\n            } else {\n              var RowNum = parseInt(RowNum) - 1;\n              $('#results' + RowidNum + \" button[data-order='cw_\" + RowNum + \"']\").focus();\n            }\n          }\n        });\n      });\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      // get mix medicine form data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicinetemplate/formlist/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.template').set('mixform_list', res);\n        },\n        error: function (error, x, y) {}\n      });\n\n      /// get template data\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempmedicinelist/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var medicine_data = res;\n          _this.controllerFor('settings.masters.medicines.template').set('template_name', medicine_data.medicineTempName);\n          _this.controllerFor('settings.masters.medicines.template').set('template_pharmacy_instruction', medicine_data.pharmacy_instruction);\n          _this.controllerFor('settings.masters.medicines.template').set('status', medicine_data.status);\n          _this.controllerFor('settings.masters.medicines.template').set('id', medicine_data.id);\n          var s = _this.set('status', medicine_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempmedicinedetails/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.template').set('mixture_list', res);\n          setTimeout(function () {\n            res.forEach(function (form1) {\n              /*****************These below conditional block code is used for getting the All available possible forms with respect of medicine type********************/\n\n              if (form1.datatype == 'single') {\n                $.ajax({\n                  type: 'POST',\n                  url: _environment.default.APP.lumen_api_url + 'mixmedicine/formlist',\n                  data: {\n                    potency: form1.pId,\n                    medicine: form1.mId\n                  },\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    // single_medicine_{{medicine.mId}}_{{medicine.pId}}\n                    $('.single_medicine_' + form1.mId + '_' + form1.pId).empty();\n                    res.forEach(function (form) {\n                      if (form1.fcode == form.fcode) {\n                        $('.single_medicine_' + form1.mId + '_' + form1.pId).append(\"<option selected='selected' value='\" + form.gId + '-' + form.fcode + '-' + form.fname + \"'>\" + form.fname + '</option>');\n                      } else {\n                        $('.single_medicine_' + form1.mId + '_' + form1.pId).append(\"<option value='\" + form.gId + '-' + form.fcode + '-' + form.fname + \"'>\" + form.fname + '</option>');\n                      }\n                    });\n                  }\n                });\n\n                /*  $.ajax({\n                                          method: \"GET\",\n                                          url: ENV.APP.lumen_api_url+\"mixmedicine/mixmedicineforms/\"+form1.mId,\n                                          dataType:'json',\n                                          async:false,\n                                          success: function(res){\n                                              $(\".mix_medicine_\"+form1.mId).empty();\n                                              res.forEach(function(form){\n                                                  if(form1.fcode==form.form_code){\n                                                      $(\".mix_medicine_\"+form1.mId).append(\"<option selected='selected' value='\"+form.group+\"-\"+form.form_code+\"-\"+form.name+\"'>\"+form.name+\"</option>\");\n                                                  }else{\n                                                      $(\".mix_medicine_\"+form1.mId).append(\"<option value='\"+form.group+\"-\"+form.form_code+\"-\"+form.name+\"'>\"+form.name+\"</option>\");\n                                                  }\n                                                });\n                                          },\n                                              error: function(error, x, y){\n                                          }\n                                      });*/\n              } else if (form1.datatype == 'mix') {\n                $.ajax({\n                  method: 'GET',\n                  url: _environment.default.APP.lumen_api_url + 'mixmedicine/mixmedicineforms/' + form1.mId,\n                  dataType: 'json',\n                  async: false,\n                  headers: {\n                    \"Authorization\": `Bearer ${utoken}`\n                  },\n                  success: function (res) {\n                    $('.mix_medicine_' + form1.mId).empty();\n                    res.forEach(function (form) {\n                      if (form1.fcode == form.form_code) {\n                        $('.mix_medicine_' + form1.mId).append(\"<option selected='selected' value='\" + form.group + '-' + form.form_code + '-' + form.name + \"'>\" + form.name + '</option>');\n                      } else {\n                        $('.mix_medicine_' + form1.mId).append(\"<option value='\" + form.group + '-' + form.form_code + '-' + form.name + \"'>\" + form.name + '</option>');\n                      }\n                    });\n                  },\n                  error: function (error, x, y) {}\n                });\n              }\n            });\n          }, 500);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    actions: {\n      addMoreRows: function () {\n        var _this = this;\n        // var serial_no_array = [];\n        // $(\".srnoItem\").each(function () {\n        //   var stval = $(this).val();\n        //   var replace_string_value = stval.replace(/[^0-9]/g, '');\n        //   serial_no_array.push(parseInt(replace_string_value));\n        // });\n        // var max_count = parseInt(Math.max.apply(Math, serial_no_array));\n        /* This condition is used for auto generate serial no of template medicine, Shubh Tiwari , 07 Jun 2021 */\n        var max_count = _this.rowMaxSerialNo();\n        //var max_count = parseInt(Math.max.apply(Math, serial_no_array));\n        var rowCount = parseInt(max_count) + 1;\n        var recRow = '<div class=\"form-group row\" id=\"templateAdd' + rowCount + '\"><label class=\"col-xs-3 text-right control-label\" for=\"medicine_checkbox\"></label><div class=\"col-xs-1\" style=\"width:auto; margin-right:12px;\"><input type=\"checkbox\" class=\"check template_checkbox\" id=\"template_checkbox-' + rowCount + '\"  data-id=\"' + rowCount + '\" name=\"template_checkbox\" value=\"' + rowCount + '\"/></div><label class=\"col-xs-1 text-right control-label\" style=\"width:auto\" for=\"template_mixture_no' + rowCount + '\">Med <span class=\"required\">*</span></label><div class=\"col-xs-1 search-box\" style=\"margin-right:12px; width:50px\"><input type=\"text\" name=\"template_mixture_no[]\" class=\"form-control srnoItem\" autocomplete=\"off\" id=\"template_mixture_no-' + rowCount + '\" value=\"' + rowCount + '\"><span class=\"serial-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-2 search-box\" style=\"margin-right:12px;\"><input type=\"text\" class=\"textinput form-control\" placeholder=\"Search Med ' + rowCount + '\" name=\"template_mixture[]\" id=\"template_mixture-' + rowCount + '\" autocomplete=\"off\"> <p id=\"results' + rowCount + '\"></p><span class=\"medicine-hightlight' + rowCount + '\"></span></div><div class=\"col-xs-1\" style=\"margin-right:12px;\"><select name=\"template_mixture_form[]\" id=\"template_mixture_form-' + rowCount + '\" class=\"form-control medicine_form\"><option value=\"\">Select Form</option></select><span class=\"form-hightlight' + rowCount + '\"></span></div> <div class=\"col-xs-2\" style=\"margin-right:12px;\"><select name=\"template_medicine_instruction[]\" id=\"template_medicine_instruction-' + rowCount + '\" class=\"form-control cwareinstruction-' + rowCount + ' cware_other iother-' + rowCount + '\"><option value=\"\">Select Instruction</option></select><span class=\"instruction-hightlight' + rowCount + '\"></span></div> <div class=\"col-xs-2\"><button class=\"btn btn-default\" type=\"button\" style=\"margin-right:12px;\"  data-row=\"' + rowCount + '\" id=\"templateMedicineRowClear\"><i  class=\"fa fa-eraser\" title=\"Clear Med ' + rowCount + '\"></i> Clear </button><button class=\"btn btn-danger\" type=\"button\"  data-row=\"' + rowCount + '\" id=\"tempMedicineRow\"> <i  class=\"fa fa-trash\"></i> Delete </button></div></div>';\n        jQuery('#addedRows').append(recRow);\n      }\n    },\n    afterModel() {\n      var _this = this;\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.template').set('route_access', route_access);\n      $(document).on('paste keyup', '.srnoItem', function () {\n        var inputVal = $(this).val().trim();\n        if (inputVal != '') {\n          var res = inputVal.charAt(0);\n          //console.log(res);\n          if (_this.isNumeric(res) == false) {\n            Swal.fire({\n              icon: 'warning',\n              html: '<b class=\"pop-message-class\">Serial number can have maximum four letters. Allows digits and alphabets. It can not start with an alphabet.</b>' + '<br>' + '<b class=\"pop-message-class\">e.g 1, 1A, 11A is valid but A, A1 or A11 is not.</b>',\n              width: 650,\n              allowOutsideClick: false\n            });\n            //var currentUniqueSerial = $(this).attr('data-uniqueserial');\n            var currentRowId = $(this).attr('id');\n            console.log(currentRowId);\n            $('#' + currentRowId).val('');\n          } else if (_this.isNumeric(res) == true) {\n            this.value = this.value.match(/^[1-9]{1,2}.{0,2}?$/g);\n          }\n        }\n      });\n    },\n    isNumeric(value) {\n      return /^-?\\d+$/.test(value);\n    },\n    rowMaxSerialNo() {\n      var max = Math.max.apply(Math, $('.srnoItem').map(function (i, elem) {\n        var element_value = $(elem).val();\n        var replace_string_value = element_value.replace(/[^0-9]/g, '');\n        return Number(replace_string_value);\n      }));\n      return max;\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.template.edit', {\n        controller: 'settings.masters.medicines.template'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/medicines/template/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.medicines.template').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.medicines.template').set('page', 'Medicine Template List');\n      this.controllerFor('settings.masters.medicines.template').set('vali_errors', ' ');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempmedicinelist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.medicines.template').set('template_medicine', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      var format_inactive = function (callback, medicine_id) {\n        $.ajax({\n          type: 'POST',\n          url: _environment.default.APP.lumen_api_url + 'medicinetemplate/tempmedicinedetails',\n          data: {\n            template_id: medicine_id\n          },\n          dataType: 'json',\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (data) {\n            var tbody = '';\n            for (var i = 0; i < data.length; i++) {\n              if (data[i]['oName'] != '') {\n                var instruction_name = data[i]['oName'];\n              } else {\n                var instruction_name = data[i]['iName'];\n              }\n              tbody += '<tr>';\n              tbody += '<td></td><td>' + data[i]['mixName'] + '</td><td>' + data[i]['fname'] + '</td><td>' + data[i]['medicine_group_name'] + '</td><td>' + data[i]['form_rate'] + '</td><td>' + instruction_name + '</td>';\n              tbody += '<td></td>';\n              tbody += '<td></td>';\n              tbody += '<td></td>';\n              tbody += '</tr>';\n            }\n            callback($(tbody)).show();\n          },\n          error: function (jqXHR, textStatus) {\n            console.log('Request failed: ' + textStatus);\n          }\n        });\n      };\n      $(document).ready(function () {\n        jQuery.noConflict();\n        //$.fn.dataTable.ext.classes.sPageButton = 'btn btn-primary btn-xs'; // Change Pagination Button Class\n        $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {\n          fnInit: function (oSettings, nPaging, fnCallbackDraw) {\n            $(nPaging).prepend($('<ul class=\"pagination\"></ul>'));\n            var ul = $('ul', $(nPaging));\n            var nFirst = document.createElement('li');\n            var nPrevious = document.createElement('li');\n            var nNext = document.createElement('li');\n            $(nPrevious).append($('<span>' + oSettings.oLanguage.oPaginate.sPrevious + '</span>'));\n            $(nFirst).append($('<span>1</span>'));\n            $(nNext).append($('<span>' + oSettings.oLanguage.oPaginate.sNext + '</span>'));\n            nFirst.className = 'paginate_button first active';\n            nPrevious.className = 'paginate_button previous';\n            nNext.className = 'paginate_button next';\n            ul.append(nPrevious);\n            ul.append(nFirst);\n            ul.append(nNext);\n            $(nFirst).click(function () {\n              oSettings.oApi._fnPageChange(oSettings, 'first');\n              fnCallbackDraw(oSettings);\n            });\n            $(nPrevious).click(function () {\n              if (!(oSettings._iDisplayStart === 0)) {\n                oSettings.oApi._fnPageChange(oSettings, 'previous');\n                fnCallbackDraw(oSettings);\n              }\n            });\n            $(nNext).click(function () {\n              if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength)) {\n                oSettings.oApi._fnPageChange(oSettings, 'next');\n                fnCallbackDraw(oSettings);\n              }\n            });\n\n            /* Disallow text selection */\n            $(nFirst).bind('selectstart', function () {\n              return false;\n            });\n            $(nPrevious).bind('selectstart', function () {\n              return false;\n            });\n            $(nNext).bind('selectstart', function () {\n              return false;\n            });\n\n            // Reset dynamically generated pages on length/filter change.\n            $(oSettings.nTable).DataTable().on('length.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n            $(oSettings.nTable).DataTable().on('search.dt', function (e, settings, len) {\n              $('li.dynamic_page_item', nPaging).remove();\n            });\n          },\n          /*\n           * Function: oPagination.simple_incremental_bootstrap.fnUpdate\n           * Purpose:  Update the list of page buttons shows\n           * Inputs:   object:oSettings - dataTables settings object\n           *           function:fnCallbackDraw - draw function which must be called on update\n           */\n          fnUpdate: function (oSettings, fnCallbackDraw) {\n            if (!oSettings.aanFeatures.p) {\n              return;\n            }\n\n            /* Loop over each instance of the pager */\n            var an = oSettings.aanFeatures.p;\n            for (var i = 0, iLen = an.length; i < iLen; i++) {\n              var buttons = an[i].getElementsByTagName('li');\n              $(buttons).removeClass('active');\n              if (oSettings._iDisplayStart === 0) {\n                buttons[0].className = 'paginate_buttons disabled previous';\n                buttons[buttons.length - 1].className = 'paginate_button enabled next';\n              } else {\n                buttons[0].className = 'paginate_buttons enabled previous';\n              }\n              var page = Math.round(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;\n              if (page == buttons.length - 1 && oSettings.aiDisplay.length > 0) {\n                var $new = $('<li class=\"dynamic_page_item active\"><span>' + page + '</span></li>');\n                $(buttons[buttons.length - 1]).before($new);\n                $new.click(function () {\n                  $(oSettings.nTable).DataTable().page(page - 1);\n                  fnCallbackDraw(oSettings);\n                });\n              } else $(buttons[page]).addClass('active');\n              if (oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() || oSettings.aiDisplay.length < oSettings._iDisplayLength) {\n                buttons[buttons.length - 1].className = 'paginate_button disabled next';\n              }\n            }\n          }\n        };\n        setTimeout(function () {\n          var inactive_table = $('#mixmedicinetemplate').DataTable({\n            pagingType: 'simple_incremental_bootstrap',\n            iDisplayLength: 10,\n            order: [[3, 'asc']],\n            language: {\n              searchPlaceholder: 'Search template'\n            }\n          });\n          $('div.dataTables_filter input').addClass('form-control');\n          $('div.dataTables_length select').addClass('form-control');\n          $('#mixmedicinetemplate tbody').on('click', '#mixmedicineDetails', function () {\n            var tr = $(this).closest('tr');\n            var row = inactive_table.row(tr);\n            var medicine_id = $(this).attr('data-medicine');\n            if (row.child.isShown()) {\n              // This row is already open - close it\n              row.child.hide();\n              tr.removeClass('shown');\n            } else {\n              // Open this row\n              format_inactive(row.child, medicine_id);\n              tr.addClass('shown');\n            }\n          });\n        }, 1000);\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.medicines.template').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.medicines.template.list', {\n        controller: 'settings.masters.medicines.template'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/menu/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.menu').set('menu_category', '');\n      _this.controllerFor('settings.masters.menu').set('selectmenu_category', '');\n      _this.controllerFor('settings.masters.menu').set('menu_name', '');\n      _this.controllerFor('settings.masters.menu').set('menu_alias', '');\n      _this.controllerFor('settings.masters.menu').set('menu_icon', '');\n      _this.controllerFor('settings.masters.menu').set('menu_view', '');\n      _this.controllerFor('settings.masters.menu').set('menu_ishome', '');\n      _this.controllerFor('settings.masters.menu').set('menu_ordering', '');\n      _this.controllerFor('settings.masters.menu').set('id', '');\n      _this.controllerFor('settings.masters.menu').set('page', 'Add Menu');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'menu/category',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.menu').set('menucategories', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.menu.add', {\n        controller: 'settings.masters.menu'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/menu/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.menu').set('page', 'Edit Menu');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'menu/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var menu_data = res;\n          _this.controllerFor('settings.masters.menu').set('menu_category', menu_data.parent_id);\n          _this.controllerFor('settings.masters.menu').set('menu_name', menu_data.title);\n          _this.controllerFor('settings.masters.menu').set('menu_alias', menu_data.alias);\n          _this.controllerFor('settings.masters.menu').set('menu_icon', menu_data.icon);\n          _this.controllerFor('settings.masters.menu').set('menu_view', menu_data.view);\n          _this.controllerFor('settings.masters.menu').set('menu_ishome', menu_data.is_home);\n          _this.controllerFor('settings.masters.menu').set('menu_ordering', menu_data.ordering);\n          _this.controllerFor('settings.masters.menu').set('id', menu_data.id);\n          _this.controllerFor('settings.masters.menu').set('menu_status', menu_data.status);\n          var s = _this.set('status', menu_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'menu/category',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.menu').set('menucategories', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.menu.add', {\n        controller: 'settings.masters.menu'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/menu/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.menu.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/menu/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.controllerFor('settings.masters.menu').set('page', 'Menu List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.menu').send('getMenu', page, status);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.menu.list', {\n        controller: 'settings.masters.menu'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/organ/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.organ').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.organ').set('page', 'Add Organ');\n      this.controllerFor('settings.masters.organ').set('name', '');\n      this.controllerFor('settings.masters.organ').set('status', '');\n      this.controllerFor('settings.masters.organ').set('id', '');\n      this.controllerFor('settings.masters.organ').get('selectedItems').clear();\n      this.controllerFor('settings.masters.organ').set('vali_errors', '');\n      this.controllerFor('settings.masters.organ').set('errors', '');\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?datalist=datalist',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.organ').set('systems', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.organ').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.organ.add', {\n        controller: 'settings.masters.organ'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/organ/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.organ').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.organ').set('page', 'Edit Organ');\n      this.controllerFor('settings.masters.organ').get('selectedItems').clear();\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.organ').set('vali_errors', '');\n      this.controllerFor('settings.masters.organ').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?editlist=edit',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.organ').set('systems', res);\n          //_this.getRecordsDetails(params);\n        },\n        complete: function (res) {\n          //setTimeout(function(){\n          _this.getRecordsDetails(params);\n          //}, 400);\n        }\n      });\n    },\n    getRecordsDetails: function (params) {\n      this.controllerFor('settings.masters.organ').set('id', params.id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'organ/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var organ_data = res;\n          var systems = organ_data.organsystems;\n          _this.controllerFor('settings.masters.organ').set('name', organ_data.name);\n          _this.controllerFor('settings.masters.organ').set('id', organ_data.id);\n          setTimeout(function () {\n            systems.forEach(function (item, index) {\n              // console.log(item.system_id);\n              $('#system' + item.system_id).prop('checked', true);\n              $('#system' + item.system_id).attr('checked', 'checked');\n              $('.system2' + item.system_id).css('display', 'block');\n              _this.controllerFor('settings.masters.organ').send('selectSystem', item.system_id, true);\n            });\n          }, 300);\n          $(document).ready(function () {\n            if (organ_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.organ').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.organ.add', {\n        controller: 'settings.masters.organ'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/organ/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      console.log(permission);\n      this.controllerFor('settings.masters.organ').set('permission_arr', permission);\n      this.controllerFor('settings.masters.organ').set('selectedsystem', '');\n      this.controllerFor('settings.masters.organ').set('query_string', '');\n      this.controllerFor('settings.masters.organ').set('vali_errors', '');\n      this.controllerFor('settings.masters.organ').set('errors', '');\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.organ').set('page', 'Organ List');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system?datalist=all',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.organ').set('systems', res);\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            //_this.getRecordsDetails(params);\n          }, 500);\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.organ').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.organ.list', {\n        controller: 'settings.masters.organ'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.organ').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.organ').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/outcomesuom/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('page', 'Add Unit');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('name', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('status', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('id', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('vali_errors', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.outcomesuom.add', {\n        controller: 'settings.masters.outcomesuom.outcomesuom'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/outcomesuom/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('page', 'Edit Unit');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('vali_errors', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'outcomesuom/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var unit_data = res;\n          _this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('name', unit_data.name);\n          _this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('status', unit_data.status);\n          $(document).ready(function () {\n            if (unit_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.outcomesuom.add', {\n        controller: 'settings.masters.outcomesuom.outcomesuom'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/outcomesuom/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('permission_arr', permission);\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('query_string', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('vali_errors', '');\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('errors', '');\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('page', 'Units List');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.outcomesuom.list', {\n        controller: 'settings.masters.outcomesuom.outcomesuom'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.outcomesuom.outcomesuom').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.permissions').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.permissions').set('permission_name', '');\n      _this.controllerFor('settings.masters.permissions').set('permission_description', '');\n      _this.controllerFor('settings.masters.permissions').set('permission_category', '');\n      _this.controllerFor('settings.masters.permissions').set('full_name', '');\n      _this.controllerFor('settings.masters.permissions').set('menu_ishome', '');\n      _this.controllerFor('settings.masters.permissions').set('menu_ordering', '');\n      _this.controllerFor('settings.masters.permissions').set('menu_icon', '');\n      _this.controllerFor('settings.masters.permissions').set('menu_alias', '');\n      _this.controllerFor('settings.masters.permissions').set('id', '');\n      _this.controllerFor('settings.masters.permissions').set('page', 'Add Permission');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'permissions/category',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.permissions').set('categories', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.permissions').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.add', {\n        controller: 'settings.masters.permissions'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/category/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('settings.masters.permissions.category').set('category_name', '');\n      _this.controllerFor('settings.masters.permissions.category').set('id', '');\n      _this.controllerFor('settings.masters.permissions.category').set('page', 'Add Permission Category');\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'permissionscategory',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.permissions.category').set('categories', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.category.add', {\n        controller: 'settings.masters.permissions.category'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/category/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.controllerFor('settings.masters.permissions.category').set('page', 'Edit Permission Category');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      this.controllerFor('settings.masters.permissions.category').set('permissions_id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'permissionscategory/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var permission_category_data = res;\n          _this.controllerFor('settings.masters.permissions.category').set('category_name', permission_category_data.category_name);\n          _this.controllerFor('settings.masters.permissions.category').set('id', permission_category_data.id);\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.category.add', {\n        controller: 'settings.masters.permissions.category'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/category/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.permissions.category.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/category/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.category.list', {\n        controller: 'settings.masters.permissions.category'\n      });\n    },\n    beforeModel() {\n      this.getItems();\n      this.controllerFor('settings.masters.permissions.category').set('page', 'Permission Category List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.permissions.category').send('getCategory', page, status);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.permissions').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.permissions').set('page', 'Edit Permission');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      this.controllerFor('settings.masters.permissions').set('permissions_id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'permissions/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var permission_data = res;\n          _this.controllerFor('settings.masters.permissions').set('permission_name', permission_data.permissionName);\n          _this.controllerFor('settings.masters.permissions').set('full_name', permission_data.full_name);\n          _this.controllerFor('settings.masters.permissions').set('permission_description', permission_data.description);\n          _this.controllerFor('settings.masters.permissions').set('menu_ishome', permission_data.is_home);\n          _this.controllerFor('settings.masters.permissions').set('menu_ordering', permission_data.ordering);\n          _this.controllerFor('settings.masters.permissions').set('menu_icon', permission_data.icon);\n          _this.controllerFor('settings.masters.permissions').set('menu_alias', permission_data.action_name);\n          _this.controllerFor('settings.masters.permissions').set('id', permission_data.id);\n          _this.controllerFor('settings.masters.permissions').set('permission_category', permission_data.parent_id);\n          _this.controllerFor('settings.masters.permissions').set('permission_status', permission_data.status);\n          var s = _this.set('status', permission_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'permissions/category',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.permissions').set('categories', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.permissions').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.add', {\n        controller: 'settings.masters.permissions'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.permissions.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/permissions/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.permissions').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.controllerFor('settings.masters.permissions').set('page', 'Permission List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.permissions').send('getPermissions', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.permissions').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.permissions.list', {\n        controller: 'settings.masters.permissions'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/potency/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.potency').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.potency').set('page', 'Add Potency');\n      _this.controllerFor('settings.masters.potency').set('name', '');\n      _this.controllerFor('settings.masters.potency').set('dilution', '');\n      _this.controllerFor('settings.masters.potency').set('id', '');\n      _this.controllerFor('settings.masters.potency').get('selectedItems').clear();\n      _this.controllerFor('settings.masters.potency').set('status', '');\n\n      /*This below line code is used for reset error message */\n      _this.controllerFor('settings.masters.potency').set('vali_errors', '');\n      _this.controllerFor('settings.masters.potency').set('errors', '');\n      var para = 'all';\n      //var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          _this.controllerFor('settings.masters.potency').set('pricegroups', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.potency').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.potency.add', {\n        controller: 'settings.masters.potency'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/potency/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.potency').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.potency').set('page', 'Edit Potency');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.potency').set('vali_errors', '');\n      this.controllerFor('settings.masters.potency').set('errors', '');\n      this.controllerFor('settings.masters.potency').get('selectedItems').clear();\n    },\n    model(params) {\n      var para = 'all';\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup?datalist=' + para,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          _this.controllerFor('settings.masters.potency').set('pricegroups', res);\n        },\n        complete: function (res) {\n          setTimeout(function () {\n            _this.getRecordsDetails(params);\n          }, 500);\n          console.log('Execution complete pricegroup');\n        }\n      });\n    },\n    getRecordsDetails: function (params) {\n      this.controllerFor('settings.masters.potency').set('id', params.id);\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/potency/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var potency_data = res;\n          var potencyGroups = potency_data.potencyGroup;\n          _this.controllerFor('settings.masters.potency').set('name', potency_data.name);\n          _this.controllerFor('settings.masters.potency').set('dilution', potency_data.dilution);\n          // _this.controllerFor('settings.masters.potency').set('pricegroups',potency_data.potencyGroup);\n          _this.controllerFor('settings.masters.potency').set('id', potency_data.id);\n          potencyGroups.forEach(function (item, index) {\n            $('#pricegroup' + item.pricegroup_id).prop('checked', true);\n            _this.controllerFor('settings.masters.potency').send('setPricegroup', item.pricegroup_id, true);\n          });\n\n          // _this.controllerFor('settings.masters.potency').set('selectedItems', potency_data.potencyGroup);\n          $(document).ready(function () {\n            if (potency_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.potency').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.potency.add', {\n        controller: 'settings.masters.potency'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/potency/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.potency.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/potency/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.potency').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.potency').set('page', 'Potency List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.potency').send('getRecords', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.potency').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.potency.list', {\n        controller: 'settings.masters.potency'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/pricegroup/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('settings.masters.pricegroup.add', {\n        controller: 'settings.masters.pricegroup'\n      });\n    },\n    init() {\n      this._super(...arguments);\n    },\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.pricegroup').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.pricegroup').set('page', 'Add Price Group');\n      this.controllerFor('settings.masters.pricegroup').set('name', '');\n      this.controllerFor('settings.masters.pricegroup').set('ounce_check', true);\n      this.controllerFor('settings.masters.pricegroup').set('ounce', '');\n      this.controllerFor('settings.masters.pricegroup').set('globule_check', true);\n      this.controllerFor('settings.masters.pricegroup').set('globule', '');\n      this.controllerFor('settings.masters.pricegroup').set('powder_check', true);\n      this.controllerFor('settings.masters.pricegroup').set('powder', '');\n      this.controllerFor('settings.masters.pricegroup').set('liquid_check', true);\n      this.controllerFor('settings.masters.pricegroup').set('liquid', '');\n      this.controllerFor('settings.masters.pricegroup').set('errors', '');\n      this.controllerFor('settings.masters.pricegroup').set('description', '');\n      this.controllerFor('settings.masters.pricegroup').set('id', '');\n      this.controllerFor('settings.masters.pricegroup').set('vali_errors', '');\n      this.controllerFor('settings.masters.pricegroup').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.pricegroup').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/pricegroup/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('settings.masters.pricegroup.add', {\n        controller: 'settings.masters.pricegroup'\n      });\n    },\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.pricegroup').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.pricegroup').set('page', 'Edit Price Group');\n      this.controllerFor('settings.masters.pricegroup').set('vali_errors', '');\n      this.controllerFor('settings.masters.pricegroup').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      _this.controllerFor('settings.masters.pricegroup').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'medicine/pricegroup/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          console.log(res);\n          var pricegroup_data = res;\n          _this.controllerFor('settings.masters.pricegroup').set('name', pricegroup_data.name);\n          _this.controllerFor('settings.masters.pricegroup').set('description', pricegroup_data.description);\n          // _this.controllerFor('settings.masters.pricegroup').set('status',pricegroup_data.status);\n          if (pricegroup_data.O_rate > 0) {\n            _this.controllerFor('settings.masters.pricegroup').set('ounce_check', true);\n            _this.controllerFor('settings.masters.pricegroup').set('ounce', pricegroup_data.O_rate);\n          } else {\n            _this.controllerFor('settings.masters.pricegroup').set('ounce_check', false);\n            _this.controllerFor('settings.masters.pricegroup').set('ounce', '');\n          }\n          if (pricegroup_data.G_rate > 0) {\n            _this.controllerFor('settings.masters.pricegroup').set('globule_check', true);\n            _this.controllerFor('settings.masters.pricegroup').set('globule', pricegroup_data.G_rate);\n          } else {\n            _this.controllerFor('settings.masters.pricegroup').set('globule_check', false);\n            _this.controllerFor('settings.masters.pricegroup').set('globule', '');\n          }\n          if (pricegroup_data.P_rate > 0) {\n            _this.controllerFor('settings.masters.pricegroup').set('powder_check', true);\n            _this.controllerFor('settings.masters.pricegroup').set('powder', pricegroup_data.P_rate);\n          } else {\n            _this.controllerFor('settings.masters.pricegroup').set('powder_check', false);\n            _this.controllerFor('settings.masters.pricegroup').set('powder', '');\n          }\n          if (pricegroup_data.L_rate > 0) {\n            _this.controllerFor('settings.masters.pricegroup').set('liquid_check', true);\n            _this.controllerFor('settings.masters.pricegroup').set('liquid', pricegroup_data.L_rate);\n          } else {\n            _this.controllerFor('settings.masters.pricegroup').set('liquid_check', false);\n            _this.controllerFor('settings.masters.pricegroup').set('liquid', '');\n          }\n          $(document).ready(function () {\n            if (pricegroup_data.status == 1) {\n              console.log(pricegroup_data.status);\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              console.log('Not checked');\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.pricegroup').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/pricegroup/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.pricegroup.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/pricegroup/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    renderTemplate: function () {\n      this.render('settings.masters.pricegroup.list', {\n        controller: 'settings.masters.pricegroup'\n      });\n    },\n    init() {\n      this._super(...arguments);\n    },\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.pricegroup').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.pricegroup').set('page', 'Price Group List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      this.controllerFor('settings.masters.pricegroup').send('getRecords', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.pricegroup').set('route_access', route_access);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/role/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.role').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.role').set('role_name', '');\n      _this.controllerFor('settings.masters.role').set('permission_check', '');\n      _this.controllerFor('settings.masters.role').set('role_description', '');\n      _this.controllerFor('settings.masters.role').get('selectedItems').clear();\n      _this.controllerFor('settings.masters.role').set('page', 'Add Role');\n      _this.controllerFor('settings.masters.role').set('status', '');\n      _this.controllerFor('settings.masters.role').set('id', '');\n      this.controllerFor('settings.masters.role').set('vali_errors', '');\n      this.controllerFor('settings.masters.role').set('errors', '');\n\n      // ajax call for permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'categorywisepermissions',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.role').set('permissions', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.role').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.role.add', {\n        controller: 'settings.masters.role'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/role/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.role').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.role').set('page', 'Edit Role');\n      this.controllerFor('settings.masters.role').set('vali_errors', '');\n      this.controllerFor('settings.masters.role').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      this.controllerFor('settings.masters.role').set('role_id', params.id);\n\n      // ajax call for permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'categorywisepermissions',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.role').set('permissions', res);\n          //_this.controllerFor('settings.masters.role').set('selectedItems', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for fetch record for role table\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'role/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var role_data = res;\n          _this.controllerFor('settings.masters.role').set('role_name', role_data.name);\n          _this.controllerFor('settings.masters.role').set('role_description', role_data.description);\n          _this.controllerFor('settings.masters.role').set('id', role_data.id);\n          _this.controllerFor('settings.masters.role').set('role_status', role_data.status);\n          var s = _this.set('status', role_data.status);\n          $(document).ready(function () {\n            if (s == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n\n      // ajax call for role permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'rolepermission/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.role').set('selectedItems', res);\n          res.forEach(function (item, index) {\n            //console.log(item.id);\n            // _this.controllerFor('settings.masters.role').set('selectedItems', item.id);\n            setTimeout(function () {\n              $('#' + item).prop('checked', true);\n            }, 5000);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.role').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.role.add', {\n        controller: 'settings.masters.role'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/role/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.role.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/role/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.role').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.controllerFor('settings.masters.role').set('page', 'Role List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.role').send('getRoles', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.role').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.role.list', {\n        controller: 'settings.masters.role'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/show\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/settings/masters/system/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.system').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.system').set('page', 'Add System');\n      this.controllerFor('settings.masters.system').set('name', '');\n      this.controllerFor('settings.masters.system').set('status', '');\n      this.controllerFor('settings.masters.system').set('id', '');\n      this.controllerFor('settings.masters.system').set('vali_errors', '');\n      this.controllerFor('settings.masters.system').set('errors', '');\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.system').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.system.add', {\n        controller: 'settings.masters.system'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/system/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.system').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.system').set('page', 'Edit System');\n      /*This below line code is used for reset error message */\n      this.controllerFor('settings.masters.system').set('vali_errors', '');\n      this.controllerFor('settings.masters.system').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      this.controllerFor('settings.masters.system').set('id', params.id);\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'system/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var system_data = res;\n          _this.controllerFor('settings.masters.system').set('name', system_data.name);\n          _this.controllerFor('settings.masters.system').set('status', system_data.status);\n\n          // _this.controllerFor('settings.masters.form').set('id',form_data.id);doctor_related\n          $(document).ready(function () {\n            if (system_data.status == 1) {\n              $('input:radio:first').prop('checked', true).trigger('click');\n            } else {\n              $('input:radio:last').prop('checked', true).trigger('click');\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.system').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.system.add', {\n        controller: 'settings.masters.system'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/system/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      console.log(permission);\n      this.controllerFor('settings.masters.system').set('permission_arr', permission);\n      this.controllerFor('settings.masters.system').set('query_string', '');\n      this.controllerFor('settings.masters.system').set('vali_errors', '');\n      this.controllerFor('settings.masters.system').set('errors', '');\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      // this.getcontroller();\n      this.controllerFor('settings.masters.system').set('page', 'System List');\n      var current = this;\n      $(document).ready(function () {\n        //var _this = this;\n        $('.sortable-column').click(function (current) {\n          var name = $(this).data('column');\n          if ($(this).hasClass('sorting-asc')) {\n            $(this).removeClass('sorting-asc');\n            $(this).addClass('sorting-desc');\n            var sorttype = 'ASC';\n          } else if ($(this).hasClass('sorting-desc')) {\n            $(this).removeClass('sorting-desc');\n            $(this).addClass('sorting-asc');\n            var sorttype = 'DESC';\n          } else {\n            $(this).addClass('sorting-asc');\n            var sorttype = 'ASC';\n          }\n          $('input.name').val(name);\n          $('input.sorttype').val(sorttype);\n          $('.search_button').click();\n          // current.getSortedItems(name, sorttype);\n        });\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.system').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.system.list', {\n        controller: 'settings.masters.system'\n      });\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status, searchtext) {\n      console.log('aaaaaaaaaaaaa');\n      this.controllerFor('settings.masters.system').send('getRecords', page, status);\n    },\n    getSortedItems: function (name, sorttype) {\n      this.controllerFor('settings.masters.system').send('getRecords', page, status, name, sorttype);\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/token/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.token.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/token/list\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    flashes: Ember.inject.service('flash-messages'),\n    doctors: null,\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.token').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.token').set('page', 'Maximum Token');\n      var location = this.session.getLocation().split('-');\n      var branch_id = location[0];\n      var branch_name = location[1];\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {\n          branch_id: branch_id\n        },\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.token').set('doctors', res.data);\n        }\n      });\n    },\n    actions: {\n      updatelist() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/doctors',\n          data: {\n            branch_id: branch_id\n          },\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.controllerFor('settings.masters.token').set('doctors', res.data);\n          }\n        });\n      },\n      submit() {\n        let i18n = this.i18n;\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var data = '';\n        $('.doctor-list input.max-token').each(function (i, v) {\n          data += $(this).data('id') + ':' + $(this).val() + ',';\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/updateMaxToken',\n          data: {\n            tokens: data\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updatelist');\n            var message = i18n.t('token.messages.updateToken');\n            Ember.get(_this, 'flashes').success(message);\n          },\n          error: function (res) {\n            console.log(res);\n          }\n        });\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.token').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.token.list', {\n        controller: 'settings.masters.token'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/users/add\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.users').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var _this = this;\n      _this.controllerFor('settings.masters.users').set('user_name', '');\n      _this.controllerFor('settings.masters.users').set('id', '');\n      _this.controllerFor('settings.masters.users').set('username', '');\n      _this.controllerFor('settings.masters.users').set('email_id', '');\n      _this.controllerFor('settings.masters.users').set('password', '');\n      _this.controllerFor('settings.masters.users').set('confirm_password', '');\n      _this.controllerFor('settings.masters.users').set('employee_code', '');\n      _this.controllerFor('settings.masters.users').set('mobile_no', '');\n      _this.controllerFor('settings.masters.users').set('user_status', '');\n      _this.controllerFor('settings.masters.users').set('user_label', '');\n      _this.controllerFor('settings.masters.users').set('user_order', '');\n      _this.controllerFor('settings.masters.users').set('user_color', '');\n      _this.controllerFor('settings.masters.users').get('selectedItems').clear();\n      _this.controllerFor('settings.masters.users').get('roleselectedItems').clear();\n      _this.controllerFor('settings.masters.users').get('branchselectedItems').clear();\n      _this.controllerFor('settings.masters.users').set('page', 'Add User');\n      _this.controllerFor('settings.masters.users').set('vali_errors', '');\n      _this.controllerFor('settings.masters.users').set('errors', '');\n      $(document).ready(function () {\n        $('.doctor_show').hide();\n      });\n      var status = 1;\n      // ajax call for branch  list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('branches', res);\n          //_this.controllerFor('settings.masters.users').set('branches', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'categorywisepermissions',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('permissions', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for roles list\n\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //_this.controllerFor('settings.masters.users').set('roles', res.data);\n          _this.controllerFor('settings.masters.users').set('roles', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      /*This below function is used for getting all the doctors related charges, Rahul Khan */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('doc_charges', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      //This below Ajax request is used for getting the available Prescription print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getPRS',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('prescriptionformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the All available Receipt print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getRCP',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('receiptformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.users').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.users.add', {\n        controller: 'settings.masters.users'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/users/edit\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.users').set('permission_arr', permission);\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.users').set('page', 'Edit User');\n      this.controllerFor('settings.masters.users').set('vali_errors', '');\n      this.controllerFor('settings.masters.users').set('errors', '');\n    },\n    model(params) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      //set selected branch id\n      this.controllerFor('settings.masters.users').set('user_id', params.id);\n\n      // ajax call for branch  list\n      //In This below Ajax request We have added a activerecord and passed status parameter two get only active branches in profile page, Rahul Khan, 19 July 2019\n      // Also change the return res.data to res.\n      var status = 1;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('branches', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'categorywisepermissions',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('permissions', res);\n          //_this.controllerFor('settings.masters.role').set('selectedItems', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      /*This below function is used for getting all the doctors related charges, Rahul Khan */\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'billing/drcharges',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('doc_charges', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      // ajax call for fetch record for role table\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'user/' + params.id,\n        dataType: 'json',\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var user_data = res;\n          console.log(res);\n          _this.controllerFor('settings.masters.users').set('showInTimeslot', user_data.showInTimeslot);\n          _this.controllerFor('settings.masters.users').set('user_name', user_data.Name);\n          _this.controllerFor('settings.masters.users').set('username', user_data.username);\n          _this.controllerFor('settings.masters.users').set('email_id', user_data.email);\n          _this.controllerFor('settings.masters.users').set('mobile_no', user_data.mobile_no);\n          _this.controllerFor('settings.masters.users').set('user_status', user_data.status);\n          _this.controllerFor('settings.masters.users').set('id', user_data.user_id);\n          _this.controllerFor('settings.masters.users').set('user_type', user_data.user_type);\n          _this.controllerFor('settings.masters.users').set('user_order', user_data.ordering);\n          _this.controllerFor('settings.masters.users').set('user_label', user_data.label);\n          _this.controllerFor('settings.masters.users').set('consultancy_fees', user_data.consultancy_fees);\n          _this.controllerFor('settings.masters.users').set('user_color', user_data.color);\n          _this.controllerFor('settings.masters.users').set('employee_code', user_data.employee_code);\n          _this.controllerFor('settings.masters.users').set('doctorLevel', user_data.doctor_level);\n\n          //This code is used for getting the Print formats\n          _this.controllerFor('settings.masters.users').set('pres_print', user_data.presformat);\n          _this.controllerFor('settings.masters.users').set('rcp_print', user_data.rescpformat);\n          var s = _this.set('status', user_data.status);\n          $(document).ready(function () {\n            // alert(user_data.doctor_level);\n            $('#doctor_level').val(user_data.doctor_level).trigger('change');\n            if (user_data.user_type == 2) {\n              $('#user_type').prop('checked', true);\n              $('#user_type').val(2);\n              $('.doctor_show').show();\n            } else {\n              $('.doctor_show').hide();\n            }\n            if (s == 1) {\n              $('input[name=\"user_status\"]:radio:first').prop('checked', true).trigger('click');\n              //$('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n            } else {\n              $('input[name=\"user_status\"]:radio:last').prop('checked', true).trigger('click');\n              // $('input:radio[name=\"user_status\"][value='+s+']').prop(\"checked\", true).trigger(\"click\");\n            }\n          });\n        },\n        error: function (error, x, y) {}\n      });\n\n      // ajax call for role permission list\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'userpermission/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          res.forEach(function (item, index) {\n            $('input:radio[name=' + item.permission + '][value=' + item.value + ']').prop('checked', true);\n            //$(\"#\" + item).prop('checked',true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n      //This below code is used for getting the data of doctors' charges price , Rahul Khan\n      var location_id = this.session.getLocation().split('-')[0];\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'user/doctorcharges/' + params.id + '/' + location_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          //console.log(res);\n          res.forEach(function (item) {\n            $('#charge_' + item.charge_id).val(item.price);\n            //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n            //$(\"#\" + item).prop('checked',true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below code is used for getting the user prescription formate\n      // $.ajax({\n      //   method: 'GET',\n      //   url: ENV.APP.lumen_api_url + 'user/doctorcharges/' + params.id+'/'+location_id,\n      //   success: function (res) {\n      //     //console.log(res);\n      //     res.forEach(function (item) {\n      //       $('#charge_' + item.charge_id).val(item.price);\n      //       //$('input:radio[name='+item.permission+'][value='+item.value+']').prop('checked', true);\n      //       //$(\"#\" + item).prop('checked',true);\n      //     });\n      //   },\n      //   complete: function (res) {\n      //     console.log('Execution complete');\n      //   },\n      // });\n\n      // ajax call for roles list\n      //In This below Ajax request We have added a activerecord and passed status parameter two get only active roles in profile page, Rahul Khan, 19 July 2019\n      // Also change the return res.data to res.\n      var status = 1;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'role?activerecord=' + status,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('roles', res);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for user branch map list from cl_user_branch_map\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'userbranch/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('branchselectedItems', res);\n          res.forEach(function (item, index) {\n            $('#' + item).prop('checked', true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      // ajax call for user roles list  from cl_user_roles\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'userrole/' + params.id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('roleselectedItems', res);\n          res.forEach(function (item, index) {\n            $('#' + item).prop('checked', true);\n          });\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the available Prescription print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getPRS',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('prescriptionformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n\n      //This below Ajax request is used for getting the All available Receipt print format, Rahul Khan, 16 Sept 2019\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'prints/getRCP',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings.masters.users').set('receiptformats', res.data);\n        },\n        complete: function (res) {\n          console.log('Execution complete');\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.users').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.users.edit', {\n        controller: 'settings.masters.users'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/users/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      this.transitionTo('settings.masters.users.list');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/users/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings.masters.users').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.getItems();\n      this.controllerFor('settings.masters.users').set('page', 'Users List');\n    },\n    actions: {\n      showPagination: function (page, status) {\n        this.getItems(page, status);\n      }\n    },\n    getItems: function (page, status) {\n      this.controllerFor('settings.masters.users').send('getUsers', page, status);\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess(current_browser_name, role_route_permission);\n      this.controllerFor('settings.masters.users').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.masters.users.list', {\n        controller: 'settings.masters.users'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/masters/users/profile\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('settings.masters.users').set('page', 'Profile');\n      this.controllerFor('settings.masters.users').set('vali_errors', '');\n      this.controllerFor('settings.masters.users').set('errors', '');\n      this.getUserProfile();\n    },\n    model() {},\n    renderTemplate: function () {\n      this.render('settings.masters.users.profile', {\n        controller: 'settings.masters.users'\n      });\n    },\n    getUserProfile: function () {\n      this.controllerFor('settings.masters.users').send('getUserProfile');\n    }\n  });\n});","define(\"clinic-dev/routes/settings/maximum-token\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    doctors: null,\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var location = this.session.getLocation().split('-');\n      var branch_id = location[0];\n      var branch_name = location[1];\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'users/doctors',\n        data: {\n          branch_id: branch_id\n        },\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings').set('doctors', res.data);\n        }\n      });\n    },\n    actions: {\n      updatelist() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/doctors',\n          data: {\n            branch_id: branch_id\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          async: false,\n          success: function (res) {\n            _this.controllerFor('settings').set('doctors', res.data);\n          }\n        });\n      },\n      submit() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var data = '';\n        $('.doctor-list input.max-token').each(function (i, v) {\n          data += $(this).data('id') + ':' + $(this).val() + ',';\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/updateMaxToken',\n          data: {\n            tokens: data\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updatelist');\n            alert('Save successful.');\n          },\n          error: function (res) {\n            console.log(res);\n          }\n        });\n      }\n    },\n    renderTemplate: function () {\n      this.render('settings.maximum-token', {\n        controller: 'settings'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/settings/print-token\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    doctors: null,\n    all_tokens: null,\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('settings').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      var location = this.session.getLocation().split('-');\n      var branch_id = location[0];\n      var branch_name = location[1];\n      var shift_id = this.session.getLoggedInUserShift();\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.api_url + 'appointments/all-tokens?branch_id=' + branch_id + '&shift_id=' + shift_id,\n        async: false,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.controllerFor('settings').set('all_tokens', res);\n        }\n      });\n    },\n    actions: {\n      updatelist() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/doctors',\n          data: {\n            branch_id: branch_id\n          },\n          async: false,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.controllerFor('settings').set('doctors', res.data);\n          }\n        });\n      },\n      submit() {\n        var location = this.session.getLocation().split('-');\n        var branch_id = location[0];\n        var branch_name = location[1];\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var data = '';\n        $('.doctor-list input.max-token').each(function (i, v) {\n          data += $(this).data('id') + ':' + $(this).val() + ',';\n        });\n        $.ajax({\n          method: 'GET',\n          url: _environment.default.APP.api_url + 'users/updateMaxToken',\n          data: {\n            tokens: data\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            _this.send('updatelist');\n            alert('Save successful.');\n          },\n          error: function (res) {\n            console.log(res);\n          }\n        });\n      },\n      //This below function is used for\n      print(type, tokenNo, apptTime, shiftId, branchId, doctorLabel) {\n        var note = '';\n        var note_1 = '';\n        var note_2 = '';\n        var branchName = '';\n        var shiftName = '';\n        if (branchId == 1) {\n          branchName = 'CRP1';\n        } else if (branchId == 2) {\n          branchName = 'GGN';\n        } else if (branchId == 3) {\n          branchName = 'CRP2';\n        }\n        if (shiftId == 1) {\n          shiftName = 'M';\n        } else if (shiftId == 2) {\n          shiftName = 'E';\n        }\n        if (type == 'MQ') {\n          var queue_type = 'Medicine Queue';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = '';\n          var new_token = '';\n          var new_token = '';\n          new_token = 'M' + branchName + shiftName + tokenNo;\n        } else if (type == 'PA') {\n          var queue_type = 'Appointment';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = 'Appointment time: ' + apptTime;\n          var new_token = '';\n          new_token = branchName + doctorLabel + tokenNo;\n        } else {\n          var queue_type = 'Patient Queue';\n          note = 'If your token has been called, please DO NOT go to';\n          note_1 = 'the beginning of the queue. Please join the end of';\n          note_2 = 'the queue or go to the counter.';\n          var time = '';\n          var new_token = '';\n          new_token = branchName + doctorLabel + shiftName + tokenNo;\n        }\n        var d = \"<p style='text-align:center;'>--------------------------------<br/>\";\n        d += \"<span style='font-size:12px;'>Dr. Kalyan Banerjee's Clinic</span><br/>\";\n        d += \"<br/>                <span style='font-size:18px'><strong>Token No: \" + new_token + '</strong></span>';\n        d += '<br/>             ' + time;\n        // d +=\"<br/><br/><br/>                \"+queue_type;\n        // d += \"<br/>\";\n        d += \"<br/><span style='font-size:12px;'>\" + note + '</span>';\n        d += \"<br/><span style='font-size:12px;'>\" + note_1 + '</span>';\n        d += \"<br/><span style='font-size:12px;'>\" + note_2 + '</span>';\n        // d += \"<br/><span style='font-size:12px;'>\" + note_3 + \"</span>\";\n        d += \"<br/>             <span style='font-size:12px;'>\" + Date().substr(0, 24) + '</span>';\n        d += '<br/> --------------------------------';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> ';\n        d += '<br/> </p>';\n        var myWindow = window.open('', '', 'width=400,height=300');\n        myWindow.document.write(d);\n        myWindow.document.close(); //missing code\n\n        myWindow.focus();\n        myWindow.print();\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      console.log(current_browser_name);\n      var route_access = this.route_permission.canRouteAccess('settings/print-token', role_route_permission);\n      this.controllerFor('settings').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('settings.print-token', {\n        controller: 'settings'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/shift-report\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('reports').set('page', 'Shift Report');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('reports').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      /* This function is used for getting all the active branches*/\n      var status = 1;\n      var _this = this;\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'branch?activerecord=' + status,\n        data: {},\n        dataType: 'json',\n        success: function (res) {\n          _this.controllerFor('reports').set('branches', res);\n        }\n      });\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('shift-report', role_route_permission);\n      this.controllerFor('reports').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('shift-report', {\n        controller: 'reports'\n      });\n    },\n    actions: {\n      downloadShiftSummary() {\n        const transaction_from = $('#transaction_from').val();\n        const transaction_to = $('#transaction_to').val();\n        const branch_id = $('#location_id').val();\n        if (!transaction_from || !transaction_to || !branch_id) {\n          alert('All fields are necessary. Please enter From date, To Date and select branch & then try again');\n          return;\n        }\n        const utoken = this.session.getToken(); // Adjust based on your auth/session logic\n        const url = `${_environment.default.APP.lumen_api_url}reports/shiftsummary?from_export_date=${transaction_from}&to_export_date=${transaction_to}&branch_id=${branch_id}`;\n        $.ajax({\n          url: url,\n          method: 'GET',\n          headers: {\n            'Authorization': 'Bearer ' + utoken\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          success: function (data, status, xhr) {\n            const blob = new Blob([data], {\n              type: xhr.getResponseHeader('Content-Type')\n            });\n            const link = document.createElement('a');\n            link.href = window.URL.createObjectURL(blob);\n\n            // Extract filename from Content-Disposition header\n            let disposition = xhr.getResponseHeader('Content-Disposition');\n            let filename = 'ShiftSummary.xlsx';\n            if (disposition && disposition.indexOf('filename=') !== -1) {\n              filename = disposition.split('filename=')[1].trim().replace(/['\"]/g, '');\n            }\n            link.download = filename;\n            document.body.appendChild(link);\n            link.click();\n            document.body.removeChild(link);\n          },\n          error: function (xhr, status, error) {\n            console.error('AJAX Error', status, error, xhr);\n            alert(`Download failed: ${xhr.status} ${xhr.statusText}`);\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/transactional-report\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    route_permission: Ember.inject.service('has-permissions'),\n    beforeModel() {\n      this.controllerFor('reports').set('page', 'Transactional Report');\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      this.controllerFor('reports').set('permission_arr', permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    afterModel() {\n      var role_route_permission = this.session.getRoleRouteList();\n      var current_browser_name = this.routeName;\n      var route_access = this.route_permission.canRouteAccess('transactional-report', role_route_permission);\n      this.controllerFor('reports').set('route_access', route_access);\n    },\n    renderTemplate: function () {\n      this.render('transactional-report', {\n        controller: 'reports'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/users\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel(transition) {\n      var utoken = this.session.getToken();\n      var permission = this.session.getPermissionList();\n      //console.log(permission);\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n      this.controllerFor('users').set('user_type', this.session.getLoggedInUserType());\n      this.controllerFor('users').set('user_id', this.session.getLoggedInUserId());\n      this.controllerFor('users').set('username', this.session.getLoggedInUserDetails());\n      this.controllerFor('users').set('user_name', this.session.getLoggedInUserName());\n      this.controllerFor('users').set('user_label', this.session.getLoggedInUserLabel());\n      this.controllerFor('users').set('user_shift_id', this.session.getLoggedInUserShift());\n    },\n    model() {}\n  });\n});","define(\"clinic-dev/routes/users/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    }\n  });\n});","define(\"clinic-dev/routes/users/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({});\n});","define(\"clinic-dev/routes/users/new\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    model: function () {\n      // the model for this route is a new empty Ember.Object\n      return Em.Object.create({});\n    },\n    renderTemplate: function () {\n      this.render('users.edit', {\n        controller: 'user'\n      });\n    }\n  });\n});","define(\"clinic-dev/routes/users/profile\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Route.extend({\n    beforeModel() {\n      var utoken = this.session.getToken();\n      if (utoken == null) {\n        swal('You are not authorised!');\n        this.transitionTo('login');\n      }\n    },\n    renderTemplate: function () {\n      this.render('users.profile', {\n        controller: 'users'\n      });\n    }\n  });\n});","define(\"clinic-dev/serializers/-default\", [\"exports\", \"@ember-data/serializer/json\"], function (_exports, _json) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _json.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/serializers/-json-api\", [\"exports\", \"@ember-data/serializer/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json-api\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/serializers/-rest\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/serializers/application\", [\"exports\", \"ember-data\", \"ember-data-table/mixins/serializer\"], function (_exports, _emberData, _serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\",0,\"ember-data-table/mixins/serializer\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.JSONAPISerializer.extend(_serializer.default, {});\n});","define(\"clinic-dev/serializers/pricegroup\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _emberData.default.RESTSerializer.extend({\n    /*This below normaliser is defualt */\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      if (payload.error) {\n        payload = {\n          pricegroups: payload\n        };\n        return this._super(store, primaryModelClass, payload, id, requestType);\n      } else {\n        payload = {\n          pricegroups: payload\n        };\n      }\n      return this._super(store, primaryModelClass, payload, id, requestType);\n    },\n    /*This below normaliser is used for getting all records */\n    normalizeFindAllResponse(store, primaryModelClass, payload, requestType) {\n      /*This below code is used for get Pagination */\n      payload = payload.pricegroups;\n      //console.log(payload);\n      /*let meta = [{\n      \"current_page\": payload.current_page,\n      \"from\": payload.from,\n      \"last_page\": payload.last_page,\n      \"next_page_url\": payload.next_page_url,\n      \"path\": payload.path,\n      \"per_page\": payload.per_page,\n      \"prev_page_url\": payload.prev_page_url,\n      \"to\": payload.to,\n      \"total\": payload.total\n      }];\n      //payload.data.meta = meta;\n      //path = payload.path;\n      delete payload.current_page;\n      delete payload.from;\n      delete payload.last_page;\n      delete payload.next_page_url;\n      delete payload.path;\n      delete payload.per_page;\n      delete payload.prev_page_url;\n      delete payload.to;\n      delete payload.total;\n      payload={pricegroups: payload.data, meta: meta };\n      console.log(payload);\n      */\n      //this._extractLinks(payload);\n      //\tconsole.log(payload);\n      //let meta = {};\n      let meta = {\n        pagination: {\n          current_page: payload.current_page,\n          from: payload.from,\n          last_page: payload.last_page,\n          next_page_url: payload.next_page_url,\n          path: payload.path,\n          per_page: payload.per_page,\n          prev_page_url: payload.prev_page_url,\n          to: payload.to,\n          total: payload.total\n        }\n      };\n      //payload.data.meta = meta\n      //payload.data.test = '';\n      //payload.meta = meta;\n      //payload.data.pagination = meta;\n      //console.log(meta);\n      //console.log(meta);\n      /*This below code which add payload */\n      payload = {\n        pricegroups: payload.data\n      };\n      console.log(payload);\n      return this._super(store, primaryModelClass, payload, requestType);\n    },\n    /*This below normaliser is used for saveing records */\n    normalizeSaveResponse(store, primaryModelClass, payload, requestType) {\n      //payload = payload;\n      //console.log(payload);\n      return this._super(store, primaryModelClass, payload, requestType);\n    },\n    _extractLinks(payload) {\n      console.log(payload);\n      ['current_page', 'from', 'last_page', 'path', 'per_page', 'prev_page_url', 'to', 'total'].forEach(key => {\n        if (payload[key]) {\n          if (key != 'data' && key) {\n            console.log(key);\n            //\tpayload.meta[key] = payload[key]\n          }\n        } else {\n          payload.meta[key] = null;\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/services/-ensure-registered\", [\"exports\", \"@embroider/util/services/ensure-registered\"], function (_exports, _ensureRegistered) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ensureRegistered.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util/services/ensure-registered\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/ajax-auth\", [\"exports\", \"jquery\", \"clinic-dev/config/environment\"], function (_exports, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"jquery\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let AjaxAuthService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class AjaxAuthService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    /**\n     * Core authenticated request method\n     */\n    makeAuthenticatedRequest(url, options = {}) {\n      const token = this.session.getToken();\n      const defaultOptions = {\n        method: 'GET',\n        dataType: 'json',\n        headers: {\n          Accept: 'application/json'\n        }\n      };\n      if (token) {\n        defaultOptions.headers.Authorization = `Bearer ${token}`;\n      }\n      const finalOptions = {\n        ...defaultOptions,\n        ...options,\n        headers: {\n          ...defaultOptions.headers,\n          ...(options.headers || {})\n        }\n      };\n\n      // ✅ Auto prepend API base URL\n      const fullUrl = url.startsWith('http') ? url : _environment.default.APP.lumen_api_url + url;\n      return _jquery.default.ajax(fullUrl, finalOptions).catch(xhr => {\n        // Optional global auth handling\n        if (xhr.status === 401) {\n          this.session.invalidate?.();\n          this.router.transitionTo('login');\n        }\n        throw xhr;\n      });\n    }\n\n    /* ================= COMMON HELPERS ================= */\n\n    get(url, options = {}) {\n      return this.makeAuthenticatedRequest(url, {\n        method: 'GET',\n        ...options\n      });\n    }\n    postJSON(url, data, options = {}) {\n      return this.makeAuthenticatedRequest(url, {\n        method: 'POST',\n        data: JSON.stringify(data),\n        contentType: 'application/json',\n        ...options\n      });\n    }\n    putJSON(url, data, options = {}) {\n      return this.makeAuthenticatedRequest(url, {\n        method: 'PUT',\n        data: JSON.stringify(data),\n        contentType: 'application/json',\n        ...options\n      });\n    }\n    delete(url, options = {}) {\n      return this.makeAuthenticatedRequest(url, {\n        method: 'DELETE',\n        ...options\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/services/dkbc-print\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    print: Ember.inject.service('print-options'),\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    session: Ember.inject.service('session'),\n    dispatchShippingAddress(patientid, id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'dispatch/shippinglabel',\n        method: 'POST',\n        data: {\n          appointment_id: id,\n          patient_id: patientid\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n        },\n        success: function (res) {\n          if (res.error == false) {\n            var patientDetails = res.data[0];\n            _this.recalculateAmount.printShippingAddressHtml(patientDetails, patientDetails.shipping_address_one, patientDetails.shipping_address_two, patientDetails.shipping_city_name, patientDetails.shipping_state_name, patientDetails.shipping_country_name, patientDetails.shipping_pin_code, patientDetails.shipping_mobile_no);\n          }\n        },\n        complete: function () {\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n    },\n    // Changes for fixing the advised report print format when report name does not contain ' > ' symbol, Shubh Tiwari as on 22-04-2026 \n    getAdvisedPrintFormat: function (id, patient_id, doctor_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'icpattend/printadvisedreport',\n        method: 'POST',\n        data: {\n          appointment_id: id,\n          patient_id: patient_id,\n          doctor_id: doctor_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n        },\n        success: function (res) {\n          if (res.error == false) {\n            var count = 1;\n            var data = '';\n            data += \"<table style='font-size:20px; width: 100%;'>\";\n            data += \"<tr><td style='font-size:18px; text-align:left;font-weight: 900;'>Advised:</td></tr><br>\";\n            res.advised_report.original.data.forEach(function (item) {\n              const text = item.report_name;\n              let boldText = '';\n              let remainingText = '';\n\n              // FIXED LOGIC\n              if (text && text.includes(' > ')) {\n                const lastIndex = text.lastIndexOf(' > ');\n                boldText = text.substring(0, lastIndex);\n                remainingText = text.substring(lastIndex + 3);\n              } else {\n                boldText = text;\n                remainingText = '';\n              }\n              var date = moment(item.advised_date).format('DD/MM/YYYY');\n              data += \"<tr><td style='font-size:18px; text-align:left; width:500px;'>\" + count + '. ' + '<b>' + boldText + '</b>' + (remainingText ? ' > ' + remainingText : '') + '</td><td>' + date + '</td></tr>';\n              count++;\n            });\n            data += \"<tr><td style='font-size:18px; text-align:left;'><br><b>Advised By:-</b> \" + res.doctor + '</td></tr>';\n            data += '</table>';\n            var salutationss = res.patient.data[0].title_prefix;\n            var title = salutationss ? salutationss + '.' : '';\n            let p = res.patient.data[0];\n            let name = title;\n            if (p.first_name) name += ' ' + p.first_name.charAt(0).toUpperCase() + p.first_name.slice(1);\n            if (p.middle_name) name += ' ' + p.middle_name.charAt(0).toUpperCase() + p.middle_name.slice(1);\n            if (p.last_name) name += ' ' + p.last_name.charAt(0).toUpperCase() + p.last_name.slice(1);\n            var gender = p.gender;\n            var patient_birthday = p.date_of_birth;\n            var years = p.age_years;\n            var months = p.age_months;\n            var days = p.age_days;\n            var visit_date = moment().format('YYYY-MM-DD');\n            var patient_dob = _this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n            var d = '';\n            $.ajax({\n              url: _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n              method: 'GET',\n              headers: {\n                \"Authorization\": `Bearer ${utoken}`\n              },\n              success: function (res) {\n                d += res.content;\n                d += \"<div style='width:100%; text-align:center; clear: both;'>\";\n                d += \"<span style='font-size:26px;'><b>Advised Report</b></span>\";\n                d += '</div><br/>';\n                d += \"<div style='text-align:center;clear: both;'>\";\n                d += \"<span style='font-size:24px; text-transform: capitalize;'><b>\" + name + ' (' + gender + patient_dob + ')' + '</b></span>';\n                d += '</div>';\n                d += \"<div style='min-height:250px;'>\";\n                d += \"<div style='margin-left:100px;'>\";\n                d += data;\n                d += '</div><br/>';\n                d += \"<p style='text-align:center;font-size:18px;'><i>Digitally generated advice. Does not require a signature.</i></p>\";\n                d += \"<div style='text-align:center;'> --------------------------------</div>\";\n                d += '</div>';\n                var myWindow = window.open('', '', 'width=400,height=300');\n                myWindow.document.write(d);\n                myWindow.document.close();\n                myWindow.focus();\n                setTimeout(() => {\n                  myWindow.print();\n                }, 1000);\n              }\n            });\n          } else {\n            alert('Somthing wrong!');\n          }\n        },\n        complete: function () {\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n    },\n    medicalCertificateHtml: function (today, name, symptom_array, doctor_id, prescribe_doctor, loginUser, d, gender, patient_dob, patient_details, medicineDetails) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var url = '';\n      if (doctor_id === 0) {\n        var importvisitid = medicineDetails[0].data.importvisitid;\n        if (importvisitid === 0) {\n          var appointmentId = patient_details[0].id;\n        } else {\n          var appointmentId = medicineDetails[0].data.importvisitid;\n        }\n        //var appointmentId = patient_details[0].id;\n        var patientId = patient_details[0].patient_id;\n        // Construct alternate URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docrmprs/' + patientId + '/' + appointmentId;\n      } else {\n        // Default URL\n        url = _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id;\n      }\n      $.ajax({\n        url: url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        beforeSend: function () {\n          _this.recalculateAmount.popupLoaderOpen();\n        },\n        success: function (res) {\n          var first_value = symptom_array.firstObject;\n          var last_value = symptom_array.lastObject;\n          //console.log(symptom_array.length);\n          if (symptom_array.length == 1) {\n            var symptom_name = first_value;\n          } else if (symptom_array.length > 1) {\n            if (first_value != undefined && last_value != undefined) {\n              var symptom_name = first_value + ', ' + last_value;\n            } else if (first_value != undefined) {\n              var symptom_name = first_value;\n            } else if (last_value != undefined) {\n              var symptom_name = last_value;\n            } else {\n              var symptom_name = '';\n            }\n          } else if (symptom_array.length == 0) {\n            var symptom_name = \"<span style='display: inline-block; border-bottom: 1px solid black; width:440px'></span>\";\n          }\n          d += res.content;\n          d += \"<div style='margin-left:40px; width:80%;float:left; margin-bottom:20px; margin-top:20px'>\";\n          d += \"<span style='font-size:22px;'><b>Date: </b>\" + today + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b><u>Medical Certificate</u></b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b><u>To Whom It May Concern</u></b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='min-height:250px;margin-left:40px;margin-right: 12px; width:90%'>\";\n          d += \"<div style='text-align: justify;'>\";\n          d += \"<span style='font-size:24px;'>This is to certify that Ms./Mrs./Mr./Mst <b> <span style='text-transform: capitalize;'>\" + name + ' ' + '(' + gender + patient_dob + ')' + '</b> </span> is / was suffering from <b>' + symptom_name + \"</b> and therefore is / was unable to attend school/college/work for <span style='display: inline-block; border-bottom: 1px solid black; width: 100px'></span> days (from <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span> to <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span>) or until recovery.</span><br/>\";\n          d += \"<p style='font-size:24px;'>The patient is / was under our treatment and has been advised bed rest.</p><br/>\";\n          d += \"<span style='font-size:24px;'> She/He is fit / unfit for school/college/work.</span>\";\n          d += '</div><br/><br/><br/><br/>';\n          d += \"<div style='margin-left:12px;'>\";\n          d += \"<span style='font-size:24px;'>(\" + prescribe_doctor + ')</span>';\n          d += '</div></div><br/><br/>';\n          d += \"<div style='text-align:center;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: Not valid for medico-legal purposes.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'>Please return this paper while reporting.</span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div>';\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          _this.recalculateAmount.popupLoaderClose();\n        }\n      });\n    },\n    // medicalCertificateHtml: function (\n    //   today,\n    //   name,\n    //   symptom_array,\n    //   doctor_id,\n    //   prescribe_doctor,\n    //   loginUser,\n    //   d,\n    //   gender,\n    //   patient_dob\n    // ) {\n    //   var _this = this;\n    //   $.ajax({\n    //     url: ENV.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n    //     method: 'GET',\n    //     beforeSend: function () {\n    //       _this.recalculateAmount.popupLoaderOpen();\n    //     },\n    //     success: function (res) {\n    //       var first_value = symptom_array.firstObject;\n    //       var last_value = symptom_array.lastObject;\n    //       //console.log(symptom_array.length);\n    //       if (symptom_array.length == 1) {\n    //         var symptom_name = first_value;\n    //       } else if (symptom_array.length > 1) {\n    //         if (first_value != undefined && last_value != undefined) {\n    //           var symptom_name = first_value + ', ' + last_value;\n    //         } else if (first_value != undefined) {\n    //           var symptom_name = first_value;\n    //         } else if (last_value != undefined) {\n    //           var symptom_name = last_value;\n    //         } else {\n    //           var symptom_name = '';\n    //         }\n    //       } else if (symptom_array.length == 0) {\n    //         var symptom_name =\n    //           \"<span style='display: inline-block; border-bottom: 1px solid black; width:440px'></span>\";\n    //       }\n    //       var mywindow = window.open('', '', 'height=400,width=600');\n    //       var css = '';\n    //       var paper = '';\n    //       var bootstrapCSSLocation =ENV.crossOriginWhitelist + '/css/print/normalize.min.css';\n    //       $.ajax({\n    //         url: bootstrapCSSLocation,\n    //         type: 'POST',\n    //         async: false,\n    //       }).done(function (data) {\n    //         css += data;\n    //       });\n    //       var maincss = ENV.crossOriginWhitelist + '/css/print/paper.css';\n    //       $.ajax({\n    //         url: maincss,\n    //         type: 'POST',\n    //         async: false,\n    //       }).done(function (data) {\n    //         paper += data;\n    //       });\n    //       d += '<section class=\"sheet padding-10mm\">';\n    //       d += '<article>';\n    //       d += _this.b64_to_utf8(res.medical_certificate_content);\n    //       d += '<div style=\"clear:both;\">';\n    //       d +=\"<div style='float:left; margin-bottom:10px;margin-top: 10px;'>\"\n    //       d += '<span style=\"font-size:18px;\"><b>Date: </b>' + today + '</span>';\n    //       d += '</div><br/>';\n    //       d += '<div style=\"text-align:center; clear: both;\"><span style=\"font-size:20px;\"><b><u>Medical Certificate</u></b></span></div><br/>';\n    //       d += '<div style=\"text-align:center; clear: both;\"><span style=\"font-size:20px;\"><b><u>To Whom It May Concern</u></b></span></div><br/>';\n    //       d += '<div style=\"text-align: justify;\"><span style=\"font-size:18px;\">This is to certify that Ms./Mrs./Mr./Mst <b>'+name+' '+'('+ gender + patient_dob +')'+'</b> is / was suffering from <b><span>'+symptom_name+'</span></b> and therefore is / was unable to attend school/college/work for <span style=\"display: inline-block; border-bottom: 1px solid black; width: 100px\"></span> days (from <span style=\"display: inline-block; border-bottom: 1px solid black; width: 120px\"></span> to <span style=\"display: inline-block; border-bottom: 1px solid black; width: 120px\"></span>) or until recovery.</span><br/>';\n    //       d +='<span style=\"font-size:18px;\"> The patient is / was under our treatment and has been advised bed rest.</span><br/>';\n    //       d += '<span style=\"font-size:18px;\"> She/He is fit / unfit for school/college/work.</span></div><br/><br/><br/>';\n    //       if (prescribe_doctor != null) {\n    //         d += '<div style=\"font-size:18px;\">(' + prescribe_doctor + ')</div><br/>';\n    //       }\n    //       d += '<div style=\"text-align:center;width:75%;margin:auto;\">';\n    //       d += '<span style=\"font-size:16px\">Disclaimer: Not valid for medico-legal purposes.</span>';\n    //       d += '</div><br>';\n    //       d += '<div style=\"text-align:center;\">';\n    //       d += '<span style=\"font-size:14px;\">Please return this paper while reporting.</span> ';\n    //       d += '</div>';\n    //       d += '<div style=\"text-align:right;\">';\n    //       d += '<span style=\"font-size:12px;font-weight: 900;\"><i>' + loginUser + '</i></span>';\n    //       d += '</div>';\n    //       d += '</div>';\n    //       // d +=\"<div style='margin-left:12px; width:80%;float:left; margin-bottom:20px; margin-top:20px'>\";\n    //       // d += \"<span style='font-size:22px;'><b>Date: </b>\" + today + '</span>';\n    //       // d += '</div><br/><br/>';\n    //       // d += \"<div style='text-align:center; clear: both;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:26px;'><b><u>Medical Certificate</u></b></span>\";\n    //       // d += '</div><br/>';\n    //       // d += \"<div style='text-align:center; clear: both;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:26px;'><b><u>To Whom It May Concern</u></b></span>\";\n    //       // d += '</div><br/>';\n    //       // d +=\n    //       //   \"<div style='min-height:250px;margin-left: 12px;margin-right: 12px;'>\";\n    //       // d += \"<div style='text-align: justify;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:24px;'>This is to certify that Ms./Mrs./Mr./Mst <b>\" +\n    //       //   name +\n    //       //   ' ' +\n    //       //   '(' +\n    //       //   gender +\n    //       //   patient_dob +\n    //       //   ')' +\n    //       //   '</b> is / was suffering from <b>' +\n    //       //   symptom_name +\n    //       //   \"</b> and therefore is / was unable to attend school/college/work for <span style='display: inline-block; border-bottom: 1px solid black; width: 100px'></span> days (from <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span> to <span style='display: inline-block; border-bottom: 1px solid black; width: 120px'></span>) or until recovery.</span><br/>\";\n    //       // d +=\n    //       //   \"<p style='font-size:24px;'>The patient is / was under our treatment and has been advised bed rest.</p><br/>\";\n    //       // d +=\n    //       //   \"<span style='font-size:24px;'> She/He is fit / unfit for school/college/work.</span>\";\n    //       // d += '</div><br/><br/><br/><br/><br/>';\n    //       // d += \"<div style='margin-left:12px;'>\";\n    //       // d += \"<span style='font-size:24px;'>(\" + prescribe_doctor + ')</span>';\n    //       // d += '</div></div><br/><br/>';\n    //       // d += \"<div style='text-align:center;width:75%;margin:auto;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:20px;'> Disclaimer: Not valid for medico-legal purposes.</span>\";\n    //       // d += '</div><br/>';\n    //       // d += \"<div style='text-align:center;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:18px;'>Please return this paper while reporting.</span>\";\n    //       // d += '</div>';\n    //       // d += \"<div style='text-align:right;margin-right: 120px;'>\";\n    //       // d +=\n    //       //   \"<span style='font-size:14px;font-weight: 900;'> <i>\" +\n    //       //   loginUser +\n    //       //   '</i></span>';\n    //       // d += '</div>';\n    //       d += '</article>';\n    //       d += '</section>';\n    //       mywindow.document.write('<html><head><title>Medical Certificate</title>');\n    //       mywindow.document.write('<style  type=\"text/css\">' + css + ' </style>');\n    //       mywindow.document.write('<style  type=\"text/css\">' + paper + ' </style>');\n    //       mywindow.document.write('<style> @page {size: A5}</style>');\n    //       mywindow.document.write('</head><body class=\"A5\">');\n    //       //mywindow.document.write('<h1>' + document.title  + '</h1>');\n    //       mywindow.document.write(d);\n    //       mywindow.document.write('</body></html>');\n    //       mywindow.document.close();\n    //       mywindow.focus();\n    //       setTimeout(() => {\n    //         mywindow.print();\n    //       }, 1000);\n    //     },\n    //     complete: function () {\n    //       _this.recalculateAmount.popupLoaderClose();\n    //     },\n    //   });\n    // },\n    b64_to_utf8(str) {\n      return decodeURIComponent(escape(window.atob(str)));\n    }\n  });\n});","define(\"clinic-dev/services/file-queue\", [\"exports\", \"ember-file-upload/services/file-queue\"], function (_exports, _fileQueue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _fileQueue.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-file-upload/services/file-queue\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/flash-messages\", [\"exports\", \"ember-cli-flash/flash/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/debug\",0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"ember-cli-flash/flash/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    queue: Ember.A([]),\n    isEmpty: Ember.computed.equal('queue.length', 0),\n    defaultTimeout: 5000,\n    success(message, timeout = this.defaultTimeout) {\n      this._add(message, 'success', timeout);\n    },\n    info(message, timeout = this.defaultTimeout) {\n      this._add(message, 'info', timeout);\n    },\n    warning(message, timeout = this.defaultTimeout) {\n      this._add(message, 'warning', timeout);\n    },\n    danger(message, timeout = this.defaultTimeout) {\n      this._add(message, 'danger', timeout);\n    },\n    addMessage(message, type = 'info', timeout = this.defaultTimeout) {\n      this._add(message, type, timeout);\n    },\n    clearMessages() {\n      let flashes = this.queue;\n      Ember.run.next(this, () => {\n        flashes.clear();\n      });\n    },\n    // private\n    _add(message, type, timeout) {\n      let flashes = this.queue;\n      let flash = this._newFlashMessage(this, message, type, timeout);\n      Ember.run.next(this, () => {\n        flashes.pushObject(flash);\n      });\n    },\n    _newFlashMessage(service, message, type, timeout) {\n      (true && !(service) && Ember.assert('Must pass a valid flash service', service));\n      (true && !(message) && Ember.assert('Must pass a valid flash message', message));\n      type = typeof type === 'undefined' ? 'info' : type;\n      timeout = timeout || this.defaultTimeout;\n      return _object.default.create({\n        type: type,\n        message: message,\n        timeout: timeout,\n        flashService: service\n      });\n    }\n  });\n});","define(\"clinic-dev/services/form-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormValidatorService = _exports.default = (_dec = Ember._tracked, _class = class FormValidatorService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"errors\", _descriptor, this);\n    }\n    validate(fields) {\n      this.clearErrors(); // Always clear previous errors\n      let isValid = true;\n      let firstErrorElementId = null;\n      for (let field of fields) {\n        const {\n          key,\n          value,\n          message,\n          elementId,\n          type,\n          validate,\n          dayKeys,\n          shift\n        } = field;\n        const isCustomType = type === 'non-ocp' || type === 'ocp';\n        const customPrefix = type === 'ocp' ? 'ocpWeeklySchedule' : 'weeklySchedule';\n\n        // Handle custom type validation\n        if (isCustomType) {\n          const customIsValid = typeof validate === 'function' ? validate() : true;\n          if (!customIsValid) {\n            this._setError(key, message);\n            if (Array.isArray(dayKeys)) {\n              for (let dayKey of dayKeys) {\n                const errorKey = shift ? `${customPrefix}.${dayKey}.${shift}` : `${customPrefix}.${dayKey}`;\n                const snakeToTitle = this.snakeToTitle(shift);\n                const errorMessage = shift ? `Please fill schedule for ${dayKey} ${snakeToTitle}` : `Please fill schedule for ${dayKey}`;\n                this._setError(errorKey, errorMessage);\n              }\n            }\n            isValid = false;\n            if (!firstErrorElementId && elementId) {\n              firstErrorElementId = elementId;\n            }\n          }\n          continue; // skip to next field\n        }\n\n        // Required field validation\n        if (!value) {\n          this._setError(key, message);\n          isValid = false;\n          if (!firstErrorElementId && elementId) {\n            firstErrorElementId = elementId;\n          }\n          continue;\n        }\n\n        // Date validation\n        if (type === 'date') {\n          const dateRegex = /^([0-2][0-9]|(3)[0-1])-([0][1-9]|1[0-2])-[0-9]{4}$/;\n          if (!dateRegex.test(value)) {\n            this._setError(key, 'Invalid date format. Use dd-mm-yyyy');\n            isValid = false;\n            if (!firstErrorElementId && elementId) {\n              firstErrorElementId = elementId;\n            }\n          }\n        }\n      }\n      if (!isValid && firstErrorElementId) {\n        this._focus(firstErrorElementId);\n      }\n      return isValid;\n    }\n    _setError(key, message) {\n      this.errors = {\n        ...this.errors,\n        [key]: message\n      };\n    }\n    _focus(elementId) {\n      const el = document.getElementById(elementId);\n      if (el) {\n        el.scrollIntoView({\n          behavior: 'smooth',\n          block: 'center'\n        });\n        el.focus();\n      }\n    }\n    clearError(fieldKey) {\n      if (this.errors[fieldKey]) {\n        const {\n          [fieldKey]: _,\n          ...rest\n        } = this.errors;\n        this.errors = rest;\n      }\n    }\n    clearErrors() {\n      this.errors = {};\n    }\n    snakeToTitle(str) {\n      if (!str) return '';\n      return str.split('_') // Split by underscore\n      .map(word => word.charAt(0).toUpperCase() + word.slice(1)) // Capitalize each word\n      .join(' '); // Join with space\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class);\n});","define(\"clinic-dev/services/has-permissions\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    canRouteAccess(browser, route_aar) {\n      var value = browser;\n      var arr = (route_aar || '').split(',');\n      var allowed = {};\n      for (var i = 0; i < arr.length; i++) {\n        var name = arr[i];\n        if (name) {\n          allowed[name.trim()] = true;\n        }\n      }\n\n      // Direct match\n      if (allowed[value]) {\n        return true;\n      }\n\n      // Sub-route inheritance: if the parent route is allowed,\n      // any nested child route (e.g. \"schedule.max-slots.edit\" inheriting\n      // from \"schedule.max-slots\") is also allowed.\n      var parts = value.split('.');\n      while (parts.length > 1) {\n        parts.pop();\n        if (allowed[parts.join('.')]) {\n          return true;\n        }\n      }\n      return false;\n    }\n  });\n});","define(\"clinic-dev/services/i18n\", [\"exports\", \"ember-i18n/services/i18n\"], function (_exports, _i18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _i18n.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-i18n/services/i18n\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/idle-timer\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"@ember/service\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IdleTimerService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('flash-messages'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class IdleTimerService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"flashes\", _descriptor3, this);\n      _defineProperty(this, \"idleTimer\", null);\n      _defineProperty(this, \"warningTimer\", null);\n      _defineProperty(this, \"countdownInterval\", null);\n      _defineProperty(this, \"events\", ['mousemove', 'keydown', 'scroll', 'click']);\n      _initializerDefineProperty(this, \"showWarningModal\", _descriptor4, this);\n      _initializerDefineProperty(this, \"countdown\", _descriptor5, this);\n      // seconds remaining\n      _defineProperty(this, \"isTracking\", false);\n    }\n    // Configurable durations\n    get idleTimeout() {\n      const value = this.session.idleTimeout?.() || 0;\n      return value > 0 ? value * 1000 : 0;\n    }\n    get warningDuration() {\n      const value = this.session.warningDuration?.() || 0;\n      return value > 0 ? value * 1000 : 0;\n    }\n    get isWarningEnabled() {\n      // showWarning only enabled if both are greater than zero\n      return this.idleTimeout > 0 && this.warningDuration > 0;\n    }\n    startTracking() {\n      if (this.isTracking) return;\n      this.isTracking = true;\n\n      // Disable if idle/warning durations are zero\n      if (!this.isWarningEnabled) {\n        console.warn('Idle tracking disabled because idleTimeout or warningDuration is zero.');\n        return;\n      }\n      this.resetTimer();\n      this.events.forEach(event => window.addEventListener(event, this.resetTimer.bind(this)));\n      this.router.on('routeDidChange', this.resetTimer.bind(this));\n    }\n    stopTracking() {\n      this.isTracking = false;\n      this.events.forEach(event => window.removeEventListener(event, this.resetTimer.bind(this)));\n      Ember.run.cancel(this.idleTimer);\n      Ember.run.cancel(this.warningTimer);\n      this.hideWarning();\n    }\n    resetTimer() {\n      Ember.run.cancel(this.idleTimer);\n      Ember.run.cancel(this.warningTimer);\n      this.hideWarning();\n      if (!this.isWarningEnabled) return; // 🔒 Disable if 0 values\n\n      // Schedule next warning popup\n      this.idleTimer = Ember.run.later(this, this.showWarning, this.idleTimeout - this.warningDuration);\n    }\n    showWarning() {\n      // 🔒 Skip if disabled or not tracking\n      if (!this.isTracking || !this.isWarningEnabled) return;\n\n      // Optional: prevent on login route\n      if (this.router.currentRouteName === 'login') return;\n      this.countdown = Math.floor(this.warningDuration / 1000);\n      $('#dynamicSessionAlert').remove();\n      const alertHtml = `<div id=\"dynamicSessionAlert\" \n        style=\"position: fixed; top: 0; left: 0; right: 0; bottom: 0;\n                background: rgba(0,0,0,0.5); display: flex; align-items: center; \n                justify-content: center; z-index: 99999;\">\n      <div style=\"background: #fff; border-radius: 8px; padding: 20px 30px; \n                  text-align: center; max-width: 400px; width: 100%; \n                  box-shadow: 0 0 10px rgba(0,0,0,0.3);\">\n          <h3 style=\"margin-bottom: 10px;\">Session Expiring Soon</h3>\n          <p>You will be logged out in \n          <strong id=\"dynamicCountdown\">${this.countdown}</strong> seconds due to inactivity.\n          </p>\n          <button id=\"stayLoggedInBtn\" class=\"btn btn-primary\">Stay Logged In</button>\n      </div>\n    </div>`;\n      $('body').append(alertHtml);\n      this.countdownInterval = setInterval(() => {\n        this.countdown--;\n        $('#dynamicCountdown').text(this.countdown);\n        if (this.countdown <= 0) {\n          clearInterval(this.countdownInterval);\n          $('#dynamicSessionAlert').remove();\n          this.handleIdleTimeout();\n        }\n      }, 1000);\n      $('#stayLoggedInBtn').on('click', () => {\n        clearInterval(this.countdownInterval);\n        $('#dynamicSessionAlert').remove();\n        Ember.run.cancel(this.warningTimer);\n        this.resetTimer();\n      });\n      this.warningTimer = Ember.run.later(this, this.handleIdleTimeout, this.warningDuration);\n    }\n    hideWarning() {\n      this.showWarningModal = false;\n      clearInterval(this.countdownInterval);\n      $('#dynamicSessionAlert').remove();\n    }\n    handleIdleTimeout() {\n      this.stopTracking();\n      let utoken = this.session.getToken();\n      $.ajax({\n        method: 'POST',\n        url: `${_environment.default.APP.lumen_api_url}users/logoutvalidate`,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: res => {\n          Ember.get(this, 'flashes').success(res.message);\n        },\n        error: err => {\n          alert(\"Logout failed, please try again.\");\n          console.error(err);\n        }\n      });\n\n      // BroadcastChannel for cross-tab sync\n      if ('BroadcastChannel' in window) {\n        const logoutChannel = new BroadcastChannel('logout-channel');\n        logoutChannel.postMessage('idle-timeout');\n        logoutChannel.close();\n      }\n\n      // Fallback for older browsers\n      localStorage.setItem('idle-timeout-event', Date.now());\n      this.session.end();\n      alert('You have been logged out due to inactivity.');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"flashes\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showWarningModal\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"countdown\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 30;\n    }\n  }), _class);\n});","define(\"clinic-dev/services/intl\", [\"exports\", \"ember-intl/services/intl\"], function (_exports, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/services/intl\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/menu\", [\"exports\", \"clinic-dev/config/environment\", \"ember-i18n\"], function (_exports, _environment, _emberI18n) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"ember-i18n\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    flashes: Ember.inject.service('flash-messages'),\n    i18n: Ember.inject.service('i18n'),\n    items: null,\n    flashes: Ember.inject.service('flash-messages'),\n    init() {\n      this._super(...arguments);\n      this.set('items', []);\n    },\n    getMenuList(item) {\n      this.items.pushObject(item);\n    },\n    addAndEditMenu(item) {\n      this.items.removeObject(item);\n    },\n    // This function make for delete menu\n    deleteMenu(menu_id, name) {\n      let i18n = this.i18n;\n      let utoken = _this.session.getToken();\n      let message = i18n.t('menus.messages.areYouSureDelete', {\n        object: name\n      });\n      var _this = this;\n      swal({\n        title: message,\n        icon: 'warning',\n        buttons: true,\n        dangerMode: true\n      }).then(willDelete => {\n        if (willDelete) {\n          $.ajax({\n            method: 'POST',\n            url: _environment.default.APP.lumen_api_url + 'menu/delete',\n            data: {\n              menu_id: menu_id\n            },\n            headers: {\n              \"Authorization\": `Bearer ${utoken}`\n            },\n            beforeSend: function () {\n              $('#loading').addClass('in');\n              $('#loading').css('display', 'block');\n              $('body').addClass('modal-open');\n            },\n            success: function (res) {\n              if (res.error == false) {\n                var message = i18n.t('menus.messages.menuDeleteMessage');\n                _this.flashes.success(message);\n              } else if (res.error == true) {\n                var message = i18n.t('menus.messages.menuDeleteErrorMessage');\n                _this.flashes.danger(message);\n              }\n            },\n            error: function (res) {},\n            complete: function () {\n              setTimeout(function () {\n                $('#loading').removeClass('in');\n                $('#loading').css('display', 'none');\n                $('.modal-backdrop').remove();\n                $('body').removeClass('modal-open');\n                window.location.reload();\n              }, 500);\n            }\n          });\n        }\n      });\n    }\n  });\n});","define(\"clinic-dev/services/numberinwords\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    getNumber(num) {\n      var a = ['', 'one ', 'two ', 'three ', 'four ', 'five ', 'six ', 'seven ', 'eight ', 'nine ', 'ten ', 'eleven ', 'twelve ', 'thirteen ', 'fourteen ', 'fifteen ', 'sixteen ', 'seventeen ', 'eighteen ', 'nineteen '];\n      var b = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];\n      //  num = \"100.99\";\n      var amountReceived = num.split('.');\n      var num = amountReceived[0];\n      /* var  strPoint = '';\n          if(amountReceived.length > 1){\n             num =  amountReceived[1].toString();\n              for (var i = 0, len = num.length; i < len; i += 1) {\n                  var num = num.charAt(i);\n                  var n = ('000000000' + num).substr(-9).match(/^(\\d{2})(\\d{2})(\\d{2})(\\d{1})(\\d{2})$/);\n                  strPoint += (n[5] != 0) ? ((str != '') ? 'and ' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]])  : '';\n              }\n             // return output;\n          }*/\n\n      if ((num = num.toString()).length > 9) return 'overflow';\n      var n = ('000000000' + num).substr(-9).match(/^(\\d{2})(\\d{2})(\\d{2})(\\d{1})(\\d{2})$/);\n      if (!n) return;\n      var str = '';\n      str += n[1] != 0 ? (a[Number(n[1])] || b[n[1][0]] + ' ' + a[n[1][1]]) + 'crore ' : '';\n      str += n[2] != 0 ? (a[Number(n[2])] || b[n[2][0]] + ' ' + a[n[2][1]]) + 'lakh ' : '';\n      str += n[3] != 0 ? (a[Number(n[3])] || b[n[3][0]] + ' ' + a[n[3][1]]) + 'thousand ' : '';\n      str += n[4] != 0 ? (a[Number(n[4])] || b[n[4][0]] + ' ' + a[n[4][1]]) + 'hundred ' : '';\n      str += n[5] != 0 ? (str != '' ? '' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]]) + ' ' : '';\n\n      // str += (n[5] != 0) ? ((str != '') ? 'and ' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]]) +  'only ' : '';\n      return str;\n    }\n  });\n});","define(\"clinic-dev/services/page-title-list\", [\"exports\", \"ember-page-title/services/page-title-list\"], function (_exports, _pageTitleList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitleList.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/services/page-title-list\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/page-title\", [\"exports\", \"ember-page-title/services/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/services/page-title\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/permissions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({});\n});","define(\"clinic-dev/services/print-options\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PrintOptionsService = _exports.default = (_dec = Ember.inject.service, _class = class PrintOptionsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    label(medicineDetails, patientDetails, vial_data) {\n      //console.log(vial_data);\n      //console.log(medicineDetails);\n      var patientDetails = patientDetails[0];\n      var caseId = 'D- ' + patientDetails.OldRegistrationNo;\n      var name = patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name;\n      var visit_date = patientDetails.dateTime;\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var d = '';\n      // medicineDetails.forEach(function(item, index) {\n      var medicineNum = medicineDetails.length;\n      for (var i = 0; i < medicineNum; i++) {\n        if (vial_data == undefined) {\n          var repeat_vial = medicineDetails[i].data.vial;\n        } else {\n          var repeat_vial = vial_data[i].medicine_vial;\n        }\n        if (i % 2 == 0) {\n          var divClass = 'width:calc(50% - 15px); float:left; font-family:Sans-serif;';\n        } else {\n          var divClass = 'width:calc(50% - 15px);float:right; font-family:Sans-serif;';\n        }\n        if (medicineDetails[i].data.dilution_name != '') {\n          var dilution = \"<span style='font-size:16px; text-transform:capitalize;'>(\" + medicineDetails[i].data.dilution_name + ')</span>';\n        } else {\n          var dilution = '';\n        }\n        var instruction_name = medicineDetails[i].data.instruction_name;\n        if (instruction_name != '') {\n          var Dosages = medicineDetails[i].data.instruction_name;\n        } else {\n          var Dosages = medicineDetails[i].data.instruction_other_value;\n        }\n        for (var j = 1; j <= repeat_vial; j++) {\n          d += \"<div style='width:100%;'>\";\n          d += \"<div style='text-align:center;border-bottom:0.5px ridge black;'>\";\n          d += \"<span style='font-size:14px;'>DR. KALYAN BANERJEE'S CLINIC</span>\";\n          d += '</div>';\n          d += \"<span style='font-size:20px; text-transform:capitalize;'><b>\" + name + \"</b> </span> <span style='font-size:20px;float:right;'><b>\" + caseId + ' </b></span><br/>';\n          d += \"<div style='clear:both !important;'></div>\";\n          d += \"<div style='min-height:60px;'>\";\n          d += \"<span style='font-size:18px;text-transform: capitalize;'><b><span style='font-size:22px;'>\" + medicineDetails[i].data.medicine_serial_no + '</span>. ' + medicineDetails[i].data.medicine_name + ' ' + medicineDetails[i].data.potency_name + ' ' + dilution + '</b></span><br/>';\n          d += \"<span style='font-size:16px;text-transform: capitalize;'>Instructions - \" + Dosages + '</span>';\n          d += '</div>';\n          d += \"<div style='border-bottom:0.5px ridge black;'>\";\n          d += '<span>Date: ' + today + '  www.drkbanerjee.com</span>';\n          d += '</div>';\n          d += '</div>';\n        }\n      }\n      // });\n\n      var myWindow = window.open('', '', 'width=400,height=300');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    }\n    envelope_label(medicineDetails, patientDetails, totalAmount, remainingBalance, remainingBalanceStatus, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, refundStatus, PrescriptionTotal, total_due_amount, recieved_paid_amount, visit_pending_amount, pg_amount, printUser) {\n      var salutationss = patientDetails[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      //console.log(refundStatus);\n      //console.log(PrescriptionTotal);\n      if (refundStatus == undefined) {\n        var refund_value = $('.refund_flag').val();\n        //console.log(refund_value);\n        if (refund_value == 2) {\n          var refund_name = 'Total';\n          //var total = PrescriptionTotal;\n          var total_amt = parseFloat(PrescriptionTotal) + parseFloat(pg_amount);\n          var total = parseFloat(total_amt).toFixed('2');\n          var status = remainingBalanceStatus;\n        } else if (total_due_amount == 0 && recieved_paid_amount == '0.00') {\n          var refund_name = 'Total';\n          var total_amt = parseFloat(PrescriptionTotal) + parseFloat(pg_amount);\n          var total = parseFloat(total_amt).toFixed('2');\n          var status = remainingBalanceStatus;\n        } else {\n          var refund_name = 'Received';\n          var total = totalAmount;\n          var status = remainingBalanceStatus;\n        }\n      } else {\n        var refund_name = 'Received';\n        var total = totalAmount;\n        var status = remainingBalanceStatus;\n      }\n      // if(refundStatus==1){\n      //    var refund_name = 'Total';\n      //    //var total = PrescriptionTotal;\n      //    //var total_amt = parseFloat(visit_pending_amount)+parseFloat(PrescriptionTotal);\n      //    var total_amt = parseFloat(PrescriptionTotal);\n\n      //    var total= parseFloat(total_amt).toFixed('2');\n      //    console.log(recieved_paid_amount);\n      //    console.log(total_due_amount);\n      //    if(recieved_paid_amount == total_due_amount){\n      //          var status = 'NO DUE';\n      //    }else if(recieved_paid_amount < total_due_amount){\n      //          var status = 'ADVANCE';\n      //    }else if(recieved_paid_amount > total_due_amount){\n      //          var status = 'DUE';\n      //    }\n\n      // }else{\n      //     var refund_name ='Received';\n      //     var total = totalAmount;\n      //     var status = remainingBalanceStatus;\n      // }\n      // console.log(status);\n      //var refund_name ='Received';\n      //var total = totalAmount;\n      //var status = remainingBalanceStatus;\n      var prescribing_doc_code = patientDetails[0].prescribing_doc_code;\n      //console.log(prescribing_doc_code);\n      if (prescribing_doc_code != null) {\n        var doctor_code = patientDetails[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patientDetails[0].employee_code;\n      }\n      var prescribe_doctor = patientDetails[0].label;\n      var appointment_type = patientDetails[0].appointment_type;\n      var branchName = patientDetails[0].branch_name;\n      var shift = patientDetails[0].shift_id;\n      var patient_birthday = patientDetails[0].birthday;\n      var years = patientDetails[0].age;\n      var months = patientDetails[0].months;\n      var days = patientDetails[0].days;\n      var visit_date = patientDetails[0].dateTime;\n      //var patient_dob = this.getPatientDob(patient_birthday, visit_date, years, 0, 0);\n      //console.log(visit_date);\n      //console.log(years);\n      //console.log(patient_birthday);\n      var patient_dob = this.getPatientAge(patient_birthday, visit_date, years);\n      let loginUser = printUser;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      // if (calling == 'getprint') {\n      //   var total_due = $(\".total_due\").val();\n      //   if (total_due == undefined) {\n      //     var total_due = $(\"#total_due\").val();\n      //     var total_due = total_due - totalAmount;\n      //   }\n      // }\n      // var payment_after_next_payment =  $('.mode-price').map(function(){return $(this).val(); }).get();\n      // var repayment = $('#repayment').val();\n      // if(payment_after_next_payment.length > 0 && repayment=='yes'){\n      //     var sum_value = this.sum(payment_after_next_payment);\n      //     var amount = parseFloat(totalAmount)+parseFloat(sum_value);\n      //     var remaining_amount =parseFloat(remainingBalance)-parseFloat(sum_value);\n      // }else{\n      //     var amount = totalAmount;\n      //     var remaining_amount =remainingBalance;\n      // }\n      // console.log(repayment);\n      // console.log(payment_after_next_payment);\n      // console.log(amount);\n      // console.log(remaining_amount);\n      var patientDetails = patientDetails[0];\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var total_medicine = medicineDetails.length;\n      var page = parseInt(total_medicine / 3);\n      var mode = total_medicine % 3;\n      if (total_medicine > 5) {\n        if (mode > 1) {\n          var page = page + 1;\n        }\n      } else {\n        if (mode > 0) {\n          var page = page + 1;\n        }\n      }\n      var d = '';\n      d += \"<div style='width:100%;padding:0px 15px;'>\";\n      d += \"<div style='float:left;width:calc(100% - 100px;)'>\";\n      d += \"<div style='font-size:28px;'>\";\n      d += '<span><b>D-' + patientDetails.OldRegistrationNo + '</b></span>';\n      d += \"<span style='font-size:12px; margin-left: 12px;font-weight: 600;'>\" + printcode + '</span>';\n      d += \"<div style='float:right;margin-right:20px;'>\";\n      d += \"<span  style='font-size:24px;'>\" + today + '</span>';\n      d += '</div>';\n      d += '</div>';\n      d += \"<div style='width:500px;'>\";\n      d += \"<div style='float:left;width:500px;'>\";\n      d += \"<span style='font-size:28px;text-transform: uppercase;'>\" + title + ' ' + patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name + ' ' + '(' + patientDetails.gender + patient_dob + ')' + '</span>';\n      d += '</div>';\n      d += '</div>';\n      if (medicineDetails.length > 0) {\n        d += \"<table id='envelop' style='width:100%; border:1px;'>\";\n        var i;\n        d += \"<tr><th width='5%'></th><th width='70%'></th><th width='25%' style='border-left: 1px solid;font-size:20px;'><b>Not for patient use</b></th></tr>\";\n        for (i = 0; i < total_medicine; i++) {\n          var j = i + 1;\n          var jmode = j % 4;\n          if (medicineDetails[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicineDetails[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          d += '<tr>';\n          d += \"<td style='width:5%;'>\";\n          d += \"<span style='font-size:20px;'>\" + medicineDetails[i].data.medicine_serial_no + '</span>';\n          d += '</td>';\n          d += \"<td style='width:70%;'>\";\n          d += \"<span style='font-size:20px;text-transform: capitalize;font-weight: 900;'>\" + medicineDetails[i].data.medicine_name + ' ' + medicineDetails[i].data.potency_name + ' ' + dilution + ' ' + medicineDetails[i].data.form_name + '</span>';\n          //d += \" x <span style='font-size:20px;text-transform: uppercase;'>\" + medicineDetails[i].data.factor + \"</span>\";\n          d += '</span>';\n          if (medicineDetails[i].data.instruction_name) {\n            d += \"<br/><span style='font-size:20px;text-transform: capitalize;'>\" + medicineDetails[i].data.instruction_name + '</span>';\n          } else if (medicineDetails[i].data.instruction_other_value) {\n            d += \"<br/><span style='font-size:20px;text-transform: capitalize;'>\" + medicineDetails[i].data.instruction_other_value + '</span>';\n          }\n          d += \"<td style='width:25%;border-left: 1px solid;text-align:center;'>\";\n          d += \"<span style='font-size:20px;'>\" + medicineDetails[i].data.factor + '</span>';\n          d += '</td>';\n          d += '</td>';\n          d += '</tr>';\n          if (j > 3 && jmode == 0) {\n            d += '<tr>';\n            d += \"<td style='text-align:right;padding:20px 0px 10px 0px;' colspan='3'>\";\n            d += \"<div style='float:left;width:100px;'>\";\n            d += \"<span style='font-size:20px;'><b>D-\" + patientDetails.OldRegistrationNo + '</b></span>';\n            d += '</div>';\n            d += \"<div style='float:right;margin-right:20px;'>\";\n            d += \"<span style='font-size:20px;'>\" + today + '</span>';\n            d += '</div>';\n            d += '</td>';\n            d += '</tr>';\n            d += \"<tr><th width='5%'></th><th width='70%'></th><th width='25%' style='border-left: 1px solid;font-size: 20px;'><b>Not for patient use</b></th></tr>\";\n          }\n        }\n        d += '</table>';\n      }\n      d += \"<div style='width:80%;float:right'>\";\n      d += \"<div style='float:left;width:80px;'>\";\n      d += \"<span style='font-size:22px'>Payment</span>\";\n      d += '</div>';\n      d += \"<div style='float:right; font-size:20px;margin-right: 20px;'>\";\n      d += '<div>';\n      d += \"<div style='float:left;width:120px;'>\" + refund_name + '</div>';\n      d += \"<div style='float:right;'>\" + total + ' (<i>Rs.</i>)</div>';\n      d += '</div>';\n      d += '<div>';\n      d += \"<div style='float:left;width:200px;'>Balance (\" + status + ')</div>';\n      d += \"<div style='float:right;'>\" + remainingBalance + '  (<i>Rs.</i>)</div>';\n      d += '</div>';\n      d += '</div>';\n      d += '</div>';\n      d += \"<div style='width:80%;float:right'>\";\n      d += \"<div style='margin-top: 2px;float: right;font-weight: 900;font-size: 14px;margin-right:43px;'><i>\" + loginUser + '</i></div>';\n      d += '</div>';\n      d += '</div>';\n      var myWindow = window.open('', '', 'width=600,height=400');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    }\n    //This below function is used for printing the Address label which used for consignment shipping,\n    address_label(patientDetails) {\n      var patientDetails = patientDetails[0];\n      var _this = this;\n      let utoken = _this.session.getToken();\n      var patient_id = patientDetails.patient_id;\n      var base_url = _environment.default.APP.lumen_api_url + 'billing/patientdetails?patient_id=' + patient_id;\n      $.ajax({\n        url: base_url,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var ParseData = JSON.parse(res);\n          _this.set('patient_address', ParseData.data);\n          var address = ParseData.data[0];\n          var salutationss = address.title_prefix;\n          if (salutationss != '') {\n            var title = salutationss + '.';\n          } else {\n            var title = '';\n          }\n          var patient_birthday = patientDetails.birthday;\n          var years = patientDetails.age;\n          var months = patientDetails.months;\n          var days = patientDetails.days;\n          var visit_date = patientDetails.dateTime;\n          var patient_dob = _this.getPatientDob(patient_birthday, visit_date, years, months, days);\n          var d = '';\n          d += \"<div style='width:calc(100% - 10px;);margin-left:10px;margin-top:-28px;'><br/>\";\n          d += \"<div style='text-align:center;'>\";\n          //d +=\"<span style='font-size:22px;'>Dr. Kalyan Banerjee's Clinic</span><br/>\";\n          d += \"<span  style='font-size:30px;'><b> D-\" + address.OldRegistrationNo + '</b></span>';\n          d += '</div>';\n          d += \"<div style='text-align:left;'>\";\n          d += \"<div style='float:left;width:50px;'>\";\n          d += \"<span style='font-size:30px;'>To,</span>\";\n          d += '</div>';\n          //d +=\"<div style='float:right;'>\";\n          //d +=\"<span  style='font-size:30px;'><b> D-\"+address.OldRegistrationNo+\"</b></span>\";\n          // d +=\"</div> <br/><br/>\";\n          d += '<br/><br/>';\n          d += '<div>';\n          d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + title + ' ' + address.first_name + ' ' + address.middle_name + ' ' + address.last_name + ' ' + '(' + address.gender + patient_dob + ')' + '</span><br/>';\n          d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + address.full_address_per + '</span> <br/>';\n          d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + address.full_address_res + '</span>';\n          d += \"<span style='font-size:30px;text-transform: capitalize;'>\";\n          if (address.city_name != null && address.state_name != null && address.country_name != null && address.pincode_per != null) {\n            //console.log(1);\n            d += ' ' + address.city_name + ' ' + address.state_name + ' ' + address.country_name + ' - ' + address.pincode_per;\n          } else if (address.city_name != null && address.state_name != null && address.country_name != null && address.pincode_per == null) {\n            //console.log(2);\n            d += ' ' + address.city_name + ' ' + address.state_name + ' ' + address.country_name;\n          } else if (address.city_name != null && address.state_name != null && address.country_name == null && address.pincode_per == null) {\n            //console.log(3);\n            d += ' ' + address.city_name + ' ' + address.state_name;\n          } else if (address.city_name != null && address.state_name == null && address.country_name == null && address.pincode_per == null) {\n            //console.log(4);\n            d += ' ' + address.city_name;\n          } else if (address.city_name != null && address.state_name != null && address.country_name == null && address.pincode_per == null) {\n            //console.log(5);\n            d += ' ';\n          }\n          d + '</span>';\n          d += \"<br/><span style='font-size:30px;'>Ph: \" + address.phone_res + ' ' + address.mobile_res + '</span>';\n          d += '</div>';\n          d += '</div>';\n          d += '</div>';\n          var myWindow = window.open('', '', 'width=300,height=250');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function (res) {\n          //console.log(\"Execution complete\");\n        }\n      });\n    }\n    /* for Domestic with Charge*/\n    domestic_prescription(medicine_details, patient_details, totalAmount, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, PrescriptionTotal, visit_pending_amount, remainingBalance, remainingBalanceStatus, refundStatus, total_due_amount, recieved_paid_amount, pg_amount, printUser) {\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      // console.log(PrescriptionTotal);\n      // console.log(refundStatus);\n      // console.log(total_due_amount);\n      // console.log(recieved_paid_amount);\n\n      if (refundStatus == undefined) {\n        var refund_value = $('.refund_flag').val();\n        //console.log(refund_value);\n        if (refund_value == 2) {\n          // var refund_name = 'Total';\n          //var total = PrescriptionTotal;\n          var total_amt = parseFloat(PrescriptionTotal) + parseFloat(pg_amount);\n          var total = parseFloat(total_amt).toFixed('2');\n          var status = 'held as ' + remainingBalanceStatus + ' payment';\n        } else if (total_due_amount == 0 && recieved_paid_amount == '0.00') {\n          var total_amt = parseFloat(PrescriptionTotal) + parseFloat(pg_amount);\n          var total = parseFloat(total_amt).toFixed('2');\n          var status = remainingBalanceStatus;\n        } else {\n          //var refund_name ='Received';\n          var total = totalAmount;\n          var status = remainingBalanceStatus;\n        }\n      } else {\n        //var refund_name ='Received';\n        var total = totalAmount;\n        var status = remainingBalanceStatus;\n      }\n      if (status == 'ADVANCE') {\n        var advance_text = 'held as ' + remainingBalanceStatus + ' payment';\n      } else {\n        var advance_text = remainingBalanceStatus;\n      }\n      //var total = parseFloat(PrescriptionTotal);\n      //var total_amt =parseFloat(total).toFixed('2');\n      //console.log(total_amt);\n      var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n      var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n      var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n      var gender = patient_details[0].gender;\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      var visit_date = patient_details[0].dateTime;\n      var patient_dob = this.getPatientDob(patient_birthday, visit_date, years, months, days);\n      let loginUser = printUser;\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      if (f_name != undefined && m_name != undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (f_name != undefined && m_name == undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + l_name;\n      }\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        /* for(var i=0;i<medicine_details.length;i++){\n                         var index = parseInt(i)+1\n                         var instruction_name= medicine_details[i].data.instruction_name;\n                         var midicine_type= medicine_details[i].data.midicine_type;\n                           if(instruction_name!=''){\n                               var Dosages = medicine_details[i].data.instruction_name;\n                         }else{\n                               var Dosages = medicine_details[i].data.instruction_other_value;\n                         }\n                         if(midicine_type=='single'){\n                             var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                         }else{\n                             var formanddilution ='';\n                         }\n                         medicine_row +=\"<tr>\";\n                         medicine_row +=\"<td width='20px;'>\"+index+\"</td>\";\n                         medicine_row +=\"<td width='30%'>\"+medicine_details[i].data.medicine_name+\"</td>\";\n                         medicine_row +=\"<td width='100px'>\"+medicine_details[i].data.potency_name+\"</td>\";\n                         medicine_row +=\"<td width='25%'>\"+formanddilution+\"</td>\";\n                         medicine_row +=\"<td>\"+Dosages+\"</td>\";\n                         medicine_row +=\"</tr>\";\n                     }*/\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width='20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          var formanddilution = medicine_details[i].data.form_name + ' x' + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          /* if(midicine_type=='single'){\n                             var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                         }else{\n                             var formanddilution ='';\n                         }*/\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%' style='text-transform:capitalize;'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align: center;'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      //var today = moment().format('D MMM, YYYY');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += \"<div style='margin-left:80px; width:40%;float:left;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:24px;'>\" + Caseid + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b>Prescription And Receipt</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;clear: both;'>\";\n          d += \"<span style='font-size:24px;'><b>\" + name + ' ' + '(' + gender + patient_dob + ')' + '</b></span>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:20px;'>Rx.</span><br/>\";\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:24px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table> <br/>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only. </span>\";\n          d += '</div>';\n          d += \"<div style='margin-left:100px;text-align:left;width:85%;>\";\n          //The total medicinal service charges of Rs....... have been received for this consignment of medicines\n          d += \"<span style='font-size:20px;'><b>The total medicinal service charges of Rs. \" + total + ' only have been received for this consignment of medicines. Rs. ' + remainingBalance + ' only is ' + advance_text + '.</b></span>';\n          //d +=\"<span style='font-size:20px;'><b> The gross value of the contents of this consignment is Rs.\"+medicine_total+\" only.</b></span>\";\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span>\";\n          d += '</div><br/>';\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    }\n    receipt(patientDetails, recevedAmount, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, refundStatus, PrescriptionTotal, visit_pending_amount, printfrom, pg_amount, printUser) {\n      //console.log(recevedAmount);\n      var _this = this;\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      //console.log(refundStatus);\n      if (refundStatus == undefined) {\n        var refund_value = $('.refund_flag').val();\n        //console.log(refund_value);\n        if (refund_value == 2) {\n          var total = parseFloat(PrescriptionTotal) + parseFloat(pg_amount);\n          var total_amt = parseFloat(total).toFixed('2');\n        } else {\n          var total = parseFloat(recevedAmount);\n          var total_amt = parseFloat(total).toFixed('2');\n        }\n      } else {\n        var total = parseFloat(recevedAmount);\n        var total_amt = parseFloat(total).toFixed('2');\n      }\n      //var total = parseFloat(visit_pending_amount)+parseFloat(PrescriptionTotal);\n      //var total = parseFloat(recevedAmount);\n      //var total_amt =parseFloat(total).toFixed('2');\n\n      var patientDetails = patientDetails[0];\n      //Here set the reciept amount for nagative recieved, Rahul khan, 06 Nov 2019\n      var totals = parseInt(total_amt);\n      if (totals < 0) {\n        swal('Empty!', \"The total received amount is negative. So receipt print couldn't processed.\", 'warning');\n        return false;\n      }\n      //console.log(recevedAmount);\n      /*var total_due = parseInt($(\".total_due\").val());\n              var total = parseInt($(\".total\").val());\n              var pending = parseInt($(\".pending\").val());*/\n      /*  console.log(total_due);\n                var recevedAmounts = $(\"#visit_due\").val();\n                console.log(recevedAmounts);\n                var recevedAmounst = $(\".received_amount\").val();\n                console.log(recevedAmounst);*/\n      /* if(total_due < 0){\n                   if((total < 0) && (printfrom == undefined)){\n                       var recevedAmount = parseInt($(\"#visit_due\").val());\n                   }\n                   if((total < 0) && (printfrom != undefined)){\n                       var recevedAmount = parseInt($(\"#total_without_pending\").val()) ;\n                   }\n                     if((printfrom == undefined) && (!(total < 0))){\n                       var recevedAmount = parseInt($(\"#visit_due\").val()) + parseInt(pending) ;\n                       //var recevedAmount = parseInt($(\"#visit_due\").val());\n                   }\n                   if( (recevedAmount ==\"\") || (recevedAmount == undefined)){\n                       var recevedAmount = $(\".received_amount\").val();\n                   }\n                       console.log(recevedAmount);\n               }*/\n      /*else if(total_due < 0){\n                  var recevedAmount = $(\"#total_due\").val();\n                  if(total_due == undefined){\n                      var recevedAmount = $(\".received_amount\").val();\n                     // var total_due = total_due - totalAmount;\n                  }\n              }*/\n      var res = '';\n      if (total_amt.indexOf('.') !== -1) {\n        var res = total_amt.split('.');\n      }\n      if (res.length > 1 && res[1] > 0) {\n        var recievedAmountWord = this.getNumber(res[0]);\n        var recievedAmountWordPaisa = this.getNumber(res[1]);\n        var pasieText = 'and ' + recievedAmountWordPaisa + ' paisa';\n        /*var lenghts =  res[1].split(\"\");\n                  lenghts.forEach(function(item, index) {\n                      console.log(item);\n                   pasieText += _this.NumberInWords.getNumber(item);\n                  });\n                //  console.log(lenghts);\n               var pasieText = \" point \"+pasieText;*/\n      } else {\n        var recievedAmountWord = this.getNumber(total_amt);\n        var pasieText = '';\n      }\n      if (total_amt != 0) {\n        var amountInWord = recievedAmountWord;\n      } else {\n        var amountInWord = 'Zero';\n      }\n      var prescribing_doc_code = patientDetails.prescribing_doc_code;\n      var appointment_type = patientDetails.appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patientDetails.prescribing_doc_code;\n      } else {\n        var doctor_code = patientDetails.employee_code;\n      }\n      var prescribe_doctor = patientDetails.label;\n      var branchName = patientDetails.branch_name;\n      var shift = patientDetails.shift_id;\n      var printcode = _this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      let loginUser = printUser;\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'prints/docrcp/' + doctor_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          var receiptNo = $('#billing_id').val();\n          var visit_date = patientDetails.dateTime;\n          var today = moment(visit_date).format('D MMM, YYYY');\n          var d = '';\n          d += res.content;\n          /*  d +=\"<p style='text-align:center;'>\";\n                        d += \"<span style='font-size:24px;'>DR. KALYAN BANERJEE'S CLINIC</span><br/>\";\n                        d += \"<span style='font-size:24px;'>New Delhi</span><br/>\";\n                        d += \"<span style='font-size:18px;'><b>DR. KUSHAL BANERJEE</b></span><br/>\"\n                        d += \"<span style='font-size:12px;'>I 1691 Chittaranjan Park, New Delhi 110019</span><br/>\";\n                        d += \"<span style='font-size:12px;'>Phone: 26274726, 26276699 </span>\";\n                        d += \"</p><br/><br/>\";*/\n          d += \"<p style='margin:auto;max-width:700px;'>\";\n          d += \"<span style='font-size:12px;width:50%;text-align:left;'>Receipt No: <b>\" + receiptNo + '</b> </span>';\n          d += \"<span style='font-size:12px;width:50%; float:right;text-align:right;'>Date: \" + today + ' </span><br/><br/>';\n          d += \"<span style='font-size:12px;width:50%;text-align:left;'>\" + printcode + '</span><br/><br/>';\n          d += \"<span style='font-size:12px;'>Received with thanks the sum of Rupees <b> \" + amountInWord + ' ' + pasieText + \" only</b> from Sri/Smt <b style='text-transform: capitalize;'>\" + patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name + '</b> towards medical services rendered.(for consultation and/or medicinal service charges).</span><br/><br/>';\n          d += \"<span style='font-size:12px;width:35%;text-align:left;'>Rs: <b>\" + total_amt + '/-</b> </span>';\n          // d +=\" <span style='font-size:12px;width:65%; float:right;text-align:right;'>on behalf of <br/><b> DR. KUSHAL BANERJEE</b> <br> Regd. No. 3697</span><br/>\";\n          //d += res.footer_content;\n          d += '<br/>';\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          //d += \"<br/> \";\n          d += \"<p style='text-align:center;'><i style='font-size:10px'>Electronically generated and printed receipt. Signature is not required</i></p>\";\n          //d +=\"<p style='text-align:center;'><i>Electronically generated and printed prescription. No need of a signature.</i></p>\";\n          d += \"<p style='margin:auto;max-width:700px;'>\";\n          d += \" <span style='font-size:14px; font-weight:900; float: right;'><i>\" + loginUser + '</i></span>';\n          d += '</p>';\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n          // myWindow.print();\n        }\n      });\n    }\n    /* for international with Charge*/\n    prescription_receipt(medicine_details, patient_details, medicine_total, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, printUser) {\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n      var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n      var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n      var gender = patient_details[0].gender;\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      var visit_date = patient_details[0].dateTime;\n      var patient_dob = this.getPatientDob(patient_birthday, visit_date, years, months, days);\n      let loginUser = printUser;\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      if (f_name != undefined && m_name != undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (f_name != undefined && m_name == undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + l_name;\n      }\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        /* for(var i=0;i<medicine_details.length;i++){\n                     var index = parseInt(i)+1\n                     var instruction_name= medicine_details[i].data.instruction_name;\n                     var midicine_type= medicine_details[i].data.midicine_type;\n                       if(instruction_name!=''){\n                           var Dosages = medicine_details[i].data.instruction_name;\n                     }else{\n                           var Dosages = medicine_details[i].data.instruction_other_value;\n                     }\n                     if(midicine_type=='single'){\n                         var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                     }else{\n                         var formanddilution ='';\n                     }\n                     medicine_row +=\"<tr>\";\n                     medicine_row +=\"<td width='20px;'>\"+index+\"</td>\";\n                     medicine_row +=\"<td width='30%'>\"+medicine_details[i].data.medicine_name+\"</td>\";\n                     medicine_row +=\"<td width='100px'>\"+medicine_details[i].data.potency_name+\"</td>\";\n                     medicine_row +=\"<td width='25%'>\"+formanddilution+\"</td>\";\n                     medicine_row +=\"<td>\"+Dosages+\"</td>\";\n                     medicine_row +=\"</tr>\";\n                 }*/\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width='20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          var formanddilution = medicine_details[i].data.form_name + ' x' + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          /* if(midicine_type=='single'){\n                         var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                     }else{\n                         var formanddilution ='';\n                     }*/\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%' style='text-transform:capitalize;'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align: center;'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      //var today = moment().format('D MMM, YYYY');\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += \"<div style='margin-left:80px; width:40%;float:left;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:24px;'>\" + Caseid + '</span>';\n          d += '</div><br/><br/>';\n          d += \"<div style='text-align:center; clear: both;'>\";\n          d += \"<span style='font-size:26px;'><b>Prescription And Invoice</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;clear: both;'>\";\n          d += \"<span style='font-size:24px;'><b>\" + name + ' ' + '(' + gender + patient_dob + ')' + '</b></span>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:20px;'>Rx.</span><br/>\";\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:24px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr>';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table> <br/>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only. </span>\";\n          d += '</div>';\n          d += \"<div style='margin-left:100px;text-align:left;width:83%;'>\";\n          //The total medicinal service charges of Rs....... have been received for this consignment of medicines\n          // d +=\"<span style='font-size:20px;'>The total medicinal service chrages are Rs. <b>\"+medicine_total+\"</b> only, For this consignment of medicines have received. </span>\";\n          //d +=\"<span style='font-size:20px;'>The total medicinal service charges of Rs. <b>\"+medicine_total+\"</b> have been received for this consignment of medicines. </span>\";\n          d += \"<span style='font-size:20px;'><b>The gross value of the contents of this consignment is Rs.\" + medicine_total + ' only. Additional amounts for other services may have been received.</b></span>';\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span>\";\n          d += '</div><br/>';\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px;font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    }\n    // get Advised Report\n    getAdvisedPrint(id, patient_id, doctor_id) {\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'icpattend/printadvisedreport',\n        method: 'POST',\n        data: {\n          appointment_id: id,\n          patient_id: patient_id,\n          doctor_id: doctor_id\n        },\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          if (res.error == false) {\n            var count = 1;\n            var data = '';\n            data += \"<table style='font-size:20px; width: 100%;'>\";\n            data += \"<tr><th style='font-size:20px; text-align: center;'>Advised Reports<br>--------------------------------</th></tr>\";\n            data += \"<tr><th style='text-align:left;'>\" + res.patient[0].toUpperCase() + res.patient.slice(1).toLowerCase() + '</th></tr>';\n            data += \"<tr><td style='font-size:18px; text-align:left;'>Advised:</td></tr>\";\n            res.advised_report.original.data.forEach(function (item) {\n              var date = moment(item.advised_date).format('DD/MM/YYYY');\n              data += \"<tr><td style='font-size:18px; text-align:left; width:280px;'>\" + count + '. ' + item.report_name[0].toUpperCase() + item.report_name.slice(1).toLowerCase() + '</td><td>' + date + '</td></tr>';\n              count++;\n            });\n            data += \"<tr><td style='font-size:18px; text-align:left;'><br>\" + res.doctor + '</td></tr>';\n            data += \"<tr><td style='font-size:18px; text-align:center;'><br>Digitally generated advice. Does not require a signature.</td></tr>\";\n            data += '</table>';\n            var myWindow = window.open('', '', 'width=400,height=300');\n            myWindow.document.write(data);\n            myWindow.document.close();\n            myWindow.focus();\n            setTimeout(() => {\n              myWindow.print();\n            }, 1000);\n          } else {\n            alert('Somthing wrong!');\n          }\n        }\n      });\n    }\n    /* for Domestic */\n    prescription(medicine_details, patient_details, visit_charges, medDiscounts, consultancy_waived, medicine_print_code, consultancy_print_code, printUser) {\n      var salutationss = patient_details[0].salutation;\n      if (salutationss != '') {\n        var title = salutationss + '.';\n      } else {\n        var title = '';\n      }\n      var f_name = patient_details[0].first_name.charAt(0).toUpperCase() + patient_details[0].first_name.slice(1);\n      var m_name = patient_details[0].middle_name.charAt(0).toUpperCase() + patient_details[0].middle_name.slice(1);\n      var l_name = patient_details[0].last_name.charAt(0).toUpperCase() + patient_details[0].last_name.slice(1);\n      var gender = patient_details[0].gender;\n      var patient_birthday = patient_details[0].birthday;\n      var years = patient_details[0].age;\n      var months = patient_details[0].months;\n      var days = patient_details[0].days;\n      var visit_date = patient_details[0].dateTime;\n      var patient_dob = this.getPatientDob(patient_birthday, visit_date, years, months, days);\n      var Caseid = 'D-' + patient_details[0].OldRegistrationNo;\n      let loginUser = printUser;\n      var prescribing_doc_code = patient_details[0].prescribing_doc_code;\n      var appointment_type = patient_details[0].appointment_type;\n      if (prescribing_doc_code != null) {\n        var doctor_code = patient_details[0].prescribing_doc_code;\n      } else {\n        var doctor_code = patient_details[0].employee_code;\n      }\n      var prescribe_doctor = patient_details[0].label;\n      var branchName = patient_details[0].branch_name;\n      var shift = patient_details[0].shift_id;\n      var printcode = this.getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type);\n      if (f_name != undefined && m_name != undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + m_name + ' ' + l_name;\n      } else if (f_name != undefined && m_name == undefined && l_name != undefined) {\n        var name = title + ' ' + f_name + ' ' + l_name;\n      }\n      var today = moment(visit_date).format('D MMM, YYYY');\n      var medicine_row = '';\n      if (medicine_details.length > 0) {\n        medicine_row += \"<tr style='font-size:22px;'><th width='5%;'></th><th width='30%'></th><th width='20%'></th><th width='10%'></th><th width=20%'>For Pharmacy Use</th></tr>\";\n        for (var i = 0; i < medicine_details.length; i++) {\n          var index = parseInt(i) + 1;\n          var instruction_name = medicine_details[i].data.instruction_name;\n          var midicine_type = medicine_details[i].data.midicine_type;\n          if (instruction_name != '') {\n            var Dosages = medicine_details[i].data.instruction_name;\n          } else {\n            var Dosages = medicine_details[i].data.instruction_other_value;\n          }\n          if (medicine_details[i].data.dilution_name != '') {\n            var dilution = \"(<span style='text-transform:capitalize'>\" + medicine_details[i].data.dilution_name + '</span>)';\n          } else {\n            var dilution = ' ';\n          }\n          //var formanddilution = medicine_details[i].data.form_name+\" x\" + medicine_details[i].data.factor;\n          var formanddilution = medicine_details[i].data.form_name;\n          var factor = medicine_details[i].data.factor;\n          /* if(midicine_type=='single'){\n                       var formanddilution = medicine_details[i].data.form_name+\" \"+\"(\"+medicine_details[i].data.dilution_name+\")\";\n                   }else{\n                       var formanddilution ='';\n                   }*/\n          medicine_row += \"<tr style='font-size:22px;'>\";\n          medicine_row += \"<td width='5%;'>\" + medicine_details[i].data.medicine_serial_no + '</td>';\n          medicine_row += \"<td width='30%' style='text-transform:capitalize;'>\" + medicine_details[i].data.medicine_name + '</td>';\n          medicine_row += \"<td width='20%'>\" + medicine_details[i].data.potency_name + ' ' + dilution + '</td>';\n          medicine_row += \"<td width='10%'>\" + formanddilution + '</td>';\n          medicine_row += \"<td width='10%' style='text-align:center'>\" + factor + '</td>';\n          //                  medicine_row +=\"<td>\"+Dosages+\"</td>\";\n          medicine_row += '</tr>';\n          medicine_row += \"<tr style='font-size:20px;'>\";\n          medicine_row += \"<td></td><td colspan='3' style='text-transform: capitalize;'><i>\" + Dosages + '</i></td>';\n          medicine_row += '</tr>';\n        }\n      }\n      var d = '';\n      /******This ajax request is used for making the *******/\n      /*********This condition is used for checking the doctor priscribing doctor print format********/\n      var doctor_id = this.PrescribingDoctor;\n      if (doctor_id == null) {\n        doctor_id = 0;\n      }\n      let utoken = this.session.getToken();\n      $.ajax({\n        url: _environment.default.APP.lumen_api_url + 'prints/docprs/' + doctor_id,\n        method: 'GET',\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          d += res.content;\n          d += '<div>';\n          d += \"<div style='text-align:left;width:40%;float:left;margin-left:80px;'>\";\n          d += \"<span style='font-size:22px;'>\" + today + '</span<br/>';\n          d += '</div>';\n          d += \"<div style='text-align:right;width:39%;float:left;margin-right:35px'>\";\n          d += \"<span style='font-size:26px;'>\" + Caseid + '</span<br/>';\n          d += '</div><br/><br/>';\n          d += \"<p style='text-align:center;clear:both;'>\";\n          d += \"<span style='font-size:26px;'><b>\" + name + ' ' + '(' + gender + patient_dob + ')' + '</b></span>';\n          d += '</p>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size: 18px;font-weight: 900;'>\" + printcode + '</span><br/>';\n          d += \"<span style='font-size:18px;'>Rx.</span><br/> \";\n          d += '</div>';\n          d += '</div>';\n          d += \"<div style='min-height:500px;'>\";\n          d += \"<div style='margin-left:100px'>\";\n          d += \"<table style='font-size:20px; width: 88%;'>\";\n          d += medicine_row;\n          d += '</table>';\n          d += '</div><br/>';\n          d += \"<div style='margin-left:100px;'>\";\n          d += \"<span style='font-size:22px !important;'><b>Dosage Instructions: </b></span>\";\n          d += \"<table style='font-size:20px;width:88%;border-spacing: 0px;' border='1'>\";\n          d += \"<tr style='font-size:20px;'>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += \"<th width='10%' style='text-align:left; background: darkgrey;'>Form</th>\";\n          d += \"<th width='32%' style='text-align:left;'>Dosages</th>\";\n          d += '</tr>';\n          d += '<tr >';\n          d += \"<td style='background: darkgrey;'>Globules</td>\";\n          d += '<td>Three pills</td>';\n          d += \"<td style='background: darkgrey;'>Ounce</td>\";\n          d += '<td>1 cap</td>';\n          d += '</tr>';\n          d += '<tr >';\n          d += \"<td style='background: darkgrey;'>Liquid</th>\";\n          d += '<td>4 Drops in two teaspoons of water</th>';\n          d += \"<td style='background: darkgrey;'>Powder</th>\";\n          d += '<td>1/4th of the cap</td>';\n          d += '</tr>';\n          d += '</table><br>';\n          d += \"<span style='font-size:20px;'><b>To be taken 20 minutes before eating or drinking anything</b></span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left; width:83%;'>\";\n          d += \"<span style='font-size:20px;'>Please note that all the instructions in this table are NOT relevant for all patients. Please only follow the instructions relevant to your prescription based on the forms (globules, powder, dropper or ounce vials) of medicines issued to you.</span>\";\n          d += '</div><br/>';\n          d += \"<div style='margin-left:97px;text-align:left;'>\";\n          d += \"<span style='font-size:20px;'>Vials contain life saving, harmless homoeopathic medicines, for personal use only </span>\";\n          d += '</div>';\n          d += '</div><br/>';\n          d += \"<div style='text-align:left;width:75%;margin:auto;'>\";\n          d += \"<span style='font-size:20px;'> Disclaimer: DR. KALYAN BANERJEE. his doctors and his staff are not responsible for the contents of the vials once they leave the clinic.</span></div><br/>\";\n          d += \"<p style='text-align:center;font-size:18px;'><i>Electronically generated and printed prescription. Signature is not required</i></p>\";\n          d += \"<div style='text-align:center;'>\";\n          d += \"<span style='font-size:18px;'> <i>Please bring this sheet of paper on every visit.</i></span>\";\n          d += '</div><br/>';\n          d += \"<div style='text-align:right;margin-right: 120px;'>\";\n          d += \"<span style='font-size:14px; font-weight: 900;'> <i>\" + loginUser + '</i></span>';\n          d += '</div>';\n          d += \"<div style='text-align:center;'> --------------------------------</div>\";\n          var myWindow = window.open('', '', 'width=400,height=300');\n          myWindow.document.write(d);\n          myWindow.document.close();\n          myWindow.focus();\n          setTimeout(() => {\n            myWindow.print();\n          }, 1000);\n        },\n        complete: function () {\n          //console.log(\"Ajax request completed\");\n        }\n      });\n    }\n    getPatientDob(patient_dob, visit_date, years, months, days) {\n      if (patient_dob != '0000-00-00' && patient_dob !== null) {\n        //console.log('a');\n        var patient_dob_format = '';\n        // var current_date = moment().format(\"YYYY-MM-DD\");\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && months != 0 && months !== null && days != 0 && days !== null) {\n        //console.log('b');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && months != 0 && months !== null && (days == 0 || days == null)) {\n        //console.log('c');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if (years != 0 && years !== null && (months == 0 || months == null) && (days == 0 || days == null)) {\n        //console.log('d');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((years == 0 || years == null) && months != 0 && months !== null && days != 0 && days !== null) {\n        //console.log('e');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((years == 0 || years == null) && (months == 0 || months == null) && days != 0 && days !== null) {\n        //console.log('f');\n        var patient_dob_format = '';\n        var cntOfYears = years;\n        var cntOfMonths = months;\n        var cntOfDays = days;\n        var patient_dob = moment().subtract(cntOfYears, 'years').subtract(cntOfMonths, 'months').subtract(cntOfDays, 'days').format('YYYY-MM-DD');\n        var today = new Date(visit_date);\n        var past = new Date(patient_dob);\n        var patient_age = this.dateDiff(today, past);\n        var age = patient_age.years;\n        var monthss = patient_age.months;\n        var dayss = patient_age.days;\n        if (age != 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age != 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + monthss + '' + 'M';\n        } else if (age != 0 && monthss == 0 && dayss == 0) {\n          var patient_dob_format = '-' + age + '' + 'Y';\n        } else if (age == 0 && monthss != 0 && dayss != 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + dayss + '' + 'D';\n        } else if (age != 0 && monthss == 0 && dayss != 0) {\n          var patient_dob_format = '-' + age + '' + 'Y' + ' ' + dayss + '' + 'D';\n        } else if (age == 0 && monthss != 0 && dayss == 0) {\n          var patient_dob_format = '-' + monthss + '' + 'M';\n        }\n        return patient_dob_format;\n      } else if ((patient_dob == '0000-00-00' || patient_dob == null) && (years == 0 || years == null) && (months == 0 || months == null) && (days == 0 || days == null)) {\n        //console.log('g');\n        return patient_dob_format = '';\n      }\n    }\n    getPrintCode(doctor_code, prescribe_doctor, visit_charges, medDiscounts, consultancy_waived, branchName, shift, medicine_print_code, consultancy_print_code, appointment_type) {\n      if (shift == 1) {\n        var loginshift = 'M';\n      } else {\n        var loginshift = 'E';\n      }\n      if (prescribe_doctor != null) {\n        var d = doctor_code;\n        var visit_type = appointment_type.toUpperCase();\n      } else {\n        var visit_type = 'RM';\n        var d = 'NA';\n      }\n      if (visit_charges.firstObject != undefined) {\n        var charge = '/' + visit_charges.join('/');\n      } else {\n        var charge = '';\n      }\n      //console.log(consultancy_waived);\n      if (medDiscounts > 0 && consultancy_waived == 'Not Set' && visit_charges.firstObject != undefined) {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + '/' + medicine_dis_code + charge;\n        //console.log(1);\n      } else if (medDiscounts > 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') && visit_charges.firstObject != undefined) {\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + '/' + medicine_dis_code + charge;\n        //console.log(13);\n      } else if (medDiscounts > 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category')) {\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + '/' + medicine_dis_code + charge;\n        //console.log(3);\n      } else if (medDiscounts > 0 && consultancy_waived == 'Not Set') {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + '/' + medicine_dis_code + charge;\n        //console.log(4);\n      } else if (medDiscounts > 0 && consultancy_waived == '') {\n        var medicine_dis_code = '<strike>' + medicine_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + medicine_dis_code + charge;\n        //console.log(5);\n      } else if (medDiscounts == 0 && consultancy_waived == 'Discount Category' && visit_charges.firstObject != undefined) {\n        if (visit_charges.firstObject != undefined) {\n          var charge_code = '-' + visit_charges.join('/');\n        } else {\n          var charge_code = '';\n        }\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + charge_code;\n        //console.log(12);\n      } else if (medDiscounts == 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category') && visit_charges.firstObject != undefined) {\n        //console.log(consultancy_waived);\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + cons_waived_code + charge;\n        //console.log(6);\n      } else if (medDiscounts == 0 && (consultancy_waived == 'Waived' || consultancy_waived == 'Discount Category')) {\n        //console.log(consultancy_waived);\n        var cons_waived_code = '<strike>' + consultancy_print_code + '</strike>';\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + '' + cons_waived_code + charge;\n        //console.log(10);\n      } else if (medDiscounts == 0 && consultancy_waived == 'Not Set') {\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + charge;\n        //console.log(7);\n      } else if (medDiscounts == 0 && consultancy_waived == '') {\n        if (visit_charges.firstObject != undefined) {\n          var charge_code = '-' + visit_charges.join('/');\n        } else {\n          var charge_code = '';\n        }\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + charge_code;\n        //console.log(8);\n      } else {\n        var print_code = branchName + '/' + d + '/' + loginshift + '/' + visit_type + '-' + ' ' + consultancy_print_code + charge;\n        //console.log(9);\n      }\n      return print_code;\n    }\n    getPatientAge(patient_birthday, visit_date, years) {\n      if (patient_birthday != '0000-00-00') {\n        var dob = new Date(patient_birthday);\n        var today = new Date(visit_date);\n        var dob_age = Math.floor((today - dob) / (365.25 * 24 * 60 * 60 * 1000));\n        var age = '-' + dob_age + 'Y';\n      } else if (years != 0) {\n        var age = '-' + years + 'Y';\n      } else {\n        var age = '';\n      }\n      return age;\n    }\n    getNumber(num) {\n      var a = ['', 'one ', 'two ', 'three ', 'four ', 'five ', 'six ', 'seven ', 'eight ', 'nine ', 'ten ', 'eleven ', 'twelve ', 'thirteen ', 'fourteen ', 'fifteen ', 'sixteen ', 'seventeen ', 'eighteen ', 'nineteen '];\n      var b = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];\n      //  num = \"100.99\";\n      var amountReceived = num.split('.');\n      var num = amountReceived[0];\n      /* var  strPoint = '';\n          if(amountReceived.length > 1){\n             num =  amountReceived[1].toString();\n              for (var i = 0, len = num.length; i < len; i += 1) {\n                  var num = num.charAt(i);\n                  var n = ('000000000' + num).substr(-9).match(/^(\\d{2})(\\d{2})(\\d{2})(\\d{1})(\\d{2})$/);\n                  strPoint += (n[5] != 0) ? ((str != '') ? 'and ' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]])  : '';\n              }\n             // return output;\n          }*/\n\n      if ((num = num.toString()).length > 9) return 'overflow';\n      var n = ('000000000' + num).substr(-9).match(/^(\\d{2})(\\d{2})(\\d{2})(\\d{1})(\\d{2})$/);\n      if (!n) return;\n      var str = '';\n      str += n[1] != 0 ? (a[Number(n[1])] || b[n[1][0]] + ' ' + a[n[1][1]]) + 'crore ' : '';\n      str += n[2] != 0 ? (a[Number(n[2])] || b[n[2][0]] + ' ' + a[n[2][1]]) + 'lakh ' : '';\n      str += n[3] != 0 ? (a[Number(n[3])] || b[n[3][0]] + ' ' + a[n[3][1]]) + 'thousand ' : '';\n      str += n[4] != 0 ? (a[Number(n[4])] || b[n[4][0]] + ' ' + a[n[4][1]]) + 'hundred ' : '';\n      str += n[5] != 0 ? (str != '' ? '' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]]) + ' ' : '';\n\n      // str += (n[5] != 0) ? ((str != '') ? 'and ' : '') + (a[Number(n[5])] || b[n[5][0]] + ' ' + a[n[5][1]]) +  'only ' : '';\n      return str;\n    }\n    //This function get Year Month and Days form data of birth of patient\n    dateDiff(dt1, dt2) {\n      /*\n       * setup 'empty' return object\n       */\n      var ret = {\n        days: 0,\n        months: 0,\n        years: 0\n      };\n\n      /*\n       * If the dates are equal, return the 'empty' object\n       */\n      if (dt1 == dt2) return ret;\n\n      /*\n       * ensure dt2 > dt1\n       */\n      if (dt1 > dt2) {\n        var dtmp = dt2;\n        dt2 = dt1;\n        dt1 = dtmp;\n      }\n\n      /*\n       * First get the number of full years\n       */\n\n      var year1 = dt1.getFullYear();\n      var year2 = dt2.getFullYear();\n      var month1 = dt1.getMonth();\n      var month2 = dt2.getMonth();\n      var day1 = dt1.getDate();\n      var day2 = dt2.getDate();\n\n      /*\n       * Set initial values bearing in mind the months or days may be negative\n       */\n\n      ret['years'] = year2 - year1;\n      ret['months'] = month2 - month1;\n      ret['days'] = day2 - day1;\n\n      /*\n       * Now we deal with the negatives\n       */\n\n      /*\n       * First if the day difference is negative\n       * eg dt2 = 13 oct, dt1 = 25 sept\n       */\n      if (ret['days'] < 0) {\n        /*\n         * Use temporary dates to get the number of days remaining in the month\n         */\n        var dtmp1 = new Date(dt1.getFullYear(), dt1.getMonth() + 1, 1, 0, 0, -1);\n        var numDays = dtmp1.getDate();\n        ret['months'] -= 1;\n        ret['days'] += numDays;\n      }\n\n      /*\n       * Now if the month difference is negative\n       */\n      if (ret['months'] < 0) {\n        ret['months'] += 12;\n        ret['years'] -= 1;\n      }\n      return ret;\n    }\n    getFormCodeClass(form_code) {\n      if (form_code == 'G') {\n        var select_class = 'light_green';\n      } else if (form_code == 'L') {\n        var select_class = 'light_blue';\n      } else if (form_code == 'O') {\n        var select_class = 'light_orange';\n      } else if (form_code == 'P') {\n        var select_class = 'White';\n      }\n      return select_class;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/services/recalculate-amount\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    print: Ember.inject.service('print-options'),\n    dkbcPrint: Ember.inject.service('dkbc-print'),\n    // this function is used on checkout page for addCharge action\n    getFirstRowMedicineFactor() {\n      /*Get Factor Value as on 7 March by Shubh Tiwari */\n      var factor_value_list = $('#prescribeDetails td input[name=qty]').map(function (index) {\n        return $(this).val();\n      }).get();\n      return factor_value_list[0];\n    },\n    getTotalOtherChargeAmount() {\n      var grandTotal = 0;\n      $('.box-charge').each(function () {\n        var stval = parseFloat($(this).val().trim());\n        grandTotal += isNaN(stval) ? 0 : stval;\n      });\n      return grandTotal;\n    },\n    getMedicineTotalAmount() {\n      return $('.grdtot').val();\n    },\n    getConsultancyAmount() {\n      return $('.consultancy').val();\n    },\n    getPreviousDueAmount() {\n      return $('.pending').val();\n    },\n    getTotal() {\n      var charge, total, eVal, med_totals, med_amount, otherChargeTotal, medicineTotal, consultancy, PreviousDue;\n      otherChargeTotal = this.getTotalOtherChargeAmount();\n      //console.log(otherChargeTotal);\n      medicineTotal = this.getMedicineTotalAmount();\n      consultancy = this.getConsultancyAmount();\n      PreviousDue = this.getPreviousDueAmount();\n      charge = parseInt(consultancy, 10) + parseFloat(PreviousDue);\n      total = parseFloat(charge) + parseFloat(medicineTotal) + otherChargeTotal;\n      eVal = isNaN(total) ? 0.0 : total;\n      med_totals = parseFloat(eVal).toFixed(2);\n      med_amount = isNaN(med_totals) ? 0.0 : med_totals;\n      return med_amount;\n    },\n    checkOutupdateTotal() {\n      var totalAmount = this.getTotal();\n      var paid_amount = this.getPatientPreviousPaidAmount();\n      if (paid_amount == 0) {\n        $('.total').val(Math.abs(totalAmount).toFixed(2));\n        $('.total').attr('data-original_amount', Math.abs(totalAmount).toFixed(2));\n      } else {\n        $('.total').val(Math.abs(totalAmount).toFixed(2));\n        $('.total').attr('data-original_amount', Math.abs(totalAmount).toFixed(2));\n        var total_due1 = parseFloat(totalAmount - paid_amount);\n        var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n        var total_due = Math.abs(total_due_amount).toFixed(2);\n        $('.total_dues').val(total_due);\n        $('.total_dues').attr('data-total-dues', total_due);\n      }\n    },\n    updateTotal(other_charge, action, charge_id, function_name) {\n      console.log(other_charge);\n      console.log(action);\n      var totalAmount = this.getTotal();\n      //console.log(totalAmount);\n      if (action == 'add') {\n        var total = parseFloat(totalAmount) + parseFloat(other_charge);\n      } else if (action == 'remove') {\n        var total = parseFloat(totalAmount) - parseFloat(other_charge);\n      } else {\n        var total = totalAmount;\n      }\n      console.log(total);\n      $('.total').val(total);\n      $('.total').attr('data-original_amount', total);\n      //console.log(action);\n      if (action != undefined) {\n        this.getTotalDueAmountAndStatus(total, action, charge_id, other_charge, function_name);\n      }\n    },\n    getPatientPreviousPaidAmount() {\n      var previous_bill_amount, paid_amount, bill_paid_amount;\n      previous_bill_amount = $('.paid_amount').val();\n      paid_amount = parseFloat(previous_bill_amount).toFixed(2);\n      bill_paid_amount = isNaN(paid_amount) ? 0.0 : paid_amount;\n      return bill_paid_amount;\n    },\n    getPaymentGatewayPercentageVal() {\n      var payment_gateway_charge = $('.gateway_charge').val();\n      var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n      var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n      return pg_amount;\n    },\n    getPaidTotalOtherCharge(charge_id) {\n      var paid_other_total_charge = $('.paid_other_total_charge' + charge_id).attr('data-paid_other_total_charge');\n      paid_other_total_charge = isNaN(paid_other_total_charge) ? 0.0 : paid_other_total_charge;\n      //console.log(charge_id);\n      //console.log(paid_other_total_charge);\n      return paid_other_total_charge;\n    },\n    paymentGatewayChargeCalculation(bill_paid_amount, total_med_amount, pg_amount) {\n      if ($('.payment_gateway_checkbox').is(':checked')) {\n        var percentage = $('.payment_gateway_charge').val();\n        if (percentage != '') {\n          var paid_amounts = bill_paid_amount;\n          var total_amounts = total_med_amount;\n          var total_amounts = isNaN(total_med_amount) ? 0.0 : total_med_amount;\n          if (paid_amounts != 0 && total_amounts != '') {\n            console.log('a');\n            var total_due_amount = parseFloat(total_amounts - paid_amounts) + parseFloat(pg_amount);\n            var calcPrice = total_due_amount * percentage / 100;\n            var add_percentage_price = parseFloat(total_due_amount) + parseFloat(calcPrice);\n            var add_percentage_price_abs = Math.abs(add_percentage_price).toFixed(2);\n            $('.total_dues').val(add_percentage_price_abs);\n            $('.current_gateway_charge').val(Math.abs(calcPrice).toFixed(2));\n          } else if (paid_amounts == 0 && total_amounts != '') {\n            console.log('b');\n            var calcPrice = total_amounts * percentage / 100;\n            var add_percentage_price = parseFloat(total_amounts) + parseFloat(calcPrice);\n            $('.total').val(add_percentage_price.toFixed(2));\n          }\n        } else {\n          var total_amounts = $('.total').attr('data-original_amount');\n          var paid_amounts = $('.paid_amount').attr('data-paid-amount');\n          var paid_amounts = $('.total_dues').attr('data-total-dues');\n          $('.total').val(total_amounts);\n          $('.paid_amount').val(paid_amounts);\n          $('.total_dues').val(paid_amounts);\n        }\n      }\n    },\n    setNotIncludePreviousBillAmount(med_amount, bill_paid_amount, pg_amount, qty) {\n      var total_med_amount = parseFloat(med_amount).toFixed(2);\n      $('.total').val(total_med_amount);\n      $('.total').attr('data-original_amount', total_med_amount);\n      var total_due1 = parseFloat(total_med_amount - bill_paid_amount);\n      var total_due_amount = isNaN(total_due1) ? 0.0 : total_due1;\n      var total_due = Math.abs(total_due_amount).toFixed(2);\n      $('.total_dues').val(total_due);\n      $('.total_dues').attr('data-total-dues', total_due);\n      /* payment gatway charge calculation charge */\n      this.paymentGatewayChargeCalculation(bill_paid_amount, total_med_amount, pg_amount);\n      /* payment gatway charge calculation charge end */\n      var remaining_balance_status = Math.sign(total_due_amount);\n      if (remaining_balance_status == 1) {\n        var payment_status = 'DUE';\n      } else if (remaining_balance_status == -1) {\n        var payment_status = 'ADVANCE';\n      } else if (remaining_balance_status == 0) {\n        var payment_status = 'NO DUE';\n      }\n      $('.payment_status').text('(' + payment_status + ')');\n      if (total_due == 0.0) {\n        $('.cashpopup').attr('disabled', true);\n      } else {\n        $('.cashpopup').removeAttr('disabled');\n      }\n      /* Payment button enable when apply one or all factor will be zero*/\n      if (total_due == 0.0 && qty == 0) {\n        $('.cashpopup').removeAttr('disabled');\n      }\n      /* Payment button enable when apply patient category discount will be 100 */\n      var factor_perce_value = parseInt($('.onthefly_per').text());\n      var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n      if (factor_perce_value2 > 0) {\n        $('.cashpopup').removeAttr('disabled');\n      }\n    },\n    setIncludePreviousBillAmount(med_amount, bill_paid_amount, paid_pg_amount_upto_two_decimal, qty) {\n      var total_med_amount = parseFloat(med_amount).toFixed(2);\n      var payment_gateway_charge = $('.gateway_charge').val();\n      var pg_charge = parseFloat(payment_gateway_charge).toFixed(2);\n      var pg_amount = isNaN(pg_charge) ? 0.0 : pg_charge;\n      var total_due_amount = parseFloat(total_med_amount) - parseFloat(bill_paid_amount);\n      var total_due_amount_upto_two_decimal = total_due_amount.toFixed(2);\n      if (paid_pg_amount_upto_two_decimal != undefined) {\n        paid_pg_amount_upto_two_decimal;\n      } else {\n        paid_pg_amount_upto_two_decimal = 0;\n      }\n      var total_due_amount_plus_pg_amount = parseFloat(total_due_amount_upto_two_decimal) + parseFloat(paid_pg_amount_upto_two_decimal);\n      console.log(paid_pg_amount_upto_two_decimal);\n      var total_amount = Math.abs(total_due_amount_plus_pg_amount).toFixed(2);\n      var remaining_balance_status = Math.sign(total_due_amount_plus_pg_amount);\n      if (remaining_balance_status == 1) {\n        var payment_status = 'DUE';\n      } else if (remaining_balance_status == -1) {\n        var payment_status = 'ADVANCE';\n      } else if (remaining_balance_status == 0) {\n        var payment_status = 'NO DUE';\n      }\n      $('.total').val(total_med_amount);\n      $('.total').attr('data-original_amount', total_med_amount);\n      $('.total_dues').val(total_amount);\n      $('.total_dues').attr('data-total-dues', total_amount);\n      /* payment gatway charge calculation charge */\n      this.paymentGatewayChargeCalculation(bill_paid_amount, total_med_amount, pg_amount);\n      /* payment gatway charge calculation charge end */\n      $('.payment_status').text('(' + payment_status + ')');\n      // for refund cases added by shubh Tiwari 9 April 2020\n      var status = $('.payment_status').text();\n      status = $.trim(status);\n      if (status == 'ADVANCE') {\n        $('.total_due_refund').html('Refund Amount ₹ ');\n        $('#recieved').attr('placeholder', 'Refund');\n        $('.refund_class').html('<input type=\"hidden\" name=\"refund_value\" id=\"refund_value\"  value=\"1\">');\n        $('.total_recieved_refund').text('Refund ₹ :');\n      }\n      if (total_amount == 0.0) {\n        $('.cashpopup').attr('disabled', true);\n      } else {\n        $('.cashpopup').removeAttr('disabled');\n      }\n      /* Payment button enable when apply one or all factor will be zero*/\n      if (total_amount == 0.0 && qty == 0) {\n        $('.cashpopup').removeAttr('disabled');\n      }\n      /* Payment button enable when paid amount and total amount are equal*/\n      if (total_med_amount == bill_paid_amount) {\n        $('.cashpopup').removeAttr('disabled');\n      }\n      /* Payment button enable when apply patient category discount will be 100 */\n      var factor_perce_value = parseInt($('.onthefly_per').text());\n      var factor_perce_value2 = isNaN(factor_perce_value) ? 0 : factor_perce_value;\n      if (factor_perce_value2 > 0) {\n        $('.cashpopup').removeAttr('disabled');\n      }\n    },\n    getTotalDueAmountAndStatus(total, action, charge_id, other_charge, function_name) {\n      var qty = this.getFirstRowMedicineFactor();\n      var med_amount = total;\n      var bill_paid_amount = this.getPatientPreviousPaidAmount();\n      // this code below added for add other charge and on which apply pg charge also add by shubh tiwari as on 16-09-2021\n      var pg_amount = this.getPaymentGatewayPercentageVal();\n      var total_pg_percentage = $('.total_pg_percentage').val();\n      var paid_other_total_charge = this.getPaidTotalOtherCharge(charge_id);\n      var paid_med_medicine = $('.paid_med_medicine').val();\n      var medicine_total_amount = parseFloat(paid_med_medicine);\n      var paid_consultancy = $('.paid_consultancy').attr('data-paid_consultancy_amount');\n      if (total_pg_percentage != undefined) {\n        if (function_name == 'billpatient_add_discount' && total_pg_percentage != undefined && medicine_total_amount != undefined && medicine_total_amount == other_charge) {\n          var grdtot = $('.grdtot').val();\n          var pg_grdtot = parseFloat(grdtot).toFixed(2);\n          var grdtot_amount = isNaN(pg_grdtot) ? 0.0 : pg_grdtot;\n          var total_pg_amount = grdtot_amount;\n          var medicine_remove_amount = total_pg_amount * total_pg_percentage / 100;\n          var medicine_remove_amount_check_null = isNaN(medicine_remove_amount) ? 0.0 : medicine_remove_amount;\n          var paid_pg_amount = Math.abs(parseFloat(pg_charge) - parseFloat(medicine_remove_amount_check_null));\n          var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('billpatient_add_discount');\n        } else if (function_name == 'billpatient_remove_discount' && total_pg_percentage != undefined && medicine_total_amount != undefined && medicine_total_amount == other_charge) {\n          var original_gateway_charge = $('.original_gateway_charge').val();\n          var original_gateway_charge_amnt = parseFloat(original_gateway_charge).toFixed(2);\n          var paid_pg_amount_upto_two_decimal = original_gateway_charge_amnt;\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('billpatient_remove_discount');\n        } else if (function_name == 'billpatient_waived_consultancy' && total_pg_percentage != undefined && paid_consultancy != undefined && paid_consultancy == other_charge) {\n          var consultancy_remove_amount = paid_consultancy * total_pg_percentage / 100;\n          var consultancy_remove_amount_check_null = isNaN(consultancy_remove_amount) ? 0.0 : consultancy_remove_amount;\n          var paid_pg_amount = Math.abs(parseFloat(pg_charge) - parseFloat(consultancy_remove_amount_check_null));\n          var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('billpatient_waived_consultancy');\n        } else if (function_name == 'billpatient_remove_consultancy' && total_pg_percentage != undefined && paid_consultancy != undefined && paid_consultancy == other_charge) {\n          var consultancy_remove_amount = paid_consultancy * total_pg_percentage / 100;\n          var consultancy_remove_amount_check_null = isNaN(consultancy_remove_amount) ? 0.0 : consultancy_remove_amount;\n          var paid_pg_amount = Math.abs(parseFloat(pg_charge) + parseFloat(consultancy_remove_amount_check_null));\n          var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('billpatient_remove_consultancy');\n        } else if (function_name == 'add_other_charge' && total_pg_percentage != undefined && paid_other_total_charge != undefined && paid_other_total_charge == other_charge) {\n          var other_charge_remove_amount = paid_other_total_charge * total_pg_percentage / 100;\n          var other_charge_remove_amount_check_null = isNaN(other_charge_remove_amount) ? 0.0 : other_charge_remove_amount;\n          var paid_pg_amount = Math.abs(parseFloat(pg_charge) + parseFloat(other_charge_remove_amount_check_null));\n          var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('add_other_charge');\n        } else if (function_name == 'remove_other_charge' && total_pg_percentage != undefined && paid_other_total_charge != undefined && paid_other_total_charge == other_charge) {\n          var other_charge_remove_amount = paid_other_total_charge * total_pg_percentage / 100;\n          var other_charge_remove_amount_check_null = isNaN(other_charge_remove_amount) ? 0.0 : other_charge_remove_amount;\n          var paid_pg_amount = parseFloat(pg_charge) - parseFloat(other_charge_remove_amount_check_null);\n          var paid_pg_amount_upto_two_decimal = Math.abs(paid_pg_amount).toFixed(2);\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('remove_other_charge');\n        } else {\n          var paid_pg_amount_upto_two_decimal = pg_amount;\n          $('.gateway_charge').val(paid_pg_amount_upto_two_decimal);\n          $('.gateway_charge').attr('data-paid-gateway-charge', paid_pg_amount_upto_two_decimal);\n          console.log('else-condition');\n        }\n        var original_gateway_charge = $('.original_gateway_charge').val();\n        var removed_gt_amount = Math.abs(original_gateway_charge - paid_pg_amount_upto_two_decimal).toFixed(2);\n        $('.remove_pg_amount').val(removed_gt_amount);\n      }\n      if (bill_paid_amount == 0) {\n        console.log('Not Include Previous Bill Amount');\n        this.setNotIncludePreviousBillAmount(med_amount, bill_paid_amount, pg_amount, qty);\n      } else {\n        console.log('Include Previous Bill Amount');\n        this.setIncludePreviousBillAmount(med_amount, bill_paid_amount, paid_pg_amount_upto_two_decimal, qty);\n      }\n    },\n    calculateTotalVisit() {\n      var visit_due = $('#visit_due').val();\n      var previous_due = $('#previous_due').val();\n      var total_recieved = $('#total_recieved').val();\n      var total_visit = parseFloat(visit_due) + parseFloat(previous_due);\n      var total = Math.abs(parseFloat(total_visit) - parseFloat(total_recieved));\n      var mode = Math.sign(parseFloat(total_visit) - parseFloat(total_recieved));\n      if (mode == 1) {\n        var mode_value = 0;\n        var mode_status = 'Receipt';\n      } else if (mode == -1) {\n        var mode_value = 1;\n        var mode_status = 'Payment (Refund)';\n      }\n      $('#cashpopup').find('.classreceipt').text(mode_status);\n      //$(\"#cashpopup\").find(\".transaction_mode\").val(mode_value);\n      $('#transaction_mode option[value=\"' + mode_value + '\"]').attr('selected', 'selected');\n      $('#total_due').val(total.toFixed(2));\n    },\n    calculateTotalReceivedWithPGCharge() {\n      $(document).ready(function () {\n        var totalReceivedAmount = 0;\n        var pg_amount = 0;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        $('.payment_gateway_amount').each(function () {\n          var gateway_val = parseFloat($(this).val());\n          pg_amount += isNaN(gateway_val) ? 0 : gateway_val;\n        });\n        var total_pg_amount = parseFloat(pg_amount).toFixed(2);\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        var received = parseFloat(totalModeAmount) + parseFloat(total_pg_amount);\n        var total_received = parseFloat(received).toFixed(2);\n        $('#recieved').val(total_received);\n      });\n    },\n    calculateTotalReceivedWithPGChargeOnCheckUncheckPaymentMode() {\n      var _this = this;\n      //_this.calculateTotalReceivedWithPGCharge();\n      var val = $('#dueadv').children('option:selected').val();\n      _this.calculateTotalReceivedWithPGChargeAmount(val);\n    },\n    calculatePGChargeOnClick() {\n      var _this = this;\n      $(document).on('click', '.payment_gateway_checkbox', function (event) {\n        var click_filed_id = $(this).attr('id');\n        var val = $('#dueadv').children('option:selected').val();\n        var current_id = click_filed_id.replace('payment_gateway_checkbox_', '');\n        if ($('#payment_gateway_checkbox_' + current_id).is(':checked')) {\n          $('#payment_gateway_charge_' + current_id).removeAttr('disabled');\n          $('#payment_gateway_charge_' + current_id).val(_environment.default.pgcharge.default);\n          var percentage = $('#payment_gateway_charge_' + current_id).val();\n          if (percentage != '') {\n            var total_amount = $('#payment_' + current_id).val();\n            if (total_amount != '') {\n              console.log('b');\n              var calcPrice = total_amount * percentage / 100;\n              $('#payment_gateway_amount_' + current_id).val(calcPrice.toFixed(2));\n            } else {\n              var error = $('#payment_' + current_id).attr('placeholder');\n              var error_messsage = error + \" can't be empty\";\n              var focusId = 'payment_' + current_id;\n              _this.allAlertMessageOfPaymentDetailsComponent(error_messsage, focusId);\n            }\n          } else {\n            var error = $('#payment_gateway_charge_' + current_id).attr('placeholder');\n            var error_messsage = error + \" can't be empty\";\n            var focusId = 'payment_gateway_charge_' + current_id;\n            //_this.allAlertMessageOfPaymentDetailsComponent(error_messsage,focusId);\n          }\n        } else {\n          $('#payment_gateway_charge_' + current_id).attr('disabled', 'disabled');\n          $('#payment_gateway_amount_' + current_id).attr('disabled', 'disabled');\n          $('#payment_gateway_charge_' + current_id).val('');\n          $('#payment_gateway_amount_' + current_id).val(0);\n        }\n        //_this.calculateTotalReceivedWithPGCharge();\n        _this.calculateTotalReceivedWithPGChargeAmount(val);\n      });\n    },\n    calculatePGChargeOnKeyUp() {\n      var _this = this;\n      $(document).on('keyup', '.payment_gateway_charge', function (event) {\n        event.preventDefault();\n        var click_filed_id = $(this).attr('id');\n        var val = $('#dueadv').children('option:selected').val();\n        var current_id = click_filed_id.replace('payment_gateway_charge_', '');\n        var _current_price = $('#payment_' + current_id).val();\n        var _payment_gateway_charge = $('#payment_gateway_charge_' + current_id).val();\n        if ($('#payment_gateway_checkbox_' + current_id).is(':checked')) {\n          var calcPrice = _current_price * _payment_gateway_charge / 100;\n          $('#payment_gateway_amount_' + current_id).val(calcPrice.toFixed(2));\n        } else {\n          $('#payment_gateway_amount_' + current_id).val(0);\n        }\n        //_this.calculateTotalReceivedWithPGCharge();\n        _this.calculateTotalReceivedWithPGChargeAmount(val);\n      });\n    },\n    changePasteKeyup() {\n      var _this = this;\n      $(document).on('change paste keyup', '.payment-method', function (event) {\n        var click_filed_id = $(this).attr('id');\n        var current_id = click_filed_id.replace('payment_', '');\n        var val = $('#dueadv').children('option:selected').val();\n        var _current_price = $('#payment_' + current_id).val();\n        //console.log(_current_price);\n        var _payment_gateway_charge = $('#payment_gateway_charge_' + current_id).val();\n        if (_current_price != '') {\n          if ($('#payment_gateway_checkbox_' + current_id).is(':checked')) {\n            var calcPrice = _current_price * _payment_gateway_charge / 100;\n            $('#payment_gateway_amount_' + current_id).val(calcPrice.toFixed(2));\n          } else {\n            $('#payment_gateway_amount_' + current_id).val(0);\n          }\n          //_this.calculateTotalReceivedWithPGCharge();\n          _this.calculateTotalReceivedWithPGChargeAmount(val);\n        } else {\n          var error = $('.payment_' + current_id).attr('data-mode');\n          var error_messsage = error + \" amount can't be empty\";\n          var focusId = 'payment_' + current_id;\n          $('#payment_gateway_amount_' + current_id).val(0);\n          //_this.allAlertMessageOfPaymentDetailsComponent(error_messsage, focusId);\n        }\n      });\n    },\n    previousBalanceReasonAllowAlphanumeric() {\n      $(document).on('keypress', '#previous_due_edit_reason', function (e) {\n        if (e.charCode != 0) {\n          var regex = new RegExp('[a-zA-Z0-9_. ,]*');\n          var key = String.fromCharCode(!e.charCode ? e.which : e.charCode);\n          if (!regex.test(key)) {\n            e.preventDefault();\n            return false;\n          }\n        }\n      });\n    },\n    // Alert message closed and focus on that field written by shubh tiwari 22-07-2022\n    alertMessagePopupClose() {\n      $(document).on('click', '.close', function (event) {\n        $('#cashpopup').find('input:not([id^=payment_gateway]), textarea, button, select').removeAttr('disabled');\n        var $focusId = $(this).attr('id');\n        $('.alertmessage').css('display', 'none');\n        $('#' + $focusId).focus();\n      });\n    },\n    // Allow only number with two decimal Written as on 22 July 2022 by Shubh Tiwari\n    allowTwoDecimalFloatNumber() {\n      $('body').on('keypress', '.twodecimal', function (event) {\n        var $this = $(this);\n        if ((event.which != 46 || $this.val().indexOf('.') != -1) && (event.which < 48 || event.which > 57) && event.which != 0 && event.which != 8) {\n          event.preventDefault();\n        }\n        var text = $(this).val();\n        if (event.which == 46 && text.indexOf('.') == -1) {\n          setTimeout(function () {\n            if ($this.val().substring($this.val().indexOf('.')).length > 3) {\n              $this.val($this.val().substring(0, $this.val().indexOf('.') + 3));\n            }\n          }, 1);\n        }\n        if (text.indexOf('.') != -1 && text.substring(text.indexOf('.')).length > 2 && event.which != 0 && event.which != 8 && $(this)[0].selectionStart >= text.length - 2) {\n          event.preventDefault();\n        }\n      });\n    },\n    // This function is used for showing All Alert message of written by shubh tiwari 22-07-2022\n    allAlertMessageOfPaymentDetailsComponent(message, focusId) {\n      var alertdiv = '';\n      alertdiv += '<div id=\"cookieAlert\" class=\"text-center alert alert-danger alert-dismissible alert-fixed m-0\" role=\"alert\">';\n      alertdiv += '<button type=\"button\" class=\"close\" data-dismiss=\"alert\" id=\"' + focusId + '\"><span style=\"font-size:30px;\" class=\"\" aria-hidden=\"true\">&times;</span></button>';\n      alertdiv += '<p>' + message + '</p></div>';\n      $('.alertmessage').html(alertdiv);\n      $('.alertmessage').show();\n      $('#cashpopup').find('input:not([id^=payment_gateway]), textarea, button, select').attr('disabled', 'disabled');\n    },\n    // This function is used for showing All sucess message of written by shubh tiwari 03-08-2022\n    allSuccessMessage(message, focusId) {\n      var alertdiv = '';\n      alertdiv += '<div id=\"cookieAlert\" class=\"text-center alert alert-success alert-dismissible alert-fixed m-0\" role=\"alert\">';\n      alertdiv += '<button type=\"button\" class=\"close\" data-dismiss=\"alert\"><span style=\"font-size:30px;\" class=\"\" aria-hidden=\"true\">&times;</span></button>';\n      alertdiv += '<p>' + message + '</p></div>';\n      $('.alertmessage').html(alertdiv);\n      $('.alertmessage').show();\n      this.messageFadeOut();\n    },\n    messageFadeOut() {\n      setTimeout(function () {\n        $('.alertmessage').css('display', 'none');\n      }, 3000);\n    },\n    calculateTotalReceivedWithPGChargeAmount(previous_due_status) {\n      //console.log(previous_due_status);\n      $(document).ready(function () {\n        var totalReceivedAmount = 0;\n        var pg_amount = 0;\n        var visitdue = $('#visit_due').attr('data-visitdue');\n        //total_hidden variable is supposed to have sum of all charges except previous balance from billing screen. we use it to calculate total due later.\n        var total_hidden_value = $('#totalHidden').val();\n        var total_hidden_amount = isNaN(total_hidden_value) ? 0 : total_hidden_value;\n        //console.log(visitdue);\n        var previousdue = $('#previous_due').val();\n        var datapreviousdue = $('#previous_due').attr('data-previousdue');\n        var appliedcharge = $('#appliedcharge').children('option:selected').val();\n        if (appliedcharge == undefined || appliedcharge == '') {\n          var select_charge = 0;\n        } else {\n          var select_charge = isNaN(appliedcharge) ? 0 : appliedcharge;\n        }\n        // console.log(appliedcharge);\n        var previousdue_amount = parseFloat(previousdue).toFixed(2);\n        var datapreviousdue_amount = parseFloat(datapreviousdue).toFixed(2);\n        if (datapreviousdue_amount == previousdue_amount && previous_due_status == 'due') {\n          var previousdue_amnt = 0;\n        } else if (previousdue_amount > datapreviousdue_amount && previous_due_status == 'due') {\n          var previousdue_amnt = previousdue;\n        } else {\n          var previousdue_amnt = previousdue;\n        }\n        //console.log(previousdue_amnt);\n        var totalrecieved = $('#total_recieved').attr('data-total_received');\n        var previouspgamount = $('#previous_pg_amount').val();\n        var previous_pg_amount = isNaN(previouspgamount) ? 0 : previouspgamount;\n        var currentpgamount = $('#current_pg_amount').val();\n        var current_pg_amount = isNaN(currentpgamount) ? 0 : currentpgamount;\n        var visit_due = isNaN(visitdue) ? 0 : visitdue;\n        var previous_due = isNaN(previousdue) ? 0 : previousdue;\n        var total_recieved = isNaN(totalrecieved) ? 0 : totalrecieved;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        $('.payment_gateway_amount').each(function () {\n          var gateway_val = parseFloat($(this).val());\n          pg_amount += isNaN(gateway_val) ? 0 : gateway_val;\n        });\n        var total_pg_amount = parseFloat(pg_amount).toFixed(2);\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        var received = parseFloat(totalModeAmount) + parseFloat(total_pg_amount);\n        var total_received = parseFloat(received).toFixed(2);\n        // console.log(visit_due + 'visit_due');\n        // console.log(total_pg_amount + 'total_pg_amount');\n        // console.log(select_charge + 'select_charge');\n        // console.log(previous_due+'previous_due');\n        // console.log(previous_due_status+'previous_due_status');\n        if (previous_due_status == 'due') {\n          var visit_due_with_pg_amount = parseFloat(\n          //Math.abs(\n          parseFloat(visit_due) + parseFloat(total_pg_amount) + parseFloat(select_charge) + parseFloat(previous_due)\n          //)\n          );\n          // var transaction_mode_amount =\n          //   parseFloat(visit_due) +\n          //   parseFloat(total_pg_amount) +\n          //   parseFloat(select_charge) +\n          //   parseFloat(previous_due);\n        } else if (previous_due_status == 'adv') {\n          var visit_due_with_pg_amount = parseFloat(\n          //Math.abs(\n          parseFloat(visit_due) + parseFloat(total_pg_amount) + parseFloat(select_charge) - parseFloat(previous_due)\n          //)\n          );\n          // var transaction_mode_amount =\n          //   parseFloat(visit_due) +\n          //   parseFloat(total_pg_amount) +\n          //   parseFloat(select_charge) -\n          //   parseFloat(previous_due);\n        }\n        var visit_due_with_pg_total_amount = isNaN(visit_due_with_pg_amount) ? 0 : visit_due_with_pg_amount;\n        // console.log(visit_due_with_pg_amount + 'visit_due_with_pg_amount');\n        var visit_total = parseFloat(visit_due_with_pg_total_amount).toFixed(2);\n        var total_balance = parseFloat(\n        //Math.abs(\n        parseFloat(visit_total) - (parseFloat(total_recieved) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount)\n        // )\n        ).toFixed(2);\n        // console.log('total_balance='+total_balance);\n        // var transaction_status =\n        //   parseFloat(transaction_mode_amount) -\n        //   (parseFloat(total_recieved) - parseFloat(previous_pg_amount)) +\n        //   parseFloat(current_pg_amount);\n        // var transaction_mode = Math.sign(transaction_status);\n        var transaction_mode = Math.sign(total_balance);\n        if (transaction_mode == 1) {\n          var mode_value = '0';\n          var total_balance_status = 'Due';\n        } else if (transaction_mode == -1) {\n          var mode_value = '1';\n          var total_balance_status = 'Advance';\n          if (previous_due_status == 'due') {\n            //Nishant 23-Dec-2022: only if due, because If previous balance is advance, then we need to include pg amounts in calculations so we don't add back pg amount in totals\n            total_balance = parseFloat(total_balance) - parseFloat(previous_pg_amount) - parseFloat(total_pg_amount); //Nishant 24-Nov-2022 Add back the previous pg in case of refunds\n            visit_total = parseFloat(visit_total) - parseFloat(total_pg_amount); //Nishant 26-Nov-2022 don't add current pg amount to visit due in case of refunds\n          }\n        } else if (transaction_mode == 0) {\n          var mode_value = '0';\n          var total_balance_status = 'Due';\n        }\n        $('#visit_due').val(visit_total);\n        $('#total_due').val(total_balance);\n        $('#recieved').val(total_received);\n        // $('#transaction_mode').val(mode_value);\n        $('#recieveddueadv').val(total_balance_status);\n        // Bilinking text code\n        if (total_pg_amount > 0.0) {\n          $('.newvisitdue').css('display', 'block');\n          $('.newvisitdue').text('Updated');\n        } else {\n          $('.newvisitdue').css('display', 'none');\n        }\n      });\n    },\n    getShippingAddress(shipping_address_one, shipping_address_two, shipping_city_name, shipping_state_name, shipping_country_name, shipping_pin_code, shipping_mobile_no) {\n      var citystatecountrypin = '';\n      //console.log(shipping_address_two);\n      if (shipping_address_one == '' || shipping_address_one == null) {\n        var address_one = ' ';\n      } else {\n        var address_one = shipping_address_one + '\\n';\n      }\n      if (shipping_address_two == '' || shipping_address_two == null) {\n        var second_address = '';\n      } else {\n        var second_address = shipping_address_two + '\\n';\n      }\n      if (shipping_mobile_no == '' || shipping_mobile_no == null) {\n        var mobile_no = '';\n      } else {\n        var mobile_no = 'PH: ' + shipping_mobile_no;\n      }\n      if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(1);\n        citystatecountrypin += shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name + ', ' + shipping_pin_code;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(2);\n        citystatecountrypin += shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(3);\n        citystatecountrypin += shipping_city_name + ', ' + shipping_state_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && (shipping_state_name == null || shipping_state_name == '') && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(4);\n        citystatecountrypin += shipping_city_name;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(5);\n        citystatecountrypin += shipping_state_name + ', ' + shipping_country_name + ', ' + shipping_pin_code;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && (shipping_state_name == null || shipping_state_name == '') && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(6);\n        citystatecountrypin += shipping_country_name + ', ' + shipping_pin_code;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && (shipping_state_name == null || shipping_state_name == '') && (shipping_country_name == null || shipping_country_name == '') && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(7);\n        citystatecountrypin += shipping_pin_code;\n      } else if (shipping_country_name !== null && shipping_country_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_city_name !== null && shipping_city_name !== '') {\n        console.log(8);\n        citystatecountrypin += shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_country_name !== null && shipping_country_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_city_name == null || shipping_city_name == '')) {\n        console.log(9);\n        citystatecountrypin += shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_state_name !== null && shipping_state_name !== '') {\n        console.log(10);\n        citystatecountrypin += shipping_state_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '') {\n        console.log(11);\n        citystatecountrypin += shipping_city_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(12);\n        citystatecountrypin += ' ';\n      } else {\n        console.log(13);\n        citystatecountrypin += ' ';\n      }\n      return address_one + second_address + citystatecountrypin + '\\n' + mobile_no;\n    },\n    printShippingAddressHtml(patientDetails, shipping_address_one, shipping_address_two, shipping_city_name, shipping_state_name, shipping_country_name, shipping_pin_code, shipping_mobile_no) {\n      var salutationss = patientDetails.salutation;\n      //console.log(salutationss);\n      if (salutationss == \"\") {\n        var title = '';\n      } else {\n        var title = patientDetails.salutation + '.';\n      }\n      if (patientDetails.first_name != '' && patientDetails.first_name != null && patientDetails.middle_name != '' && patientDetails.middle_name != null && patientDetails.last_name != '' && patientDetails.last_name != null) {\n        var name = patientDetails.first_name + ' ' + patientDetails.middle_name + ' ' + patientDetails.last_name;\n      } else if (patientDetails.first_name != '' && patientDetails.first_name != null && patientDetails.last_name != '' && patientDetails.last_name != null) {\n        var name = patientDetails.first_name + ' ' + patientDetails.last_name;\n      } else if (patientDetails.first_name != '' && patientDetails.first_name != null) {\n        var name = patientDetails.first_name;\n      } else {\n        var name = patientDetails.first_name;\n      }\n      if (patientDetails.gender != '' || patientDetails.gender != '') {\n        var gender = patientDetails.gender;\n      } else {\n        var gender = '';\n      }\n      var patient_birthday = patientDetails.birthday;\n      var years = patientDetails.age;\n      var months = patientDetails.months;\n      var days = patientDetails.days;\n      //var visit_date = patientDetails.dateTime;\n      var visit_date = moment().format('YYYY-MM-DD');\n      var patient_dob = this.print.getPatientDob(patient_birthday, visit_date, years, months, days);\n      if (patient_dob !== null && patient_dob !== '') {\n        var dob = patient_dob;\n      } else {\n        var dob = '';\n      }\n      if (shipping_address_one == '' || shipping_address_one == null) {\n        var address_one = '';\n      } else {\n        var address_one = shipping_address_one;\n      }\n      if (shipping_address_two == '' || shipping_address_two == null) {\n        var second_address = '';\n      } else {\n        var second_address = shipping_address_two;\n      }\n      if (shipping_mobile_no == '' || shipping_mobile_no == null) {\n        var mobile_no = '';\n      } else {\n        var mobile_no = 'PH: ' + shipping_mobile_no;\n      }\n      var d = '';\n      d += \"<div style='width:calc(100% - 10px;);margin-left:10px;margin-top:-28px;'><br/>\";\n      d += \"<div style='text-align:center;'>\";\n      //d +=\"<span style='font-size:22px;'>Dr. Kalyan Banerjee's Clinic</span><br/>\";\n      d += \"<span  style='font-size:30px;'><b> D-\" + patientDetails.OldRegistrationNo + '</b></span>';\n      d += '</div>';\n      d += \"<div style='text-align:left;'>\";\n      d += \"<div style='float:left;width:50px;'>\";\n      d += \"<span style='font-size:30px;'>To,</span>\";\n      d += '</div>';\n      //d +=\"<div style='float:right;'>\";\n      //d +=\"<span  style='font-size:30px;'><b> D-\"+address.OldRegistrationNo+\"</b></span>\";\n      // d +=\"</div> <br/><br/>\";\n      d += '<br/><br/>';\n      d += '<div>';\n      d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + title + ' ' + name + ' ' + '(' + gender + dob + ')' + '</span><br/>';\n      d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + address_one + '</span> <br/>';\n      d += \"<span style='font-size:30px;text-transform: capitalize;'>\" + second_address + '</span>';\n      d += \"<span style='font-size:30px;text-transform: capitalize;'>\";\n      if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(1);\n        d += ' ' + shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name + ', ' + shipping_pin_code;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(2);\n        d += ' ' + shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(3);\n        d += ' ' + shipping_city_name + ', ' + shipping_state_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && (shipping_state_name == null || shipping_state_name == '') && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(4);\n        d += ' ' + shipping_city_name;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && shipping_state_name !== null && shipping_state_name !== '' && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(5);\n        d += ' ' + shipping_state_name + ', ' + shipping_country_name + ', ' + shipping_pin_code;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && (shipping_state_name == null || shipping_state_name == '') && shipping_country_name !== null && shipping_country_name !== '' && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(6);\n        d += ' ' + shipping_country_name + ', ' + shipping_pin_code;\n      } else if ((shipping_city_name == null || shipping_city_name == '') && (shipping_state_name == null || shipping_state_name == '') && (shipping_country_name == null || shipping_country_name == '') && shipping_pin_code !== null && shipping_pin_code !== '') {\n        console.log(7);\n        d += ' ' + shipping_pin_code;\n      } else if (shipping_country_name !== null && shipping_country_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && shipping_city_name !== null && shipping_city_name !== '') {\n        console.log(8);\n        d += ' ' + shipping_city_name + ', ' + shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_country_name !== null && shipping_country_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_city_name == null || shipping_city_name == '')) {\n        console.log(8);\n        d += ' ' + shipping_state_name + ', ' + shipping_country_name;\n      } else if (shipping_state_name !== null && shipping_state_name !== '') {\n        console.log(9);\n        d += ' ' + shipping_state_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '') {\n        console.log(10);\n        d += ' ' + shipping_city_name;\n      } else if (shipping_city_name !== null && shipping_city_name !== '' && shipping_state_name !== null && shipping_state_name !== '' && (shipping_country_name == null || shipping_country_name == '') && (shipping_pin_code == null || shipping_pin_code == '')) {\n        console.log(11);\n        d += ' ';\n      } else {\n        console.log(12);\n        d += ' ';\n      }\n      d + '</span>';\n      d += \"<br/><span style='font-size:30px;'>\" + mobile_no + '</span>';\n      d += '</div>';\n      d += '</div>';\n      d += '</div>';\n      var myWindow = window.open('', '', 'width=300,height=250');\n      myWindow.document.write(d);\n      myWindow.document.close();\n      myWindow.focus();\n      setTimeout(() => {\n        myWindow.print();\n      }, 1000);\n    },\n    calculateTotalReceivedWithPGChargeAmountReset(val) {\n      $(document).ready(function () {\n        var totalReceivedAmount = 0;\n        var pg_amount = 0;\n        var visitdue = $('#visit_due').attr('data-visitdue');\n        var previousdue = $('#previous_due').attr('data-previousdue');\n        var totalrecieved = $('#total_recieved').attr('data-total_received');\n        var previouspgamount = $('#previous_pg_amount').val();\n        var previous_pg_amount = isNaN(previouspgamount) ? 0 : previouspgamount;\n        var currentpgamount = $('#current_pg_amount').val();\n        var current_pg_amount = isNaN(currentpgamount) ? 0 : currentpgamount;\n        $('.mode-price').each(function () {\n          var mode_val = parseFloat($(this).val());\n          totalReceivedAmount += isNaN(mode_val) ? 0 : mode_val;\n        });\n        $('.payment_gateway_amount').each(function () {\n          var gateway_val = parseFloat($(this).val());\n          pg_amount += isNaN(gateway_val) ? 0 : gateway_val;\n        });\n        var appliedcharge = $('#appliedcharge').children('option:selected').val();\n        if (appliedcharge == undefined || appliedcharge == '') {\n          var select_charge = 0;\n        } else {\n          var select_charge = isNaN(appliedcharge) ? 0 : appliedcharge;\n        }\n        var total_pg_amount = parseFloat(pg_amount).toFixed(2);\n        var totalModeAmount = parseFloat(totalReceivedAmount).toFixed(2);\n        var received = parseFloat(totalModeAmount) + parseFloat(total_pg_amount);\n        var total_received = parseFloat(received).toFixed(2);\n        if (val == 'due') {\n          var visit_due_amount = parseFloat(\n          //Math.abs(\n          parseFloat(visitdue) + parseFloat(total_pg_amount) + parseFloat(select_charge) + parseFloat(previousdue)\n          //)\n          );\n          var transaction_mode_amount = parseFloat(visitdue) + parseFloat(total_pg_amount) + parseFloat(select_charge) + parseFloat(previousdue);\n        } else if (val == 'adv') {\n          var visit_due_amount = parseFloat(\n          //Math.abs(\n          parseFloat(visitdue) + parseFloat(total_pg_amount) + parseFloat(select_charge) - parseFloat(previousdue)\n          //)\n          );\n          var transaction_mode_amount = parseFloat(visitdue) + parseFloat(total_pg_amount) + parseFloat(select_charge) - parseFloat(previousdue);\n        }\n        var visit_due_total_amount = isNaN(visit_due_amount) ? 0 : visit_due_amount;\n        var visit_total = parseFloat(visit_due_total_amount).toFixed(2);\n        var total_balance = parseFloat(\n        //Math.abs(\n        parseFloat(visit_total) - (parseFloat(totalrecieved) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount)\n        //)\n        ).toFixed(2);\n        var transaction_status = parseFloat(transaction_mode_amount) - (parseFloat(totalrecieved) - parseFloat(previous_pg_amount)) + parseFloat(current_pg_amount);\n        var transaction_mode = Math.sign(transaction_status);\n        if (transaction_mode == 1) {\n          var mode_value = '0';\n          var total_balance_status = 'Due';\n        } else if (transaction_mode == -1) {\n          var mode_value = '1';\n          var total_balance_status = 'Advance';\n        } else if (transaction_mode == 0) {\n          var mode_value = '0';\n          var total_balance_status = 'Due';\n        }\n        $('#visit_due').val(visit_total);\n        $('#total_due').val(total_balance);\n        $('#recieved').val(total_received);\n        // $('#transaction_mode').val(mode_value);\n        $('#recieveddueadv').val(total_balance_status);\n        // Bilinking text code\n        if (total_pg_amount > 0.0) {\n          $('.newvisitdue').css('display', 'block');\n          $('.newvisitdue').text('Updated');\n        } else {\n          $('.newvisitdue').css('display', 'none');\n        }\n      });\n    },\n    resetPaymentDetailsComponentVariableAfterSubmit() {\n      var _this = this;\n      $('#patient_options tbody tr td input[type=\"checkbox\"]').each(function () {\n        $(this).prop('checked', false);\n      });\n      $('.nobreak').attr('checked', false);\n      $('.payment-method').removeClass('error');\n      $('.payment-option-list').html('');\n      $('#paymenterror').html('');\n      $('.reference_no').val('');\n      $('#recieved').val('');\n      $('#previous_due').attr('readonly', 'readonly');\n      $('#previous_due_edit_reason').attr('readonly', 'readonly');\n      $('#previous_due_edit_reason').val('');\n      $('#previous_due_edit_reason').removeAttr('previousclick');\n      $('#dueadv').attr('disabled', 'disabled');\n      $('.refund_class').html('');\n      $('.payment-method').val('');\n      $('#note').val('');\n      $('#urgent_status').prop('checked', false);\n      $('#urgent_status').attr('checked', false);\n      $('#urgenttagnote').text('');\n      $('.newvisitdue').css('display', 'none');\n      $('.newvisitdue').text('');\n      /* reset dashboard and appointment page popup variable */\n      $('.advance_payment_status').prop('checked', false);\n      $('.advance_payment_status').val(0);\n      $('.advance_payment_obj').val('');\n      $('.advance_payment_urgency').val('0');\n      $('#ocp_visit_address').val('');\n      $('#appointment_type').val('');\n      _this.set('appointment_type', '');\n      $('.appointmentType_buttons').removeClass('btn-success');\n      $('.appointmentType_buttons').addClass('btn-info');\n      $('.location_row').css('display', 'none');\n      $('#urgenttagnote').val('');\n      $('#urgenttagnote').css('display', 'none');\n      $('#advancedpg_amount').text('');\n      $('.appointment_type_div').show();\n      // For Book Appointment\n      $('.patient_registration_form').hide();\n      $('#register_patient').trigger('reset');\n      $('#' + $('#button_clicked').val()).click();\n      $('#register_patient').trigger('reset');\n      $('.first_name').val('');\n      $('.middle_name').val('');\n      $('.last_name').val('');\n      $('.OldRegistrationNo').val('');\n    },\n    hidePopupWithPassingDynamicPopupId(Id) {\n      jQuery.noConflict();\n      $('#' + Id).modal('hide');\n    },\n    showPopupWithPassingDynamicPopupId(Id) {\n      jQuery.noConflict();\n      $('#' + Id).modal('show');\n    },\n    popupLoaderOpen() {\n      $('#loading').addClass('in');\n      $('#loading').css('display', 'block');\n      $('body').addClass('modal-open');\n    },\n    popupLoaderClose() {\n      setTimeout(function () {\n        $('#loading').removeClass('in');\n        $('#loading').css('display', 'none');\n        $('.modal-backdrop').remove();\n        $('body').removeClass('modal-open');\n      }, 500);\n    },\n    allowOnlyNumeric() {\n      // allow enter only numbers\n      $(document).on('input', '.onlynumeric', function () {\n        this.value = this.value.replace(/\\D/g, '');\n      });\n    },\n    childModalClose() {\n      // Close modal of shipping address, Shubh Tiwari 08-08-2023\n      $(document).on(\"click\", \"button.closeChild\", function (e) {\n        var child_modal_id = $(\".childModel\").attr('id');\n        $('#' + child_modal_id).hide();\n        $('#' + child_modal_id).removeClass('in');\n        $('.modal-backdrop').remove();\n      });\n    },\n    timeBasedScriptExecution(script) {\n      setTimeout(function () {\n        script;\n      }, 500);\n    },\n    toolTip() {\n      $(function () {\n        $(\"[data-toggle='tooltip']\").tooltip();\n      });\n    },\n    removeDiagnosticDecimal() {\n      $('body').on('keyup', '#decimalremove', function (event) {\n        if (/^(\\d+(\\.\\d{0,2})?)?$/.test($(this).val())) {\n          // Input is OK. Remember this value\n          $(this).data('prevValue', $(this).val());\n        } else {\n          // Input is not OK. Restore previous value\n          $(this).val($(this).data('prevValue') || '');\n        }\n      });\n    },\n    setThresholdAbnormalVal() {\n      var _this = this;\n      $('body').on('keyup', '.decimalremove', function (event) {\n        var index_id = event.target.getAttribute('data-id');\n        var lower_range = $(\"input[name='lower_range[\" + index_id + \"]']\").val();\n        var upper_range = $(\"input[name='upper_range[\" + index_id + \"]']\").val();\n        var range_value = $(\"input[name='range_value[\" + index_id + \"]']\").val();\n        var checkcondtion = _this.inRange(range_value, lower_range, upper_range);\n        console.log(checkcondtion);\n        if (range_value != '') {\n          if (checkcondtion == false) {\n            $(\"input[name='range_value[\" + index_id + \"]']\").addClass('has-warning');\n            $('.setabnormal' + index_id).val(1);\n          } else {\n            $(\"input[name='range_value[\" + index_id + \"]']\").removeClass('has-warning');\n            $('.setabnormal' + index_id).val(0);\n          }\n        } else {\n          $(\"input[name='range_value[\" + index_id + \"]']\").removeClass('has-warning');\n        }\n      });\n    },\n    onChangeBinaryAbnormalVal() {\n      $('body').on('change', '.changeAbnormalVal', function (event) {\n        var index_id = event.target.getAttribute('data-id');\n        var range_value = event.target[event.target.selectedIndex].text;\n        var lower_range = $(\"input[name='lower_range[\" + index_id + \"]']\").val();\n        var upper_range = $(\"input[name='upper_range[\" + index_id + \"]']\").val();\n        //console.log(range_value);\n        if (range_value == lower_range) {\n          $(\"select[name='range_value[\" + index_id + \"]']\").parent().removeClass('red');\n          $(\"select[name='range_value[\" + index_id + \"]']\").parent().addClass('green');\n          $('.setabnormal' + index_id).val(range_value);\n        } else if (range_value == upper_range) {\n          $(\"select[name='range_value[\" + index_id + \"]']\").parent().removeClass('green');\n          $(\"select[name='range_value[\" + index_id + \"]']\").parent().addClass('red');\n          $('.setabnormal' + index_id).val(range_value);\n        } else {\n          $('.setabnormal' + index_id).val(range_value);\n        }\n      });\n    },\n    disableAllElementOfCheckoutPreviw() {\n      $(function () {\n        jQuery.noConflict();\n        $(':input:not([name=goBack], [name=filename], [name=notifyUsers])').prop('disabled', true);\n      });\n    },\n    enableAllElementOfCheckoutPreviw() {\n      $(function () {\n        jQuery.noConflict();\n        $(':input:not([name=goBack], [name=filename], [name=notifyUsers])').prop('disabled', false);\n      });\n    },\n    compareTwoDates(sDate, eDate) {\n      let startDate = new Date(sDate);\n      let endDate = new Date(eDate);\n      if (startDate > endDate) {\n        return true;\n      } else {\n        return false;\n      }\n    },\n    // return true if in range, otherwise false\n    inRange(x, min, max) {\n      return (x - min) * (x - max) <= 0;\n    },\n    checkingEqualDate(dynamic_value) {\n      var what = moment(dynamic_value).format('YYYY-MM-DD');\n      var val = moment().format('YYYY-MM-DD');\n      if (what == val) {\n        return true;\n      } else {\n        return false;\n      }\n    },\n    divInsideElementDisableUsingId(id) {\n      var form = document.getElementById(id);\n      var elements = form.elements;\n      for (var i = 0, len = elements.length; i < len; ++i) {\n        elements[i].disabled = true;\n      }\n    },\n    divInsideElementEnableUsingId(id) {\n      var form = document.getElementById(id);\n      var elements = form.elements;\n      for (var i = 0, len = elements.length; i < len; ++i) {\n        elements[i].disabled = false;\n      }\n    },\n    popupElementDisableByClassName(check_edit_or_not) {\n      //var test_name_field = $('#saveDiagnosticReport').find(\"input\").hasClass('decimalremove');\n      // var report_notes = $('#saveDiagnosticReport').find(\"textarea\").hasClass('diagnostic_report_notes');\n      // var image_cancel_button = $('.x-uploader').find(\"button\").hasClass('cancel');\n      // console.log(check_edit_or_not);\n      // console.log(image_cancel_button);\n      if (check_edit_or_not == true) {\n        $('.decimalremove').removeAttr('disabled');\n        $('#saveDiagnosticReport').find('textarea').removeAttr('disabled');\n        //$('#saveDiagnosticReport').find(\"button\").prop('disabled');\n      } else {\n        $('.decimalremove').prop('disabled', true);\n        $('#saveDiagnosticReport').find('textarea').prop('disabled', true);\n        //$('#saveDiagnosticReport').find(\"button\").prop('disabled', false);\n      }\n    },\n    allowOnlyNumber() {\n      $(document).on('input', '.onlynumeric', function () {\n        this.value = this.value.replace(/\\D/g, '');\n      });\n    },\n    PrintAddressLabel() {\n      var _this = this;\n      $(document).on('click', '.PrintAddressLabel ', function (e) {\n        swal({\n          title: 'Are you sure you want to print the address label?',\n          icon: 'warning',\n          buttons: true,\n          dangerMode: true\n        }).then(willDelete => {\n          if (willDelete) {\n            var patient_id = $(this).attr('data-patientid');\n            var appointmentid = $(this).attr('data-appointmentid');\n            _this.get('dkbcPrint').dispatchShippingAddress(patient_id, appointmentid);\n          }\n        });\n      });\n    },\n    checkAjaxRequest() {\n      // ajaxStop\n      $(document).ajaxStop(function () {\n        // Show Re-Print button\n        $('.ajaxButtonHide').css('display', 'block');\n      });\n    },\n    onKeyUpChangeInstructionValue() {\n      // This below jquery code is used to predefind instruction edit for Prescription Shubh Tiwari, 18 August 2023\n      $(document).on('keyup', '.inst_other', function (event) {\n        var initialText = $(this).val();\n        var mouse_over_id = $(this).attr('id');\n        var extract_only_id = mouse_over_id.split('-')[1];\n        // Get the id of the input that has changed\n        var idInputChanged = \"#\" + $(this).attr('aria-describedby');\n        $(idInputChanged).remove();\n        $('.editOption-' + extract_only_id).removeAttr('data-original-title');\n        $('.editOption-' + extract_only_id).removeAttr('value');\n        $('.editOption-' + extract_only_id).val(initialText);\n        $('.editOption-' + extract_only_id).attr('value', initialText);\n        $('.editOption-' + extract_only_id).attr('data-original-title', initialText);\n        //$('.editOption-' + extract_only_id).attr('data-toggle', \"tooltip\");\n        //$('.editOption-'+extract_only_id).attr('data-placement', \"bottom\");\n      });\n    }\n  });\n});","define(\"clinic-dev/services/schedule\", [\"exports\", \"clinic-dev/config/environment\", \"jquery\"], function (_exports, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"clinic-dev/config/environment\",0,\"@ember/service\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ScheduleService = _exports.default = (_dec = Ember.inject.service, _class = class ScheduleService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    getDoctorSchedules(doctorId) {\n      let utoken = this.session.getToken();\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          method: 'GET',\n          url: `${_environment.default.APP.lumen_api_url}nonocp-schedules/${doctorId}`,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            resolve(res.data);\n          },\n          error: function (err) {\n            reject(err);\n          }\n        });\n      });\n    }\n    // 🆕 New method to fetch doctor details\n    getDoctorDetails(doctorId) {\n      let utoken = this.session.getToken();\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          method: 'GET',\n          url: `${_environment.default.APP.lumen_api_url}usertimeslot`,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          data: {\n            doctor_id: doctorId\n          },\n          success: function (res) {\n            const doctorData = res.data;\n            if (doctorData && doctorData.length > 0) {\n              resolve(doctorData[0]); // Return the first doctor\n            } else {\n              reject(new Error('No doctor found'));\n            }\n          },\n          error: function (err) {\n            reject(err);\n          }\n        });\n      });\n    }\n    getDoctorOCPSchedules(doctorId) {\n      let utoken = this.session.getToken();\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          method: 'GET',\n          url: `${_environment.default.APP.lumen_api_url}ocp-schedules/${doctorId}`,\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          success: function (res) {\n            resolve(res.data);\n          },\n          error: function (err) {\n            reject(err);\n          }\n        });\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"clinic-dev/services/service-icpattend\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    recalculateAmount: Ember.inject.service('recalculate-amount'),\n    session: Ember.inject.service('session'),\n    i18n: Ember.inject.service('i18n'),\n    major_condition: null,\n    getMajorConditionService: function (id, patient_id) {\n      var _this = this;\n      let utoken = _this.session.getToken();\n      $.ajax({\n        method: 'GET',\n        url: _environment.default.APP.lumen_api_url + 'majorcondition/' + id + '/' + patient_id,\n        headers: {\n          \"Authorization\": `Bearer ${utoken}`\n        },\n        success: function (res) {\n          _this.set('majorcondition_data', res.data);\n        }\n      });\n    },\n    //For pending details POP-up functionality. This service will return the data & paging variables using callback function\n    pendingDetails: function (patient_id, visit_id, bill_id, page_no = 1, callback) {\n      var _this = this;\n      var page_size = 10;\n      // console.log(page_size);\n      var offset = (page_no - 1) * page_size;\n      var no_of_pages = 1;\n      var num_records = 0;\n      if (patient_id == '') {\n        var message = _this.get('i18n').t('billing.messages.datainsufficient');\n        _this.recalculateAmount.allAlertMessageOfPaymentDetailsComponent(message, 'pendingdetails');\n      } else {\n        var _this = this;\n        let utoken = _this.session.getToken();\n        var base_url = _environment.default.APP.lumen_api_url + 'billing/pendingdetails';\n        $.ajax({\n          url: base_url,\n          method: 'POST',\n          data: {\n            patient_id: patient_id,\n            visit_id: visit_id,\n            billing_id: bill_id,\n            page_no: offset,\n            page_size: page_size\n          },\n          headers: {\n            \"Authorization\": `Bearer ${utoken}`\n          },\n          beforeSend: function () {\n            _this.recalculateAmount.popupLoaderOpen();\n          },\n          success: function (res) {\n            _this.recalculateAmount.showPopupWithPassingDynamicPopupId('pendingdetails');\n            // $('#pendingdetails').modal('show');\n            num_records = res.count;\n            console.log('num_records:' + num_records);\n            no_of_pages = Math.floor(num_records / page_size);\n            if (num_records % page_size > 0) {\n              no_of_pages += 1;\n            }\n            console.log('pageNo:' + page_no);\n            console.log('no_of_pages:' + no_of_pages);\n            callback(res.data, page_no, no_of_pages);\n          },\n          complete: function (res) {\n            _this.recalculateAmount.popupLoaderClose();\n          }\n        });\n      }\n    }\n  });\n});","define(\"clinic-dev/services/session\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/service\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend(Ember.Evented, {\n    router: Ember.inject.service(),\n    idleTimer: Ember.inject.service(),\n    warningTimeout: null,\n    start(value, location, user, user_id, user_type, name, label, shift_id, permission, role_route, printed_by, warningDuration, idleTimeout) {\n      sessionStorage.setItem('stoken', value);\n      sessionStorage.setItem('sloc', location);\n      sessionStorage.setItem('suser', user);\n      sessionStorage.setItem('suser_id', user_id);\n      sessionStorage.setItem('suser_type', user_type);\n      sessionStorage.setItem('suser_name', name);\n      sessionStorage.setItem('suser_label', label);\n      sessionStorage.setItem('suser_shift_id', shift_id);\n      sessionStorage.setItem('permission', permission);\n      sessionStorage.setItem('role_route', role_route);\n      sessionStorage.setItem('printed_by', printed_by);\n      sessionStorage.setItem('warningDuration', warningDuration);\n      sessionStorage.setItem('idleTimeout', idleTimeout);\n      this.idleTimer.startTracking();\n    },\n    end() {\n      sessionStorage.clear();\n\n      // BroadcastChannel for cross-tab sync\n      if ('BroadcastChannel' in window) {\n        const logoutChannel = new BroadcastChannel('logout-channel');\n        logoutChannel.postMessage('logout');\n        logoutChannel.close();\n      }\n\n      // Fallback for older browsers\n      localStorage.setItem('logout-event', Date.now());\n      this.trigger('sessionEnded');\n      //this.clearWarningTimer();\n      this.idleTimer.stopTracking();\n      this.router.transitionTo('login');\n    },\n    getToken() {\n      return sessionStorage.getItem('stoken');\n    },\n    getLocation() {\n      return sessionStorage.getItem('sloc');\n    },\n    getLoggedInUserDetails() {\n      return sessionStorage.getItem('suser');\n    },\n    getLoggedInUserId() {\n      return sessionStorage.getItem('suser_id');\n    },\n    getLoggedInUserType() {\n      return sessionStorage.getItem('suser_type');\n    },\n    getLoggedInUserName() {\n      return sessionStorage.getItem('suser_name');\n    },\n    getLoggedInUserLabel() {\n      return sessionStorage.getItem('suser_label');\n    },\n    getLoggedInUserShift() {\n      return sessionStorage.getItem('suser_shift_id');\n    },\n    getPermissionList() {\n      return sessionStorage.getItem('permission');\n    },\n    getRoleRouteList() {\n      return sessionStorage.getItem('role_route');\n    },\n    printUser() {\n      return sessionStorage.getItem('printed_by');\n    },\n    warningDuration() {\n      return sessionStorage.getItem('warningDuration');\n    },\n    idleTimeout() {\n      return sessionStorage.getItem('idleTimeout');\n    },\n    handleSessionHeaders(headers) {\n      let expiring, remaining;\n\n      // If Fetch API Response\n      if (typeof headers.get === 'function') {\n        expiring = headers.get('X-Session-Expiring');\n        remaining = headers.get('X-Seconds-Remaining');\n      }\n      // If jQuery jqXHR\n      else if (typeof headers.getResponseHeader === 'function') {\n        expiring = headers.getResponseHeader('X-Session-Expiring');\n        remaining = headers.getResponseHeader('X-Seconds-Remaining');\n      }\n      if (expiring === 'true' && remaining) {\n        remaining = parseInt(remaining, 10);\n        alert(`⚠️ Your session will expire in ${remaining} seconds due to inactivity.`);\n        this.clearWarningTimer();\n        this.warningTimeout = Ember.run.later(this, () => {\n          this.end(); // logout + redirect\n        }, remaining * 1000);\n      } else {\n        this.clearWarningTimer();\n      }\n    },\n    clearWarningTimer() {\n      if (this.warningTimeout) {\n        Ember.run.cancel(this.warningTimeout);\n        this.warningTimeout = null;\n      }\n    }\n  });\n});","define(\"clinic-dev/services/shipping-validation\", [\"exports\", \"clinic-dev/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    shippingValidation(addressDetails, branch_id) {\n      var check = $('#dispatch_pickup_details').val();\n      if (check == '1') {\n        var dispatchOrPickup = $('#shipping_box input[name=service]:checked').val();\n        var pharmacyLocation = $('#shipping_box #pharmacy_location').val();\n        var billingLocation = $('#shipping_box #billing_location').val();\n      } else {\n        //var branch_detail = this.session.getLocation().split('-');\n        //var branch_id = branch_detail[0];\n        var dispatchOrPickup = 'P';\n        var pharmacyLocation = branch_id;\n        var billingLocation = branch_id;\n      }\n      //console.log(dispatchOrPickup);\n      var shippingDetails = {\n        dispatchOrPickup: dispatchOrPickup,\n        pharmacyLocation: pharmacyLocation,\n        billingLocation: billingLocation,\n        updateInMaster: addressDetails.updateInMaster,\n        shipping_address_1: addressDetails.shipping_address_1,\n        shipping_address_2: addressDetails.shipping_address_2,\n        shipping_country: addressDetails.shipping_selected_country,\n        shipping_state: addressDetails.shipping_selected_state,\n        shipping_city: addressDetails.shipping_selected_city,\n        shipping_pin_code: addressDetails.shipping_zip,\n        shipping_mobile_no: addressDetails.shipping_mob,\n        shipping_other_state: addressDetails.shipping_other_state,\n        shipping_other_city: addressDetails.shipping_other_city\n      };\n      if (shippingDetails.dispatchOrPickup == '' || shippingDetails.dispatchOrPickup == undefined) {\n        alert('Please select dispatch or pickup option');\n        return false;\n      } else if (shippingDetails.shipping_address_1 == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_address_1 == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please enter shipping address line 1');\n        return false;\n      } else if (shippingDetails.shipping_country == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_country == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please select shipping country');\n        return false;\n      } else if (shippingDetails.shipping_state == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_state == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please select shipping state');\n        return false;\n      } else if (shippingDetails.shipping_city == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_city == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please select shipping city');\n        return false;\n      } else if (shippingDetails.shipping_pin_code == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_pin_code == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please enter shipping pin code');\n        return false;\n      } else if (shippingDetails.shipping_mobile_no == '' && shippingDetails.dispatchOrPickup == 'D' || shippingDetails.shipping_mobile_no == undefined && shippingDetails.dispatchOrPickup == 'D') {\n        alert('Please enter shipping mobile number');\n        return false;\n      } else if (shippingDetails.pharmacyLocation == '' || shippingDetails.pharmacyLocation == undefined) {\n        alert('Please select pharmacy location for dispatch or pickup option');\n        return false;\n      } else if (shippingDetails.billingLocation == '' || shippingDetails.billingLocation == undefined) {\n        alert('Please select billing location for dispatch or pickup option');\n        return false;\n      } else {\n        return shippingDetails;\n      }\n    },\n    deliveryValidation(addressDetails, doctor_id) {\n      var already_archived = $('input[name=already_archived]').val();\n      var dispatch_status = $('input[name=dispatch_status]').val();\n      var patient_id = $('input[name=patient_id]').val();\n      var appointment_id = $('input[name=appointment_id]').val();\n      var ship_address = $('textarea[name=\"shipping_address_column\"]').val();\n      var pharmacyLocation = $('#Pickup_location #pharmacy_location').val();\n      var pickup_address = $('#Pickup_location #pickup_address').val();\n      var courier_company = $('#courier_company_name #courier_company').val();\n      var tracking_id = $('#courier_company_name #tracking_id').val();\n      var shippingDetails = {\n        doctor_id: doctor_id,\n        patient_id: patient_id,\n        appointment_id: appointment_id,\n        pharmacyLocation: pharmacyLocation,\n        pickup_address: pickup_address,\n        courier_company: courier_company,\n        tracking_id: tracking_id,\n        updateInMaster: addressDetails.updateInMaster,\n        shipping_address_1: addressDetails.shipping_address_1,\n        shipping_address_2: addressDetails.shipping_address_2,\n        shipping_country: addressDetails.shipping_selected_country,\n        shipping_state: addressDetails.shipping_selected_state,\n        shipping_city: addressDetails.shipping_selected_city,\n        shipping_pin_code: addressDetails.shipping_zip,\n        shipping_mobile_no: addressDetails.shipping_mob,\n        shipping_other_state: addressDetails.shipping_other_state,\n        shipping_other_city: addressDetails.shipping_other_city,\n        ship_address: ship_address,\n        dispatch_status: dispatch_status,\n        already_archived: already_archived\n      };\n      if (shippingDetails.shipping_address_1 == '' || shippingDetails.shipping_address_1 == undefined) {\n        alert('Please enter delivery address line 1');\n        return false;\n      } else if (shippingDetails.shipping_country == '' || shippingDetails.shipping_country == undefined) {\n        alert('Please select delivery country');\n        return false;\n      } else if (shippingDetails.shipping_state == '' || shippingDetails.shipping_state == undefined) {\n        alert('Please select delivery state');\n        return false;\n      } else if (shippingDetails.shipping_city == '' || shippingDetails.shipping_city == undefined) {\n        alert('Please select delivery city');\n        return false;\n      } else if (shippingDetails.shipping_pin_code == '' || shippingDetails.shipping_pin_code == undefined) {\n        alert('Please enter delivery pin code');\n        return false;\n      } else if (shippingDetails.shipping_mobile_no == '' || shippingDetails.shipping_mobile_no == undefined) {\n        alert('Please enter delivery mobile number');\n        return false;\n      } else if (shippingDetails.pharmacyLocation == '' || shippingDetails.pharmacyLocation == undefined) {\n        alert('Please select pickup location');\n        return false;\n      } else if (shippingDetails.courier_company == '' || shippingDetails.courier_company == undefined) {\n        alert('Please select courier company');\n        $('#courier_company').focus();\n        return false;\n      } else if (shippingDetails.tracking_id == '' || shippingDetails.tracking_id == undefined) {\n        alert('Please enter tracking id');\n        $('#tracking_id').focus();\n        return false;\n      } else {\n        return shippingDetails;\n      }\n    },\n    deliveryOnlyAddressValidation(addressDetails) {\n      var dispatchOrPickup = $('input[type=hidden][name=service]').val();\n      var pharmacyLocation = $('#Pickup_location #pharmacy_location').val();\n      var shippingDetails = {\n        updateInMaster: addressDetails.updateInMaster,\n        shipping_address_1: addressDetails.shipping_address_1,\n        shipping_address_2: addressDetails.shipping_address_2,\n        shipping_country: addressDetails.shipping_selected_country,\n        shipping_state: addressDetails.shipping_selected_state,\n        shipping_city: addressDetails.shipping_selected_city,\n        shipping_pin_code: addressDetails.shipping_zip,\n        shipping_mobile_no: addressDetails.shipping_mob,\n        shipping_other_state: addressDetails.shipping_other_state,\n        shipping_other_city: addressDetails.shipping_other_city,\n        dispatchOrPickup: dispatchOrPickup,\n        pharmacyLocation: pharmacyLocation\n      };\n      if (shippingDetails.shipping_address_1 == '' || shippingDetails.shipping_address_1 == undefined) {\n        alert('Please enter delivery address line 1');\n        return false;\n      } else if (shippingDetails.shipping_country == '' || shippingDetails.shipping_country == undefined) {\n        alert('Please select delivery country');\n        return false;\n      } else if (shippingDetails.shipping_state == '' || shippingDetails.shipping_state == undefined) {\n        alert('Please select delivery state');\n        return false;\n      } else if (shippingDetails.shipping_city == '' || shippingDetails.shipping_city == undefined) {\n        alert('Please select delivery city');\n        return false;\n      } else if (shippingDetails.shipping_pin_code == '' || shippingDetails.shipping_pin_code == undefined) {\n        alert('Please enter delivery pin code');\n        return false;\n      } else if (shippingDetails.shipping_mobile_no == '' || shippingDetails.shipping_mobile_no == undefined) {\n        alert('Please enter delivery mobile number');\n        return false;\n      } else {\n        return shippingDetails;\n      }\n    }\n  });\n});","define(\"clinic-dev/services/slot-lock\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  const STORAGE_KEY = 'slotLockedId';\n  class SlotLockService extends Ember.Service {\n    setLockedSlot(slotLockedId) {\n      localStorage.setItem(STORAGE_KEY, slotLockedId);\n    }\n    getLockedSlot() {\n      return localStorage.getItem(STORAGE_KEY);\n    }\n    clearLockedSlot() {\n      localStorage.removeItem(STORAGE_KEY);\n    }\n  }\n  _exports.default = SlotLockService;\n});","define(\"clinic-dev/services/socket-io\", [\"exports\", \"ember-websockets/services/socket-io\"], function (_exports, _socketIo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _socketIo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-websockets/services/socket-io\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _store.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-data/store\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/services/top-nav-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    isLogin: false,\n    loginUser: '',\n    shiftDetail: '',\n    logindetails(isLogin, username, branchName, shift_id) {\n      localStorage.setItem('isLogin', isLogin);\n      localStorage.setItem('loginUser', username);\n      localStorage.setItem('branchName', branchName);\n      localStorage.setItem('shiftDetail', shift_id);\n    },\n    clearData() {\n      localStorage.clear();\n    },\n    shiftCheck: Ember.computed('shiftDetail', 'topnav', function () {\n      let shiftDetail = localStorage.getItem('shiftDetail');\n      let sss = this.shiftDetail;\n      if (shiftDetail) {\n        this.set('shiftDetail', shiftDetail);\n      } else {\n        this.set('shiftDetail', sss);\n      }\n      return this.shiftDetail;\n    }),\n    branchName: '',\n    branchCheck: Ember.computed('branchName', 'topnav', function () {\n      let branchName = localStorage.getItem('branchName');\n      let bbb = this.branchName;\n      if (branchName) {\n        this.set('branchName', branchName);\n      } else {\n        this.set('branchName', bbb);\n      }\n      return this.branchName;\n    }),\n    loginCheck: Ember.computed('isLogin', 'topnav', function () {\n      let isLogin = localStorage.getItem('isLogin');\n      let lll = this.isLogin;\n      if (isLogin) {\n        this.set('isLogin', isLogin);\n      } else {\n        this.set('isLogin', lll);\n      }\n      return this.isLogin;\n    }),\n    loginUsername: Ember.computed('loginUser', 'topnav', function () {\n      let loginUser = localStorage.getItem('loginUser');\n      let luu = this.loginUser;\n      if (loginUser) {\n        this.set('loginUser', loginUser);\n      } else {\n        this.set('loginUser', luu);\n      }\n      return this.loginUser;\n    })\n  });\n});","define(\"clinic-dev/services/user-permissions-service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Service.extend({\n    session: Ember.inject.service('session'),\n    //dashboard permission\n    canAbsentees: Ember.computed(function () {\n      var permission_list = this.session.getPermissionList();\n      let permissionToCheck = 3;\n      let userHasPermission = permission_list.indexOf(permissionToCheck) > -1;\n      return userHasPermission;\n    }),\n    canCompletedvisits: Ember.computed(function () {\n      var permission_list = this.session.getPermissionList();\n      let permissionToCheck = '4';\n      let userHasPermission = permission_list.indexOf(permissionToCheck) > -1;\n      return userHasPermission;\n    }),\n    canMedicineCompletedvisits: Ember.computed(function () {\n      var permission_list = this.session.getPermissionList();\n      let permissionToCheck = '50';\n      let userHasPermission = permission_list.indexOf(permissionToCheck) > -1;\n      return userHasPermission;\n    }),\n    canAppointmentPanel: Ember.computed(function () {\n      var permission_list = this.session.getPermissionList();\n      let permissionToCheck = '36';\n      let userHasPermission = permission_list.indexOf(permissionToCheck) > -1;\n      return userHasPermission;\n    }),\n    can(permissionName) {\n      let permissionList = this.session.getPermissionList() || '';\n      return permissionList.split(',').map(p => p.trim()).includes(permissionName);\n    },\n    routNameList() {\n      let permission_list = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '23', '26', '27', '28', '29', '30', '31', '32', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67'];\n      return permission_list;\n    },\n    // Or create a generic function to check any permission (good for checking in a function)\n    canCurrentUser(permissionToCheck) {\n      let permissions = localStorage.getItem('permissions');\n      return permissions.indexOf(permissionToCheck) > -1;\n    }\n  });\n});","define(\"clinic-dev/services/websocket\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",1,\"laravel-echo\",1,\"pusher-js\",1,\"clinic-dev/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class WebsocketService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"echo\", null);\n      _defineProperty(this, \"isInitialized\", false);\n    }\n    async initialize() {\n      if (this.isInitialized) {\n        return this.echo;\n      }\n      try {\n        // Ensure window.exports is defined for Laravel Echo compatibility\n        if (typeof window !== 'undefined' && !window.exports) {\n          window.exports = {};\n        }\n\n        // Dynamic imports to handle module compatibility\n        const [{\n          default: Echo\n        }, {\n          default: Pusher\n        }] = await Promise.all([import(\"laravel-echo\"), import(\"pusher-js\")]);\n\n        // Configure Pusher\n        window.Pusher = Pusher;\n\n        // Get configuration from environment\n        const {\n          default: ENV\n        } = await import(\"clinic-dev/config/environment\");\n        const envConfig = ENV('development');\n\n        // WebSocket configuration\n        const config = {\n          broadcaster: 'pusher',\n          key: envConfig.APP.PUSHER_APP_KEY,\n          cluster: envConfig.APP.PUSHER_APP_CLUSTER,\n          wsHost: envConfig.APP.PUSHER_HOST,\n          wsPort: envConfig.APP.PUSHER_PORT,\n          wssPort: envConfig.APP.PUSHER_PORT,\n          forceTLS: envConfig.APP.PUSHER_SCHEME === 'https',\n          enabledTransports: ['ws', 'wss'],\n          disableStats: true\n        };\n\n        // Initialize Echo\n        this.echo = new Echo(config);\n        this.isInitialized = true;\n        console.log('WebSocket Echo initialized successfully');\n        return this.echo;\n      } catch (error) {\n        console.error('Failed to initialize WebSocket Echo:', error);\n        // Create a mock echo object to prevent errors\n        this.echo = {\n          channel: () => ({\n            listen: () => {},\n            whisper: () => {}\n          }),\n          leaveChannel: () => {}\n        };\n        this.isInitialized = true;\n        return this.echo;\n      }\n    }\n    async subscribeToSlotUpdates(branchId, callbacks) {\n      const echo = await this.initialize();\n      const channelName = `appointments.branch.${branchId}`;\n      try {\n        const channel = echo.channel(channelName);\n        if (callbacks.onSlotLocked) {\n          channel.listen('SlotLocked', callbacks.onSlotLocked);\n        }\n        if (callbacks.onSlotUnlocked) {\n          channel.listen('SlotUnlocked', callbacks.onSlotUnlocked);\n        }\n        return channel;\n      } catch (error) {\n        console.error('Failed to subscribe to slot updates:', error);\n        return null;\n      }\n    }\n    async broadcastSlotUpdate(channelName, eventName, data) {\n      const echo = await this.initialize();\n      try {\n        const channel = echo.channel(channelName);\n        channel.whisper(eventName, data);\n      } catch (error) {\n        console.error('Failed to broadcast slot update:', error);\n      }\n    }\n    async unsubscribe(channelName) {\n      if (this.echo) {\n        try {\n          this.echo.leaveChannel(channelName);\n        } catch (error) {\n          console.error('Failed to unsubscribe from channel:', error);\n        }\n      }\n    }\n  }\n  _exports.default = WebsocketService;\n});","define(\"clinic-dev/services/websockets\", [\"exports\", \"ember-websockets/services/websockets\"], function (_exports, _websockets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _websockets.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-websockets/services/websockets\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/templates/application\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0kh01/2/\",\n    \"block\": \"[[[1,[28,[35,0],null,[[\\\"currentControllerBinding\\\",\\\"loginUsername\\\",\\\"loginCheck\\\",\\\"branchName\\\",\\\"shiftDetail\\\",\\\"permissionsDetail\\\",\\\"roleRoutePermissionsCheckDetail\\\",\\\"resetHeader\\\"],[\\\"application\\\",[33,1],[33,2],[33,3],[33,4],[33,5],[33,6],[28,[37,7],[[30,0],\\\"resetHeader\\\"],null]]]]],[1,\\\"\\\\n\\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n\\\"],[1,[34,10]],[1,\\\"\\\\n\\\"]],[],false,[\\\"header-component\\\",\\\"loginUsername\\\",\\\"loginCheck\\\",\\\"branchCheck\\\",\\\"shiftCheck\\\",\\\"permissionsCheck\\\",\\\"roleRoutePermissionsCheck\\\",\\\"action\\\",\\\"component\\\",\\\"-outlet\\\",\\\"footer-component\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/application.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/appointment-detail\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gCxNIhsE\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"TransactionalReoprt\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"date_of_appointment\\\",\\\"currentYear\\\",\\\"date_of_appointment\\\",\\\"Select date\\\",[33,8],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,1,\\\"location_id\\\"],[14,3,\\\"location_id\\\"],[15,2,[36,9]],[14,0,\\\"login location-field form-control\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select a Location \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,12]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"<div class=\\\\\\\"col-xs-2\\\\\\\">\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<select id=\\\\\\\"shift_id\\\\\\\" name=\\\\\\\"shift_id\\\\\\\" class=\\\\\\\"login shift-field form-control\\\\\\\">\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"\\\\\\\"> Select a Shift </option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"1\\\\\\\">Morning</option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"2\\\\\\\">Evening</option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t</select>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t</div>\\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"OldReportsButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"pull-left btn btn-secondary show\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"refreshAssignPatientModule\\\",\\\"old\\\"],null],[12],[1,\\\"Old Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[\\\"NewReportsButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"pull-left btn btn-success show\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"refreshAssignPatientModule\\\",\\\"new\\\"],null],[12],[1,\\\"New Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ExportButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2 pull-right text-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"exportAppointments\\\",[33,14]],null],[12],[1,\\\"Export\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"CompletedVisits\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,15],null,[[\\\"completedAppointments\\\",\\\"completeReportsTypes\\\"],[[33,16],[33,17]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"MedicineCompletedVisits\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,18],null,[[\\\"completedMedicineAppointments\\\",\\\"medComReportType\\\"],[[33,19],[33,20]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"MedicineCompletedVisits\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,21],null,[[\\\"EmailRepeatMedicineComplete\\\",\\\"EmailRMmedComReportType\\\"],[[33,22],[33,23]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"Patients\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,24],null,[[\\\"branchAppointments\\\"],[[33,25]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,26],null,[[\\\"branchAppointments\\\"],[[33,25]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"DoctorsList\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t   \\\"],[1,[28,[35,27],null,[[\\\"assigned\\\"],[[33,28]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,29]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"branch\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"date_of_appointment\\\",\\\"location_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"branches\\\",\\\"action\\\",\\\"user_shift_id\\\",\\\"completed-visits\\\",\\\"completed\\\",\\\"com_report_type\\\",\\\"completed-medicine-visits\\\",\\\"medicinecompleted\\\",\\\"med_com_report_type\\\",\\\"completed-emailrm-medicine-visits\\\",\\\"EmailRepeatMedicinePatientsBillComplete\\\",\\\"emailrm_med_com_report_type\\\",\\\"not-completed-appointment-daily\\\",\\\"branchAppointments\\\",\\\"not-completed-onspot-daily\\\",\\\"assigned-patient-daily\\\",\\\"assigned\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/appointment-detail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/appointment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/KcrynMC\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"SearchAppointments\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Search Appointments\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_date\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"appointment_date\\\"],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"ressetCounter\\\"],null]],[14,1,\\\"appointment_date\\\"],[15,2,[29,[[36,5]]]],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-2 text-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_status\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"input\\\"],[14,3,\\\"urgent_status\\\"],[14,1,\\\"urgent_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"textarea\\\"],[14,3,\\\"urgenttagnote\\\"],[14,\\\"rows\\\",\\\"1\\\"],[14,1,\\\"urgenttagnote\\\"],[14,0,\\\"form-control marginleft5\\\"],[14,\\\"row\\\",\\\"3\\\"],[14,5,\\\"display:none;width:100%;\\\"],[14,\\\"placeholder\\\",\\\"Enter reason\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Appointment Type\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info appointment_buttons appointmentType_buttons appointmenttype_\\\",[30,1,[\\\"code\\\"]]]]],[16,1,[29,[\\\"appointmenttype_\\\",[30,1,[\\\"code\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"appointmentType\\\",[30,1,[\\\"code\\\"]],[30,1,[\\\"name\\\"]]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row location_row\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"OCP Visit Address\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\"],[10,\\\"textarea\\\"],[14,3,\\\"ocp_visit_address\\\"],[14,1,\\\"ocp_visit_address\\\"],[14,0,\\\"form-control marginleft5\\\"],[14,\\\"row\\\",\\\"3\\\"],[14,\\\"placeholder\\\",\\\"OCP Visit Address\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row branch_div\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branches\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,9,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info appointment_buttons branch_\\\",[30,2,[\\\"id\\\"]]]]],[16,1,[29,[\\\"branch_\\\",[30,2,[\\\"id\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"branchAppointments\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"title\\\"]]],null],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctors\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Doctor\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-9 button-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"data\\\"]],[[[42,[28,[37,7],[[28,[37,7],[[28,[37,11],[[33,10,[\\\"data\\\"]],6],null]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"button-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,3]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info selecteddoctor appointment_buttons doctor_\\\",[30,4,[\\\"user_id\\\"]]]]],[16,1,[29,[\\\"doctor_\\\",[30,4,[\\\"user_id\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"doctorAppointments\\\",[30,4,[\\\"user_id\\\"]],[33,9,[\\\"data\\\"]],[33,12]],null],[12],[1,[30,4,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"SearchPatient\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Search Patient\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[14,5,\\\"height: 65px !important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Search Patient \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Patient Name or ID\\\",[33,14]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary pull-right\\\"],[24,4,\\\"submit\\\"],[4,[38,4],[[30,0],\\\"search_patient\\\"],null],[12],[1,\\\"Search\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"col-xs-1 text-center\\\"],[12],[1,\\\"OR\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"col-xs-1 btn btn-warning new_patient_register\\\"],[12],[1,\\\"Register\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"Start Patient List\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"listing patient_list\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Patient Id\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Name\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Gender\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Phone\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Address\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Amount\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t   \\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,15]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[30,5,[\\\"priority\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,16],[[30,5,[\\\"OldRegistrationNo\\\"]]],null]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"title_prefix\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"gender\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[30,5,[\\\"mobile_res\\\"]],[[[1,\\\" \\\"],[1,[30,5,[\\\"mobile_res\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[30,5,[\\\"phone_res\\\"]],[[[1,\\\" \\\"],[1,[30,5,[\\\"phone_res\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"full_address_per\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                \\\"],[41,[28,[37,17],[[30,5,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,18],[[30,5,[\\\"balance_amount\\\"]]],null]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"input\\\"],[24,3,\\\"select_patient\\\"],[24,0,\\\"onspotradio\\\"],[24,2,\\\"patient.id\\\"],[24,4,\\\"radio\\\"],[4,[38,4],[[30,0],\\\"patientDetail\\\",[30,5,[\\\"id\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tSorry, No patient found.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" {{pagination-component stats=stats p=p}} \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination pull-left\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,4],[[30,0],\\\"prev\\\",[33,19],[33,20]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,4],[[30,0],\\\"next\\\",[33,19],[33,20]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"enter\\\"],[\\\"text\\\",\\\"pagination_input\\\",[33,20],[28,[37,4],[[30,0],\\\"goto\\\"],null]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t   of \\\"],[1,[33,19,[\\\"total_pages\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"End Patient List \\\"],[1,\\\"\\\\n        \\\"],[1,[28,[35,21],null,[[\\\"currentControllerBinding\\\",\\\"countries\\\",\\\"discount_categories\\\",\\\"selected_discount_category\\\",\\\"pstates\\\",\\\"cities\\\",\\\"mode\\\",\\\"is_rescheduled\\\",\\\"patient_id\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"selected_state\\\",\\\"selected_city\\\",\\\"country\\\",\\\"zip\\\",\\\"note\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"blood_type\\\",\\\"email_id\\\",\\\"reloadDashboard\\\",\\\"button_clicked\\\",\\\"priority\\\",\\\"getDoctorCharges\\\",\\\"category\\\",\\\"editPage\\\",\\\"setMedicineTotalandPendingValue\\\",\\\"ResetPopupPaymentMode\\\",\\\"releaseHoldSlot\\\"],[\\\"appointment\\\",[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,33],[33,34],[33,35],[33,36],[33,37],[33,38],[33,39],[33,40],[33,41],[33,42],[33,43],[33,44],[33,45],[33,46],[33,47],[33,48],[33,49],[33,50],[28,[37,4],[[30,0],\\\"reloadDashboard\\\"],null],[33,51],[33,52],\\\"getDoctorCharges\\\",[33,53],[33,54],\\\"setMedicineTotalandPendingValue\\\",\\\"ResetPopupPaymentMode\\\",\\\"releaseHoldSlot\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"DoctorAppointmentsTimeslot\\\",[33,3]],null],[[[41,[28,[37,55],[[33,56],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,57],null,[[\\\"result\\\",\\\"appointments\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"nextAvailableDates\\\",\\\"nextDates\\\",\\\"prevDates\\\",\\\"prev_week\\\"],[[33,58,[\\\"data\\\"]],[33,59,[\\\"data\\\"]],[33,60,[\\\"data\\\"]],[33,12],[28,[37,4],[[30,0],\\\"nextAvailableDates\\\"],null],[28,[37,4],[[30,0],\\\"nextDates\\\"],null],[28,[37,4],[[30,0],\\\"prevDates\\\"],null],[33,61]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"Doctor based time slot Shubh Tiwari 13 Dec 2025\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t \\\"],[1,[28,[35,62],null,[[\\\"result\\\",\\\"appointments\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"nextAvailableDates\\\",\\\"nextDates\\\",\\\"prevDates\\\",\\\"prev_week\\\"],[[33,58,[\\\"data\\\"]],[33,59,[\\\"data\\\"]],[33,60,[\\\"data\\\"]],[33,12],[28,[37,4],[[30,0],\\\"nextAvailableDates\\\"],null],[28,[37,4],[[30,0],\\\"nextDates\\\"],null],[28,[37,4],[[30,0],\\\"prevDates\\\"],null],[33,61]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"AppointmentsTimeslot\\\",[33,3]],null],[[[41,[28,[37,55],[[33,56],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,63],null,[[\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\"],[[33,10,[\\\"data\\\"]],[33,64,[\\\"data\\\"]],[33,65],[33,66],[33,67]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"Branch based time slot, Shubh Tiwari 13 Dec 2025\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,68],null,[[\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\"],[[33,10,[\\\"data\\\"]],[33,64,[\\\"data\\\"]],[33,65],[33,66],[33,67]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t \\\"],[1,[28,[35,69],null,[[\\\"first_name\\\",\\\"last_name\\\",\\\"middle_name\\\",\\\"OldRegistrationNo\\\",\\\"same_as_shipping\\\",\\\"shipping_full_address_per\\\",\\\"shipping_full_address_res\\\",\\\"shipping_country_id\\\",\\\"shipping_state_id\\\",\\\"shipping_city_id\\\",\\\"shipping_pin_code\\\",\\\"shipping_mobile\\\",\\\"shipping_state_name\\\",\\\"shipping_city_name\\\",\\\"slotLockedId\\\"],[[33,31],[33,33],[33,32],[33,70],[33,71],[33,72],[33,73],[33,74],[33,75],[33,76],[33,77],[33,78],[33,79],[33,80],[33,81]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t \\\"],[1,[28,[35,82],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"doctorcharges\\\",\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"getDoctorCharges\\\",\\\"paymentcomplete\\\",\\\"page\\\",\\\"advance_payment_type\\\"],[[33,83],[33,84],[33,85],[33,86],[33,87],[33,88],[33,89],[33,90],[33,91],[33,92],\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"getDoctorCharges\\\",\\\"paymentcomplete\\\",\\\"appointment\\\",\\\"appointment_id\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\"],[1,[34,93]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"type\\\",\\\"branch\\\",\\\"buttonRow\\\",\\\"userdata\\\",\\\"patient\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"appointment_date\\\",\\\"each\\\",\\\"-track-array\\\",\\\"appointment_types\\\",\\\"branches\\\",\\\"result\\\",\\\"chunked-array\\\",\\\"time_slot_array\\\",\\\"input\\\",\\\"q\\\",\\\"patients\\\",\\\"text-highlight\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"stats\\\",\\\"p\\\",\\\"patient-registration\\\",\\\"countries\\\",\\\"discount_categories\\\",\\\"selected_discount_category\\\",\\\"pstates\\\",\\\"cities\\\",\\\"mode\\\",\\\"is_rescheduled\\\",\\\"patient_id\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"selected_state\\\",\\\"selected_city\\\",\\\"country\\\",\\\"zip\\\",\\\"note\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"blood_type\\\",\\\"email_id\\\",\\\"button_clicked\\\",\\\"priority\\\",\\\"category\\\",\\\"editPage\\\",\\\"ifeg\\\",\\\"appointment_type\\\",\\\"ocp-appointment-doctor-component\\\",\\\"resultD\\\",\\\"appointmentsD\\\",\\\"branchesD\\\",\\\"prev_week\\\",\\\"appointment-doctor-component\\\",\\\"ocp-appointment-slots\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\",\\\"appointment-overview-component\\\",\\\"appointment-submit-component\\\",\\\"OldRegistrationNo\\\",\\\"same_as_shipping\\\",\\\"shipping_full_address_per\\\",\\\"shipping_full_address_res\\\",\\\"shipping_country_id\\\",\\\"shipping_state_id\\\",\\\"shipping_city_id\\\",\\\"shipping_pin_code\\\",\\\"shipping_mobile\\\",\\\"shipping_state_name\\\",\\\"shipping_city_name\\\",\\\"slotLockedId\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"doctorcharges\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/appointment.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/appointment/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JXcnp1V4\",\n    \"block\": \"[[[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"inputEmail3\\\"],[14,0,\\\"col-sm-2 form-control-label\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"inputEmail3\\\"],[14,\\\"placeholder\\\",\\\"Email\\\"],[15,2,[33,0,[\\\"ap_id\\\"]]],[14,4,\\\"email\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"inputPassword3\\\"],[14,0,\\\"col-sm-2 form-control-label\\\"],[12],[1,\\\"Password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"inputPassword3\\\"],[14,\\\"placeholder\\\",\\\"Password\\\"],[14,4,\\\"password\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"Radios\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,3,\\\"gridRadios\\\"],[14,1,\\\"gridRadios1\\\"],[14,2,\\\"option1\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                Option one is this and that—be sure to include why it's great\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,3,\\\"gridRadios\\\"],[14,1,\\\"gridRadios2\\\"],[14,2,\\\"option2\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                Option two can be something else and selecting it will deselect option one\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"radio disabled\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,3,\\\"gridRadios\\\"],[14,1,\\\"gridRadios3\\\"],[14,2,\\\"option3\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                Option three is disabled\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"Checkbox\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Check me out\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-sm-offset-2 col-sm-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Sign in\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"model\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/appointment/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/appointment/new\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"XUEUA9j1\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/appointment/new.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"AtRYCBju\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/billeddetails\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"wNc/4cHZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\\n\\\"],[1,[28,[35,1],null,[[\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"visit_charges\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"transaction_mode\\\",\\\"visitMedDiscount\\\",\\\"visitConsDiscount\\\",\\\"visitTotalReceived\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"partial_transaction_mode\\\",\\\"more_mode\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"pharmacy_message\\\",\\\"visitBillingHistory\\\",\\\"lastPreviousPaidAmount\\\",\\\"previous_bill_amount\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"med_discount_reason\\\",\\\"consultacy_reason\\\",\\\"history_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"refund\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"reprintOptions\\\",\\\"setprintType\\\",\\\"getRePrints\\\",\\\"medicineEditPopup\\\",\\\"user_permission\\\",\\\"gateway_charge\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_total_charge\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"PGAmount\\\",\\\"billeddetails_total\\\",\\\"removeMedicineDiscount\\\",\\\"removeWaiveConsutancy\\\",\\\"print_option\\\",\\\"previous_bill_paid_amount\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGamount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"lastPaidAmount\\\",\\\"applyPGCharge\\\",\\\"openPaymentPopup\\\",\\\"page\\\",\\\"getTotalTransaction\\\",\\\"visitTransactionList\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"total_received_label\\\",\\\"normalpgcurentdue\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"normalAminusBminusC\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"enableButton\\\",\\\"address_mismatch\\\"],[[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[33,19],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,33],[33,34],[33,35],[33,36],[33,37],[33,38],[33,39],0,[33,40],[33,41],[28,[37,42],[[30,0],\\\"reprintOptions\\\"],null],[28,[37,42],[[30,0],\\\"setprintType\\\"],null],[28,[37,42],[[30,0],\\\"getRePrints\\\"],null],[28,[37,42],[[30,0],\\\"medicineEditPopup\\\"],null],[33,43],[33,44],[33,45],[33,46],[33,47],[33,48],[33,49],[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[33,56],[33,57],[28,[37,42],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,42],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[33,58],[33,59],[33,60],[33,61],[33,62],[33,63],[33,64],[33,65],[33,66],[33,67],[33,68],[33,69],[33,70],[28,[37,42],[[30,0],\\\"applyPGCharge\\\"],null],[28,[37,42],[[30,0],\\\"openPaymentPopup\\\"],null],[33,0],\\\"getTotalTransaction\\\",\\\"visitTransactionList\\\",[33,71],[33,72],[33,73],[33,74],[33,75],[33,76],[33,77],[33,78],[33,79],[33,80],[33,81],[33,82],[33,83],[33,84],[33,85]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" This model is used for cash popup\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,86],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"doctor_fees\\\",\\\"billpatientlist\\\",\\\"ResetPGAmount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\"],[[33,87],[33,88],[33,89],[33,25],[33,26],[33,90],[33,91],[33,4],\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",[33,13],[33,12],\\\"ResetPGAmount\\\",[33,67],[33,68],[33,69]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,92],null,[[\\\"transction_details\\\"],[[33,93]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,94],null,[[\\\"total_transction_details\\\",\\\"total_transction\\\",\\\"resetTransactionDetails\\\"],[[33,95],[33,57],[33,96]]]]]],[],false,[\\\"page\\\",\\\"billed-details-component\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"visit_charges\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"transaction_mode\\\",\\\"visitMedDiscount\\\",\\\"visitConsDiscount\\\",\\\"visitTotalReceived\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"visit_pending_amount\\\",\\\"partial_transaction_mode\\\",\\\"more_mode\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"pharmacy_message\\\",\\\"visitBillingHistory\\\",\\\"lastPreviousPaidAmount\\\",\\\"previous_bill_amount\\\",\\\"billing_user_name\\\",\\\"billing_time\\\",\\\"med_discount_reason\\\",\\\"consultacy_reason\\\",\\\"import_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"refundStatus\\\",\\\"PGChargeDisable\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"action\\\",\\\"permission_arr\\\",\\\"billed_gateway_charge\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"total_charge\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"PGAmount\\\",\\\"total_transction\\\",\\\"print_option\\\",\\\"previous_bill_paid_amount\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGamount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"lastPaidAmount\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"total_received_label\\\",\\\"normalpgcurentdue\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"normalAminusBminusC\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edited_by\\\",\\\"last_prescription_edited_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"enableButton\\\",\\\"address_mismatch\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"transaction-details-list\\\",\\\"transction_details\\\",\\\"transaction-history-popup\\\",\\\"total_transction_details\\\",\\\"resetTransactionDetails\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/billeddetails.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/billedpatient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"f8Dygu9Q\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,1],null,[[\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"visit_charges\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"transaction_mode\\\",\\\"visitMedDiscount\\\",\\\"visitConsDiscount\\\",\\\"visitTotalReceived\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"partial_transaction_mode\\\",\\\"more_mode\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"pharmacy_message\\\",\\\"visitBillingHistory\\\",\\\"previous_bill_amount\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"med_discount_reason\\\",\\\"consultacy_reason\\\",\\\"history_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"refund\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"reprintOptions\\\",\\\"setprintType\\\",\\\"getRePrints\\\",\\\"medicineEditPopup\\\",\\\"user_permission\\\",\\\"gateway_charge\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_total_charge\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"PGAmount\\\",\\\"removeMedicineDiscount\\\",\\\"removeWaiveConsutancy\\\",\\\"print_option\\\",\\\"lastPreviousPaidAmount\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGamount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"lastPaidAmount\\\",\\\"applyPGCharge\\\",\\\"openPaymentPopup\\\",\\\"page\\\",\\\"getTotalTransaction\\\",\\\"visitTransactionList\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"total_received_label\\\",\\\"normalpgcurentdue\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"normalAminusBminusC\\\",\\\"pastMedicineEditPopup\\\",\\\"visitEdit\\\",\\\"without_prescription_reason\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"enableButton\\\",\\\"editEnableButton\\\",\\\"address_mismatch\\\"],[[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[33,19],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,33],[33,34],[33,35],[33,36],[33,37],[33,38],0,[33,39],[33,40],[28,[37,41],[[30,0],\\\"reprintOptions\\\"],null],[28,[37,41],[[30,0],\\\"setprintType\\\"],null],[28,[37,41],[[30,0],\\\"getRePrints\\\"],null],[28,[37,41],[[30,0],\\\"medicineEditPopup\\\"],null],[33,42],[33,43],[33,44],[33,45],[33,46],[33,47],[33,48],[33,49],[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[28,[37,41],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,41],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[33,56],[33,57],[33,58],[33,59],[33,60],[33,61],[33,62],[33,63],[33,64],[33,65],[33,66],[33,67],[33,68],[28,[37,41],[[30,0],\\\"applyPGCharge\\\"],null],[28,[37,41],[[30,0],\\\"openPaymentPopup\\\"],null],[33,0],\\\"getTotalTransaction\\\",\\\"visitTransactionList\\\",[33,69],[33,70],[33,71],[33,72],[33,73],[33,74],[28,[37,41],[[30,0],\\\"pastMedicineEditPopup\\\"],null],[33,75],[33,76],[33,77],[33,78],[33,79],[33,80],[33,81],[33,82],[33,83],[33,84],[33,85],[33,86]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" This model is used for cash popup\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,87],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"doctor_fees\\\",\\\"billpatientlist\\\",\\\"ResetPGAmount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\"],[[33,88],[33,89],[33,90],[33,25],[33,26],[33,91],[33,92],[33,4],\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",[33,13],[33,12],\\\"ResetPGAmount\\\",[33,65],[33,66],[33,67]]]]],[1,\\\"\\\\n\\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,93],null,[[\\\"transction_details\\\"],[[33,94]]]]],[1,\\\"\\\\n\\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,95],null,[[\\\"total_transction_details\\\",\\\"total_transction\\\"],[[33,96],[33,97]]]]]],[],false,[\\\"page\\\",\\\"prescribed-details-component\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"visit_charges\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"transaction_mode\\\",\\\"visitMedDiscount\\\",\\\"visitConsDiscount\\\",\\\"visitTotalReceived\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"visit_pending_amount\\\",\\\"partial_transaction_mode\\\",\\\"more_mode\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"pharmacy_message\\\",\\\"visitBillingHistory\\\",\\\"previous_bill_amount\\\",\\\"billing_user_name\\\",\\\"billing_time\\\",\\\"med_discount_reason\\\",\\\"consultacy_reason\\\",\\\"import_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"refundStatus\\\",\\\"PGChargeDisable\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"action\\\",\\\"permission_arr\\\",\\\"billed_gateway_charge\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"total_charge\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"PGAmount\\\",\\\"print_option\\\",\\\"lastPreviousPaidAmount\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGamount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"lastPaidAmount\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"total_received_label\\\",\\\"normalpgcurentdue\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"normalAminusBminusC\\\",\\\"visitEdit\\\",\\\"without_prescription_reason\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edited_by\\\",\\\"last_prescription_edited_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"enableButton\\\",\\\"editEnableButton\\\",\\\"address_mismatch\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"transaction-details-list\\\",\\\"transction_details\\\",\\\"transaction-history-popup\\\",\\\"total_transction_details\\\",\\\"total_transction\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/billedpatient.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/billing\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"D3fF6onp\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                         \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"123456\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Giacomo Guilizzoni\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"VIP\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"KAB\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"10:06am\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Consultancy\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"22%\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"8%\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13%\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"20%\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[14,0,\\\"cw-scrollable_table\\\"],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Daily once, after breakfast\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"-\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 2 hrs\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 4 hrs\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"2\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,\\\"width\\\",\\\"100%\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"19.5%\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"<Mix Name>\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"9.5%\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"7%\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"7%\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 1 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 2 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                     \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 3 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"2\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Daily once, after breakfast\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"-\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 2 hrs\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 4 hrs\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                     \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"3\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"3\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Daily once, after breakfast\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"-\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 2 hrs\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 4 hrs\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"4\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,\\\"width\\\",\\\"100%\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"19.5%\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"<Mix Name>\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"9.5%\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"7%\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"7%\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 1 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 2 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                     \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Med 3 in mix\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Daily once, after breakfast\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"-\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 2 hrs\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 4 hrs\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"5\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"L\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Daily once, after breakfast\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"-\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 2 hrs\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"option\\\"],[12],[1,\\\"2 and 3 alternately every 4 hrs\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print-option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,2,\\\"international\\\"],[14,3,\\\"print-option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-offset-1 col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Medicine Total\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Consultancy\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Pending\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-3 col-md-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Box Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn cw-btn-circle-lg btn-danger\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Shipping Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn cw-btn-circle-lg btn-danger\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total with Tax\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cash\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                           \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Card\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                           \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Debit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" This model is used for cash popup\\\"],[1,\\\"\\\\n\\\"]],[],false,[\\\"page\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/billing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/billpatient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"R7l6rAg1\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,1],null,[[\\\"waived_amount\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"setprintType\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"medicineEditPopup\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"previous_bill_amount\\\",\\\"previous_gateway_amount\\\",\\\"visit_charges\\\",\\\"previous_total_charge\\\",\\\"history_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"applyDiscountCharge\\\",\\\"addDiscountReason\\\",\\\"removeMedicineDiscount\\\",\\\"consultancyWave\\\",\\\"consultancyWaivedReason\\\",\\\"removeWaiveConsutancy\\\",\\\"addCharge\\\",\\\"removeAddedOtherCharge\\\",\\\"onChangesAddCharge\\\",\\\"addOtherCharge\\\",\\\"clearDisccountinput\\\",\\\"print_option\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"openPaymentPopup\\\",\\\"page\\\",\\\"applyPGCharge\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"onKeyupPGCalculation\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"medicin_eprepared\\\",\\\"address_mismatch\\\"],[[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[28,[37,17],[[30,0],\\\"setprintType\\\"],null],[33,18],[33,19],[28,[37,17],[[30,0],\\\"medicineEditPopup\\\"],null],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,2],[33,33],[33,34],[28,[37,17],[[30,0],\\\"applyDiscountCharge\\\"],null],[28,[37,17],[[30,0],\\\"addDiscountReason\\\"],null],[28,[37,17],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,17],[[30,0],\\\"consultancyWave\\\"],null],[28,[37,17],[[30,0],\\\"consultancyWaivedReason\\\"],null],[28,[37,17],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[28,[37,17],[[30,0],\\\"addCharge\\\"],null],[28,[37,17],[[30,0],\\\"removeAddedOtherCharge\\\"],null],[28,[37,17],[[30,0],\\\"onChangesAddCharge\\\"],null],[28,[37,17],[[30,0],\\\"addOtherCharge\\\"],null],[28,[37,17],[[30,0],\\\"clearDisccountinput\\\"],null],[33,35],[33,36],[33,37],[33,38],[33,39],[33,40],[33,41],[33,42],[33,43],[33,44],[33,45],[28,[37,17],[[30,0],\\\"openPaymentPopup\\\"],null],[33,0],[28,[37,17],[[30,0],\\\"applyPGCharge\\\"],null],[33,46],[33,47],[33,48],[28,[37,17],[[30,0],\\\"onKeyupPGCalculation\\\"],null],[33,49],[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[33,56],[33,57],[33,58],[33,59],[33,60],[33,61],[33,62]]]]],[1,\\\"\\\\n\\\"],[3,\\\" This model is used for cash popup\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,63],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"doctor_fees\\\",\\\"billpatientlist\\\",\\\"ResetPGAmount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\"],[[33,64],[33,65],[33,66],[33,20],[33,21],[33,67],[33,68],[33,5],\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",[33,9],[33,8],\\\"ResetPGAmount\\\",[33,48],[33,49],[33,50]]]]]],[],false,[\\\"page\\\",\\\"prescribe-detail-component\\\",\\\"consultancy_waived_amount\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"action\\\",\\\"medicine_normal_discount\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"previous_bill_amount\\\",\\\"previous_gateway_amount\\\",\\\"visit_charges\\\",\\\"total_charge\\\",\\\"import_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"print_option\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"last_prescription_edited_by\\\",\\\"last_prescription_edited_date\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"medicin_eprepared\\\",\\\"address_mismatch\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/billpatient.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/correctbill\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Wckj0BRT\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,1],null,[[\\\"waived_amount\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"setprintType\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"pastMedicineEditPopup\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"previous_bill_amount\\\",\\\"previous_gateway_amount\\\",\\\"visit_charges\\\",\\\"previous_total_charge\\\",\\\"history_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"applyDiscountCharge\\\",\\\"addDiscountReason\\\",\\\"removeMedicineDiscount\\\",\\\"consultancyWave\\\",\\\"consultancyWaivedReason\\\",\\\"removeWaiveConsutancy\\\",\\\"addCharge\\\",\\\"removeAddedOtherCharge\\\",\\\"onChangesAddCharge\\\",\\\"addOtherCharge\\\",\\\"clearDisccountinput\\\",\\\"print_option\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"openPaymentPopup\\\",\\\"page\\\",\\\"applyPGCharge\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"onKeyupPGCalculation\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\"],[[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[28,[37,17],[[30,0],\\\"setprintType\\\"],null],[33,18],[33,19],[28,[37,17],[[30,0],\\\"pastMedicineEditPopup\\\"],null],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,2],[33,33],[33,34],[28,[37,17],[[30,0],\\\"applyDiscountCharge\\\"],null],[28,[37,17],[[30,0],\\\"addDiscountReason\\\"],null],[28,[37,17],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,17],[[30,0],\\\"consultancyWave\\\"],null],[28,[37,17],[[30,0],\\\"consultancyWaivedReason\\\"],null],[28,[37,17],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[28,[37,17],[[30,0],\\\"addCharge\\\"],null],[28,[37,17],[[30,0],\\\"removeAddedOtherCharge\\\"],null],[28,[37,17],[[30,0],\\\"onChangesAddCharge\\\"],null],[28,[37,17],[[30,0],\\\"addOtherCharge\\\"],null],[28,[37,17],[[30,0],\\\"clearDisccountinput\\\"],null],[33,35],[33,36],[33,37],[33,38],[33,39],[33,40],[33,41],[33,42],[33,43],[33,44],[33,45],[28,[37,17],[[30,0],\\\"openPaymentPopup\\\"],null],[33,0],[28,[37,17],[[30,0],\\\"applyPGCharge\\\"],null],[33,46],[33,47],[33,48],[28,[37,17],[[30,0],\\\"onKeyupPGCalculation\\\"],null],[33,49],[33,50],[33,51],[33,52],[33,53],[33,54],[33,55]]]]],[1,\\\"\\\\n\\\"],[3,\\\" This model is used for cash popup\\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,56],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"doctor_fees\\\",\\\"billpatientlist\\\",\\\"ResetPGAmount\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"billDate\\\"],[[33,57],[33,58],[33,59],[33,20],[33,21],[33,60],[33,61],[33,5],\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",[33,9],[33,8],\\\"ResetPGAmount\\\",[33,48],[33,49],[33,50],[33,62]]]]]],[],false,[\\\"page\\\",\\\"correctbill-component\\\",\\\"consultancy_waived_amount\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"action\\\",\\\"medicine_normal_discount\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"previous_bill_amount\\\",\\\"previous_gateway_amount\\\",\\\"visit_charges\\\",\\\"total_charge\\\",\\\"import_visit_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"print_option\\\",\\\"PrescribingDoctor\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"PGChargeDisable\\\",\\\"pgAmountText\\\",\\\"PGChargePercentage\\\",\\\"PGChargeChecked\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"billDate\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/correctbill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"dnnGofGG\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"     \\\"],[1,[28,[35,4],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body list patient-history\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                   \\\"],[6,[39,5],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15\\\",\\\"Patient History\\\",\\\"billing.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\"  Back \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\" table-responsive cware\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\" In Clinic Patients \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover history-patient \\\"],[14,1,\\\"billing_history\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"100px;\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\"Appointment Type\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"160px;\\\"],[12],[1,\\\"Prescribed Date/Time\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"120px;\\\"],[12],[1,\\\"Prescribed Details\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"flash\\\"],false,[\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/history.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"LjkswB31\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"V+pzswi/\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,6],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"row\\\"],[14,1,\\\"billing-dashboard\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PatientHistory\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-right\\\"],[24,\\\"title\\\",\\\"Shift Report\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"openShiftReportPopup\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Shift Report\\\"],[13],[1,\\\"\\\\n                            \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right marginbottom15\\\",\\\"Patient History\\\",\\\"billing.history\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[12],[13],[1,\\\" Patient History \\\"]],[]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"tab\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"tablinks PendingPatients active\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"openBillingList\\\",\\\"PendingPatients\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Pending Patients\\\"],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"tablinks BilledPatients\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"openBillingList\\\",\\\"BilledPatients\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Billed Patients\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"PendingPatients\\\"],[14,0,\\\"tabcontent\\\"],[14,5,\\\"display: block;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"InClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" In Clinic Patients \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doctor\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Prescribed Time\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,11]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,2,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,2,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                        \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,2,[\\\"appointment_booked_branch\\\"]],[30,2,[\\\"appointment_billed_branch\\\"]],[30,2,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,2,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"                                                            \\\"],[10,\\\"sup\\\"],[14,0,\\\"ml-2 top\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Already Prescribed\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,12],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[41,[28,[37,12],[[30,2,[\\\"med_flag\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,5,\\\"cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Medicine Prepared\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/med-flag.jpg\\\"],[14,\\\"width\\\",\\\"23\\\"],[14,\\\"height\\\",\\\"23\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,2,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,2,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,2,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[[41,[28,[37,7],[\\\"BilledPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.prescribe\\\",[28,[37,15],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit \\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-info btn-xs \\\",[52,[28,[37,12],[[30,2,[\\\"tab_status\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"checkPatientInDoctorQueue\\\",[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"prescribe_doc_name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,2,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],[[[1,\\\"                                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs ml-2\\\"],[24,\\\"title\\\",\\\"Remove Billing in-progress\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"removeBillingInProgress\\\",[30,2,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-unlock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"RepeatMedicinePatientsLIst\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Repeat Medicine Patients \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover repeatmedicine\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"70%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Request Time\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,16]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,3,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,3,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"70%\\\"],[12],[1,[30,3,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,3,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"                                                            \\\"],[10,\\\"sup\\\"],[14,0,\\\"ml-2 top\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Already Prescribed\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,12],[[30,3,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,3,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,3,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,3,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,3,[\\\"appointment_time_2\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,3,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[[41,[28,[37,7],[\\\"RepeatPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.prescribe\\\",[28,[37,15],[[30,3,[\\\"appointment_id\\\"]],[30,3,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,7],[\\\"RepeatPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.billpatient\\\",[28,[37,15],[[30,3,[\\\"appointment_id\\\"]],[30,3,[\\\"billing_id\\\"]],[30,3,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"InClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" OCP Patients \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"45%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doctor\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Prescribed Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,17]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,4,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,4,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,4,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"45%\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,4,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,4,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,4,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                      \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase ml-2 location-wrap\\\"],[12],[1,[28,[35,13],[[30,4,[\\\"appointment_booked_branch\\\"]],[30,4,[\\\"appointment_billed_branch\\\"]],[30,4,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,4,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"                                                            \\\"],[10,\\\"sup\\\"],[14,0,\\\"ml-2 top\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Already Prescribed\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,12],[[30,4,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,4,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[41,[28,[37,12],[[30,4,[\\\"med_flag\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,5,\\\"cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Medicine Prepared\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/med-flag.jpg\\\"],[14,\\\"width\\\",\\\"23\\\"],[14,\\\"height\\\",\\\"23\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,4,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,4,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,4,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,4,[\\\"prescribe_datetime\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button vertical-align-middle\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,4,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.prescribe\\\",[28,[37,15],[[30,4,[\\\"appointment_id\\\"]],[30,4,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit \\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-info btn-xs \\\",[52,[28,[37,12],[[30,4,[\\\"tab_status\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"checkPatientInDoctorQueue\\\",[30,4,[\\\"appointment_id\\\"]],[30,4,[\\\"billing_id\\\"]],[30,4,[\\\"patient_id\\\"]],[30,4,[\\\"prescribe_doc_name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,4,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],[[[1,\\\"                                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs ml-2\\\"],[24,\\\"title\\\",\\\"Remove Billing in-progress\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"removeBillingInProgress\\\",[30,4,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-unlock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"InClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Email RM Patients \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"REQUEST DATE/TIME\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"PRES DETAILS\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,18]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,5,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,5,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65%\\\"],[12],[1,[30,5,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"                                                            \\\"],[10,\\\"sup\\\"],[14,0,\\\"ml-2 top\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Already Prescribed\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,12],[[30,5,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,5,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,5,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,5,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,5,[\\\"appointment_time_2\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5,[\\\"billing_id\\\"]],\\\"0\\\"],null],[[[41,[28,[37,7],[\\\"RepeatPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.prescribe\\\",[28,[37,15],[[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,7],[\\\"RepeatPrescribeDetails\\\",[33,8]],null],[[[1,\\\"                                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-xs\\\",\\\"Prescribe Details\\\",\\\"billing.billpatient\\\",[28,[37,15],[[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"billing_id\\\"]],[30,5,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"BilledPatients\\\"],[14,0,\\\"tabcontent\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPatientList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Billed In Clinic Patient Orders \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doc\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Time\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Bill Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,19]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,6,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,6,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,[30,6,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                        \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,6,[\\\"appointment_booked_branch\\\"]],[30,6,[\\\"appointment_billed_branch\\\"]],[30,6,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,6,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,6,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,6,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,6,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,15],[[30,6,[\\\"appointment_id\\\"]],[30,6,[\\\"billing_id\\\"]],[30,6,[\\\"patient_id\\\"]],[30,6,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledRepeatList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Billed Repeat Medicine Patient Orders \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Request Time\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Bill Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"RMBilledRepeatDetails\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,20]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,7,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,7,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,[30,7,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,7,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,7,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,7,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,7,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,7,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,7,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,7,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,7,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"RMBilledRepeatDetails\\\",[33,8]],null],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,15],[[30,7,[\\\"appointment_id\\\"]],[30,7,[\\\"billing_id\\\"]],[30,7,[\\\"patient_id\\\"]],[30,7,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPatientList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Billed OCP Patient Orders \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"30%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doc\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Pres Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Bill Date\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,21]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,9,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,9,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,9,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"30%\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,9,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                        \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,9,[\\\"appointment_booked_branch\\\"]],[30,9,[\\\"appointment_billed_branch\\\"]],[30,9,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,9,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,9,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,9,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,9,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,9,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,9,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,9,[\\\"prescribe_datetime\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,9,[\\\"complete_datetime\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"vertical-align-middle\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,15],[[30,9,[\\\"appointment_id\\\"]],[30,9,[\\\"billing_id\\\"]],[30,9,[\\\"patient_id\\\"]],[30,9,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPatientList\\\",[33,8]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Billed Email RM Patient Orders \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"REQUEST DATE/TIME\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"BILL TIME\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,22]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,10,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,10,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,[30,10,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,10,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,10,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                        \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,10,[\\\"appointment_booked_branch\\\"]],[30,10,[\\\"appointment_billed_branch\\\"]],[30,10,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,10,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,10,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,10,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                            \\\"],[1,[30,10,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,10,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,10,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"RMBilledRepeatDetails\\\",[33,8]],null],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,15],[[30,10,[\\\"appointment_id\\\"]],[30,10,[\\\"billing_id\\\"]],[30,10,[\\\"patient_id\\\"]],[30,10,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[10,11]],[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        Sorry, No record found.\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" This component is used for shift report popup \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,23],null,[[\\\"collectiondata\\\",\\\"shift\\\",\\\"confirmCloseShift\\\"],[[33,24],[33,25],[28,[37,9],[[30,0],\\\"confirmCloseShift\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[34,26]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"index\\\",\\\"patient\\\",\\\"patient\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"link-to\\\",\\\"clinicPatients\\\",\\\"eq\\\",\\\"show-billing-pharmacy-name\\\",\\\"booked-from-badge\\\",\\\"array\\\",\\\"RepeatMedicinePatients\\\",\\\"OCPPatients\\\",\\\"EmailRepeatMedicinePatients\\\",\\\"clinicPatientsBillComplete\\\",\\\"RepeatMedicinePatientsBillComplete\\\",\\\"OCPPatientsBillComplete\\\",\\\"EmailRepeatMedicinePatientsBillComplete\\\",\\\"shift-report-popup\\\",\\\"collectiondata\\\",\\\"shift\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/pastprescribeedit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jlae1DWz\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"1\\\"],null],[[[6,[39,4],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15\\\",\\\"Back to Bill Patient\\\",\\\"billing.correctbill\\\",[28,[37,5],[[33,6,[\\\"0\\\",\\\"id\\\"]],[33,7],[33,6,[\\\"0\\\",\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"          Back \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right marginbottom15\\\"],[24,\\\"title\\\",\\\"Back To Billed Patient Details\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-8 table-responsive cware cwtable-expand\\\"],[14,1,\\\"cw-details-table\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-8\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-uppercase margintop0px\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[33,9,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[33,9,[\\\"middle_name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[33,9,[\\\"last_name\\\"]]],[1,\\\"\\\\n                -\\\\n\\\"],[41,[33,9,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                \\\"],[1,[33,9,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time/Request Time\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,6]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"                      \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,13],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,12],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row p-add-button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-lg-8\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm add-prescription-medicine pull-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[\\\"FactorZero\\\",[33,15]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,16,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[1,[28,[35,17],null,[[\\\"flash\\\"],[[30,3]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"          \\\"],[10,0],[14,1,\\\"visitmessage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"precribetable-data\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"form\\\"],[24,1,\\\"cwPrescribeForm\\\"],[4,[38,8],[[30,0],\\\"billingDataSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"prescribing_doc_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,7]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"page\\\"],[14,1,\\\"prescribeedit\\\"],[14,2,\\\"errorcorrection\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_edit_reason\\\"],[14,1,\\\"medicine_edit_reason\\\"],[15,2,[29,[[33,18,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"importvisitid\\\"],[14,1,\\\"importvisitid\\\"],[15,2,[29,[[33,18,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"importvisitid\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"onthefly_discount\\\"],[14,1,\\\"onthefly_discount\\\"],[15,2,[29,[[36,19]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_discount_reason\\\"],[14,1,\\\"medicine_discount_reason\\\"],[15,2,[29,[[36,20]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_print_code\\\"],[14,1,\\\"medicine_print_code\\\"],[15,2,[29,[[36,21]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_fees\\\"],[14,1,\\\"consultancy_fees\\\"],[15,2,[29,[[36,22]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_waive_type\\\"],[14,1,\\\"consultancy_waive_type\\\"],[15,2,[29,[[36,23]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_print_code\\\"],[14,1,\\\"consultancy_print_code\\\"],[15,2,[29,[[36,24]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_waived_reason\\\"],[14,1,\\\"consultancy_waived_reason\\\"],[15,2,[29,[[36,25]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_location\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[33,18,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"billing_location\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"pharmacy_location\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[33,18,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"pharmacy_location\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"previous_other_charge\\\"],[14,1,\\\"previous_other_charge\\\"],[15,2,[29,[[36,26]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billDate\\\"],[14,1,\\\"billDate\\\"],[15,2,[29,[[36,27]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,28]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,29]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,30],null,[[\\\"errors_list\\\"],[[33,31]]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-prescribe-edit prescribeedit\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"check_all\\\"],[14,1,\\\"checkAll\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                  \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,32],[[33,18],[33,33]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n               \\\"],[10,0],[14,0,\\\"row p-add-button\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-lg-8\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n                          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[\\\"FactorZero\\\",[33,15]],null],[[[1,\\\"                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"label\\\"],[14,0,\\\"sort capitalize\\\"],[12],[1,\\\"Do NOT sort medicines by serial number when saving    \\\"],[10,\\\"input\\\"],[14,1,\\\"sort-serial\\\"],[14,0,\\\"sort-serial\\\"],[14,2,\\\"sort_serial\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"col-xs-2 text-right status-label capitalize\\\"],[12],[1,\\\"Instructions/Notes    \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,34],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,35,[\\\"0\\\",\\\"data\\\",\\\"pharmacy_instruction\\\"]]]]]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,36],null,[[\\\"pharmacyHistory\\\"],[[33,37]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-8\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\"\\\\n                    Combo Prescription\\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Medicine\\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[12],[13],[1,\\\" Reset Serial No\\\"],[13],[1,\\\"\\\\n                  \\\"],[3,\\\"This button is used for getting the All possible forms for mix, Rahul khan 09 Sept 2019\\\"],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,18,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Edit Reason:\\\"],[13],[1,\\\"\\\\n                      \\\"],[1,[33,18,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"reasonEdit\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm apply_reasons_edit\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"reasonEdit\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-2 pull-right text-right\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\" Proceed to billing\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4 table-responsive cware cwtable-collaps\\\"],[14,1,\\\"ce-History-Import\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-lg-6\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Visit History\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-lg-3\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm pbutton\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"prescribeeeditClearCheckbox\\\",[33,6,[\\\"0\\\",\\\"id\\\"]],[33,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-lg-3\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm pbutton parent_history\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" Import\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"visit-history-list-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,38,[\\\"0\\\"]],[[[42,[28,[37,39],[[33,38,[\\\"0\\\"]]],null],null,[[[1,\\\"              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"cleartable\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,40],[[30,4,[\\\"date\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"doctor_name\\\",\\\"label\\\"]],[[[1,\\\"                      \\\"],[1,[30,4,[\\\"doctor_name\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    RM\\\\n\\\"]],[]]],[1,\\\"                \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[30,4]],null],null,[[[41,[30,6,[\\\"id\\\"]],[[[41,[28,[37,2],[[30,6,[\\\"midicine_type\\\"]],\\\"single\\\"],null],[[[1,\\\"                  \\\"],[10,\\\"li\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable\\\"],[15,\\\"data-medicineId\\\",[29,[[30,6,[\\\"id\\\"]]]]],[14,3,\\\"parent_history\\\"],[15,\\\"data-appointment\\\",[29,[[30,4,[\\\"appointment\\\"]]]]],[15,\\\"data-billing\\\",[29,[[30,4,[\\\"billing\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,6,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,6,[\\\"medicine_name\\\"]]],[1,\\\", \\\"],[1,[30,6,[\\\"potency_name\\\"]]],[1,\\\" , \\\"],[1,[30,6,[\\\"form_name\\\"]]],[1,\\\" ,\\\\n                    \\\"],[1,[30,6,[\\\"dilution_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,2],[[30,6,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,\\\" \\\"],[1,[30,6,[\\\"vial\\\"]]],[1,\\\"\\\\n                    \\\"]],[]]],[1,\\\" Vials\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,6,[\\\"midicine_type\\\"]],\\\"mix\\\"],null],[[[1,\\\"                  \\\"],[10,\\\"li\\\"],[14,\\\"title\\\",\\\"Mix Medicine\\\"],[15,0,[29,[[30,6,[\\\"midicine_type\\\"]]]]],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable\\\"],[15,\\\"data-medicineId\\\",[29,[[30,6,[\\\"id\\\"]]]]],[14,3,\\\"parent_history\\\"],[15,\\\"data-billing\\\",[29,[[30,4,[\\\"billing\\\"]]]]],[15,\\\"data-appointment\\\",[29,[[30,4,[\\\"appointment\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,6,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,6,[\\\"medicine_name\\\"]]],[1,\\\" ,\\\\n                    \\\"],[1,[30,6,[\\\"form_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,2],[[30,6,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,\\\" \\\"],[1,[30,6,[\\\"vial\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\"\\\\n                    Vials\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"li\\\"],[14,\\\"title\\\",\\\"On the fly mix medicine\\\"],[15,0,[29,[[30,6,[\\\"midicine_type\\\"]]]]],[12],[10,\\\"input\\\"],[15,\\\"data-medicineId\\\",[29,[[30,6,[\\\"id\\\"]]]]],[14,0,\\\"cleartable\\\"],[14,3,\\\"parent_history\\\"],[15,\\\"data-billing\\\",[29,[[30,4,[\\\"billing\\\"]]]]],[15,\\\"data-appointment\\\",[29,[[30,4,[\\\"appointment\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,6,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,6,[\\\"medicine_name\\\"]]],[1,\\\" , \\\"],[1,[30,6,[\\\"form_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,2],[[30,6,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,\\\"\\\\n                    \\\"],[1,[30,6,[\\\"vial\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\" Vials\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null]],[6,7]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"              \\\"],[10,\\\"li\\\"],[14,1,\\\"history-loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"50\\\"],[14,\\\"height\\\",\\\"50\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,41],[[33,38,[\\\"count\\\"]],[33,38,[\\\"total\\\"]]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-corner\\\"],[24,\\\"title\\\",\\\"Load More History\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"loadMoreHistory\\\",[33,38,[\\\"count\\\"]],[33,38,[\\\"patient_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Load More +\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,\\\"li\\\"],[12],[1,\\\"No History Found \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" mix medicine popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwMixMedicine\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ClearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Add Mix\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"error\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_cwMixform\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_medmix_name\\\"],[12],[1,\\\"Mix Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"prescribe_medmix_name\\\",\\\"off\\\",\\\"Enter Mix Name\\\",\\\"prescribe_medmix_name\\\",[33,43]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ClearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwComboInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ClearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"dosageerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"dosage_instructionForm\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"selecteddosage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"Dosage Instruction:\\\\n              \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"select\\\"],[14,3,\\\"comboprescription\\\"],[14,0,\\\"form-control cwareinstruction comboprescription iother\\\"],[14,1,\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,33]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[12],[1,[30,8,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,0,\\\"otherOption\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ClearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Instruction popup html \\\"],[1,\\\"\\\\n\\\"],[3,\\\" Medicine Edit Reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"MedicineEditReasonPopup\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Edit Reason\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"edit_reasonerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"editReasonForm\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"edit_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"edit_reason\\\",\\\"form-control\\\",\\\"Enter edit reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"flash\\\",\\\"history\\\",\\\"key\\\",\\\"med_value\\\",\\\"key1\\\",\\\"instlist\\\"],false,[\\\"page\\\",\\\"if\\\",\\\"ifeg\\\",\\\"backpage\\\",\\\"link-to\\\",\\\"array\\\",\\\"PrescribePatient\\\",\\\"billing_id\\\",\\\"action\\\",\\\"PrescribePatientHead\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"prescribe_edit\\\",\\\"onthefly_discount\\\",\\\"medicine_discount_reason\\\",\\\"medicine_print_code\\\",\\\"consultancy_fees\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_print_code\\\",\\\"consultancy_waived_reason\\\",\\\"previous_edit_page_visit_charges\\\",\\\"billDate\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine-edit\\\",\\\"instruction\\\",\\\"textarea\\\",\\\"billpatient\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"PatientHistory\\\",\\\"-each-in\\\",\\\"date-format\\\",\\\"lessthen\\\",\\\"input\\\",\\\"instruction_name\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/pastprescribeedit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/prescribe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"dqXUiY8Y\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-8 table-responsive cware cwtable-expand\\\"],[14,1,\\\"cw-details-table\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-uppercase margintop0px\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[33,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[33,1,[\\\"middle_name\\\"]]],[1,\\\"\\\\n                                \\\"],[1,[33,1,[\\\"last_name\\\"]]],[1,\\\"\\\\n                                -\\\\n\\\"],[41,[33,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                    \\\"],[1,[33,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,3],[[33,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                    \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[33,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[1,[28,[35,4],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[33,1,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"VisitHistoryButton\\\",[33,6]],null],[[[1,\\\"                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm btn2 float-right\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Visit History\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\"  <th>Patient Id</th>\\\\n                                        <th>Patient Name</th>\\\"],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time/Request Time\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,3],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\" <td> {{#if presdata.OldRegistrationNo}}\\\\n                                                {{presdata.OldRegistrationNo}}\\\\n                                            {{else}}\\\\n                                                <span>NP</span>\\\\n                                            {{/if}}                                        </td>\\\\n                                        <td >{{capitalize presdata.first_name}} {{capitalize presdata.middle_name}} {{capitalize presdata.last_name}}\\\\n{{#if presdata.label}}\\\\n\\\\n                                            {{else}}\\\\n                                                <sup><i class=\\\\\\\"fa fa-repeat\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\" title=\\\\\\\"Repeat Medicine\\\\\\\"></i></sup>\\\\n                                            {{/if}}\\\\n                                        </td>\\\"],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row prec-add-button\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-lg-8\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"0\\\"]],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"prescribedatedoctor clearpresription_code\\\"],[12],[1,\\\"\\\\n                                    (\\\\n\\\"],[41,[33,10,[\\\"0\\\",\\\"visit_date\\\"]],[[[1,\\\"                                        \\\"],[1,[28,[35,11],[[33,10,[\\\"0\\\",\\\"visit_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[1,[28,[35,11],[[33,10,[\\\"0\\\",\\\"creation_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]],[[[1,\\\"                                        , \\\"],[1,[33,10,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]],[[[1,\\\"                                        , \\\"],[10,1],[14,0,\\\"visit_mode\\\"],[12],[1,[33,10,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]],[[[1,\\\"                                        , \\\"],[10,1],[14,0,\\\"prescribed_branch\\\"],[12],[1,[33,10,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    )\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm add-prescription-medicine pull-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"FactorZero\\\",[33,6]],null],[[[1,\\\"                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,13,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[1,[28,[35,14],null,[[\\\"flash\\\"],[[30,3]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                    \\\"],[10,0],[14,1,\\\"visitmessage\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"precribetable-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"form\\\"],[24,1,\\\"cwPrescribeForm\\\"],[4,[38,12],[[30,0],\\\"billingDataSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,9,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[33,9,[\\\"0\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[29,[[33,9,[\\\"0\\\",\\\"prescribing_doc_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"page\\\"],[14,2,\\\"prescribeadd\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"importvisitid\\\"],[14,1,\\\"importvisitid\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,15]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,16]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,1,\\\"shipping_billing_location\\\"],[14,3,\\\"shipping_billing_location\\\"],[15,2,[29,[[36,17]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[10,\\\"input\\\"],[14,3,\\\"previous_other_charge\\\"],[14,1,\\\"previous_other_charge\\\"],[15,2,[29,[[36,18]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"errors_list\\\"],[[33,20]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-prescribe\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"check_all\\\"],[14,1,\\\"checkAll\\\"],[14,0,\\\"checkAll\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[33,10],\\\"0\\\"],null],[[[1,\\\"                                    \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,22],[[33,10],[33,23]],null]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                        \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                                        \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-1\\\"],[14,\\\"data-order\\\",\\\"1\\\"],[14,0,\\\"tableRow previousRow\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,1,\\\"checkboxid-1\\\"],[14,0,\\\"geometry\\\"],[14,\\\"data-id\\\",\\\"1\\\"],[14,3,\\\"check\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control srno-1 srnoItem\\\"],[14,\\\"minlength\\\",\\\"1\\\"],[14,\\\"maxlength\\\",\\\"4\\\"],[14,1,\\\"srno-1\\\"],[14,3,\\\"srnoItem[1]\\\"],[14,2,\\\"1\\\"],[14,\\\"data-uniqueserial\\\",\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,20,[\\\"srnoItem\\\"]]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"cw-search-box\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"medicineItem[1]\\\"],[14,0,\\\"form-control prescribeinput dosage-1 medicineItem\\\"],[14,1,\\\"medicine_name-1\\\"],[14,\\\"medicine_status\\\",\\\"notset\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,\\\"placeholder\\\",\\\"Type min 3 char to search\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_type[1]\\\"],[14,1,\\\"medicine_type-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_id[1]\\\"],[14,1,\\\"medicine_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,2],[14,1,\\\"results1\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"potencyItem[1]\\\"],[14,0,\\\"form-control potency-1 potencyItem\\\"],[14,1,\\\"potency-1\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"potency_id[1]\\\"],[14,1,\\\"potency_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"dilutionItem[1]\\\"],[14,0,\\\"form-control dilution-1 dilutionItem\\\"],[14,1,\\\"dilution-1\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"dilution_id[1]\\\"],[14,1,\\\"dilution_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,3,\\\"formItem[1]\\\"],[14,0,\\\"form-control slectform-1 formItem\\\"],[14,1,\\\"prescribeform-1\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Form\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"factorItem[1]\\\"],[14,0,\\\"form-control factor-1 factorItem onlynumeric\\\"],[14,1,\\\"factor-1\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineVial[1]\\\"],[14,0,\\\"form-control medicinevial-1 medicinevialItem onlynumeric\\\"],[14,1,\\\"medicinevial-1\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"select\\\"],[14,3,\\\"instructionItem[1]\\\"],[14,0,\\\"form-control instructionItem cwareinstruction-1 iother-1\\\"],[14,1,\\\"instruction-1\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,23]],null]],null],null,[[[1,\\\"                                                                \\\"],[10,\\\"option\\\"],[14,0,\\\"editable-1\\\"],[15,2,[29,[[30,4,[\\\"instruction_name\\\"]]]]],[12],[1,\\\"\\\\n                                                                    \\\"],[1,[30,4,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"edit_instruction-1\\\"],[14,3,\\\"instruction[1]\\\"],[14,0,\\\"editOption-1 inst_other\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"bottom\\\"],[14,\\\"data-original-title\\\",\\\"\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row prec-add-button\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[3,\\\"<input type=\\\\\\\"hidden\\\\\\\" name=\\\\\\\"billing_id\\\\\\\" value=\\\\\\\"{{billing_id}}\\\\\\\">\\\"],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"FactorZero\\\",[33,6]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Clear Prescription\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"ClearPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Clear Prescr.\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[12],[13],[1,\\\" Reset S. No.\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Med\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\" Combo Prescr.\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\"This button is used for getting the All possible forms for mix, Rahul khan 09 Sept 2019\\\"],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency_form\\\"],[14,1,\\\"medi_form_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,0,\\\"sort capitalize\\\"],[12],[1,\\\"Do NOT sort medicines by serial number when saving    \\\"],[10,\\\"input\\\"],[14,1,\\\"sort-serial\\\"],[14,0,\\\"sort-serial\\\"],[14,2,\\\"sort_serial\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"col-xs-2 text-right status-label capitalize\\\"],[12],[1,\\\"Instructions/Notes   \\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,24],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,25]]]]],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,26],null,[[\\\"pharmacyHistory\\\"],[[33,27]]]]],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-lg-12 pull-right text-right\\\"],[12],[1,\\\"\\\\n                                    \\\"],[6,[39,28],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\" btn btn-warning btn-sm\\\",\\\"Back to Billing Dashboard\\\",\\\"billing.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"]],[]]]]],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\" Proceed to billing\\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n               \\\"],[3,\\\" <div class=\\\\\\\"col-lg-4 table-responsive cware cwtable-collaps\\\\\\\" id=\\\\\\\"ce-History-Import\\\\\\\">\\\\n                    <div class=\\\\\\\"row\\\\\\\">\\\\n                        <div class=\\\\\\\"col-lg-6\\\\\\\">\\\\n                            <h3>Visit History</h3>\\\\n                        </div>\\\\n{{#if PatientHistory.[0]}}\\\\n                            <div class=\\\\\\\"col-lg-3\\\\\\\"><button class=\\\\\\\"btn btn-default btn-sm pbutton cleartable\\\\\\\" type=\\\\\\\"button\\\\\\\" {{action \\\\\\\"historyClearCheckbox\\\\\\\"  on=\\\\\\\"click\\\\\\\" }}> Clear</button></div>\\\\n                            <div class=\\\\\\\"col-lg-3\\\\\\\"><button class=\\\\\\\"btn btn-success btn-sm pbutton parent_history\\\\\\\" type=\\\\\\\"button\\\\\\\">\\\\n                                    Import</button></div>\\\\n                        {{/if}}                    </div>\\\\n                    <div class=\\\\\\\"visit-history-list-data\\\\\\\">\\\\n                        <ul>\\\\n{{#if PatientHistory.[0]}}\\\\n                                {{#each-in PatientHistory.[0] as |key history|}}\\\\n                                    <li>\\\\n                                        <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" />\\\\n                                        <span class=\\\\\\\"prescribedatedoctor\\\\\\\">\\\\n                                            {{#if history.prescription.date}}\\\\n                                                {{date-format history.prescription.date}}\\\\n                                            {{else}}\\\\n                                                {{date-format key}}\\\\n                                            {{/if}}\\\\n                                            {{#if history.prescription.doctor_name.label}}\\\\n                                                {{history.prescription.doctor_name.label}}\\\\n                                            {{else}}\\\\n                                                {{#if (not history.prescription)}}\\\\n                                                {{else}}\\\\n                                                    RM\\\\n                                                {{/if}}\\\\n                                            {{/if}}\\\\n                                        </span>\\\\n                                        <br>\\\\n                                        <ul>\\\\n                                            {{#each-in history.prescription as |key1 med_value|}}\\\\n                                                {{#if med_value.id}}\\\\n                                                    {{#if (ifeg med_value.midicine_type 'single')}}\\\\n                                                        <li><input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" />\\\\n                                                            <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}}, {{med_value.potency_name}} , {{med_value.form_name}} ,\\\\n                                                            {{med_value.dilution_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}} {{med_value.vial}}\\\\n                                                            {{/if}} Vials</li>\\\\n                                                    {{else}}\\\\n                                                        {{#if (ifeg med_value.midicine_type 'mix')}}\\\\n                                                            <li title=\\\\\\\"Mix Medicine\\\\\\\" class=\\\\\\\"{{med_value.midicine_type}}\\\\\\\"><input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" /> <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}} ,\\\\n                                                                {{med_value.form_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}} {{med_value.vial}} {{/if}}\\\\n                                                                Vials</li>\\\\n                                                        {{else}}\\\\n                                                            <li title=\\\\\\\"On the fly mix medicine\\\\\\\" class=\\\\\\\"{{med_value.midicine_type}}\\\\\\\"><input type=\\\\\\\"checkbox\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" />\\\\n                                                                <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}} , {{med_value.form_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}}\\\\n                                                                    {{med_value.vial}} {{/if}} Vials</li>\\\\n                                                        {{/if}}\\\\n                                                    {{/if}}\\\\n                                                {{/if}}\\\\n                                            {{/each-in}}\\\\n                                            {{#if (not history.prescription)}}\\\\n                                                <li>No medicine prescribed on this date</li>\\\\n                                            {{/if}}\\\\n                                        </ul>\\\\n                                    </li>\\\\n                                {{/each-in}}\\\\n                                <li id='history-loader' style='display: none; text-align: -webkit-center;'>\\\\n                                    <img src='/img/loader.gif' width=\\\\\\\"50\\\\\\\" height=\\\\\\\"50\\\\\\\">\\\\n                                    <span>Please Wait...</span>\\\\n                                </li>\\\\n                                {{#if (lessthen PatientHistory.count PatientHistory.total)}}\\\\n                                    <button class=\\\\\\\"btn btn-info btn-sm pull-corner\\\\\\\" title=\\\\\\\"Load More History\\\\\\\" type=\\\\\\\"button\\\\\\\" {{action \\\\\\\"loadMoreHistory\\\\\\\"  PatientHistory.count PatientHistory.patient_id  on=\\\\\\\"click\\\\\\\" }}>Load\\\\n                                        More + </button>\\\\n                                {{/if}}\\\\n                            {{else}}\\\\n                                <li>No History Found </li>\\\\n                            {{/if}}                        </ul>\\\\n                    </div>\\\\n                </div>  \\\"],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Visit History component popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,29],null,[[\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"loadMoreHistory\\\",\\\"historyClearCheckbox\\\",\\\"clearSelectedCheckbox\\\"],[[33,30],[33,31],[33,32],[28,[37,12],[[30,0],\\\"loadMoreHistory\\\"],null],[28,[37,12],[[30,0],\\\"historyClearCheckbox\\\"],null],[28,[37,12],[[30,0],\\\"clearSelectedCheckbox\\\"],null]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" mix medicine popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwMixMedicine\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Add Mix\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"error\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_cwMixform\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_medmix_name\\\"],[12],[1,\\\"Mix Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,33],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"prescribe_medmix_name\\\",\\\"off\\\",\\\"Enter Mix Name\\\",\\\"prescribe_medmix_name\\\",[33,34]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwComboInstruction\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"dosageerror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"dosage_instructionForm\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"selecteddosage\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"Dosage\\\\n                            Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,3,\\\"comboprescription\\\"],[14,0,\\\"form-control cwareinstruction comboprescription iother\\\"],[14,1,\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,23]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,2,[29,[[30,5,[\\\"instruction_name\\\"]]]]],[12],[1,[30,5,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,0,\\\"otherOption\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Instruction popup html \\\"],[1,\\\"\\\\n\\\"]],[\\\"presdata\\\",\\\"index\\\",\\\"flash\\\",\\\"instlist\\\",\\\"instlist\\\"],false,[\\\"page\\\",\\\"PrescribePatientHead\\\",\\\"if\\\",\\\"eq\\\",\\\"booked-from-badge\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"last_visit_history\\\",\\\"last-visit-date-format\\\",\\\"action\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"shipping_billing_location\\\",\\\"previous_edit_page_visit_charges\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"ifnoteq\\\",\\\"last-visit-list\\\",\\\"instruction\\\",\\\"textarea\\\",\\\"precribe_pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"link-to\\\",\\\"visit-history-component-popup\\\",\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"input\\\",\\\"instruction_name\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/prescribe.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/billing/prescribeedit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"BcZrOrfh\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-money-bill-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"1\\\"],null],[[[6,[39,4],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15 ml-2\\\",\\\"Back to Bill Patient\\\",\\\"billing.billpatient\\\",[28,[37,5],[[33,6,[\\\"0\\\",\\\"id\\\"]],[33,7],[33,6,[\\\"0\\\",\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"              Back \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right marginbottom15 ml-2\\\"],[24,\\\"title\\\",\\\"Back To Billed Patient Details\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,9],[\\\"VisitHistoryButton\\\",[33,10]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm btn2 float-right\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Visit History\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive cware cwtable-expand\\\"],[14,1,\\\"cw-details-table\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"capitalize margintop0px\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[33,11,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[33,11,[\\\"middle_name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[33,11,[\\\"last_name\\\"]]],[1,\\\"\\\\n                -\\\\n\\\"],[41,[33,11,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                  \\\"],[1,[33,11,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[1,[28,[35,12],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[33,11,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time/Request Time\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,6]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,15],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"                      \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,16],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,15],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                      \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                      \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                      \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row p-add-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"0\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"prescribedatedoctor clearpresription_code\\\"],[12],[1,\\\"\\\\n                    (\\\\n\\\"],[41,[33,17,[\\\"0\\\",\\\"visit_date\\\"]],[[[1,\\\"                        \\\"],[1,[28,[35,18],[[33,17,[\\\"0\\\",\\\"visit_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,18],[[33,17,[\\\"0\\\",\\\"creation_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]],[[[1,\\\"                        , \\\"],[1,[33,17,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]],[[[1,\\\"                        , \\\"],[10,1],[14,0,\\\"visit_mode\\\"],[12],[1,[33,17,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]],[[[1,\\\"                        , \\\"],[10,1],[14,0,\\\"prescribed_branch\\\"],[12],[1,[33,17,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    )\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,15],[[33,19],\\\"O\\\"],null],[[[1,\\\"              \\\"],[10,0],[15,0,[29,[[52,[33,17],\\\"col-md-4 pull-left\\\",\\\"col-md-6 pull-left\\\"],\\\" ml-2\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[15,0,[29,[[52,[28,[37,15],[[33,19],\\\"O\\\"],null],\\\"badge badge-warning address-flash address-badge\\\"]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"The patient will acquire medicines from outside.\\\"],[12],[1,\\\"\\\\n                  The patient will acquire medicines from outside.\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-lg-4 pull-right\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm add-prescription-medicine pull-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"FactorZero\\\",[33,10]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,20,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[1,[28,[35,21],null,[[\\\"flash\\\"],[[30,3]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"          \\\"],[10,0],[14,1,\\\"visitmessage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"precribetable-data\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"form\\\"],[24,1,\\\"cwPrescribeForm\\\"],[4,[38,8],[[30,0],\\\"billingDataSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[29,[[33,6,[\\\"0\\\",\\\"prescribing_doc_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,7]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"page\\\"],[14,1,\\\"prescribeedit\\\"],[14,2,\\\"prescribeedit\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_edit_reason\\\"],[14,1,\\\"medicine_edit_reason\\\"],[15,2,[29,[[33,22,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"importvisitid\\\"],[14,1,\\\"importvisitid\\\"],[15,2,[29,[[33,22,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"importvisitid\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"onthefly_discount\\\"],[14,1,\\\"onthefly_discount\\\"],[15,2,[29,[[36,23]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_discount_reason\\\"],[14,1,\\\"medicine_discount_reason\\\"],[15,2,[29,[[36,24]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_print_code\\\"],[14,1,\\\"medicine_print_code\\\"],[15,2,[29,[[36,25]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_fees\\\"],[14,1,\\\"consultancy_fees\\\"],[15,2,[29,[[36,26]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_waive_type\\\"],[14,1,\\\"consultancy_waive_type\\\"],[15,2,[29,[[36,27]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_print_code\\\"],[14,1,\\\"consultancy_print_code\\\"],[15,2,[29,[[36,28]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_waived_reason\\\"],[14,1,\\\"consultancy_waived_reason\\\"],[15,2,[29,[[36,29]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_location\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[33,22,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"billing_location\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"pharmacy_location\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[33,22,[\\\"0\\\",\\\"0\\\",\\\"data\\\",\\\"pharmacy_location\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"previous_other_charge\\\"],[14,1,\\\"previous_other_charge\\\"],[15,2,[29,[[36,30]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"billDate\\\"],[14,1,\\\"billDate\\\"],[15,2,[29,[[36,31]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,32]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,33]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,34],null,[[\\\"errors_list\\\"],[[33,35]]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-prescribe-edit prescribeedit\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"check_all\\\"],[14,1,\\\"checkAll\\\"],[14,0,\\\"checkAll\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                  \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,36],[[33,22],[33,37]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row p-add-button\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,22,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-3\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Edit Reason:\\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[33,22,[\\\"0\\\",\\\"0\\\",\\\"reason\\\"]]],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"reasonEdit\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-3\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm apply_reasons_edit\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"reasonEdit\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[10,0],[14,0,\\\"col-lg-9\\\"],[12],[1,\\\" \\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"addPrescriptionMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"FactorZero\\\",[33,10]],null],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"factorZero\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[12],[13],[1,\\\" Reset S. No.\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-right ml-2\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Med\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\"Combo Prescr.\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row float-right ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[3,\\\"This button is used for getting the All possible forms for mix, Rahul khan 09 Sept 2019\\\"],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"sort capitalize\\\"],[12],[1,\\\"Do NOT sort medicines by serial number when saving    \\\"],[10,\\\"input\\\"],[14,1,\\\"sort-serial\\\"],[14,0,\\\"sort-serial\\\"],[14,2,\\\"sort_serial\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"col-xs-2 text-right status-label capitalize\\\"],[12],[1,\\\"Instructions/Notes    \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,38],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,39,[\\\"0\\\",\\\"data\\\",\\\"pharmacy_instruction\\\"]]]]]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,40],null,[[\\\"pharmacyHistory\\\"],[[33,41]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-12 pull-right text-right\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[3,\\\" <button type=\\\\\\\"submit\\\\\\\" class=\\\\\\\"btn btn-primary btn-block\\\\\\\"> Billing</button>\\\"],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\" Proceed to billing\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" <div class=\\\\\\\"col-lg-4 table-responsive cware cwtable-collaps\\\\\\\" id=\\\\\\\"ce-History-Import\\\\\\\">\\\\n          <div class=\\\\\\\"row\\\\\\\">\\\\n            <div class=\\\\\\\"col-lg-6\\\\\\\">\\\\n              <h3>Visit History</h3>\\\\n            </div>\\\\n            <div class=\\\\\\\"col-lg-3\\\\\\\"><button class=\\\\\\\"btn btn-default btn-sm pbutton\\\\\\\" type=\\\\\\\"button\\\\\\\" {{action \\\\\\\"prescribeeeditClearCheckbox\\\\\\\" PrescribePatient.[0].id billing_id on=\\\\\\\"click\\\\\\\" }}> Clear</button>\\\\n            </div>\\\\n            <div class=\\\\\\\"col-lg-3\\\\\\\"><button class=\\\\\\\"btn btn-success btn-sm pbutton parent_history\\\\\\\" type=\\\\\\\"button\\\\\\\"> Import</button></div>\\\\n          </div>\\\\n          <div class=\\\\\\\"visit-history-list-data\\\\\\\">\\\\n            <ul>\\\\n{{#if PatientHistory.[0]}}\\\\n                {{#each-in PatientHistory.[0] as |key history|}}\\\\n                  <li>\\\\n                    <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" />\\\\n                    <span class=\\\\\\\"prescribedatedoctor\\\\\\\">\\\\n                      {{#if history.prescription.date}}\\\\n                        {{date-format history.prescription.date}}\\\\n                      {{else}}\\\\n                        {{date-format key}}\\\\n                      {{/if}}\\\\n                      {{#if history.prescription.doctor_name.label}}\\\\n                        {{history.prescription.doctor_name.label}}\\\\n                      {{else}}\\\\n                        {{#if (not history.prescription)}}\\\\n                          {{else}}\\\\n                              RM\\\\n                          {{/if}}\\\\n                      {{/if}}\\\\n                    </span>\\\\n                    <br>\\\\n                    <ul>\\\\n                        {{#each-in history.prescription as |key1 med_value|}}\\\\n                          {{#if med_value.id}}\\\\n                            {{#if (ifeg med_value.midicine_type 'single')}}\\\\n                              <li><input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" />\\\\n                                <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}}, {{med_value.potency_name}} , {{med_value.form_name}} ,\\\\n                                {{med_value.dilution_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}} {{med_value.vial}}\\\\n                                {{/if}} Vials</li>\\\\n                            {{else}}\\\\n                              {{#if (ifeg med_value.midicine_type 'mix')}}\\\\n                                <li title=\\\\\\\"Mix Medicine\\\\\\\" class=\\\\\\\"{{med_value.midicine_type}}\\\\\\\"><input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" /> <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}} ,\\\\n                                  {{med_value.form_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}} {{med_value.vial}} {{/if}}\\\\n                                  Vials</li>\\\\n                              {{else}}\\\\n                                <li title=\\\\\\\"On the fly mix medicine\\\\\\\" class=\\\\\\\"{{med_value.midicine_type}}\\\\\\\"><input type=\\\\\\\"checkbox\\\\\\\" data-medicineId=\\\\\\\"{{med_value.id}}\\\\\\\" class=\\\\\\\"cleartable\\\\\\\" name=\\\\\\\"parent_history\\\\\\\" data-billing=\\\\\\\"{{history.prescription.billing}}\\\\\\\" data-appointment=\\\\\\\"{{history.prescription.appointment}}\\\\\\\" />\\\\n                                  <span class=\\\\\\\"history-badge\\\\\\\">{{med_value.medicine_serial_no}}</span> {{med_value.medicine_name}} , {{med_value.form_name}} , {{#if (ifeg med_value.vial '0')}} 1 {{else}}\\\\n                                    {{med_value.vial}} {{/if}} Vials</li>\\\\n                              {{/if}}\\\\n                            {{/if}}\\\\n                          {{/if}}\\\\n                        {{/each-in}}\\\\n\\\\n                        {{#if (not history.prescription)}}\\\\n                            <li>No medicine prescribed on this date</li>\\\\n                        {{/if}}\\\\n\\\\n                    </ul>\\\\n                  </li>\\\\n                {{/each-in}}\\\\n                <li id='history-loader' style='display: none; text-align: -webkit-center;'>\\\\n                  <img src='/img/loader.gif' width=\\\\\\\"50\\\\\\\" height=\\\\\\\"50\\\\\\\">\\\\n                  <span>Please Wait...</span>\\\\n                </li>\\\\n                {{#if (lessthen PatientHistory.count PatientHistory.total)}}\\\\n                  <button class=\\\\\\\"btn btn-info btn-sm pull-corner\\\\\\\" title=\\\\\\\"Load More History\\\\\\\" type=\\\\\\\"button\\\\\\\" {{action \\\\\\\"loadMoreHistory\\\\\\\"  PatientHistory.count PatientHistory.patient_id  on=\\\\\\\"click\\\\\\\" }}>Load More +\\\\n                  </button>\\\\n                {{/if}}\\\\n              {{else}}\\\\n                <li>No History Found </li>\\\\n              {{/if}}            </ul>\\\\n          </div>\\\\n        </div> \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Visit History component popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,42],null,[[\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"loadMoreHistory\\\",\\\"historyClearCheckbox\\\",\\\"clearSelectedCheckbox\\\"],[[33,43],[33,44],[33,45],[28,[37,8],[[30,0],\\\"loadMoreHistory\\\"],null],[28,[37,8],[[30,0],\\\"historyClearCheckbox\\\"],null],[28,[37,8],[[30,0],\\\"clearSelectedCheckbox\\\"],null]]]]],[1,\\\"\\\\n\\\"],[3,\\\" mix medicine popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwMixMedicine\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Add Mix\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"error\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_cwMixform\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_medmix_name\\\"],[12],[1,\\\"Mix Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,46],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"prescribe_medmix_name\\\",\\\"off\\\",\\\"Enter Mix Name\\\",\\\"prescribe_medmix_name\\\",[33,47]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwComboInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"dosageerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"dosage_instructionForm\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"selecteddosage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"Dosage Instruction:\\\\n              \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"select\\\"],[14,3,\\\"comboprescription\\\"],[14,0,\\\"form-control cwareinstruction comboprescription iother\\\"],[14,1,\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,37]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[12],[1,[30,4,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,0,\\\"otherOption\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Instruction popup html \\\"],[1,\\\"\\\\n\\\"],[3,\\\" Medicine Edit Reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"MedicineEditReasonPopup\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Edit Reason\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"edit_reasonerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"editReasonForm\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"edit_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,46],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"edit_reason\\\",\\\"form-control\\\",\\\"Enter edit reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"flash\\\",\\\"instlist\\\"],false,[\\\"page\\\",\\\"if\\\",\\\"ifeg\\\",\\\"backpage\\\",\\\"link-to\\\",\\\"array\\\",\\\"PrescribePatient\\\",\\\"billing_id\\\",\\\"action\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"PrescribePatientHead\\\",\\\"booked-from-badge\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"last_visit_history\\\",\\\"last-visit-date-format\\\",\\\"shiping_pickup\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"prescribe_edit\\\",\\\"onthefly_discount\\\",\\\"medicine_discount_reason\\\",\\\"medicine_print_code\\\",\\\"consultancy_fees\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_print_code\\\",\\\"consultancy_waived_reason\\\",\\\"previous_edit_page_visit_charges\\\",\\\"billDate\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine-edit\\\",\\\"instruction\\\",\\\"textarea\\\",\\\"billpatient\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"visit-history-component-popup\\\",\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"input\\\",\\\"instruction_name\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/billing/prescribeedit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-appointment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"nO/k7dA7\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"notebox\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeNoteBox\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title modal-font\\\"],[12],[1,\\\"Please give a reason for cancellation.\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,1,\\\"advance-payment-refund-note\\\"],[14,0,\\\"modal-title\\\"],[14,5,\\\"display: none\\\"],[12],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"Warning: \\\"],[13],[1,\\\" This patient has a balance of Rs \\\"],[10,1],[14,1,\\\"advance-payment-refund-amount\\\"],[12],[13],[1,\\\", Please make sure to make adjustments from manage transactions\\\\n            screen if needed. Otherwise the balance will remain in patient's account and will be adjusted in\\\\n            future visits.\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" <label class=\\\\\\\"control-label\\\\\\\"></label> \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"note\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Reason for cancellation.\\\"],[14,\\\"rows\\\",\\\"4\\\"],[12],[1,[34,5]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,3,\\\"cancelAppointment\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"cancelAppointment\\\"],null],[12],[1,\\\"Cancel\\\\n            Appointment\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\" Cancel All Appointment Reason Popup \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"CancelAllnotebox\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeNoteBox\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title modal-font\\\"],[12],[1,\\\"Please give a reason for cancellation.\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" <label class=\\\\\\\"control-label\\\\\\\"></label> \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"cancel_note\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Reason for cancellation.\\\"],[12],[1,[34,6]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,3,\\\"cancelAllAppointment\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"cancelAllAppointmentWithReason\\\"],null],[12],[1,\\\"Cancel Appointment\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[34,7]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"component\\\",\\\"-outlet\\\",\\\"action\\\",\\\"note\\\",\\\"cancel_note\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-appointment.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-appointment/doctor\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"F8YCjBoj\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-appointment/doctor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-appointment/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"LILBxrIz\",\n    \"block\": \"[[[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\" Re-schedule/Cancel Appointments\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PatientInitiated\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Patient Initiated \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"form\\\"],[14,0,\\\"register-patient\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"register_patient\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"gender\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Search Patient\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,[28,[35,3],null,[[\\\"type\\\",\\\"name\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"query\\\",\\\"span7 form-control\\\",[33,4],\\\"Search Patient\\\"]]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[11,\\\"button\\\"],[24,3,\\\"search_patient\\\"],[24,0,\\\"btn btn-success btn-sm pull-right span2\\\"],[24,5,\\\"margin-right\\\"],[24,4,\\\"submit\\\"],[4,[38,5],[[30,0],\\\"searchPatient\\\"],null],[12],[1,\\\"Search\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DoctorInitiated\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Doctor Initiated \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"form\\\"],[14,0,\\\"register-patient\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"register_patient\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"doctor\\\"],[15,2,[36,6]],[15,\\\"onchange\\\",[28,[37,5],[[30,0],\\\"setDocId\\\"],null]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"user_id\\\"]]]]],[12],[1,[30,1,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Select Branch\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"branch\\\"],[15,2,[36,10]],[15,\\\"onchange\\\",[28,[37,5],[[30,0],\\\"setBranch\\\"],null]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,11]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,2,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"gender\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Select Date\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,[28,[35,12],null,[[\\\"locale\\\",\\\"name\\\",\\\"id\\\",\\\"options\\\",\\\"disableDayFn\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\",\\\"readonly\\\"],[[33,13],\\\"date\\\",\\\"dateTime\\\",[28,[37,14],null,[[\\\"numberOfMonths\\\"],[1]]],false,[33,15],\\\"MM/DD/YYYY\\\",\\\"form-control\\\",\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,3,\\\"search_patient\\\"],[24,0,\\\"btn btn-success btn-sm span2\\\"],[24,5,\\\"margin-left:125px\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"searchDoctorPatient\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[6,[39,16],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm ml-2\\\",\\\"manage-appointment\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"doc\\\",\\\"branch\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"input\\\",\\\"q\\\",\\\"action\\\",\\\"doctor_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"branch\\\",\\\"branches\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"hash\\\",\\\"dateTime\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-appointment/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-appointment/patient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"wSMjsEbC\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[6,[39,0],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"cancel-appointment\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\"Search Result\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tPatient Id\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tAppt ID\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tName\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tGender\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tPhone\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tLocation\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tDate & time\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tDoctor\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,5,\\\"width: 110px; min-width: 110px;\\\"],[12],[1,\\\"Booked From\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,5,\\\"width: 130px; min-width: 130px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[30,1,[\\\"priority\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"strong\\\"],[12],[1,[30,1,[\\\"id\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"gender\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"mobile_res\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"phone_res\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"branch\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"dateTime\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,5,\\\"vertical-align: middle; min-width: 110px;text-align: center;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,5],null,[[\\\"bookedFrom\\\"],[[30,1,[\\\"appointment_booked_from\\\"]]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,5,\\\"vertical-align: middle; min-width: 130px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,5,\\\"display: flex; align-items: center; gap: 6px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-xs\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"online\\\"],null]],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"getRescheduleAppointment\\\",[30,1,[\\\"id\\\"]],\\\"cancel-appointment\\\"],null],[12],[1,\\\"Reschedule\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"clinic\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"showNoteDialog\\\",[30,1,[\\\"id\\\"]]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"online\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelOnlineAppointment\\\",[30,1]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"    \\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"10\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tSorry, No appointment found.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"text-right margintop\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,8],[[[41,[28,[37,9],[\\\"CancelAll\\\",[33,10]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,3,\\\"cancel_all\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelAllAppointments\\\"],null],[12],[1,\\\"Cancel All\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" {{pagination-component stats=stats p=p}} \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,7],[[30,0],\\\"prevSearch\\\",[33,11],[33,12]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,7],[[30,0],\\\"nextSearch\\\",[33,11],[33,12]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"enter\\\"],[\\\"text\\\",\\\"pagination_input\\\",[33,12],[28,[37,7],[[30,0],\\\"goto\\\"],null]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tof \\\"],[1,[33,11,[\\\"total_pages\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,14],[[[1,\\\"  \\\"],[1,[28,[35,15],null,[[\\\"appointmentRows\\\",\\\"selectedReason\\\",\\\"customTitle\\\",\\\"disableRefundButton\\\",\\\"onConfirm\\\",\\\"onClose\\\"],[[33,16],[33,17],[33,18],[33,19],[28,[37,7],[[30,0],\\\"confirmCancel\\\"],null],[28,[37,7],[[30,0],\\\"closeModal\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,20,[\\\"length\\\"]],[[[1,\\\"  \\\"],[10,0],[14,5,\\\"margin-top: 24px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,5,\\\"font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px;\\\"],[12],[1,\\\"Refund batches\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,20]],null]],null],null,[[[1,\\\"      \\\"],[1,[28,[35,21],null,[[\\\"batch\\\",\\\"refunds\\\",\\\"mode\\\",\\\"onRetry\\\",\\\"onRefresh\\\",\\\"onClose\\\",\\\"showClose\\\"],[[30,2],[30,2,[\\\"refunds\\\"]],\\\"embedded\\\",[28,[37,7],[[30,0],\\\"retryRefund\\\",[30,2,[\\\"id\\\"]]],null],[28,[37,7],[[30,0],\\\"refreshBatchFromBackend\\\",[30,2,[\\\"id\\\"]]],null],[28,[37,7],[[30,0],\\\"closeBatch\\\",[30,2,[\\\"id\\\"]]],null],true]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"appointment\\\",\\\"batch\\\"],false,[\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"appointments\\\",\\\"if\\\",\\\"booked-from-badge\\\",\\\"eq\\\",\\\"action\\\",\\\"isDoctorPage\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"stats\\\",\\\"p\\\",\\\"input\\\",\\\"modalOpen\\\",\\\"cancellation-refund-popup\\\",\\\"modalAppointmentRows\\\",\\\"selectedReason\\\",\\\"customPopupTitle\\\",\\\"disableRefundButton\\\",\\\"batches\\\",\\\"batch-refund-details\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-appointment/patient.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-appointment/reschedule\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7wv9f/1U\",\n    \"block\": \"[[[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"h3\\\"],[12],[1,\\\" Search Appointments\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],null],[12],[1,\\\"Go Back\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_date\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Appointment\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tDate\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[34,1]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_date\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Appointment\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tDoctor\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[34,2]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_date\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Date \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"appointment_date\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"ressetCounter\\\"],null]],[14,1,\\\"appointment_date\\\"],[15,2,[29,[[36,3]]]],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2 text-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_status\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"input\\\"],[15,\\\"onclick\\\",[28,[37,0],[[30,0],\\\"urgentCheckStatus\\\"],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,3,\\\"urgent_status\\\"],[14,1,\\\"urgent_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"textarea\\\"],[14,3,\\\"urgenttagnote\\\"],[14,\\\"rows\\\",\\\"1\\\"],[14,1,\\\"urgenttagnote\\\"],[14,0,\\\"form-control marginleft5\\\"],[14,\\\"row\\\",\\\"3\\\"],[14,5,\\\"display:none;width:100%;\\\"],[14,\\\"placeholder\\\",\\\"Enter reason\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Appointment\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tType\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,6]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info appointment_buttons appointmentType_buttons appointmenttype_\\\",[30,1,[\\\"code\\\"]],\\\" btn-success\\\"]]],[16,1,[29,[\\\"appointmenttype_\\\",[30,1,[\\\"code\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"appointmentType\\\",[30,1,[\\\"code\\\"]],[30,1,[\\\"name\\\"]]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row location_row\\\"],[14,5,\\\"display: none; padding-left: 20px; margin-top: 10px; margin-bottom: 15px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 control-label\\\"],[12],[1,\\\"OCP Visit Address\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"textarea\\\"],[14,3,\\\"ocp_visit_address\\\"],[14,1,\\\"ocp_visit_address\\\"],[14,0,\\\"form-control\\\"],[14,\\\"row\\\",\\\"3\\\"],[14,\\\"placeholder\\\",\\\"OCP Visit Address\\\"],[15,2,[36,7]],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branches\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,8,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info appointment_buttons branch_\\\",[30,2,[\\\"id\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"branchAppointments\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"title\\\"]]],null],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctors\\\"],[14,0,\\\"col-xs-2 label-small-text control-label\\\"],[12],[1,\\\"Doctor\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-9 button-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"data\\\"]],[[[42,[28,[37,5],[[28,[37,5],[[28,[37,11],[[33,10,[\\\"data\\\"]],6],null]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"button-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info selecteddoctor appointment_buttons doctor_\\\",[30,4,[\\\"user_id\\\"]]]]],[16,1,[29,[\\\"doctor_\\\",[30,4,[\\\"user_id\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"doctorAppointments\\\",[30,4,[\\\"user_id\\\"]],[33,8,[\\\"data\\\"]],[33,12]],null],[12],[1,[30,4,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,[35,13],null,[[\\\"currentControllerBinding\\\",\\\"discount_categories\\\",\\\"selected_discount_category\\\",\\\"countries\\\",\\\"pstates\\\",\\\"cities\\\",\\\"mode\\\",\\\"note\\\",\\\"is_rescheduled\\\",\\\"patient_id\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"selected_state\\\",\\\"selected_city\\\",\\\"state\\\",\\\"country\\\",\\\"zip\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"blood_type\\\",\\\"email_id\\\",\\\"reloadDashboard\\\",\\\"appointmentId\\\",\\\"priority\\\",\\\"getDoctorCharges\\\",\\\"category\\\",\\\"button_clicked\\\",\\\"redirectPage\\\",\\\"setMedicineTotalandPendingValue\\\",\\\"ResetPopupPaymentMode\\\",\\\"editPage\\\",\\\"goBack\\\",\\\"releaseHoldSlot\\\"],[\\\"appointment\\\",[33,14],[33,15],[33,16],[33,17],[33,18],[33,19],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[33,30],[33,31],[33,32],[33,33],[33,34],[33,35],[33,36],[33,37],[33,38],[33,39],[33,40],[33,41],[33,42],[33,43],\\\"reloadDashboard\\\",[33,44],[33,45],\\\"getDoctorCharges\\\",[33,46],[33,47],\\\"redirectPage\\\",\\\"setMedicineTotalandPendingValue\\\",\\\"ResetPopupPaymentMode\\\",[33,48],\\\"goBack\\\",\\\"releaseHoldSlot\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,49],[\\\"DoctorAppointmentsTimeslot\\\",[33,50]],null],[[[41,[28,[37,51],[[33,52],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,53],null,[[\\\"result\\\",\\\"appointments\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"nextAvailableDates\\\",\\\"nextDates\\\",\\\"prevDates\\\",\\\"prev_week\\\"],[[33,54,[\\\"data\\\"]],[33,55,[\\\"data\\\"]],[33,56,[\\\"data\\\"]],[33,12],[28,[37,0],[[30,0],\\\"nextAvailableDates\\\"],null],[28,[37,0],[[30,0],\\\"nextDates\\\"],null],[28,[37,0],[[30,0],\\\"prevDates\\\"],null],[33,57]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"Doctor based time slot Shubh Tiwari 13 Dec 2025\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,58],null,[[\\\"result\\\",\\\"appointments\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"nextAvailableDates\\\",\\\"nextDates\\\",\\\"prevDates\\\",\\\"prev_week\\\"],[[33,54,[\\\"data\\\"]],[33,55,[\\\"data\\\"]],[33,56,[\\\"data\\\"]],[33,12],[28,[37,0],[[30,0],\\\"nextAvailableDates\\\"],null],[28,[37,0],[[30,0],\\\"nextDates\\\"],null],[28,[37,0],[[30,0],\\\"prevDates\\\"],null],[33,57]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[28,[37,49],[\\\"AppointmentsTimeslot\\\",[33,50]],null],[[[41,[28,[37,51],[[33,52],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,59],null,[[\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\"],[[33,10,[\\\"data\\\"]],[33,60,[\\\"data\\\"]],[33,61],[33,62],[33,63]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"Branch based time slot, Shubh Tiwari 13 Dec 2025\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,64],null,[[\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\"],[[33,10,[\\\"data\\\"]],[33,60,[\\\"data\\\"]],[33,61],[33,62],[33,63]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,[35,65],null,[[\\\"first_name\\\",\\\"last_name\\\",\\\"middle_name\\\",\\\"OldRegistrationNo\\\",\\\"same_as_shipping\\\",\\\"shipping_full_address_per\\\",\\\"shipping_full_address_res\\\",\\\"shipping_country_id\\\",\\\"shipping_state_id\\\",\\\"shipping_city_id\\\",\\\"shipping_pin_code\\\",\\\"shipping_mobile\\\",\\\"shipping_state_name\\\",\\\"shipping_city_name\\\",\\\"slotLockedId\\\"],[[33,24],[33,26],[33,25],[33,66],[33,67],[33,68],[33,69],[33,70],[33,71],[33,72],[33,73],[33,74],[33,75],[33,76],[33,77]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,[35,78],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"doctorcharges\\\",\\\"getDoctorCharges\\\",\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"paymentcomplete\\\",\\\"page\\\",\\\"advance_payment_type\\\"],[[33,79],[33,80],[33,81],[33,82],[33,83],[33,84],[33,85],[33,86],[33,87],[33,88],\\\"getDoctorCharges\\\",\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"paymentcomplete\\\",\\\"appointment\\\",\\\"appointment_id\\\"]]]],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[3,\\\"Start Patient List\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"listing patient_list\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tRegistration No.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tName\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tGender\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tPhone\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tAddress\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tFunction\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,89]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"gender\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"mobile_res\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"phone_res\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,5,[\\\"full_address_per\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"input\\\"],[24,3,\\\"select_patient\\\"],[24,2,\\\"patient.id\\\"],[24,4,\\\"radio\\\"],[4,[38,0],[[30,0],\\\"patientDetail\\\",[30,5,[\\\"id\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tSorry, No patient found.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" {{pagination-component stats=stats p=p}} \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,0],[[30,0],\\\"prev\\\",[33,90],[33,91]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,0],[[30,0],\\\"next\\\",[33,90],[33,91]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,92],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"enter\\\"],[\\\"text\\\",\\\"pagination_input\\\",[33,91],[28,[37,0],[[30,0],\\\"goto\\\"],null]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tof \\\"],[1,[33,90,[\\\"total_pages\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[3,\\\"End Patient List\\\"],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" /widget \\\"]],[\\\"type\\\",\\\"branch\\\",\\\"buttonRow\\\",\\\"userdata\\\",\\\"patient\\\"],false,[\\\"action\\\",\\\"appt_date\\\",\\\"doctor_name\\\",\\\"appointment_date\\\",\\\"each\\\",\\\"-track-array\\\",\\\"appointment_types\\\",\\\"ocp_address\\\",\\\"branches\\\",\\\"if\\\",\\\"result\\\",\\\"chunked-array\\\",\\\"time_slot_array\\\",\\\"patient-registration\\\",\\\"discount_categories\\\",\\\"selected_discount_category\\\",\\\"countries\\\",\\\"pstates\\\",\\\"cities\\\",\\\"mode\\\",\\\"note\\\",\\\"is_rescheduled\\\",\\\"patient_id\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"selected_state\\\",\\\"selected_city\\\",\\\"state\\\",\\\"country\\\",\\\"zip\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"blood_type\\\",\\\"email_id\\\",\\\"appointmentId\\\",\\\"priority\\\",\\\"category\\\",\\\"button_clicked\\\",\\\"editPage\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"ifeg\\\",\\\"appointment_type\\\",\\\"ocp-appointment-doctor-component\\\",\\\"resultD\\\",\\\"appointmentsD\\\",\\\"branchesD\\\",\\\"prev_week\\\",\\\"appointment-doctor-component\\\",\\\"ocp-appointment-slots\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\",\\\"appointment-overview-component\\\",\\\"appointment-submit-component\\\",\\\"OldRegistrationNo\\\",\\\"same_as_shipping\\\",\\\"shipping_full_address_per\\\",\\\"shipping_full_address_res\\\",\\\"shipping_country_id\\\",\\\"shipping_state_id\\\",\\\"shipping_city_id\\\",\\\"shipping_pin_code\\\",\\\"shipping_mobile\\\",\\\"shipping_state_name\\\",\\\"shipping_city_name\\\",\\\"slotLockedId\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"doctorcharges\\\",\\\"patients\\\",\\\"stats\\\",\\\"p\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-appointment/reschedule.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/cancel-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"uoqNFTuN\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"SameDaycancellationandbookings\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_from\\\",\\\"currentYear\\\",\\\"transaction_from\\\",\\\"Select From date\\\",[33,8],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_to\\\",\\\"currentYear\\\",\\\"transaction_to\\\",\\\"Select To date\\\",[33,9],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ExportButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,1,\\\"downloadSameDayCancelAndBooking\\\"],[24,0,\\\"btn btn-success\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,10],[[30,0],\\\"downloadSameDayCancelAndBooking\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Download Report\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,11]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"transaction_from\\\",\\\"transaction_to\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/cancel-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/case-report/case-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"d0IdvYic\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"CaseReport\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/case-report/case-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/case-report/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aT6yoWLS\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Index\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/case-report/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/case-report/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"SUSdO+ag\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-users\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n      \\\\n          \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,6,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,7],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"manage-transaction\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[1,[28,[35,8],null,[[\\\"items\\\",\\\"toggleReports\\\"],[[33,9],[28,[37,10],[[30,0],\\\"toggleReports\\\"],null]]]]],[1,\\\"\\\\n              \\\"],[11,\\\"form\\\"],[24,1,\\\"exportCaseReport\\\"],[4,[38,10],[[30,0],\\\"exportCaseReport\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"visit_type_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],null,[[\\\"toggleCheckbox\\\"],[[28,[37,10],[[30,0],\\\"toggleCheckbox\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"patient_info_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,15],null,[[\\\"countries\\\",\\\"report_selected_country\\\",\\\"reportStates\\\",\\\"report_selected_state\\\",\\\"report_cities\\\",\\\"report_selected_state\\\",\\\"updateReportCountry\\\",\\\"updateReportState\\\",\\\"updateReportCity\\\"],[[33,16],[33,17],[33,18],[33,19],[33,20],[33,19],[28,[37,10],[[30,0],\\\"updateReportCountry\\\"],null],[28,[37,10],[[30,0],\\\"updateReportState\\\"],null],[28,[37,10],[[30,0],\\\"updateReportCity\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"vital_stats_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,21],null,[[\\\"toggleGender\\\"],[[28,[37,10],[[30,0],\\\"toggleGender\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"case_taking_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[34,22]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"diagnostic_tests_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[34,23]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"prescription_search\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[34,24]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"clinic_user_serach\\\",[33,12]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row\\\"],[15,1,[33,13,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,25],null,[[\\\"clinicuserlist\\\"],[[33,26]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Export Column\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"grid-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,27]],null]],null],null,[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"grid-item\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"seach_checkbox\\\"],[15,\\\"checked\\\",[30,2,[\\\"isChecked\\\"]]],[15,\\\"disabled\\\",[30,2,[\\\"disable\\\"]]],[15,1,[30,2,[\\\"id\\\"]]],[15,\\\"data\\\",[30,2,[\\\"data\\\"]]],[15,\\\"onchange\\\",[28,[37,10],[[30,0],[28,[37,10],[[30,0],\\\"toggleexportColumn\\\",[30,2,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success float-right ml-2\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Export Report\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger float-right resetExportForm\\\"],[14,4,\\\"reset\\\"],[12],[1,\\\"Reset\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,28]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"item\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"search-filed-element\\\",\\\"items\\\",\\\"action\\\",\\\"check-id\\\",\\\"checkedReports\\\",\\\"item\\\",\\\"case-report-visit-search\\\",\\\"case-report-patient-search\\\",\\\"countries\\\",\\\"report_selected_country\\\",\\\"reportStates\\\",\\\"report_selected_state\\\",\\\"report_cities\\\",\\\"case-report-patient-vital-search\\\",\\\"case-report-disease-search\\\",\\\"case-report-critical-report-search\\\",\\\"case-report-medicine-search\\\",\\\"case-report-clinic-user-search\\\",\\\"clinicuserlist\\\",\\\"outputColumn\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/case-report/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/casepreview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"w1w7zNg1\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Casepreview\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/casepreview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/absentees-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zcDHstcT\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#absentees-patients\\\"],[12],[1,\\\"Absentees Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"absentees-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[3,\\\" selected_patient_big \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,1,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,1,[\\\"priority\\\"]]]]],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"assigned_dr_2\\\"]],[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"assigned_dr_2\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"assigned_dr_1\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"assign_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"No absentees for today.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"appointment\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"absenteesPatients\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/absentees-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/advised-reports-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"mh2cJ/EG\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[14,1,\\\"advisedReportsPreview\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Advised Reports\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"modified_by\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"advised_report\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Report Name\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"report_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"advised_date\\\"]]],null]],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"data\\\"],false,[\\\"if\\\",\\\"advised_report_user\\\",\\\"section-add-edit-by\\\",\\\"each\\\",\\\"-track-array\\\",\\\"advised_report\\\",\\\"common-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/advised-reports-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/advised-reports\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"YJ9FXBuL\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"ICPAdvisedReport\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Advised Report\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPAdvisedReportAddButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-info addAdbisedReport float-right\\\"],[24,\\\"title\\\",\\\"Add Advised Report\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#advisedReport\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add Advised Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPAdvisedReportTable\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[14,1,\\\"advised_report\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"85%\\\"],[12],[1,\\\"Report Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,2,[\\\"report_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,9],[[30,2,[\\\"advised_date\\\"]]],null]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AdvisedReportRemoveButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-danger \\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,3],[30,2,[\\\"id\\\"]],[30,2,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[42,[28,[37,7],[[28,[37,7],[[33,10]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,4,[\\\"report_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,9],[[30,4,[\\\"advised_date\\\"]]],null]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@advisedReport\\\",\\\"data\\\",\\\"@removeAdvicedReport\\\",\\\"data\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"advised_report_user\\\",\\\"section-add-edit-by\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"advised_report\\\",\\\"common-date\\\",\\\"previous_advised_report\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/advised-reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/all-complete-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cCJNPMiq\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#all-complete-patients\\\"],[12],[1,\\\"Completed Visit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t \\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"all-complete-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescription Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Billing Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharma Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"13\\\"],[12],[1,\\\"No appointments left/found for today\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/all-complete-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/appointment-doctor-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"hsK+SkfU\",\n    \"block\": \"[[[10,0],[14,0,\\\"doctor_weekly_appointment\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"cware-available-appointment\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\"],[3,\\\" Comment input field because i think no need of this input field written by shubh tiwari as on 26 April 2022 \\\"],[1,\\\"\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm initial_select_date\\\"],[24,\\\"data-count\\\",\\\"0\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"title\\\",\\\"Next week\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"counterIncrease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[4,[38,0],[[30,0],\\\"nextDates\\\",[33,1],[33,2]],null],[12],[1,\\\"Next week\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-default btn-sm \\\",[36,3]]]],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"title\\\",\\\"Prev week\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"counterDecrease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[4,[38,0],[[30,0],\\\"prevDates\\\",[33,1],[33,2]],null],[12],[1,\\\"Prev week\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Appointments - Consolidated\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"table\\\"],[14,0,\\\"table doctor_appointmentsconsolidated  table-fixed \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t   \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Table responsive \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"action\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"prev_week\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/appointment-doctor-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/appointment-overview-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"hvLLyQGo\",\n    \"block\": \"[[[10,0],[14,0,\\\"regular_appointments\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Appointments - \\\"],[10,1],[14,0,\\\"\\\"],[12],[1,[34,0]],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"table\\\"],[14,0,\\\"table appointments table-fixed\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,0,\\\"\\\"],[14,5,\\\"width:10%\\\"],[12],[1,\\\"Time Slot\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[15,5,[29,[[36,4],\\\"; color:\\\",[30,1,[\\\"color\\\"]],\\\"; text-align: center;\\\"]]],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,3],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"appointments\\\",\\\"branch_id\\\",\\\"result\\\",\\\"time_slot_array\\\"],[[33,7],[33,8],[33,3],[33,9]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[3,\\\" Table responsive \\\"],[1,\\\"\\\\n\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"userdata\\\"],false,[\\\"appointment_heading\\\",\\\"each\\\",\\\"-track-array\\\",\\\"result\\\",\\\"td_width\\\",\\\"if\\\",\\\"render-appointment\\\",\\\"appointments\\\",\\\"branch_id\\\",\\\"time_slot_array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/appointment-overview-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/appointment-submit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0t4LmZ5C\",\n    \"block\": \"[[[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"advance_payment_status\\\"],[14,3,\\\"advance_payment_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"\\\"],[12],[1,\\\" Is advance required? \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"advance_payment_obj\\\"],[14,0,\\\"advance_payment_obj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"advance_payment_urgency\\\"],[14,0,\\\"advance_payment_urgency\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_doctor_id\\\"],[14,0,\\\"appointment_doctor_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_branch_id\\\"],[14,0,\\\"appointment_branch_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"slotLockedId\\\"],[14,0,\\\"slotLockedId\\\"],[15,2,[29,[[36,0]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"OldRegistrationNo\\\"],[14,0,\\\"OldRegistrationNo\\\"],[15,2,[29,[[36,1]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"first_name\\\"],[14,0,\\\"first_name\\\"],[15,2,[29,[[36,2]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"middle_name\\\"],[14,0,\\\"middle_name\\\"],[15,2,[29,[[36,3]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,3,\\\"last_name\\\"],[14,0,\\\"last_name\\\"],[15,2,[29,[[36,4]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"same_as_shipping\\\"],[14,3,\\\"same_as_shipping\\\"],[15,2,[29,[[36,5]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_full_address_per\\\"],[14,3,\\\"shipping_full_address_per\\\"],[15,2,[29,[[36,6]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_full_address_res\\\"],[14,3,\\\"shipping_full_address_res\\\"],[15,2,[29,[[36,7]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_country_id\\\"],[14,3,\\\"shipping_country_id\\\"],[15,2,[29,[[36,8]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_state_id\\\"],[14,3,\\\"shipping_state_id\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_city_id\\\"],[14,3,\\\"shipping_city_id\\\"],[15,2,[29,[[36,10]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_pin_code\\\"],[14,3,\\\"shipping_pin_code\\\"],[15,2,[29,[[36,11]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_mobile\\\"],[14,3,\\\"shipping_mobile\\\"],[15,2,[29,[[36,12]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_state_name\\\"],[14,3,\\\"shipping_state_name\\\"],[15,2,[29,[[36,13]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"shipping_city_name\\\"],[14,3,\\\"shipping_city_name\\\"],[15,2,[29,[[36,14]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-large bookappointmentbutton\\\"],[24,5,\\\"margin-left: 20px;\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,16],[33,17]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,19],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-warning btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"enableForm\\\"],null],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"slotLockedId\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"same_as_shipping\\\",\\\"shipping_full_address_per\\\",\\\"shipping_full_address_res\\\",\\\"shipping_country_id\\\",\\\"shipping_state_id\\\",\\\"shipping_city_id\\\",\\\"shipping_pin_code\\\",\\\"shipping_mobile\\\",\\\"shipping_state_name\\\",\\\"shipping_city_name\\\",\\\"action\\\",\\\"page\\\",\\\"reloadDashboard\\\",\\\"if\\\",\\\"editPage\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/appointment-submit-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/archive-list-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"NjPzCrfF\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row archive-search\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"fromvisitdate\\\"],[12],[1,\\\"From dispatch date\\\"],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,0],null,[[\\\"name\\\",\\\"id\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"fromvisitdate\\\",\\\"fromvisitdate\\\",\\\"Select From dispatch date\\\",\\\"form-control disableFuturedate\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"tovisitdate\\\"],[12],[1,\\\"To dispatch date\\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,0],null,[[\\\"name\\\",\\\"id\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"tovisitdate\\\",\\\"tovisitdate\\\",\\\"Select To dispatch date\\\",\\\"form-control disableFuturedate\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button btn-sm search_patient\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Search patient\\\"],[13],[1,\\\"\\\\n                \\\"],[6,[39,2],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm\\\",\\\"Back\\\",\\\"dispatch\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"ArchiveList\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Presc Doctor\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Package Date/Time\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Disp Date/Time\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Courier\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Tracking ID\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"300px\\\"],[12],[1,\\\" Actions\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[14,1,\\\"ArchiveListbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,2,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,7],[[30,2,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\"\\\\n                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                            \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"pharmacy_complete_time\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"dispatch_time\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"courier_name\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"tracking_id\\\"]]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[18,3,null],[1,\\\"\\\\n \\\"],[13]],[\\\"@searchDispatchedArchivePatient\\\",\\\"patient\\\",\\\"&default\\\"],false,[\\\"input\\\",\\\"action\\\",\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"dispatchedArchive\\\",\\\"if\\\",\\\"eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/archive-list-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/assign-doctor-doctor-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"g+38eCsy\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Assign Doctor\\\"],[13],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"refreshAssignPatientModuleC\\\"],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[14,5,\\\"overflow:hidden\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[14,5,\\\"width:50%!important;margin-left:0px!important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[14,5,\\\"\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#booked-doc\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Booked: \\\"],[13],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"booked-doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"booked\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,2]],null]],[1,\\\". \\\"],[11,\\\"input\\\"],[24,3,\\\"selected_patient\\\"],[16,2,[29,[[30,1,[\\\"patient_id\\\"]]]]],[16,\\\"data-ap\\\",[29,[[30,1,[\\\"id\\\"]]]]],[24,4,\\\"checkbox\\\"],[4,[38,0],[[30,0],\\\"assignPatientC\\\",[33,5,[\\\"id\\\"]],[30,1,[\\\"patient_id\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,1,[\\\"priority\\\"]]]]],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[1,\\\"[ Appt ID: \\\"],[1,[30,1,[\\\"id\\\"]]],[1,\\\" ]\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[[30,1,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,1,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\" : \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\" \\\\n\\\"],[41,[30,1,[\\\"appointment_queue_number\\\"]],[[[41,[28,[37,7],[[30,1,[\\\"appointment_queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\" icon-check-sign\\\"],[14,5,\\\"color:#029C02\\\"],[14,\\\"title\\\",\\\"Checked-in\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"This below line is used for print appointments, Rahul Khan \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\" icon-print\\\"],[24,5,\\\"color:#029C02\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,0],[[30,0],\\\"print\\\",\\\"PA\\\",[30,1,[\\\"appointment_queue_number\\\"]],[30,1,[\\\"appointment_time\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[1,2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#onspot-doc\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"On-Spot: \\\"],[13],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"onspot-doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"onspot\\\"]]],null]],null],null,[[[41,[30,3,[\\\"queue_number\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"queue_number\\\"]]],[1,\\\". \\\"],[11,\\\"input\\\"],[24,3,\\\"selected_patient\\\"],[16,2,[29,[[30,3,[\\\"patient_id\\\"]]]]],[16,\\\"data-ap\\\",[29,[[30,3,[\\\"id\\\"]]]]],[24,4,\\\"checkbox\\\"],[4,[38,0],[[30,0],\\\"assignPatientC\\\",[33,5,[\\\"id\\\"]],[30,3,[\\\"patient_id\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,3,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,3,[\\\"priority\\\"]]]]],[12],[1,[30,3,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"last_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[[30,3,[\\\"label\\\"]]]]],[12],[1,\\\" - (\\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\" : \\\"],[1,[30,3,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,5,\\\"padding-right:10px;cursor:pointer;\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,0],[[30,0],\\\"cancelOnSpotC\\\",[30,3,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove\\\"],[14,5,\\\"color:#B94A48\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"queue_number\\\"]],[[[41,[28,[37,7],[[30,3,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\" icon-print\\\"],[24,5,\\\"color:#029C02\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,0],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,3,[\\\"queue_number\\\"]],[30,3,[\\\"appointment_time\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3,4]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[14,5,\\\"width:50%!important;margin-left:0px!important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Doctors\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"control-label pull-left \\\",[33,5,[\\\"label\\\"]]]]],[12],[10,\\\"b\\\"],[12],[1,[33,5,[\\\"doctor_name\\\"]]],[13],[1,\\\" \\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[\\\"badge  \\\",[33,5,[\\\"label\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"title\\\",\\\"Prescribed\\\"],[14,5,\\\"background-color:#008000; color:#fff;border-color: #008000;\\\"],[12],[1,[33,5,[\\\"total_prescribed\\\"]]],[13],[1,\\\" \\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"badge alert-success\\\"],[14,5,\\\"background-color:#337ab7; color:#fff;border-color: #337ab7;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"title\\\",\\\"Case Taken\\\"],[12],[1,[33,5,[\\\"total_case_taken\\\"]]],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"badge\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[28,[35,8],[[33,5,[\\\"appointments\\\"]]],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" <span class=\\\\\\\"badge {{assigned.label}}\\\\\\\">{{count assigned.appointments}}</span> (Assigned - {{assigned.assigned}} Completed - {{assigned.completed}}) \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" <button class=\\\\\\\"btn btn-sm btn-success assign pull-right\\\\\\\" {{action \\\\\\\"assignPatientC\\\\\\\" doc.id}}>Assign</button> \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,5,[\\\"appointments\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"padding-top: 10px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"b\\\"],[12],[1,[30,5,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,5,[\\\"priority\\\"]]]]],[15,\\\"title\\\",[29,[\\\"Patient Id: \\\",[30,5,[\\\"OldRegistrationNo\\\"]],\\\", <br /> Appointment Time: \\\",[30,5,[\\\"appointment_time\\\"]],\\\" <br/> Assign Time: \\\",[28,[37,7],[[30,5,[\\\"assign_time_2_formated\\\"]],null,[30,5,[\\\"assign_time_1_formated\\\"]],[30,5,[\\\"assign_time_2_formated\\\"]]],null],\\\" ,<br /> Priority: \\\",[30,5,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[12],[1,[30,5,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"last_name\\\"]]],[13],[1,\\\"    \\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[28,[35,7],[[30,5,[\\\"onspot\\\"]],1,\\\"(\\\",\\\" \\\"],null]],[1,[28,[35,7],[[30,5,[\\\"onspot\\\"]],1,[30,5,[\\\"queue_number\\\"]],\\\" \\\"],null]],[1,[28,[35,7],[[30,5,[\\\"onspot\\\"]],1,\\\")\\\",\\\" \\\"],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[[30,5,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,5,\\\"padding-right:10px;cursor:pointer;\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,0],[[30,0],\\\"cancelAssignmentC\\\",[30,5,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove\\\"],[14,5,\\\"color:#B94A48\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,5,\\\"padding-right:10px;cursor:pointer;\\\"],[24,\\\"title\\\",\\\"Re-assign\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#reSchedule\\\"],[4,[38,0],[[30,0],\\\"reScheduleC\\\",[30,5,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-user-md\\\"],[14,5,\\\"color:#48B7B9\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,5,\\\"padding-right:10px;cursor:pointer;\\\"],[16,0,[29,[\\\"casetaken\\\",[30,5,[\\\"patient_id\\\"]]]]],[24,\\\"title\\\",\\\"Case taken\\\"],[16,\\\"data-reassign\\\",[30,5,[\\\"reassigned\\\"]]],[4,[38,0],[[30,0],\\\"reAssignC\\\",[30,5,[\\\"reassigned\\\"]],[30,5,[\\\"id\\\"]],[30,5,[\\\"booked_doctor\\\"]],[33,5,[\\\"total_case_taken\\\"]],[33,5,[\\\"id\\\"]],[30,5,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,5,\\\"padding-right:10px;cursor:pointer;\\\"],[16,0,[29,[\\\"prescribed\\\",[30,5,[\\\"patient_id\\\"]]]]],[24,\\\"title\\\",\\\"Prescribed\\\"],[4,[38,0],[[30,0],\\\"markCompleteC\\\",[30,5,[\\\"id\\\"]],[33,5,[\\\"total_prescribed\\\"]],[33,5,[\\\"id\\\"]],[30,5,[\\\"patient_id\\\"]],1],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-check\\\"],[14,5,\\\"color:#2ba2bd;font-size:24px\\\"],[12],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,7],[[30,5,[\\\"reassigned\\\"]],\\\"true\\\",\\\"- Case Taken\\\",\\\" \\\"],null]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No patient assigned. \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"appointment\\\",\\\"index\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointment\\\"],false,[\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"branchAppointments\\\",\\\"increment\\\",\\\"assigned\\\",\\\"if\\\",\\\"eq\\\",\\\"count\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/assign-doctor-doctor-view.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/assign-doctor\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Mb3KwOre\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"AssignDoctor\\\",[33,2]],null],[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\" Assign Doctor\\\"],[13],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"refreshAssignPatientModuleC\\\"],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MoveToBigScreenButton\\\",[33,2]],null],[[[1,\\\"\\\\t  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right movePQ\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"moveToBigScreenC\\\"],null],[12],[1,\\\"Move To Big Screen\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[14,5,\\\"overflow:hidden\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[14,5,\\\"width:50%!important;margin-left:0px!important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[14,5,\\\"\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[3,\\\"On Spot Booking Appoitnment pop-up \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\\n\\\"],[41,[28,[37,1],[\\\"OnspotBookingButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-success on-spot pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"onSpotModalC\\\"],null],[12],[1,\\\"+ On-Spot booking\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[14,0,\\\"patientlistingheading\\\"],[12],[10,\\\"td\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"In Clinic Patients: \\\"],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#booked-ovr\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Booked: \\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"BookedPrintButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[11,3],[24,6,\\\"#\\\"],[24,0,\\\"bookedprint\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,3],[[30,0],\\\"bookedPrint\\\",[33,4],[33,5]],null],[12],[1,\\\"Print\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"booked-ovr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8,[\\\"booked\\\"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"icp\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,2,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,10],[[30,3]],null]],[1,\\\".\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,2,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,2,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"strong\\\"],[12],[1,\\\"[ Appt ID: \\\"],[1,[30,2,[\\\"id\\\"]]],[1,\\\" ]\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[[30,2,[\\\"label\\\"]]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\")\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t:\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,9],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[30,2,[\\\"checkin_time\\\"]]],null]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,2,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t:\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,2,[\\\"balance_amount\\\"]]],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Check-In / Checked-In / Print Token \\\"],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"appointment_queue_number\\\"]],[[[41,[28,[37,9],[[30,2,[\\\"appointment_queue_number\\\"]],\\\"0\\\"],null],[[[41,[28,[37,1],[\\\"BookedCheckInButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;\\\"],[24,\\\"title\\\",\\\"Check-in\\\"],[4,[38,3],[[30,0],\\\"checkinbooked\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"branch_id\\\"]]],null],[12],[1,\\\"Check-In\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-square icon-space dashboard-fa-font check-success-icon\\\"],[14,\\\"title\\\",\\\"Checked-in\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"BookedPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PA\\\",[30,2,[\\\"appointment_queue_number\\\"]],[30,2,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,2,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],[[[41,[28,[37,1],[\\\"BookedCheckInButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;\\\"],[24,\\\"title\\\",\\\"Check-in\\\"],[4,[38,3],[[30,0],\\\"checkinbooked\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"branch_id\\\"]]],null],[12],[1,\\\"Check-In\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Pay \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,2,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[41,[28,[37,13],[[30,2,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"branch_id\\\"]],[30,2,[\\\"doctor_id\\\"]],[30,2,[\\\"OldRegistrationNo\\\"]],[30,2,[\\\"first_name\\\"]],[30,2,[\\\"middle_name\\\"]],[30,2,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Pay \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Action Menu \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,2,[\\\"id\\\"]],[30,2,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,2,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"urgent_status\\\"]],[30,2,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,2,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,2,[\\\"assign_to\\\"]],[33,15]],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,2,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,2,[\\\"id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt icon-space\\\"],[14,5,\\\"color:#029C02\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,2,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,2,[\\\"cancel_note\\\"]],[30,2,[\\\"id\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tCancelled\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,18],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,\\\"strong\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#onspot-ovr\\\"],[12],[1,\\\"On-Spot: \\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"OnSpotPrintButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"print_page_id\\\"],[14,0,\\\"onlynumeric\\\"],[14,\\\"maxlength\\\",\\\"3\\\"],[14,1,\\\"print_page_id\\\"],[14,5,\\\"width: 30px;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[11,3],[24,6,\\\"#\\\"],[24,0,\\\"onspotprint\\\"],[4,[38,3],[[30,0],\\\"onspotPrint\\\",[33,4],[33,5]],null],[12],[1,\\\"Print\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"onspot-ovr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"<tr><td><strong>Patient Queue:</strong> </td></tr> \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8,[\\\"onspot\\\"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,5,[\\\"icp\\\"]]],null]],null],null,[[[41,[30,6,[\\\"queue_number\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,6,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"queue_number\\\"]]],[1,\\\". \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,6,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,6,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,6,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,6,[\\\"priority\\\"]],\\\" \\\"]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,6,[\\\"priority\\\"]]]]],[12],[1,[30,6,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[13],[13],[1,\\\"- \\\"],[10,1],[15,0,[29,[[30,6,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,6,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\" : \\\"],[1,[30,6,[\\\"appointment_time\\\"]]],[41,[28,[37,11],[[30,6,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,6,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,6,[\\\"id\\\"]],[30,6,[\\\"advance_payment_received\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,6,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,6,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,6,[\\\"id\\\"]],[30,6,[\\\"urgent_status\\\"]],[30,6,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,6,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,6,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,6,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,6,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,6,[\\\"queue_number\\\"]],[[[41,[28,[37,9],[[30,6,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"PQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,6,[\\\"queue_number\\\"]],[30,6,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,6,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,6,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[41,[28,[37,13],[[30,6,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;padding-left: 20px;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,6,[\\\"id\\\"]],[30,6,[\\\"patient_id\\\"]],[30,6,[\\\"branch_id\\\"]],[30,6,[\\\"doctor_id\\\"]],[30,6,[\\\"OldRegistrationNo\\\"]],[30,6,[\\\"first_name\\\"]],[30,6,[\\\"middle_name\\\"]],[30,6,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,9],[[30,6,[\\\"assign_to\\\"]],[33,15]],null],[[[41,[28,[37,9],[[30,6,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"float-right\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,6,[\\\"id\\\"]],[30,6,[\\\"patient_id\\\"]],[30,6,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt icon-space\\\"],[14,5,\\\"color:#029C02\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,6,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,6,[\\\"cancel_note\\\"]],[30,6,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,6,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule float-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,6,[\\\"id\\\"]],[30,6,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null]],[5]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[14,0,\\\"patientlistingheading\\\"],[12],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Medicine Queue:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MoveToBigScreenButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"moveToBigScreenMedicine\\\"],null],[12],[1,\\\"Move To Big Screen\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8,[\\\"onspot\\\"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,8,[\\\"medicine\\\"]]],null]],null],null,[[[41,[30,9,[\\\"medicine_queue_number\\\"]],[[[41,[28,[37,19],[[28,[37,9],[[30,9,[\\\"medicine_complete\\\"]],\\\"0\\\"],null],[28,[37,9],[[30,9,[\\\"absent\\\"]],\\\"0\\\"],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,9,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,9,[\\\"medicine_queue_number\\\"]]],[1,\\\". \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[15,\\\"disabled\\\",[28,[37,9],[[30,9,[\\\"big_screen\\\"]],\\\"1\\\"],null]],[14,3,\\\"selected_patient_big_medicine\\\"],[15,2,[29,[[30,9,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,9,[\\\"patient_id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,9,[\\\"appointment_type\\\"]],\\\"email rm\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"b\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,9,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,9,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,9,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,9,[\\\"priority\\\"]]]]],[12],[1,[30,9,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,9,[\\\"appointment_time_2\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,9,[\\\"id\\\"]],[30,9,[\\\"advance_payment_received\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,9,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,9,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,9,[\\\"id\\\"]],[30,9,[\\\"urgent_status\\\"]],[30,9,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,9,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,9,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,9,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,9,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,9,[\\\"medicine_queue_number\\\"]],[[[41,[28,[37,9],[[30,9,[\\\"medicine_queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"MQMarkComplete\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Mark Complete\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"markCompleteMedicineC\\\",[30,9,[\\\"id\\\"]],1],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-prescription icon-space dashboard-fa-font mark-complete-icon\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"MQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space print-icon float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"MQ\\\",[30,9,[\\\"medicine_queue_number\\\"]],[30,9,[\\\"appointment_time\\\"]],[33,4],[33,5],\\\"\\\"],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[28,[37,9],[[30,9,[\\\"big_screen\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,5,\\\"padding-right:10px;cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Big Screen Patient\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,9,[\\\"id\\\"]],[30,9,[\\\"patient_id\\\"]],[30,9,[\\\"appointment_type\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[9,10]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[8]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[14,0,\\\"patientlistingheading\\\"],[12],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[1,\\\"Out Clinic Patients: \\\"],[13],[13],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8,[\\\"ocpappt\\\"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,11,[\\\"vc\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,13],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"VC Appointments:\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,12,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,10],[[30,13]],null]],[1,\\\".\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,12,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,12,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,12,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,12,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,12,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,12,[\\\"priority\\\"]]]]],[12],[1,[30,12,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,12,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,12,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[13],[13],[1,\\\"- \\\"],[10,1],[15,0,[29,[[30,12,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,12,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,12,[\\\"absent\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-bold\\\"],[12],[1,[30,12,[\\\"appointment_date_month\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\"],[10,1],[12],[1,\\\": \\\"],[1,[30,12,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[41,[28,[37,11],[[30,12,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,12,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,12,[\\\"id\\\"]],[30,12,[\\\"advance_payment_received\\\"]],[30,12,[\\\"appointment_booked_from\\\"]],[30,12]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,12,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,12,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,12,[\\\"id\\\"]],[30,12,[\\\"urgent_status\\\"]],[30,12,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,12,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,12,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,12,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,12,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,12,[\\\"queue_number\\\"]],[[[41,[28,[37,9],[[30,12,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"PQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,12,[\\\"queue_number\\\"]],[30,12,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,12,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,12,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,12,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;padding-left: 20px;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,12,[\\\"id\\\"]],[30,12,[\\\"patient_id\\\"]],[30,12,[\\\"branch_id\\\"]],[30,12,[\\\"doctor_id\\\"]],[30,12,[\\\"OldRegistrationNo\\\"]],[30,12,[\\\"first_name\\\"]],[30,12,[\\\"middle_name\\\"]],[30,12,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,9],[[30,12,[\\\"assign_to\\\"]],[33,15]],null],[[[41,[28,[37,9],[[30,12,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"float-right\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,12,[\\\"id\\\"]],[30,12,[\\\"patient_id\\\"]],[30,12,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt\\\"],[14,5,\\\"color:#029C02\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,12,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,12,[\\\"cancel_note\\\"]],[30,12,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,12,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule float-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,12,[\\\"id\\\"]],[30,12,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[12,13]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,11,[\\\"phone\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,15],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Phone Appointments:\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,14,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,10],[[30,15]],null]],[1,\\\".\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,14,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,14,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,14,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,14,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,14,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,14,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,14,[\\\"priority\\\"]]]]],[12],[1,[30,14,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,14,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,14,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[13],[13],[1,\\\"- \\\"],[10,1],[15,0,[29,[[30,14,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,14,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,14,[\\\"absent\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-bold\\\"],[12],[1,[30,14,[\\\"appointment_date_month\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\"],[10,1],[12],[1,\\\": \\\"],[1,[30,14,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[41,[28,[37,11],[[30,14,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,14,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,14,[\\\"id\\\"]],[30,14,[\\\"advance_payment_received\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,14,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,14,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,14,[\\\"id\\\"]],[30,14,[\\\"urgent_status\\\"]],[30,14,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,14,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,14,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent dashboard-fa-font icon-space\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,14,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent dashboard-fa-font icon-space\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,14,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,14,[\\\"queue_number\\\"]],[[[41,[28,[37,9],[[30,14,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"PQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,14,[\\\"queue_number\\\"]],[30,14,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,14,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,14,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,14,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;padding-left: 20px;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,14,[\\\"id\\\"]],[30,14,[\\\"patient_id\\\"]],[30,14,[\\\"branch_id\\\"]],[30,14,[\\\"doctor_id\\\"]],[30,14,[\\\"OldRegistrationNo\\\"]],[30,14,[\\\"first_name\\\"]],[30,14,[\\\"middle_name\\\"]],[30,14,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,9],[[30,14,[\\\"assign_to\\\"]],[33,15]],null],[[[41,[28,[37,9],[[30,14,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"float-right\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,14,[\\\"id\\\"]],[30,14,[\\\"patient_id\\\"]],[30,14,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt\\\"],[14,5,\\\"color:#029C02\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,14,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,14,[\\\"cancel_note\\\"]],[30,14,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,14,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule float-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,14,[\\\"id\\\"]],[30,14,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[14,15]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,11,[\\\"email\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,17],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Email Appointments:\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,16,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,10],[[30,17]],null]],[1,\\\".\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,16,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,16,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,16,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,16,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,16,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,16,[\\\"priority\\\"]],\\\" \\\"]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,16,[\\\"priority\\\"]]]]],[12],[1,[30,16,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,16,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,16,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[13],[13],[1,\\\"- \\\"],[10,1],[15,0,[29,[[30,16,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,16,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,16,[\\\"absent\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-bold\\\"],[12],[1,[30,16,[\\\"appointment_date_month\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\"],[10,1],[12],[1,\\\": \\\"],[1,[30,16,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[41,[28,[37,11],[[30,16,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,16,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Cancel\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,16,[\\\"id\\\"]],[30,16,[\\\"advance_payment_received\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,16,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,16,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,16,[\\\"id\\\"]],[30,16,[\\\"urgent_status\\\"]],[30,16,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent dashboard-fa-font icon-space\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,16,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,16,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent dashboard-fa-font icon-space\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,16,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent dashboard-fa-font icon-space\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,16,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,16,[\\\"queue_number\\\"]],[[[41,[28,[37,9],[[30,16,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"PQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,16,[\\\"queue_number\\\"]],[30,16,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,16,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,16,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,16,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;padding-left: 20px;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,16,[\\\"id\\\"]],[30,16,[\\\"patient_id\\\"]],[30,16,[\\\"branch_id\\\"]],[30,16,[\\\"doctor_id\\\"]],[30,16,[\\\"OldRegistrationNo\\\"]],[30,16,[\\\"first_name\\\"]],[30,16,[\\\"middle_name\\\"]],[30,16,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,9],[[30,16,[\\\"assign_to\\\"]],[33,15]],null],[[[41,[28,[37,9],[[30,16,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"float-right\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,16,[\\\"id\\\"]],[30,16,[\\\"patient_id\\\"]],[30,16,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt icon-space\\\"],[14,5,\\\"color:#029C02\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,16,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,16,[\\\"cancel_note\\\"]],[30,16,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,16,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule float-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,16,[\\\"id\\\"]],[30,16,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[16,17]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,11,[\\\"ocp\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,19],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,0,\\\"paddingleft15\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"OCP Visit Appointments:\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[15,0,[29,[[28,[37,9],[[30,18,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,10],[[30,19]],null]],[1,\\\".\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"selected_patient\\\"],[15,2,[29,[[30,18,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,18,[\\\"id\\\"]]]]],[15,\\\"data-priority\\\",[29,[[30,18,[\\\"priority\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,18,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[30,18,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,18,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,18,[\\\"priority\\\"]]]]],[12],[1,[30,18,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,18,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,18,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,\\\"strong\\\"],[12],[13],[13],[1,\\\"- \\\"],[10,1],[15,0,[29,[[30,18,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,18,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,18,[\\\"ocp_slot\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,18,[\\\"absent\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-bold\\\"],[12],[1,[30,18,[\\\"appointment_date_month\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null],[1,\\\" \\\"],[3,\\\" : {{appointment.appointment_time}} \\\"],[1,\\\"\\\\n                  \\\"],[41,[28,[37,11],[[30,18,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,18,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PQCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Cancel\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"cancelOnSpotC\\\",[30,18,[\\\"id\\\"]],[30,18,[\\\"advance_payment_received\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-times cancel-appointment dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,18,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,18,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,18,[\\\"id\\\"]],[30,18,[\\\"urgent_status\\\"]],[30,18,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent dashboard-fa-font icon-space\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,18,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,18,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-non-urgent dashboard-fa-font icon-space\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,18,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent dashboard-fa-font icon-space\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,18,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[30,18,[\\\"queue_number\\\"]],[[[41,[28,[37,9],[[30,18,[\\\"queue_number\\\"]],\\\"0\\\"],null],[[],[]],[[[41,[28,[37,1],[\\\"PQPrintToken\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-print dashboard-fa-font icon-space float-right\\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,3],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,18,[\\\"queue_number\\\"]],[30,18,[\\\"appointment_time\\\"]],[33,4],[33,5],[30,18,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Visit Address: {{appointment.ocp_visit_address}} \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start address icon \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Here permission missing so we have added permission, written by shubh tiwari as on 16 April 2022 \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AddressIconButton\\\",[33,2]],null],[[[1,\\\"                                        \\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"title\\\",\\\"OCP Visit Address\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#mapAddressModel\\\"],[4,[38,3],[[30,0],\\\"showMapAddress\\\",[30,18,[\\\"ocp_visit_address\\\"]]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-map-marker-alt map-icon dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End address icon \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,18,[\\\"advance_required\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,18,[\\\"advance_payment_received\\\"]],0],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"user-check-in icon-space\\\"],[24,5,\\\"cursor:pointer;color:#ff0000;text-decoration:underline;padding-left: 20px;\\\"],[24,\\\"title\\\",\\\"Pay\\\"],[4,[38,3],[[30,0],\\\"payAdvancePayment\\\",[30,18,[\\\"id\\\"]],[30,18,[\\\"patient_id\\\"]],[30,18,[\\\"branch_id\\\"]],[30,18,[\\\"doctor_id\\\"]],[30,18,[\\\"OldRegistrationNo\\\"]],[30,18,[\\\"first_name\\\"]],[30,18,[\\\"middle_name\\\"]],[30,18,[\\\"last_name\\\"]],\\\"2\\\"],null],[12],[1,\\\"Pay\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,9],[[30,18,[\\\"assign_to\\\"]],[33,15]],null],[[[41,[28,[37,9],[[30,18,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,16],null,[[\\\"title\\\",\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"float-right\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,17],[[30,18,[\\\"id\\\"]],[30,18,[\\\"patient_id\\\"]],[30,18,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt icon-space\\\"],[14,5,\\\"color:#029C02\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start cancel_status button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,18,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,3],[[30,0],\\\"showCancelNote\\\",[30,18,[\\\"cancel_note\\\"]],[30,18,[\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End cancel_status button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,18,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule float-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,18,[\\\"id\\\"]],[30,18,[\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font float-right\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[18,19]],null],[1,\\\"\\\\n\\\"]],[11]],null],[41,[28,[37,9],[[33,20],\\\"0\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[14,5,\\\"width:50%!important;margin-left:0px!important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Doctors\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,21]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[15,6,[29,[\\\"#\\\",[30,20,[\\\"label\\\"]]]]],[12],[10,\\\"label\\\"],[15,0,[29,[\\\"control-label \\\",[30,20,[\\\"label\\\"]]]]],[14,5,\\\"cursor:pointer!important\\\"],[12],[10,\\\"b\\\"],[12],[1,[30,20,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[\\\"badge  \\\",[30,20,[\\\"label\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[14,5,\\\"background-color:#008000; color:#fff;border-color: #008000;\\\"],[12],[1,[30,20,[\\\"total_prescribed\\\"]]],[13],[1,\\\" \\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"badge alert-success\\\"],[14,5,\\\"background-color:#337ab7; color:#fff;border-color: #337ab7;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[1,[30,20,[\\\"total_case_taken\\\"]]],[13],[1,\\\" \\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"badge\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[28,[35,22],[[30,20,[\\\"appointments\\\"]]],null]],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" <span class=\\\\\\\"badge  {{doc.label}}\\\\\\\">{{count doc.appointments}}</span> (Assigned - {{doc.assigned}} Completed - {{doc.completed}}) \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DAssignButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success assign pull-right m-b-5\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"assignPatientC\\\",[30,20,[\\\"id\\\"]]],null],[12],[1,\\\"Assign\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ol\\\"],[14,0,\\\"right-column-ol numberlist\\\"],[15,1,[29,[[30,20,[\\\"label\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,20,[\\\"appointments\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"right-list \\\",[28,[37,9],[[30,21,[\\\"absent\\\"]],\\\"1\\\",\\\"absent\\\",\\\" \\\"],null]]]],[14,5,\\\"padding: 6px;\\\"],[12],[1,\\\".\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"checkbox-list \\\",[28,[37,9],[[30,21,[\\\"big_screen\\\"]],\\\"1\\\",\\\"displaynone\\\"],null]]]],[14,3,\\\"selected_patient_big\\\"],[15,2,[29,[[30,21,[\\\"patient_id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,21,[\\\"id\\\"]]]]],[15,\\\"rel\\\",[29,[[30,20,[\\\"id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"b\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,21,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"capitalize\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Patient Id: \\\",[30,21,[\\\"OldRegistrationNo\\\"]],\\\" <br /> Appointment Time: \\\",[30,21,[\\\"appointment_time\\\"]],\\\" <br /> Assign Time: \\\",[28,[37,9],[[30,21,[\\\"assign_time_2_formated\\\"]],null,[30,21,[\\\"assign_time_1_formated\\\"]],[30,21,[\\\"assign_time_2_formated\\\"]]],null],\\\" \\\",[28,[37,9],[[30,21,[\\\"checkin_time\\\"]],null,\\\" \\\",\\\"<br/> Check-In Time: \\\",[30,21,[\\\"checkin_time\\\"]]],null],\\\" \\\",[30,21,[\\\"checkin_time\\\"]],\\\" <br /> Priority: \\\",[30,21,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,0,[29,[\\\"capitalize \\\",[30,21,[\\\"priority\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,21,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,21,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,21,[\\\"last_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"<span class=\\\\\\\"capitalize\\\\\\\" title=\\\\\\\"Patient Id: {{appointment.OldRegistrationNo}} <br /> Appointment Time: {{appointment.appointment_time}} <br /> Assign Time: {{eq appointment.assign_time_2_formated null appointment.assign_time_1_formated appointment.assign_time_2_formated }} {{eq appointment.checkin_time null ' '  \\\\\\\"<br/> Check-In Time: \\\\\\\"appointment.checkin_time }} {{appointment.checkin_time}} <br /> Priority: {{appointment.priority}}\\\\\\\" data-toggle=\\\\\\\"tooltip\\\\\\\" data-placement=\\\\\\\"top\\\\\\\" class=\\\\\\\"capitalize {{appointment.priority}}\\\\\\\"> {{appointment.first_name}} {{appointment.middle_name}} {{appointment.last_name}}</span>  \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,21,[\\\"appointment_type\\\"]],\\\"icp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,[28,[35,9],[[30,21,[\\\"onspot\\\"]],1,\\\"(\\\",\\\" \\\"],null]],[1,[28,[35,9],[[30,21,[\\\"onspot\\\"]],1,[30,21,[\\\"queue_number\\\"]],\\\" \\\"],null]],[1,[28,[35,9],[[30,21,[\\\"onspot\\\"]],1,\\\")\\\",\\\" \\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[15,0,[29,[[30,21,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,21,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" OCP SLOT \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,21,[\\\"appointment_type\\\"]],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[1,\\\" \\\"],[1,[30,21,[\\\"ocp_slot\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Absent Case Date \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,21,[\\\"absent\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-bold\\\"],[12],[1,[30,21,[\\\"appointment_date_month\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Absent Case Date \\\"],[1,\\\"\\\\n                         \\\"],[41,[28,[37,11],[[30,21,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" : \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag-alignment\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,12],[[30,21,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,21,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start button Dropdown \\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"btn-group frontdesk-dashboard doctor-group-action vertical-align float-right\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent z-index-0\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars dashboard-fa-font fa-action icon-side-margin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Cancel button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DCancelButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,23],[[33,24],[30,21,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Cancel\\\"],[4,[38,3],[[30,0],\\\"cancelAssignmentC\\\",[30,21,[\\\"id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle icon-space dashboard-fa-font cancel-icon\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Cancel button \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,21,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,21,[\\\"appointment_id\\\"]],[30,21,[\\\"urgent_status\\\"]],[30,21,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Non Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,21,[\\\"appointment_id\\\"]]],null],[12],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,9],[[30,21,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start absent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DAbsentButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,23],[[33,24],[30,21,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Absent\\\"],[4,[38,3],[[30,0],\\\"absentPatientC\\\",[30,21,[\\\"id\\\"]],[30,21,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash icon-space dashboard-fa-font absent-icon\\\"],[12],[13],[1,\\\" Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End absent button \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Re-schedule button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,23],[[33,24],[30,21,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Reschedule\\\"],[4,[38,3],[[30,0],\\\"frontdeskDrReschedulePatient\\\",[30,21,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus icon-space dashboard-fa-font fa-reschedule\\\"],[12],[13],[1,\\\"  Reschedule \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Re-schedule button \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ShippingPreferenceButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,23],[[33,24],[30,21,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,3],[[30,0],[30,4],[30,21,[\\\"appointment_id\\\"]],[30,21,[\\\"patient_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"Shipping preference\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End button Dropdown \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DReAssignButton\\\",[33,2]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[16,0,[29,[[52,[28,[37,23],[[33,24],[30,21,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Re-assign\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"reScheduleC\\\",[30,21,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet icon-space dashboard-fa-font\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start address icon \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Here permission missing so we have added permission, written by shubh tiwari as on 16 April 2022 \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AddressIconButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,21,[\\\"appointment_type\\\"]],\\\"ocp\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,0,\\\"float-right\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"title\\\",\\\"OCP Visit Address\\\"],[24,\\\"data-target\\\",\\\"#mapAddressModel\\\"],[4,[38,3],[[30,0],\\\"showMapAddress\\\",[30,21,[\\\"ocp_visit_address\\\"]]],null],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-map-marker-alt map-icon dashboard-fa-font icon-space\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End address icon \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Start urgent button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"markUrgentButton\\\",[33,2]],null],[[[41,[28,[37,9],[[30,21,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\\t\\\\t\\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#frontMarkUrgent\\\"],[24,0,\\\"float-right\\\"],[4,[38,3],[[30,0],\\\"frontUrgentPatientC\\\",[30,21,[\\\"appointment_id\\\"]],[30,21,[\\\"urgent_status\\\"]],[30,21,[\\\"urgent_note\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,21,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,9],[[30,21,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"float-right\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,21,[\\\"urgent_note\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End urgent button \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,9],[[30,21,[\\\"reassigned\\\"]],\\\"true\\\",\\\"- Case Taken\\\",\\\" \\\"],null]],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[28,[37,9],[[30,21,[\\\"big_screen\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"icon-space\\\"],[14,\\\"title\\\",\\\"Big Screen Patient\\\"],[12],[10,\\\"img\\\"],[14,\\\"width\\\",\\\"14px\\\"],[14,\\\"src\\\",\\\"img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[21]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No patient assigned. \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[20]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No doctor found \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"appointmenType\\\",\\\"appointment\\\",\\\"index\\\",\\\"@setShippingPreference\\\",\\\"appointmenType\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointmentObj\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointmenType\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointment\\\",\\\"index\\\",\\\"appointment\\\",\\\"index\\\",\\\"doc\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"user_shift_id\\\",\\\"branch_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"branchAppointments\\\",\\\"eq\\\",\\\"increment\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"ifeg\\\",\\\"booked-from-badge\\\",\\\"user_id\\\",\\\"link-to\\\",\\\"array\\\",\\\"bookedAppCount\\\",\\\"and\\\",\\\"onspotAppCount\\\",\\\"assigned\\\",\\\"count\\\",\\\"find-array-value\\\",\\\"tablist\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/assign-doctor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/assigned-patient-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"sP0HXJkU\",\n    \"block\": \"[[[10,0],[14,0,\\\"col-xs-12\\\"],[14,5,\\\"margin-left:0px!important;\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Doctors\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[15,6,[29,[\\\"#\\\",[30,1,[\\\"label\\\"]]]]],[12],[10,\\\"label\\\"],[15,0,[29,[\\\"control-label pull-left \\\",[30,1,[\\\"label\\\"]]]]],[14,5,\\\"cursor:pointer!important\\\"],[12],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"doctor_name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"ol\\\"],[15,1,[29,[[30,1,[\\\"label\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"appointments\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"padding-top: 10px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"capitalize\\\"],[14,5,\\\"padding-right: 10px;\\\"],[15,\\\"title\\\",[29,[\\\"Patient Id: \\\",[30,2,[\\\"OldRegistrationNo\\\"]],\\\", <br /> Appointment Time: \\\",[30,2,[\\\"appointment_time\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,1],[15,0,[29,[[30,2,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,3],[[30,2,[\\\"reassigned\\\"]],\\\"true\\\",\\\"- Case Taken\\\",\\\" \\\"],null]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No patient assigned. \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No doctor found \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"doc\\\",\\\"appointment\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"assigned\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/assigned-patient-daily.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/batch-refund-details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"R2fSdIVM\",\n    \"block\": \"[[[10,0],[14,0,\\\"refund-detail-wrap\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,1],[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"full\\\"],null],[[[1,\\\"\\\\n  \\\"],[3,\\\" Page Header \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"rd-detail-header\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-box-open\\\"],[12],[13],[1,\\\"\\\\n        Batch Refund Details\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,1],[14,0,\\\"rd-detail-subtitle\\\"],[12],[1,\\\"\\\\n        View and manage refund transactions for this batch\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,4],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rd-back-btn\\\"],[4,[38,5],[[30,0],\\\"onBack\\\"],null],[12],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\"\\\\n      Back to Dashboard\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\" Batch Information \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"rd-detail-panel\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,5,\\\"margin: 0; font-size: 16px; font-weight: 600; color: #1a1a1a;\\\"],[12],[1,\\\"Batch \\\"],[1,[34,6]],[13],[1,\\\"\\\\n      \\\"],[11,1],[24,0,\\\"rd-count-pill dcursor\\\"],[24,\\\"title\\\",\\\"Reload batch data\\\"],[4,[38,5],[[30,0],\\\"refresh\\\"],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"i\\\"],[14,0,\\\"glyphicon glyphicon-refresh\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row rd-info-row\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-xs-6 rd-info-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-info-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-label\\\"],[12],[1,\\\"Batch ID\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-value\\\"],[12],[1,[34,6]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-xs-6 rd-info-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-info-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-label\\\"],[12],[1,\\\"Source\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-value capitalize\\\"],[12],[1,[34,7]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-xs-6 rd-info-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-info-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-label\\\"],[12],[1,\\\"Initiated By\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-value\\\"],[12],[1,[34,8]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-xs-6 rd-info-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-info-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-label\\\"],[12],[1,\\\"Created At\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-value\\\"],[12],[1,[34,9]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"row rd-info-row\\\"],[14,5,\\\"margin-top: 8px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-12 rd-info-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-info-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-label\\\"],[12],[1,\\\"Reason\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-info-value rd-batch-reason\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[3,\\\" Embedded Mode: Compact Header \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[14,5,\\\"margin-bottom: 16px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-heading\\\"],[14,5,\\\"padding: 12px 16px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"strong\\\"],[14,5,\\\"font-size: 14px; color: #1a1a1a;\\\"],[12],[1,\\\"Batch \\\"],[1,[34,6]],[13],[1,\\\"\\\\n          \\\"],[10,1],[14,5,\\\"margin-left: 8px; font-size: 12px; color: #737373;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,2],[[33,12],\\\"completed\\\"],null],[28,[37,2],[[33,12],\\\"completed_with_errors\\\"],null]],null],[[[1,\\\"            All refunds settled\\\\n\\\"]],[]],[[[1,\\\"            Processing refunds...\\\\n            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[14,5,\\\"margin-left: 4px;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"             · started \\\"],[1,[34,9]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"rd-count-pill dcursor\\\"],[24,\\\"title\\\",\\\"Reload batch data\\\"],[4,[38,5],[[30,0],\\\"refresh\\\"],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"i\\\"],[14,0,\\\"glyphicon glyphicon-refresh\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,13],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,5,\\\"background: none; border: none; color: #a3a3a3; cursor: pointer; font-size: 18px; line-height: 1;\\\"],[4,[38,5],[[30,0],\\\"close\\\"],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[3,\\\" Summary Cards (shared) \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"rd-detail-panel mt-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row rd-info-row\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-2 col-xs-6 rd-summary-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-summary-card rd-total\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-label\\\"],[12],[1,\\\"Total\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-value\\\"],[12],[1,[34,14]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-2 col-xs-6 rd-summary-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-summary-card rd-refunded\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-label\\\"],[12],[1,\\\"Refunded\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-value rd-refunded-value\\\"],[12],[1,[34,15]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-2 col-xs-6 rd-summary-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-summary-card rd-pending\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-label\\\"],[12],[1,\\\"Pending\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-value rd-pending-value\\\"],[12],[1,[34,16]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-2 col-xs-6 rd-summary-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-summary-card rd-failed\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-label\\\"],[12],[1,\\\"Failed\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-value rd-failed-value\\\"],[12],[1,[34,17]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4 col-xs-12 rd-summary-col\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"rd-summary-card rd-status-card\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-label\\\"],[12],[1,\\\"Batch Status\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"rd-summary-value\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,12],\\\"processing\\\"],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"rd-status rd-status-processing\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[12],[13],[1,\\\" Processing\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[33,12],\\\"completed\\\"],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"rd-status rd-status-completed\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[12],[13],[1,\\\" Completed\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[33,12],\\\"completed_with_errors\\\"],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"rd-status rd-status-errors\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-triangle\\\"],[12],[13],[1,\\\" Completed with Errors\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"rd-status rd-status-default\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n            \\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Search (full mode only) \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"full\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"rd-search-box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"rd-search-label\\\"],[12],[1,\\\"Search Refunds\\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,18],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\",\\\"key-press\\\"],[\\\"text\\\",[33,19],\\\"form-control rd-search-input\\\",\\\"Search by appointment ID or patient...\\\",[28,[37,5],[[30,0],\\\"filterRefunds\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[3,\\\" Table \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"rd-table-wrap\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-hover rd-refund-table\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appointment ID\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Order Id\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Gateway\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,5,\\\"text-align: right;\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Bank Ref / ARN\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"full\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Failure Reason\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,20,[\\\"length\\\"]],[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[33,20]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-appointment-id\\\"],[12],[1,[30,1,[\\\"appointmentId\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-mono\\\"],[12],[1,[30,1,[\\\"orderId\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"strong\\\"],[12],[1,[30,1,[\\\"patientName\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-gateway\\\"],[12],[1,[30,1,[\\\"gateway\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[14,5,\\\"text-align: right;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-amount\\\"],[12],[1,\\\"₹\\\"],[1,[30,1,[\\\"amount\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"queued\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-queued\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-clock\\\"],[12],[13],[1,\\\" Queued\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"initiated\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-initiated\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[12],[13],[1,\\\" Initiated\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"pending\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-pending\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-hourglass-half\\\"],[12],[13],[1,\\\" Pending\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"pending_manual\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-pending\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-hourglass-half\\\"],[12],[13],[1,\\\" Manual Refund\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"processed\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-processed\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[12],[13],[1,\\\" Processed\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"failed\\\"],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-failed\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle\\\"],[12],[13],[1,\\\" Failed\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"rd-refund-status rd-refund-default\\\"],[12],[1,[30,1,[\\\"status\\\"]]],[13],[1,\\\"\\\\n              \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-mono\\\"],[12],[1,[30,1,[\\\"bankRef\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"full\\\"],null],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"rd-failure\\\"],[12],[1,[30,1,[\\\"failureReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,5,\\\"font-size: 12px; color: #525252;\\\"],[12],[1,[30,1,[\\\"createdAt\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"failed\\\"],null],[28,[37,2],[[30,1,[\\\"status\\\"]],\\\"queued\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rd-retry-btn btn-xs\\\"],[4,[38,5],[[30,0],\\\"retryRefund\\\",[30,1,[\\\"id\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-redo\\\"],[12],[13],[1,\\\" Retry\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"9\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"rd-empty\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-inbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,\\\"No refund records found.\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 10px;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"color: #6e7588; font-size: 12px; font-family: 'Open Sans'; margin-left: 4px;\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[34,23]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,24],[[[1,\\\"        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation example\\\"],[14,0,\\\"pagination_cware\\\"],[14,5,\\\"flex-shrink: 0; margin-right: 4px;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-end\\\"],[14,5,\\\"margin: 0; display: inline-flex;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,2],[[33,25],1],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,5],[[30,0],\\\"refundPrevPage\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[28,[37,26],[[33,25],[33,24]],null]],null]],null],null,[[[41,[28,[37,2],[[30,2],\\\"...\\\"],null],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,2],[[33,25],[30,2]],null],\\\"current\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,5],[[30,0],\\\"refundGoToPage\\\",[30,2]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,2]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]],null],[1,\\\"          \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,2],[[33,25],[33,24]],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,5],[[30,0],\\\"refundNextPage\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[3,\\\" Empty State \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"rd-detail-panel\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"rd-empty\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-inbox\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Batch not found or access denied.\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,4],[[[1,\\\"      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rd-back-btn\\\"],[4,[38,5],[[30,0],\\\"onBack\\\"],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back to Dashboard\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"refund\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"batch\\\",\\\"eq\\\",\\\"mode\\\",\\\"onBack\\\",\\\"action\\\",\\\"batchId\\\",\\\"batchSource\\\",\\\"initiatedBy\\\",\\\"createdAt\\\",\\\"batchReason\\\",\\\"or\\\",\\\"batchStatus\\\",\\\"showClose\\\",\\\"totalCount\\\",\\\"processedCount\\\",\\\"pendingCount\\\",\\\"failedCount\\\",\\\"input\\\",\\\"searchQuery\\\",\\\"paginatedRefunds\\\",\\\"each\\\",\\\"-track-array\\\",\\\"refundPaginationInfo\\\",\\\"refundTotalPages\\\",\\\"refundPage\\\",\\\"pagination-pages\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/batch-refund-details.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/billed-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"9wHHMDzF\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right marginbottom15\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n                    \\\"],[3,\\\" {{#link-to \\\\\\\"billing.prescribeedit\\\\\\\" visiting_id billing_id PrescribePatient.[0].patient_id class=\\\\\\\"btn btn-success btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\" title=\\\\\\\"Edit Prescribe Medicine\\\\\\\"}} <i class=\\\\\\\"fa fa-pencil-square-o\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\"></i> Prescribed Medicine Edit {{/link-to}}\\\\n                    {{#link-to \\\\\\\"billing.list\\\\\\\" class=\\\\\\\"btn btn-warning btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\"}}<i class=\\\\\\\"fa fa-arrow-left\\\\\\\"></i> Back {{/link-to}}\\\\n                   {{#link-to \\\\\\\"billing.prescribeedit\\\\\\\" visiting_id billing_id PrescribePatient.[0].patient_id class=\\\\\\\"btn btn-success btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\" title=\\\\\\\"Edit Prescribe Medicine\\\\\\\"}} <i class=\\\\\\\"fa fa-pencil-square-o\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\"></i> Medicine Edit {{/link-to}}\\\"],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                            \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,6],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,5],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                            \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,[28,[35,7],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,7],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,7],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[1,[28,[35,8],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,9],[[[1,\\\"\\\\n                                            \\\"],[1,[34,9]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"title\\\",[29,[[36,10]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            0.00\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,11],null,[[\\\"errors_list\\\"],[[33,12]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                                            \\\"],[1,[28,[35,13],[[33,14]],[[\\\"PrescribePatient\\\"],[[33,3]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\" Trigger the modal with a button \\\"],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-reprint cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"1\\\",[33,15,[\\\"report_advice\\\"]]],null],\\\"true\\\"]],[14,3,\\\"report_advice\\\"],[14,1,\\\"report_advice\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\"<div class=\\\\\\\"col-md-5\\\\\\\">\\\\n                                        <label> <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cw_print_check\\\\\\\" value=\\\\\\\"print_case\\\\\\\" checked={{if (eq 'print_case' print_option.print_case) 'true'}} name=\\\\\\\"print_case\\\\\\\" id=\\\\\\\"print_case\\\\\\\" /> Print Case X </label>&nbsp;\\\\n                                        &nbsp;<input type=\\\\\\\"number\\\\\\\" id=\\\\\\\"print_case_val\\\\\\\" name=\\\\\\\"print_case_val\\\\\\\" style=\\\\\\\"width:20%;\\\\\\\" oninput={{action 'checkMaxPrintCopy'}} min=\\\\\\\"1\\\\\\\" max=\\\\\\\"9\\\\\\\" class=\\\\\\\"onlynumeric\\\\\\\" value=\\\\\\\"{{print_option.print_case_val}}\\\\\\\">\\\\n                                    </div>\\\\n                                    <div class=\\\\\\\"col-md-4\\\\\\\">\\\\n                                        <label> <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cw_print_check\\\\\\\" checked={{if (eq 'clinic_used' print_option.clinic_used) 'true'}} value=\\\\\\\"clinic_used\\\\\\\" name=\\\\\\\"clinic_used\\\\\\\" id=\\\\\\\"clinic_used\\\\\\\" /> For Clinic Use Only </label>\\\\n                                    </div> \\\"],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"input\\\"],[14,0,\\\"checkboxinvisible\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"PE\\\",[33,16]],null],\\\"true\\\"]],[14,3,\\\"prescriptionemail\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_domestic\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"domestic\\\",[33,15,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"domestic\\\"],[14,3,\\\"print_option\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"international\\\",[33,15,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"international\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,3,\\\"print_option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"evlp_label\\\",[33,15,[\\\"evlp_label\\\"]]],null],\\\"true\\\"]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"domst_cons_presc\\\",[33,15,[\\\"domst_cons_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"inc_presc\\\",[33,15,[\\\"inc_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"cons_presc\\\",[33,15,[\\\"cons_presc\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,17]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"add_label\\\",[33,15,[\\\"add_label\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,17]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"receipt\\\",[33,15,[\\\"receipt\\\"]]],null],\\\"true\\\"]],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"medical_certificate\\\",[33,15,[\\\"medical_certificate\\\"]]],null],\\\"true\\\"]],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[15,\\\"checked\\\",[52,[28,[37,5],[\\\"med_label\\\",[33,15,[\\\"med_label\\\"]]],null],\\\"true\\\"]],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-10 text-right\\\"],[12],[1,\\\"\\\\n                                        \\\"],[3,\\\"\\\\n                                          This button is used in Previous version of print option, Rahul Khan, 27 sept 2019\\\\n                                           <button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-sm\\\\\\\" data-toggle=\\\\\\\"modal\\\\\\\" data-target=\\\\\\\"#reprint\\\\\\\" {{action @reprintOptions }}>Re-print</button> \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,18],[\\\"BilledRePrintButton\\\",[33,19]],null],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,4]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print\\\"],[12],[13],[1,\\\" Re-print\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"textarea\\\"],[14,\\\"cols\\\",\\\"80\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,3,\\\"precribe_pharmacy_instruction\\\"],[14,1,\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"form-control precribe_pharmacy_instruction\\\"],[14,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[41,[33,20],[[[10,\\\"b\\\"],[12],[1,\\\"Instructions/notes:\\\"],[13],[1,\\\" \\\"],[1,[34,20]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[1,[34,21]],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\" <h4>Visit Instructions/notes</h4>\\\\n                                    {{pharmacy-history-component pharmacyHistory=pharmacyHistory visitBillingHistory=visitBillingHistory}} \\\"],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,22,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,23],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"start\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,24],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,25]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[12],[1,\\\" \\\"],[1,[34,26]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove Discount\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,6],[33,24]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[33,27],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed discount\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,25]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,25]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"percentage perremove\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,27]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,24],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,28]]]],[15,\\\"data-reason\\\",[29,[[36,29]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,30],[[33,25],[33,26]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,28]]]],[15,\\\"data-reason\\\",[29,[[36,29]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,30],[[33,25],[33,27]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,31],[[33,27],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"applyDiscountCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle consultancy-tooltip\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,10]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,5],[[33,33],\\\"0\\\"],null],[28,[37,5],[[33,34],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,9]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,34]],[13],[1,\\\"\\\\n\\\"],[41,[33,35],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,\\\"title\\\",\\\"Remove Consultancy\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,32],[[28,[37,5],[[33,33],\\\"0\\\"],null],[28,[37,5],[[33,34],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,9]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,33]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[33,33],\\\"0\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,9]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,33]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[33,33],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis discount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,9]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,33]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,5],[[33,33],\\\"0\\\"],null],[28,[37,5],[[33,34],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,36]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,37]]]],[15,2,[29,[[28,[37,30],[[33,38],[33,33]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,39],[[28,[37,5],[[33,33],\\\"0\\\"],null],[28,[37,5],[[33,34],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,36]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,37]]]],[15,2,[29,[[28,[37,30],[[33,9],[33,33]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[33,33],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,36]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,37]]]],[15,2,[29,[[28,[37,30],[[33,9],[33,33]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,31],[[33,33],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"consultancyWave\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,40]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,31],[[33,40],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"pendingVisitDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,41]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,8,[\\\"charge_code\\\"]]]]],[15,2,[29,[[30,8,[\\\"charge_cost\\\"]]]]],[12],[1,[30,8,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"addCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,42]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,9,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,[30,9,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control box-charge numeric charge-total\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[15,\\\"data-label\\\",[30,9,[\\\"charge_name\\\"]]],[15,\\\"data-charge_code\\\",[30,9,[\\\"charge_code\\\"]]],[15,1,[30,9,[\\\"id\\\"]]],[15,2,[30,9,[\\\"charge_amount\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm chargeremove\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"data-charge_value\\\",\\\"0\\\"],[15,\\\"data-cids\\\",[30,9,[\\\"id\\\"]]],[15,\\\"data-charge\\\",[30,9,[\\\"charge_name\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" {{#if (ifnoteq PGChargePercentage '0.00') }}\\\\n                                    <div class=\\\\\\\"row margin5\\\\\\\">\\\\n                                        <div class=\\\\\\\"col-sm-5\\\\\\\">\\\\n                                            <label>Payment Gateway Charge <span><strong>&#37;</strong></span> <input class=\\\\\\\"pagepayment_gateway_checkbox inputreadonly\\\\\\\" onchange={{action (action @applyPGCharge billing_id visiting_id) value=\\\\\\\"target.checked\\\\\\\"}} type=\\\\\\\"checkbox\\\\\\\" disabled=\\\\\\\"disabled\\\\\\\" checked={{if (eq 'checked' PGChargeChecked) 'true'}} style=\\\\\\\"margin-left:12px !important;\\\\\\\" /></label>\\\\n                                        </div>\\\\n                                        <div class=\\\\\\\"col-sm-4\\\\\\\">\\\\n                                            <input data-pgpercentage=\\\\\\\"Payment Gateway Charge\\\\\\\" disabled=\\\\\\\"disabled\\\\\\\" class=\\\\\\\"twodecimal form-control pagepayment_gateway_charge {{PGChargeDisable}}\\\\\\\" type=\\\\\\\"text\\\\\\\" value=\\\\\\\"{{PGChargePercentage}}\\\\\\\" />\\\\n                                            <input id=\\\\\\\"pgAmount\\\\\\\" name=\\\\\\\"pgAmount\\\\\\\" type=\\\\\\\"hidden\\\\\\\" value=\\\\\\\"{{pgAmountText}}\\\\\\\" />\\\\n                                        </div>\\\\n                                        <div class=\\\\\\\"col-sm-3 pageadvancedpg_amount\\\\\\\">\\\\n                                            {{#if PGChargePercentage}}\\\\n                                                <span id=\\\\\\\"pageadvancedpg_amount\\\\\\\">PG Amount <i class=\\\\\\\"fas fa-rupee-sign\\\\\\\"></i> {{pgAmountText}}</span>\\\\n                                            {{/if}}\\\\n                                        </div>\\\\n                                    </div>\\\\n                                {{/if}} \\\"],[1,\\\"\\\\n                                \\\"],[1,[28,[35,43],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"medicine_default_pickup\\\",\\\"billed_listing_id\\\",\\\"pickup_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\"],[[33,44],[33,45],[33,46],[33,47],[33,48],[33,49],[33,3,[\\\"0\\\",\\\"prescribing_doc_name\\\"]],[33,50],[33,51],[33,3,[\\\"0\\\",\\\"patient_id\\\"]],[33,52],[33,53],[33,54],[33,55]]]]],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,5],[[33,57],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,57],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (A) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[28,[37,31],[[33,59],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (A) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,2,[29,[[28,[37,60],[[33,25]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,27],[33,9],[33,33],[33,40],[33,61],[33,24],[33,26],[33,34],[33,38],0,0,0,0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[36,62]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"page\\\"],[15,2,[29,[[36,49]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,52]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"OldRegistrationNo\\\"],[14,3,\\\"OldRegistrationNo\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"FirstName\\\"],[14,3,\\\"FirstName\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"first_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"MiddleName\\\"],[14,3,\\\"MiddleName\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"middle_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"LastName\\\"],[14,3,\\\"LastName\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"last_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[36,63]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[36,64]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"PrescribingDoctor\\\"],[14,3,\\\"PrescribingDoctor\\\"],[15,2,[29,[[36,65]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"doctor_fees\\\"],[14,3,\\\"doctor_fees\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,66]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,67]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineobj\\\"],[14,1,\\\"medicineobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patientobj\\\"],[14,1,\\\"patientobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,31],[[33,58],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,39],[[28,[37,31],[[33,59],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,57],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly received_amount\\\"],[15,\\\"data-paid-amount\\\",[29,[[36,58]]]],[15,2,[29,[[36,58]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,31],[[33,56],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (C)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,5],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control gateway_charge inputreadonly\\\"],[15,\\\"data-pg-amount\\\",[29,[[36,56]]]],[15,2,[29,[[36,56]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,57],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,31],[[33,57],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,68]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,31],[[33,56],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,69]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,5],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,31],[[33,56],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,70]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,71]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,31],[[33,56],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,72]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control current_due inputreadonly\\\"],[15,2,[29,[[28,[37,60],[[33,25]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,27],[33,9],[33,33],[33,40],[33,61],[33,24],[33,26],[33,34],[33,38],[33,58],[33,56],[33,57],0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[1,[28,[35,73],[[33,25]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"TotalPGAmount\\\"],[[33,27],[33,9],[33,33],[33,40],[33,61],[33,24],[33,26],[33,34],[33,38],[33,58],[33,56]]]]],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_received\\\"],[12],[1,[34,74]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(D)\\\"],[1,\\\" \\\"]],[]],[[[41,[28,[37,32],[[28,[37,5],[[33,56],\\\"0\\\"],null],[28,[37,5],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"\\\"],[1,\\\" \\\"]],[]],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4 \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control received_amount inputreadonly secondround\\\"],[15,\\\"data-partialtotal\\\",[29,[[36,59]]]],[15,2,[36,59]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,75],[[33,76],\\\"yes\\\"],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,77]]]],[12],[1,\\\" (\\\"],[1,[34,77]],[1,\\\") ...\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,\\\"title\\\",\\\"Transaction Details\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"visitTransactionDetails\\\",[33,52],[33,62]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,78]]]],[12],[1,\\\" (\\\"],[1,[34,78]],[1,\\\") \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,79]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,32],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,5],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,31],[[33,56],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,80]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,39],[[28,[37,31],[[33,56],\\\"0\\\"],null],[28,[37,31],[[33,58],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,81]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_due inputreadonly\\\"],[15,2,[29,[[28,[37,60],[[33,25]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,27],[33,9],[33,33],[33,40],[33,61],[33,24],[33,26],[33,34],[33,38],[33,58],[33,56],[33,57],[33,59]]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"due_payment_status\\\"],[12],[1,[28,[35,82],[[33,25]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"TotalPGAmount\\\",\\\"previous_bill_amount\\\",\\\"lastPaidAmount\\\"],[[33,27],[33,9],[33,33],[33,40],[33,61],[33,24],[33,26],[33,34],[33,38],[33,56],[33,58],[33,59]]]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[\\\"BilledPaymentButton\\\",[33,19]],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-block btn-sm payment_nodue\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,10],[33,3,[\\\"0\\\",\\\"patient_id\\\"]],[33,3,[\\\"0\\\",\\\"prescribing_doc_name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" Payment \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[\\\"BilledEditButton\\\",[33,19]],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-block btn-sm\\\"],[16,\\\"disabled\\\",[36,83]],[24,\\\"title\\\",\\\"Prescribed Edit\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,11],[33,52],[33,62],[33,3,[\\\"0\\\",\\\"patient_id\\\"]],[33,84]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-block btn-sm\\\"],[24,\\\"title\\\",\\\"Transaction History\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"transactionHistory\\\",[33,52],[33,62]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Transaction History\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-block btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                    \\\"],[3,\\\" Added code Shubh Tiwari 19 july 2023\\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-12 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[33,85],[33,86]],null],[[[1,\\\"                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"Last Prescription Edited By :- \\\"],[13],[1,\\\" \\\"],[1,[34,85]],[1,\\\" , \\\"],[1,[28,[35,87],[[33,86]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-7 pull-down\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,88],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By : \\\"],[13],[1,\\\" \\\"],[1,[34,88]],[1,\\\" , \\\"],[1,[28,[35,87],[[33,89]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By : \\\"],[13],[1,\\\" \\\"],[1,[34,90]],[1,\\\" , \\\"],[1,[28,[35,87],[[33,91]],null]],[1,\\\", \\\"],[10,1],[14,0,\\\"prescription_type\\\"],[12],[1,[34,92]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade cware-billing-preview\\\"],[14,1,\\\"pendingdetails\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Patient Pending Due History\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12 padding0px5px\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pendingdetail\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Total Due Amount\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Received Amount\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Credit Amount\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Debit Amount\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Status\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Comments\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,93]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,94],null,[[\\\"date\\\"],[[30,12,[\\\"transaction_time\\\"]]]]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,12,[\\\"total_due_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,12,[\\\"recieved_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,12,[\\\"credit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,12,[\\\"debit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,12,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,12,[\\\"transaction_status\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,12,[\\\"remark\\\"]]],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\",\\\"flash\\\",\\\"@removeMedicineDiscount\\\",\\\"@removeWaiveConsutancy\\\",\\\"clist\\\",\\\"charge\\\",\\\"@openPaymentPopup\\\",\\\"@medicineEditPopup\\\",\\\"pdetail\\\"],false,[\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"booked-from-badge\\\",\\\"doctor_fees\\\",\\\"consultancyFullName\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribed-medicine\\\",\\\"billpatientlist\\\",\\\"print_option\\\",\\\"prescription_email\\\",\\\"print_international\\\",\\\"check-permission\\\",\\\"user_permission\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy_message\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"remove_discount_button\\\",\\\"med_amount\\\",\\\"onthefly_discount\\\",\\\"medd_discount\\\",\\\"medicine_code\\\",\\\"medicine_reason\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"and\\\",\\\"consult_dicount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_remove_button\\\",\\\"consultancy_code\\\",\\\"consultancy_waived_reason\\\",\\\"consultancy_waived_amount\\\",\\\"or\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"visiting_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\",\\\"PGamount\\\",\\\"pgAmountText\\\",\\\"lastPreviousPaidAmount\\\",\\\"lastPaidAmount\\\",\\\"common-payment-calculation\\\",\\\"previous_total_charge\\\",\\\"billing_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"PrescribingDoctor\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"totalduelabel_with_current_pg\\\",\\\"billed-current-due-status\\\",\\\"total_received_label\\\",\\\"ifeg\\\",\\\"more_mode\\\",\\\"partial_transaction_mode\\\",\\\"transaction_mode\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"normalpgcurentdue\\\",\\\"normalAminusBminusC\\\",\\\"billed-payment-status\\\",\\\"enableButton\\\",\\\"history_visit_id\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"date-format\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"Pendingdetailslist\\\",\\\"format-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/billed-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/booked-from-badge\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"9ZDGAlwg\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"  \\\"],[10,1],[15,0,[29,[\\\"badge \\\",[36,2],\\\" \\\",[36,3]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,4]]]],[12],[1,\\\"\\\\n    \\\"],[1,[34,4]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"showBadge\\\",\\\"badgeClass\\\",\\\"pageClass\\\",\\\"badgeText\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/booked-from-badge.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/cancellation-refund-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"K9Nhq0h/\",\n    \"block\": \"[[[10,0],[14,5,\\\"position: fixed; inset: 0; z-index: 500003; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; padding: 15px;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,5,\\\"width: 100%; max-width: 650px; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,5,\\\"padding: 20px 24px 0;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0; font-size: 18px; font-weight: 600; color: #1a1a1a;\\\"],[12],[1,\\\"Cancel appointments and refund\\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,5,\\\"background: none; border: none; font-size: 22px; color: #999; cursor: pointer; line-height: 1;\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"close\\\"],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,5,\\\"margin: 6px 0 0; font-size: 13px; color: #1a1a1a; font-weight: 700;\\\"],[12],[41,[33,2],[[[1,[34,2]],[1,\\\" \\\"]],[]],null],[1,\\\"This will cancel the appointment\\\"],[41,[28,[37,3],[[33,4,[\\\"length\\\"]],1],null],[[[1,\\\"s\\\"]],[]],null],[1,\\\" and queue the full amount for refund to the original payment method.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"margin-top: 14px; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; max-height: 220px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,4,[\\\"length\\\"]],[[[42,[28,[37,6],[[28,[37,6],[[33,4]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"font-weight: 700; color: #1a1a1a;\\\"],[12],[1,[30,1,[\\\"patientName\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"font-size: 11px; color: #999; margin-top: 2px;\\\"],[12],[1,[30,1,[\\\"doctorName\\\"]]],[1,\\\" · \\\"],[1,[30,1,[\\\"appointmentId\\\"]]],[1,\\\" · \\\"],[1,[30,1,[\\\"dateTime\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"font-weight: 500; color: #1a1a1a; font-variant-numeric: tabular-nums;\\\"],[12],[1,\\\"₹\\\"],[1,[30,1,[\\\"amount\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"          \\\"],[10,0],[14,5,\\\"padding: 20px 14px; text-align: center; color: #999; font-size: 13px;\\\"],[12],[1,\\\"No online appointments selected for refund.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,5,\\\"margin-top: 12px; display: flex; align-items: center; justify-content: space-between; background: #f5f5f5; border-radius: 6px; padding: 10px 12px; font-size: 13px;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,5,\\\"color: #525252;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"            \\\"],[1,[30,2,[\\\"count\\\"]]],[1,\\\" via \\\"],[41,[28,[37,8],[[30,2,[\\\"gateway\\\"]],\\\"razorpay\\\"],null],[[[1,\\\"Razorpay\\\"]],[]],[[[41,[28,[37,8],[[30,2,[\\\"gateway\\\"]],\\\"hdfc\\\"],null],[[[1,\\\"HDFC\\\"]],[]],[[[1,[30,2,[\\\"gateway\\\"]]]],[]]]],[]]],[41,[51,[30,3]],[[[1,\\\" · \\\"]],[]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,5,\\\"font-weight: 600; color: #1a1a1a; font-variant-numeric: tabular-nums;\\\"],[12],[1,\\\"Total ₹\\\"],[1,[34,10]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,5,\\\"margin-top: 14px;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,5,\\\"display: block; font-size: 12px; font-weight: 500; color: #525252; margin-bottom: 4px;\\\"],[12],[1,\\\"Cancellation Reason \\\"],[10,1],[14,5,\\\"color: #dc3545;\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,11],[[33,12]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,5,\\\"border-radius: 6px; border-color: #d4d4d4; font-size: 13px; padding: 6px 10px;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select a reason\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Doctor unavailable\\\"],[12],[1,\\\"Doctor unavailable\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Clinic unavailable\\\"],[12],[1,\\\"Clinic unavailable\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Doctor/Clinic schedule changed\\\"],[12],[1,\\\"Doctor/Clinic schedule changed\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Patient requested cancellation\\\"],[12],[1,\\\"Patient requested cancellation\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Patient not available\\\"],[12],[1,\\\"Patient not available\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Patient requested reschedule\\\"],[12],[1,\\\"Patient requested reschedule\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Duplicate appointment\\\"],[12],[1,\\\"Duplicate appointment\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Appointment booked incorrectly\\\"],[12],[1,\\\"Appointment booked incorrectly\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Patient did not confirm appointment\\\"],[12],[1,\\\"Patient did not confirm appointment\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Patient did not respond to clinic\\\"],[12],[1,\\\"Patient did not respond to clinic\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Technical issue / Online consultation issue\\\"],[12],[1,\\\"Technical issue / Online consultation issue\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Payment-related issue\\\"],[12],[1,\\\"Payment-related issue\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"Emergency / Unforeseen circumstances\\\"],[12],[1,\\\"Emergency / Unforeseen circumstances\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,13],[[[1,\\\"        \\\"],[10,0],[14,5,\\\"margin-top: 10px;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,5,\\\"display: block; font-size: 12px; font-weight: 500; color: #525252; margin-bottom: 4px;\\\"],[12],[1,\\\"Cancellation Comment \\\"],[10,1],[14,5,\\\"color: #dc3545;\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,11],[[33,14]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"placeholder\\\",\\\"Please specify the reason\\\"],[14,\\\"rows\\\",\\\"3\\\"],[14,5,\\\"border-radius: 6px; border-color: #d4d4d4; font-size: 13px; padding: 6px 10px;\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"margin-top: 10px; display: flex; align-items: flex-start; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 10px 12px; font-size: 12px; color: #92400e;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,5,\\\"font-weight: 600; flex-shrink: 0;\\\"],[12],[1,\\\"Note:\\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,\\\"Razorpay refunds typically settle in 5-7 working days. HDFC refunds can take longer and status updates less frequently.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default\\\"],[24,5,\\\"border-radius: 6px; border-color: #d4d4d4; color: #404040; font-size: 13px; padding: 6px 14px;\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"close\\\"],null],[12],[1,\\\"Back\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[36,15]],[24,5,\\\"border-radius: 6px; background: #171717; border-color: #171717; color: #fff; font-size: 13px; padding: 6px 14px;\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"confirm\\\",[33,12]],null],[12],[1,\\\"Confirm cancellation & refund\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"item\\\",\\\"gw\\\",\\\"@last\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"customTitle\\\",\\\"gt\\\",\\\"appointmentRows\\\",\\\"each\\\",\\\"-track-array\\\",\\\"gatewaySummary\\\",\\\"eq\\\",\\\"unless\\\",\\\"totalAmount\\\",\\\"mut\\\",\\\"selectedReason\\\",\\\"showCommentField\\\",\\\"cancellationComment\\\",\\\"disableRefundButton\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/cancellation-refund-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/cart-content\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"FG4AFWEt\",\n    \"block\": \"[[[18,2,null],[1,\\\"\\\\n\\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"remove\\\",[30,1]],null],[12],[1,\\\"Remove\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13]],[\\\"item\\\",\\\"&default\\\"],false,[\\\"yield\\\",\\\"each\\\",\\\"-track-array\\\",\\\"cart\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/cart-content.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-history-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"LSO1BFvx\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Case Taking History\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"         \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"data\\\"]],[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 10%;\\\"],[12],[1,\\\"Visit Date\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 45%;\\\"],[12],[1,\\\"Disease/System/Organ Name\\\"],[13],[1,\\\"\\\\n                     \\\"],[10,\\\"th\\\"],[14,5,\\\"width:45%;\\\"],[12],[1,\\\"Drugs Name\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[33,1,[\\\"data\\\"]]],null],null,[[[1,\\\"                 \\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n                         \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"capitalize major_condition\\\",[33,5,[\\\"major_condition\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,1]],null]],null],null,[[[41,[30,3,[\\\"DKBC_disease_id\\\"]],[[[1,\\\"                                    \\\"],[41,[30,3,[\\\"disease\\\",\\\"name\\\"]],[[[1,\\\" \\\"],[1,[30,3,[\\\"disease\\\",\\\"name\\\"]]],[1,\\\" (\\\"],[1,[30,3,[\\\"patient_status\\\"]]],[1,\\\"), \\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"DKBC_disease_others\\\"]],[[[1,\\\"                                    \\\"],[41,[30,3,[\\\"DKBC_disease_others\\\"]],[[[1,\\\" \\\"],[1,[30,3,[\\\"DKBC_disease_others\\\"]]],[1,\\\" (\\\"],[1,[30,3,[\\\"patient_status\\\"]]],[1,\\\"), \\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[41,[30,3,[\\\"ICD_disease_name\\\"]],[[[1,\\\" \\\"],[1,[30,3,[\\\"ICD_disease_name\\\"]]],[1,\\\" (\\\"],[1,[30,3,[\\\"patient_status\\\"]]],[1,\\\"), \\\"]],[]],null],[1,\\\"\\\\n                                \\\"]],[]]]],[]]]],[3,4]],null],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                         \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,1]],null]],null],null,[[[42,[28,[37,6],[[28,[37,6],[[30,5,[\\\"hemeopatichdrug\\\"]]],null]],null],null,[[[41,[30,7,[\\\"drug_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,7,[\\\"drug_name\\\"]]],[1,\\\",\\\\n\\\"]],[]],null]],[7,8]],null]],[5,6]],null],[42,[28,[37,6],[[28,[37,6],[[30,1]],null]],null],null,[[[42,[28,[37,6],[[28,[37,6],[[30,9,[\\\"nonhemeopatichdrug\\\"]]],null]],null],null,[[[41,[30,11,[\\\"drug_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,11,[\\\"drug_name\\\"]]],[1,\\\",\\\\n\\\"]],[]],null]],[11,12]],null]],[9,10]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"history_list_data\\\",\\\"key\\\",\\\"history_list\\\",\\\"index\\\",\\\"history_hom_list_data\\\",\\\"index1\\\",\\\"home\\\",\\\"index11\\\",\\\"history_non_homo_list_data\\\",\\\"index2\\\",\\\"non_homo\\\",\\\"index22\\\"],false,[\\\"if\\\",\\\"case_taken_history_list\\\",\\\"section-add-edit-by\\\",\\\"each\\\",\\\"-each-in\\\",\\\"history_list\\\",\\\"-track-array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-history-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ttaLPSE7\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"IcpCaseHistory\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Case History\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"majordisease\\\"],[12],[1,\\\"(MC: \\\"],[1,[34,3]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"IcpCaseHistoryTable\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[33,5],[33,6]],null],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"goToPage\\\",[33,8],[33,9],[33,6]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"<<\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"goToPrev\\\",[33,8],[33,9],[33,5]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"<\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[33,5],1],null],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"goToNext\\\",[33,8],[33,9],[33,5]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\">\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"goToPage\\\",[33,8],[33,9],1],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\">>\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[14,1,\\\"casehistorylist\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 13%;\\\"],[12],[1,\\\"Visit Date\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 72%;\\\"],[12],[1,\\\"Disease/System/Organ Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width:10%;\\\"],[12],[1,\\\"Appt Type\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width:5%;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[14,1,\\\"casehistorytbodyid\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,10,[\\\"data\\\"]],[[[1,\\\"                            \\\"],[1,[28,[35,11],[[33,10,[\\\"data\\\"]],[33,2],\\\"ICPCaseHistoryViewButton\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"No past case history\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"major_condition\\\",\\\"ifnoteq\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"action\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"case_taken_history_list\\\",\\\"icp-case-history\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-history.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-clinic-user-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Uc9APsT9\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Clinic User Search\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"prescribing_doctor\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,1,\\\"cus_prescribing_doctor\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cus_prescribing_doctor\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Prescribing Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"user_id\\\"]]]]],[12],[1,[30,1,[\\\"Name\\\"]]],[1,\\\" (\\\"],[1,[30,1,[\\\"employee_code\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Case Taking Doctor \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,1,\\\"cus_case_taking_doctor\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cus_case_taking_doctor\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Case taking Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"user_id\\\"]]]]],[12],[1,[30,2,[\\\"Name\\\"]]],[1,\\\" (\\\"],[1,[30,2,[\\\"employee_code\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Biller \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,1,\\\"cus_biller\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cus_biller\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Biller\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"user_id\\\"]]]]],[12],[1,[30,3,[\\\"Name\\\"]]],[1,\\\" (\\\"],[1,[30,3,[\\\"employee_code\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Pharmacist \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,1,\\\"cus_pharmacist\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cus_pharmacist\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Pharmacist\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"user_id\\\"]]]]],[12],[1,[30,4,[\\\"Name\\\"]]],[1,\\\" (\\\"],[1,[30,4,[\\\"employee_code\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"user\\\",\\\"user\\\",\\\"user\\\",\\\"user\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"clinicuserlist\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-clinic-user-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-critical-report-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"V5eTzf4d\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Diagnostic Tests Search\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_report_name\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Report Name\\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"dts_report_name\\\",\\\"dts_report_name\\\",\\\"Report Name\\\"]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_wbc_from\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"WBC From:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"dts_wbc_from\\\"],[14,3,\\\"dts_wbc_from\\\"],[14,\\\"placeholder\\\",\\\"RBC From\\\"],[14,\\\"data-feet-min\\\",\\\"0\\\"],[14,\\\"data-feet-max\\\",\\\"10\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_wbc_to\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"WBC To:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"dts_wbc_to\\\"],[14,3,\\\"dts_wbc_to\\\"],[14,\\\"placeholder\\\",\\\"RBC TO\\\"],[14,\\\"data-feet-min\\\",\\\"0\\\"],[14,\\\"data-feet-max\\\",\\\"10\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_rbc_from\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"RBC From:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"dts_rbc_from\\\"],[14,3,\\\"dts_rbc_from\\\"],[14,\\\"placeholder\\\",\\\"RBC From\\\"],[14,\\\"data-feet-min\\\",\\\"0\\\"],[14,\\\"data-feet-max\\\",\\\"10\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_rbc_to\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"RBC To:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"dts_rbc_to\\\"],[14,3,\\\"dts_rbc_to\\\"],[14,\\\"placeholder\\\",\\\"RBC TO\\\"],[14,\\\"data-feet-min\\\",\\\"0\\\"],[14,\\\"data-feet-max\\\",\\\"10\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_bvarg\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Binary Var Green:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,3,\\\"dts_bvar\\\"],[14,1,\\\"dts_bvarg\\\"],[14,2,\\\"green\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-group col-md-2 ml-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dts_bvarr\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Binary Var Red:\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,3,\\\"dts_bvar\\\"],[14,1,\\\"dts_bvarr\\\"],[14,2,\\\"red\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-critical-report-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-disease-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aUW3/qVf\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Disease Search\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-5 m-b-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Doctor\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"ICD Name/Code\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-with-clear\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,\\\"data-ctw-ino\\\",\\\"1\\\"],[14,0,\\\"form-control ctw-input clear_class ds_icd_name\\\"],[14,3,\\\"icd_name\\\"],[14,1,\\\"icd_name\\\"],[14,\\\"placeholder\\\",\\\"ICD name/Code\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"clear-button icd_clear\\\"],[14,\\\"aria-label\\\",\\\"Clear input\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" div element used for showing the search results \\\"],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-5 smml-2 m-b-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"DKBC Disease\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-with-clear\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control disease_name_input\\\"],[14,3,\\\"disease_name\\\"],[14,1,\\\"disease_name\\\"],[14,\\\"placeholder\\\",\\\"Select/Type disease name\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"clear-button dkbc_system_clear\\\"],[14,\\\"aria-label\\\",\\\"Clear input\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"disease_id\\\"],[14,3,\\\"disease_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,1,\\\"disease_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"dkbc_d_others_text\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,1,\\\"disease_results\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ctw-window\\\"],[14,1,\\\"icd_suggession_div\\\"],[14,\\\"data-ctw-ino\\\",\\\"1\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[14,1,\\\"selected_disease_search_list\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-disease-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-medicine-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"2nc82TL1\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Medicine Search\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-11\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"ms_medicine_name\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Medicine/Mix.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-with-clear cw-search-box\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineItem[1]\\\"],[14,0,\\\"form-control prescribeinput dosage-1 medicineItem\\\"],[14,1,\\\"medicine_name-1\\\"],[14,\\\"medicine_status\\\",\\\"notset\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,\\\"placeholder\\\",\\\"Type min 3 char to search\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"clear-button clear_medicine_search\\\"],[14,\\\"aria-label\\\",\\\"Clear input\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,1,\\\"results1\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[14,1,\\\"selected_medicine_list\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-medicine-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-patient-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"YWbHM6XZ\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Patient Search\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Doctor\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Registration No.\\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"patient_search_registrationno\\\",\\\"patient_search_registrationno\\\",\\\"Registration no\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Patient Name \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"patient_search_patient_name\\\",\\\"patient_search_patient_name\\\",\\\"Patient name\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"From Age \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"patient_search_from_age\\\",\\\"patient_search_from_age\\\",\\\"From age\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"To Age \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"patient_search_to_age\\\",\\\"patient_search_to_age\\\",\\\"To age\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Country \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"report_country\\\"],[14,3,\\\"patient_search_report_country\\\"],[15,2,[36,1]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[30,1]],null]],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,6],[[30,2,[\\\"id\\\"]],[33,1]],null]],[12],[1,\\\" \\\"],[1,[30,2,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"State \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"report_state\\\"],[14,3,\\\"patient_search_report_state\\\"],[15,2,[36,7]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[30,3]],null]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,8]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,6],[[30,4,[\\\"id\\\"]],[33,7]],null]],[12],[1,\\\" \\\"],[1,[30,4,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"City \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"report_city\\\"],[14,3,\\\"patient_search_report_city\\\"],[15,2,[36,9]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[30,5]],null]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,10]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,6],[[30,6,[\\\"id\\\"]],[33,9]],null]],[12],[1,\\\" \\\"],[1,[30,6,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Address \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"patient_search_address\\\",\\\"patient_search_address\\\",\\\"form-control numeric\\\",\\\"Address\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Pincode \\\"],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"patient_search_pincode\\\",\\\"patient_search_pincode\\\",\\\"form-control numeric\\\",\\\"Pincode\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Mobile \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"patient_search_mobile\\\",\\\"patient_search_mobile\\\",\\\"form-control numeric\\\",\\\"Mobile\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Phone \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"patient_search_phone\\\",\\\"patient_search_phone\\\",\\\"form-control numeric\\\",\\\"Phone\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@updateReportCountry\\\",\\\"country\\\",\\\"@updateReportState\\\",\\\"state\\\",\\\"@updateReportCity\\\",\\\"city\\\"],false,[\\\"input\\\",\\\"report_selected_country\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"countries\\\",\\\"eq\\\",\\\"report_selected_state\\\",\\\"reportStates\\\",\\\"report_selected_city\\\",\\\"report_cities\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-patient-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-patient-vital-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/F7SBufl\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Patient Vitals Search\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n       \\\"],[10,0],[14,0,\\\"col-sm-5 form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Gender\\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check p-vitalform-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"M\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,2,\\\"M\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxICP\\\"],[12],[1,\\\"Male\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check p-vitalform-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[14,2,\\\"F\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"F\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxVC\\\"],[12],[1,\\\"Women\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check p-vitalform-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[14,2,\\\"T\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"T\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxTransgender\\\"],[12],[1,\\\"Transgender\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bloodtype\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Blood Type\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"pvs_blood_type\\\"],[14,1,\\\"pvs_blood_type\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"A+\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"A+\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"A-\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"A-\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"B+\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"B+\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"B-\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"B-\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"O+\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"O+\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"O-\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"O-\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"AB+\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"AB+\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"AB\\\",[33,2,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,3],[\\\"AB\\\",[33,4,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pvs_height_unit\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Height\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"pvs_height_unit\\\"],[14,1,\\\"pvs_height_unit\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"feet\\\"],[12],[1,\\\"feet\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"inch\\\"],[12],[1,\\\"inch\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"m\\\"],[12],[1,\\\"m\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"cm\\\"],[12],[1,\\\"cm\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches input-space threshold th-height\\\"],[14,1,\\\"pvs_height_from\\\"],[14,3,\\\"pvs_height_from\\\"],[14,\\\"placeholder\\\",\\\"From\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches1 height_inches input-space th-height\\\"],[14,1,\\\"pvs_height_to\\\"],[14,3,\\\"pvs_height_to\\\"],[14,\\\"placeholder\\\",\\\"To\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pvs_weight_unit\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Weight\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"pvs_weight_unit\\\"],[14,1,\\\"pvs_weight_unit\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"kg\\\"],[12],[1,\\\"kg\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"pound\\\"],[12],[1,\\\"Pounds\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches input-space threshold th-height\\\"],[14,1,\\\"pvs_weight_unit_from\\\"],[14,3,\\\"pvs_weight_unit_from\\\"],[14,\\\"placeholder\\\",\\\"From\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches1 height_inches input-space th-height\\\"],[14,1,\\\"pvs_weight_unit_to\\\"],[14,3,\\\"pvs_weight_unit_to\\\"],[14,\\\"placeholder\\\",\\\"To\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bodytemp\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Body Temp\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"pvs_body_temp_unit\\\"],[14,1,\\\"pvs_body_temp_unit\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"°F\\\"],[12],[1,\\\"°F\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"°C\\\"],[12],[1,\\\"°C\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pvs_body_temp_from\\\"],[14,3,\\\"pvs_body_temp_from\\\"],[14,\\\"placeholder\\\",\\\"From\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"form-group col-md-3 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches1 height_inches input-space th-height\\\"],[14,1,\\\"pvs_body_temp_to\\\"],[14,3,\\\"pvs_body_temp_to\\\"],[14,\\\"placeholder\\\",\\\"To\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pvs_blood_pressure_from\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Blood Pressure From:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4 systolic\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pvs_from_blood_pressure_systolic\\\"],[14,3,\\\"pvs_from_blood_pressure_systolic\\\"],[14,\\\"placeholder\\\",\\\"Systolic\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[14,5,\\\"padding:4px 4px;width:15px;\\\"],[12],[1,\\\"\\\\n            /\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4 diastolic\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pvs_from_blood_pressure_diastolic\\\"],[14,3,\\\"pvs_from_blood_pressure_diastolic\\\"],[14,\\\"placeholder\\\",\\\"Diastolic\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pvs_blood_pressure_to\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Blood Pressure To:\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4 systolic\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pvs_to_blood_pressure_systolic\\\"],[14,3,\\\"pvs_blood_pressure_systolic\\\"],[14,\\\"placeholder\\\",\\\"Systolic\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[14,5,\\\"padding:4px 4px;width:15px;\\\"],[12],[1,\\\"\\\\n            /\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group col-md-4 diastolic\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pvs_to_blood_pressure_diastolic\\\"],[14,3,\\\"pvs_blood_pressure_diastolic\\\"],[14,\\\"placeholder\\\",\\\"Diastolic\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@toggleGender\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"patient_vital_list\\\",\\\"eq\\\",\\\"PatientInfo\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-patient-vital-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-report-visit-search\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"QI1p6Cd7\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Visit Search\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n         \\\"],[10,0],[14,0,\\\"col-sm-7\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"icp\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxICP\\\"],[12],[1,\\\"ICP\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"vc\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxVC\\\"],[12],[1,\\\"VC\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"phone\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxPHONE\\\"],[12],[1,\\\"PHONE\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"email\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxEMAIL\\\"],[12],[1,\\\"EMAIL\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"ocp\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxOCP\\\"],[12],[1,\\\"OCP\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"rm\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxOCP\\\"],[12],[1,\\\"RM\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-check form-check-inline\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-check-input form-check-lg\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],[30,1],\\\"email rm\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"checkboxOCP\\\"],[12],[1,\\\"Email RM\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-2 m-b-10 smml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"From Visit Date\\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"date\\\",\\\"fromvisitdate\\\",\\\"startDate\\\",[33,2],\\\"form-control numeric\\\",\\\"Search by from visit date\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-2 m-b-10 smml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"To Visit Date\\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"date\\\",\\\"tovisitdate\\\",\\\"endDate\\\",[33,3],\\\"form-control numeric\\\",\\\"Search by to visit date\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@toggleCheckbox\\\"],false,[\\\"action\\\",\\\"input\\\",\\\"fromvisitdate\\\",\\\"tovisitdate\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-report-visit-search.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-taking-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xKcZ5vwD\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[14,1,\\\"caseTakingPreview\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[14,1,\\\"casetakenPreview\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[33,1,[\\\"data\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[],false,[\\\"if\\\",\\\"patient_case_taking_list\\\",\\\"section-add-edit-by\\\",\\\"case-taken-preview-helper\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-taking-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/case-taking\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Crm27/1b\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"CaseTakingSection\\\",[33,2]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"     \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,5],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"case_taken_time\\\"],[12],[1,[34,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"reportedbyproxy\\\"],[12],[10,\\\"input\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],[28,[37,6],[[30,0],[30,1],[33,7],[33,8]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"1\\\",[33,10]],null],\\\"true\\\"]],[14,3,\\\"reportedbyproxy\\\"],[14,1,\\\"reportedbyproxy\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Reported by Proxy (Case Not Seen) \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"showproxy\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"reportedbyproxy_name\\\"],[14,1,\\\"reportedbyproxy_name\\\"],[14,0,\\\"form-control marginleft5\\\"],[14,\\\"placeholder\\\",\\\"Enter proxy name\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,3,\\\"proxy\\\"],[14,0,\\\"btn btn-sm btn-success float-right\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n           \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AddCaseTakingButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm btn-info addCaseTaking float-right ml-2\\\"],[14,\\\"title\\\",\\\"Add Case Taking\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"VisitHistoryButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm btn2 float-right ml-2\\\"],[24,\\\"title\\\",\\\"Import Case\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,2],[33,8],\\\"casetaken\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Import Case\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"VisitHistoryButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm btn2 float-right\\\"],[24,\\\"title\\\",\\\"Prescription History\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,2],[33,8],\\\"lastVisitHistory\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-archive\\\"],[12],[13],[1,\\\"  Prescription History\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"casetakenmessage\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"CaseTakingTable\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[14,1,\\\"casetakenlist\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"25%\\\"],[12],[1,\\\"Disease Name\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"21%\\\"],[12],[1,\\\"Symptom Duration / Event\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"30%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"14%\\\"],[12],[1,\\\"Symptom Status\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[14,1,\\\"tbodyid\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,11],[[33,3,[\\\"data\\\"]],[33,2],\\\"RemoveCaseTakenButton\\\",\\\"ViewDetailCaseTakenButton\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ClearCaseTaken\\\",[33,2]],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm float-left cw-margintop25\\\"],[24,\\\"title\\\",\\\"Clear Case Taken\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,3],[33,7],[33,8]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Clear Case Taken\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@reportedbyproxy\\\",\\\"@filterVisitHistory\\\",\\\"@clearCaseTakenDisease\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"patient_case_taking_list\\\",\\\"section-add-edit-by\\\",\\\"case_taken_time\\\",\\\"action\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"eq\\\",\\\"reportedProxy\\\",\\\"case-taken-list\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/case-taking.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/completed-emailrm-medicine-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JOBNxo2d\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#emailrmcompletedMedicineVisit\\\"],[12],[1,\\\" Email RM Medicine Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\"                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"emailrmcompletedMedicineVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"20px\\\"],[12],[1,\\\"Queue Number\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"medicine_queue_number\\\"]]],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                            \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                                        \\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Check-in) \\\"],[1,[28,[35,1],[[30,2,[\\\"completed_date_time\\\"]],null,\\\" \\\",\\\", \\\",[30,2,[\\\"completed_date_time\\\"]],\\\" (Completed)\\\"],null]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"                                        \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,8],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,9],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,2],[12],[1,\\\"No Medicine completed for today. \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"EmailRMmedComReportType\\\",\\\"each\\\",\\\"-track-array\\\",\\\"EmailRepeatMedicineComplete\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/completed-emailrm-medicine-visits.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/completed-medicine-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vFEOOGM0\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#completedMedicineVisit\\\"],[12],[1,\\\" Medicine Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"completedMedicineVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"20px\\\"],[12],[1,\\\"Queue Number\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"medicine_queue_number\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Check-in) \\\"],[1,[28,[35,1],[[30,2,[\\\"completed_date_time\\\"]],null,\\\" \\\",\\\", \\\",[30,2,[\\\"completed_date_time\\\"]],\\\" (Completed)\\\"],null]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,8],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,9],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No Medicine completed for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"medComReportType\\\",\\\"each\\\",\\\"-track-array\\\",\\\"completedMedicineAppointments\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/completed-medicine-visits.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/completed-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"D/lfOjW2\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t\\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#completedVisit\\\"],[12],[1,\\\" Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"completedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Preview\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"type\\\"]]],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-  \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Appt Time), \\\"],[1,[28,[35,1],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[28,[37,8],[[30,2,[\\\"checkin_time\\\"]],\\\" (Check-in),\\\"],null]],null]],[1,\\\" \\\"],[1,[28,[35,1],[[30,2,[\\\"complete_time\\\"]],null,\\\" \\\",[30,2,[\\\"complete_time\\\"]]],null]],[1,\\\" (Completed) \\\"],[1,[28,[35,9],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"doctor-dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"book_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"book_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"casetaken_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribe_doc_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"prescribe_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,11],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Case Preview\\\",\\\"doctor-dashboard.checkoutdetail\\\",[28,[37,11],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]],\\\"preview\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\" Case Preview \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments completed for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"completeReportsTypes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"completedAppointments\\\",\\\"concat\\\",\\\"booked-from-badge\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/completed-visits.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/component-permissions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"BXbkn4XK\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"    \\\"],[10,\\\"button\\\"],[14,0,\\\"i-am-a-delete-button\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"hasPermission\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/component-permissions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/correctbill-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7Rd5ye/j\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,0],null,[[\\\"class\\\",\\\"style\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15\\\",\\\"margin-right: 12px;\\\",\\\"Back to Billing Dashboard\\\",\\\"billing.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right marginbottom15\\\"],[24,5,\\\"margin-right: 12px;\\\"],[24,\\\"title\\\",\\\"Error Correction\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,1],[33,2],[33,3],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,5]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Error Correction\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,4]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,2,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,9],[[30,2,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,2,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                            \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,10],[[30,2,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,2,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,2,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,9],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,\\\" \\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                            \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,[28,[35,11],[[30,2,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_category_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"completed_date_time\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,12],[[[1,\\\"\\\\n                                            \\\"],[1,[34,12]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            0.00\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,13],null,[[\\\"errors_list\\\"],[[33,14]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,15],[[33,16]],[[\\\"PrescribePatient\\\"],[[33,4]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"1\\\",[33,17,[\\\"report_advice\\\"]]],null],\\\"true\\\"]],[14,3,\\\"report_advice\\\"],[14,1,\\\"report_advice\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"print_case\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"print_case\\\",[33,17,[\\\"print_case\\\"]]],null],\\\"true\\\"]],[14,3,\\\"print_case\\\"],[14,1,\\\"print_case\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Print Case X \\\"],[13],[1,\\\" \\\\n                                         \\\"],[10,\\\"input\\\"],[14,1,\\\"print_case_val\\\"],[14,3,\\\"print_case_val\\\"],[14,5,\\\"width:20%;\\\"],[15,\\\"oninput\\\",[28,[37,1],[[30,0],\\\"checkMaxPrintCopy\\\"],null]],[14,\\\"min\\\",\\\"1\\\"],[14,\\\"max\\\",\\\"9\\\"],[14,0,\\\"onlynumeric\\\"],[15,2,[29,[[33,17,[\\\"print_case_val\\\"]]]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"clinic_used\\\",[33,17,[\\\"clinic_used\\\"]]],null],\\\"true\\\"]],[14,2,\\\"clinic_used\\\"],[14,3,\\\"clinic_used\\\"],[14,1,\\\"clinic_used\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" For Clinic Use Only \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"domestic\\\",[33,17,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"domestic\\\"],[14,3,\\\"print_option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"international\\\",[33,17,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"international\\\"],[14,3,\\\"print_option\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"evlp_label\\\",[33,17,[\\\"evlp_label\\\"]]],null],\\\"true\\\"]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"domst_cons_presc\\\",[33,17,[\\\"domst_cons_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"inc_presc\\\",[33,17,[\\\"inc_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"cons_presc\\\",[33,17,[\\\"cons_presc\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,18]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"add_label\\\",[33,17,[\\\"add_label\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,18]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"receipt\\\",[33,17,[\\\"receipt\\\"]]],null],\\\"true\\\"]],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"medical_certificate\\\",[33,17,[\\\"medical_certificate\\\"]]],null],\\\"true\\\"]],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,2,\\\"med_label\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"med_label\\\",[33,17,[\\\"med_label\\\"]]],null],\\\"true\\\"]],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,19],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,20],\\\"readonly\\\"]]]],[1,\\\"\\\\n                                \\\"],[1,[28,[35,21],null,[[\\\"pharmacyHistory\\\"],[[33,22]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,23,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,24],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,25],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,26]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[12],[1,\\\" \\\"],[1,[34,27]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove Discount\\\"],[24,0,\\\"btn btn-danger btn-sm med_remove_button\\\"],[16,\\\"data-discountId\\\",[29,[[36,25]]]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,6],[33,25]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,28],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed discount\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,26]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,26]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"percentage perremove\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,28]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,25],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,29]]]],[15,\\\"data-reason\\\",[29,[[36,30]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,31],[[33,26],[33,27]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,29]]]],[15,\\\"data-reason\\\",[29,[[36,30]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,31],[[33,26],[33,28]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[33,28],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[28,[37,9],[[33,34],\\\"0\\\"],null],[28,[37,9],[[33,35],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,12]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,35]],[13],[1,\\\"\\\\n\\\"],[41,[33,36],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm cons_remove_button\\\"],[24,\\\"title\\\",\\\"Remove Consultancy\\\"],[16,\\\"data-billingId\\\",[29,[[36,36]]]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,8]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,33],[[28,[37,9],[[33,34],\\\"0\\\"],null],[28,[37,9],[[33,35],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,12]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived percentage\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,34]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,34],\\\"0\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,12]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,34]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,34],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis discount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,12]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,34]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[28,[37,9],[[33,34],\\\"0\\\"],null],[28,[37,9],[[33,35],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,37]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,38]]]],[15,2,[29,[[28,[37,31],[[33,39],[33,34]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,40],[[28,[37,9],[[33,34],\\\"0\\\"],null],[28,[37,9],[[33,35],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,37]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,38]]]],[15,2,[29,[[28,[37,31],[[33,12],[33,34]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,34],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,37]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,38]]]],[15,2,[29,[[28,[37,31],[[33,12],[33,34]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[33,34],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,9]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,41]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[33,41],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"pendingDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,42]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,10,[\\\"charge_code\\\"]]]]],[15,\\\"data-shipping-related\\\",[29,[[30,10,[\\\"shipping_related\\\"]]]]],[15,2,[29,[[30,10,[\\\"charge_cost\\\"]]]]],[12],[1,[30,10,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,11]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,43]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,12,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,[30,12,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control box-charge twodecimal charge-total\\\"],[16,\\\"data-chargeId\\\",[29,[[30,12,[\\\"id\\\"]]]]],[16,\\\"data-shipping-related\\\",[29,[[30,12,[\\\"shipping\\\"]]]]],[16,\\\"data-label\\\",[29,[[30,12,[\\\"charge_name\\\"]]]]],[16,\\\"data-charge_code\\\",[29,[[30,12,[\\\"charge_code\\\"]]]]],[16,1,[29,[[30,12,[\\\"charge_code\\\"]]]]],[16,2,[29,[[30,12,[\\\"charge_amount\\\"]]]]],[24,4,\\\"text\\\"],[4,[38,44],[\\\"keyup\\\",[30,0,[\\\"onChangesAddCharge\\\"]]],null],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,13],[30,12,[\\\"id\\\"]],[30,12,[\\\"charge_amount\\\"]],[30,12,[\\\"charge_name\\\"]],[30,12,[\\\"billing_id\\\"]],[30,12,[\\\"appointment_id\\\"]],[30,12,[\\\"shipping\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Comment as 7/07/2022 by shubh Tiwari \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"Payment Gateway Charge \\\"],[10,1],[12],[10,\\\"strong\\\"],[12],[1,\\\"%\\\"],[13],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"pagepayment_gateway_checkbox\\\"],[14,0,\\\"pagepayment_gateway_checkbox inputreadonly\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[28,[37,1],[[30,0],[30,14],\\\"default\\\",[33,3],[33,2]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"checked\\\",[33,45]],null],\\\"true\\\"]],[14,5,\\\"margin-left:12px !important;\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[11,\\\"input\\\"],[24,\\\"data-pgpercentage\\\",\\\"Payment Gateway Charge\\\"],[16,\\\"data-current-pg-amount\\\",[29,[[36,46]]]],[24,3,\\\"pagepayment_gateway_charge\\\"],[24,1,\\\"pagepayment_gateway_charge\\\"],[16,0,[29,[\\\"twodecimal form-control pagepayment_gateway_charge \\\",[36,47]]]],[16,2,[29,[[36,48]]]],[24,4,\\\"text\\\"],[4,[38,44],[\\\"focusout\\\",[30,0,[\\\"onKeyupPGCalculation\\\"]]],null],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,49],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"medicine_default_pickup\\\",\\\"billed_listing_id\\\",\\\"pickup_listing_id\\\",\\\"address_mismatch\\\"],[[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[33,4,[\\\"0\\\",\\\"prescribing_doc_name\\\"]],[33,56],[33,57],[33,58]]]]],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,40],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,40],[[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,40],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[3,\\\" remove PGAmount variable because when pg is apply then original amount value change after that we change pg charge then pg apply on total = total+pg written by shubh tiwari as on 18 April 2022 \\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,\\\"data-onlyservice-amount\\\",[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],0,0,0,0]]]]]],[15,\\\"data-original_amount\\\",[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],0,0,0,0]]]]]],[15,2,[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],0,0,0,0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,3]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"page\\\"],[15,2,[29,[[36,55]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"page_name\\\"],[14,3,\\\"page_name\\\"],[15,2,[29,[[36,55]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"gateway_amount\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,2]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"OldRegistrationNo\\\"],[14,3,\\\"OldRegistrationNo\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"FirstName\\\"],[14,3,\\\"FirstName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"first_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"MiddleName\\\"],[14,3,\\\"MiddleName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"middle_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"LastName\\\"],[14,3,\\\"LastName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"last_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[36,63]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[36,64]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"PrescribingDoctor\\\"],[14,3,\\\"PrescribingDoctor\\\"],[15,2,[29,[[36,65]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"doctor_fees\\\"],[14,3,\\\"doctor_fees\\\"],[15,2,[29,[[36,12]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,66]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,67]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[33,60],\\\"0.00\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,40],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null]],null],[[[1,\\\" (B) \\\"]],[]],null],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly received_amount\\\"],[15,\\\"data-paid-amount\\\",[29,[[36,60]]]],[15,2,[29,[[36,60]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[10,1],[14,5,\\\"margin-left:12px; font-weight:500\\\"],[12],[1,[34,68]],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,32],[[33,59],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous PG Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[1,\\\" (C)\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pg_amount inputreadonly\\\"],[14,1,\\\"pg_amount\\\"],[15,\\\"data-pg-amount\\\",[29,[[36,59]]]],[15,2,[29,[[36,59]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,33],[[28,[37,32],[[33,48],\\\"\\\"],null],[28,[37,32],[[33,48],\\\"0\\\"],null]],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current PG Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[1,\\\" \\\"],[41,[28,[37,33],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(D)\\\"],[1,\\\" \\\"]],[]],[[[41,[28,[37,33],[[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]],[[[1,\\\" \\\"],[1,\\\"(B)\\\"],[1,\\\" \\\"]],[]]]],[]]],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pgAmount inputreadonly\\\"],[14,1,\\\"pgAmount\\\"],[15,\\\"data-pgAmount\\\",[29,[[36,46]]]],[15,2,[29,[[36,46]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[28,[37,32],[[33,59],\\\"0\\\"],null],[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,32],[[33,46],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,69]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,32],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,32],[[33,46],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,70]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[28,[37,32],[[33,46],\\\"0\\\"],null],[28,[37,9],[[33,60],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,32],[[33,46],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,71]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,32],[[33,59],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,72]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_dues inputreadonly\\\"],[15,\\\"data-service-total-due\\\",[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],[33,60],[33,59],0,0]]]]]],[15,\\\"data-total-dues\\\",[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],[33,60],[33,59],[33,46],0]]]]]],[15,2,[29,[[28,[37,61],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],[33,60],[33,59],[33,46],0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left:12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[1,[28,[35,73],[[33,26]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\"],[[33,28],[33,12],[33,34],[33,41],[33,62],[33,25],[33,27],[33,35],[33,39],[33,60],[33,59],[33,46]]]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineobj\\\"],[14,1,\\\"medicineobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patientobj\\\"],[14,1,\\\"patientobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-block\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,15]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Payment\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Previous due details list popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,74],null,[[\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"visiting_id\\\",\\\"patient_id\\\",\\\"billing_id\\\"],[[33,75],[33,76],[33,77],[33,2],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,3]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Discount reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"discountspopup\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,16]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Medicine Discount Reason\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"discounterror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"discountForm\\\"],[4,[38,1],[[30,0],[30,17]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,16]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Consultancy waived reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"consultancydiscountpopup\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Consultancy Waive Reason\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"conwaveerror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"conwaiveddiscountForm\\\"],[4,[38,1],[[30,0],[30,18]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"consultancy_discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"consultancy_discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Charge popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"OtherCharge\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Other Charge\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"other_chargeForm\\\"],[4,[38,1],[[30,0],[30,19]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"otherinstructionid\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"chargeerror\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\"Charge Name: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_name\\\",\\\"form-control\\\",\\\"Enter Charge Name\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_code\\\"],[12],[1,\\\"Charge Code: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_code\\\",\\\"form-control\\\",\\\"Enter Charge Code\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_amount\\\"],[12],[1,\\\"Charge Amount: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_amount\\\",\\\"form-control onlynumeric\\\",\\\"Enter Charge Amount\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@pastMedicineEditPopup\\\",\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"flash\\\",\\\"@removeMedicineDiscount\\\",\\\"@applyDiscountCharge\\\",\\\"@removeWaiveConsutancy\\\",\\\"@consultancyWave\\\",\\\"clist\\\",\\\"@addCharge\\\",\\\"charge\\\",\\\"@removeAddedOtherCharge\\\",\\\"@applyPGCharge\\\",\\\"@openPaymentPopup\\\",\\\"@clearDisccountinput\\\",\\\"@addDiscountReason\\\",\\\"@consultancyWaivedReason\\\",\\\"@addOtherCharge\\\"],false,[\\\"link-to\\\",\\\"action\\\",\\\"visiting_id\\\",\\\"billing_id\\\",\\\"PrescribePatient\\\",\\\"history_visit_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"doctor_fees\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine\\\",\\\"billpatientlist\\\",\\\"print_option\\\",\\\"print_international\\\",\\\"textarea\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"remove_discount_button\\\",\\\"med_amount\\\",\\\"onthefly_discount\\\",\\\"medd_discount\\\",\\\"medicine_code\\\",\\\"medicine_reason\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"and\\\",\\\"consult_dicount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_remove_button\\\",\\\"consultancy_code\\\",\\\"consultancy_waived_reason\\\",\\\"consultancy_waived_amount\\\",\\\"or\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"on\\\",\\\"PGChargeChecked\\\",\\\"pgAmountText\\\",\\\"PGChargeDisable\\\",\\\"PGChargePercentage\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"address_mismatch\\\",\\\"PGamount\\\",\\\"previous_bill_amount\\\",\\\"common-payment-calculation\\\",\\\"previous_total_charge\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"PrescribingDoctor\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"advance_label\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"billpatient-payment-status\\\",\\\"pending-details-list\\\",\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/correctbill-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/critical-reports-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"oOVJNXtC\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"ICPAdvisedReport\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Diagnostic Reports\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPAdvisedReportAddButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm btn-info addAdbisedReport float-right\\\"],[14,\\\"title\\\",\\\"Add Critical Report\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#criticalReport\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPAdvisedReportTable\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[14,1,\\\"advised_report\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"85%\\\"],[12],[1,\\\"Report Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"report_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,8],[[30,1,[\\\"advised_date\\\"]]],null]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AdvisedReportRemoveButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-danger \\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],[30,2],[30,1,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[42,[28,[37,6],[[28,[37,6],[[33,10]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,3,[\\\"report_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,8],[[30,3,[\\\"advised_date\\\"]]],null]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"data\\\",\\\"@removeAdvicedReport\\\",\\\"data\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"advised_report_user\\\",\\\"section-add-edit-by\\\",\\\"each\\\",\\\"-track-array\\\",\\\"advised_report\\\",\\\"common-date\\\",\\\"action\\\",\\\"previous_advised_report\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/critical-reports-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/custom-hours-modal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cqpCijrY\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal fade in\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,5,\\\"display: block;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[14,\\\"role\\\",\\\"document\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[3,\\\" Header \\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[\\\"click\\\",[30,1]],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[41,[30,2],[[[1,\\\" Edit Custom Hours for \\\"],[1,[30,3]],[1,\\\"\\\\n          \\\"]],[]],[[[1,\\\" Add Custom Hours for \\\"],[1,[30,3]],[1,\\\" \\\"]],[]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[3,\\\" Body \\\"],[1,\\\"\\\\n      \\\"],[3,\\\" Modal Body \\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,3],[[30,4],1],null],[28,[37,4],[[30,2],null],null]],null],[[[1,\\\"        \\\"],[3,\\\" Edit Morning Shift \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Morning Shift\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" Morning From \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning-from-time\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"morning-from-time\\\"],[24,0,\\\"form-control\\\"],[16,\\\"data-actual\\\",[30,5]],[16,\\\"data-morningFromId\\\",[30,2]],[16,2,[52,[30,2],[30,5],[30,0,[\\\"morningFromTime\\\"]]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateMorningFromTime\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateMorningFromTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"morningFromTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"morningFromTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" Morning To \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning-to-time\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"morning-to-time\\\"],[24,0,\\\"form-control\\\"],[16,\\\"data-actual\\\",[30,6]],[16,\\\"data-morningToId\\\",[30,2]],[16,2,[52,[30,2],[30,6],[30,0,[\\\"morningToTime\\\"]]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateMorningToTime\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateMorningToTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"morningToTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"morningToTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,2],[[28,[37,3],[[30,4],2],null],[28,[37,4],[[30,2],null],null]],null],[[[1,\\\"        \\\"],[3,\\\" Edit Evening Shift \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"mt-3\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Evening Shift\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" Evening From \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening-from-time\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"evening-from-time\\\"],[24,0,\\\"form-control\\\"],[16,\\\"data-actual\\\",[30,5]],[16,\\\"data-eveningFromId\\\",[30,2]],[16,2,[52,[30,2],[30,5],[30,0,[\\\"eveningFromTime\\\"]]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateEveningFromTime\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateEveningFromTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"eveningFromTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"eveningFromTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" Evening To \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening-to-time\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"evening-to-time\\\"],[24,0,\\\"form-control\\\"],[16,\\\"data-actual\\\",[30,6]],[16,\\\"data-eveningToId\\\",[30,2]],[16,2,[52,[30,2],[30,6],[30,0,[\\\"eveningToTime\\\"]]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateEveningToTime\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateEveningToTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"eveningToTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"eveningToTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[30,2],null],null],[[[1,\\\"        \\\"],[3,\\\" Add Morning Shift \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Morning Shift\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" Morning From \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning-from-time\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"morning-from-time\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"morningFromTime\\\"]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateMorningFromTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"morningFromTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"morningFromTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" Morning To \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning-to-time\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"morning-to-time\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"morningToTime\\\"]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateMorningToTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"morningToTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"morningToTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" Add Evening Shift \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"mt-3\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Evening Shift\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" Evening From \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening-from-time\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"evening-from-time\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"eveningFromTime\\\"]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateEveningFromTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"eveningFromTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"eveningFromTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" Evening To \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening-to-time\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,1,\\\"evening-to-time\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"eveningToTime\\\"]]],[24,4,\\\"time\\\"],[4,[38,0],[\\\"input\\\",[30,0,[\\\"updateEveningToTime\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"eveningToTimeError\\\"]],[[[1,\\\"              \\\"],[10,\\\"small\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[30,0,[\\\"eveningToTimeError\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[3,\\\" Success Message \\\"],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"successMessage\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-success mt-3\\\"],[12],[1,[30,0,[\\\"successMessage\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[3,\\\" Error Message \\\"],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generalError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-danger mt-3\\\"],[12],[1,[30,0,[\\\"generalError\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n      \\\"],[3,\\\" Footer \\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,1,\\\"scheduleId\\\"],[15,2,[30,2]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,4,\\\"button\\\"],[4,[38,0],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"saveChanges\\\"]],[30,7],[30,2],[30,4],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\\n          \\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[12],[13],[1,\\\" Saving...\\\"]],[]],[[[1,\\\"Save changes\\\"]],[]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[18,8,null]],[\\\"@closeModal\\\",\\\"@scheduleId\\\",\\\"@selectedDay\\\",\\\"@shiftType\\\",\\\"@fromTime\\\",\\\"@toTime\\\",\\\"@dayID\\\",\\\"&default\\\"],false,[\\\"on\\\",\\\"if\\\",\\\"and\\\",\\\"eq\\\",\\\"not-eq\\\",\\\"did-insert\\\",\\\"fn\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/custom-hours-modal.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/data-table\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ZNOfhuFl\",\n    \"block\": \"[[[18,1,null]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/data-table.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/delivery-address\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7uO4PicB\",\n    \"block\": \"[[[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"DispatchOrder\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,0],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,1,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[33,1,[\\\"0\\\",\\\"appointment_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,3,\\\"dispatch_status\\\"],[14,3,\\\"dispatch_status\\\"],[15,2,[29,[[33,1,[\\\"0\\\",\\\"dispatch_status\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,3],[[[1,\\\"        \\\"],[10,\\\"input\\\"],[14,3,\\\"already_archived\\\"],[14,3,\\\"already_archived\\\"],[15,2,[29,[[36,3]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"shipping_box\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Delivery Address: \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[15,2,[29,[[36,4]]]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control resize-none shipping_address_column m-b-10 capitalize\\\"],[14,3,\\\"shipping_address_column\\\"],[14,1,\\\"shipping_address_column\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,[34,5]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"changeshippingaddress\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit patient-data-edit-button\\\"],[12],[13],[1,\\\" Delivery Address\\\"],[13],[1,\\\"\\\\n            \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"btn btn-info btn-sm PrintAddressLabel float-right\\\"],[15,\\\"data-patientId\\\",[29,[[33,1,[\\\"0\\\",\\\"patient_id\\\"]]]]],[15,\\\"data-appointmentId\\\",[29,[[33,1,[\\\"0\\\",\\\"appointment_id\\\"]]]]],[14,\\\"title\\\",\\\"Print Address Label\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-print\\\"],[12],[13],[1,\\\" Print Label\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,1,\\\"dispatch_pickup_details\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"Pickup_location\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Pickup Location \\\"],[13],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[15,0,[29,[\\\"form-control pharmacy_location \\\",[36,6]]]],[14,1,\\\"pharmacy_location\\\"],[14,3,\\\"pharmacy_location\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"updatePickupAddress\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,10],[[30,2,[\\\"id\\\"]],[33,11]],null]],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-7 ml-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Pickup Address \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control resize-none\\\"],[14,3,\\\"pickup_address\\\"],[14,1,\\\"pickup_address\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"courier_company_name\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Courier Company \\\"],[13],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control courier_company\\\"],[14,1,\\\"courier_company\\\"],[14,3,\\\"courier_company\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Courier Company\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,13]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,3,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,10],[[30,3,[\\\"id\\\"]],[33,14]],null]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-7 ml-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Tracking ID \\\"],[13],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Tracking ID\\\"],[14,3,\\\"tracking_id\\\"],[14,1,\\\"tracking_id\\\"],[15,2,[29,[[36,15]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row archive-search dispatch\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm float-right ml-2 ajaxButtonHide\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[33,17],\\\"Edit Archive Dispatched Order\\\"],null],[[[1,\\\"        \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm float-right ajaxButtonHide\\\",\\\"Back\\\",\\\"dispatch.archive\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm float-right ajaxButtonHide\\\",\\\"Back\\\",\\\"dispatch\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Shipping address popup \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered \\\"],[14,1,\\\"shippingAddressModal\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title no-margin-bottom\\\"],[12],[1,\\\"Delivery Address\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"discounterror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"DeliveryAddress\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,0],[[30,0],\\\"changeDeliveryAddress\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_1\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"shipping_address_1\\\",\\\"shipping_address_1\\\",\\\"Delivery Address Line 1\\\",[33,20,[\\\"shipping_address_1\\\"]],\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_2\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"shipping_address_2\\\",\\\"shipping_address_2\\\",\\\"Delivery Address Line 2\\\",[33,20,[\\\"shipping_address_2\\\"]],\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_country\\\"],[14,3,\\\"shipping_country\\\"],[15,2,[33,20,[\\\"shipping_selected_country\\\"]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"updateShippingCountry\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,21]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,4,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_country\\\"]]],null]],[12],[1,\\\"\\\\n                                    \\\"],[1,[30,4,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_state\\\"],[14,3,\\\"shipping_state\\\"],[15,2,[33,20,[\\\"shipping_selected_state\\\"]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"updateShippingState\\\"],null]],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,22]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,5,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_state\\\"]]],null]],[12],[1,\\\"\\\\n                                    \\\"],[1,[30,5,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_state\\\",\\\"shipping_other_state\\\",\\\"Other State\\\",[33,23]]]]],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_city\\\"],[14,3,\\\"shipping_city\\\"],[15,2,[33,20,[\\\"shipping_selected_city\\\"]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"updateShippingCity\\\"],null]],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,24]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,6,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_city\\\"]]],null]],[12],[1,\\\"\\\\n                                    \\\"],[1,[30,6,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_city\\\",\\\"shipping_other_city\\\",\\\"Other City\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_zip\\\",\\\"shipping_zip\\\",\\\"Zip\\\",[33,20,[\\\"shipping_zip\\\"]],\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Mobile No. \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_mob\\\",\\\"shipping_mob\\\",\\\"Mobile no\\\",[33,20,[\\\"shipping_mob\\\"]],\\\"off\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"text-left\\\"],[12],[1,\\\"By default, delivery address changes apply to the current visit only. If you want to update the patient shipping address permanently, select the below checkbox.\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                     \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"updateInMaster\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9 text-left\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,1,\\\"updateInMaster\\\"],[14,3,\\\"updateInMaster\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Update address in patient master also\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"clearShippingAddress\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Clear\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@saveDispatchOrder\\\",\\\"loc\\\",\\\"courier\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\"],false,[\\\"action\\\",\\\"patient_info\\\",\\\"if\\\",\\\"already_archived\\\",\\\"shiping_pickup\\\",\\\"address\\\",\\\"dis_select_disable\\\",\\\"each\\\",\\\"-track-array\\\",\\\"location\\\",\\\"eq\\\",\\\"branch\\\",\\\"branch_address\\\",\\\"CourierName\\\",\\\"courier_id\\\",\\\"tracking_id\\\",\\\"ifeg\\\",\\\"page\\\",\\\"link-to\\\",\\\"input\\\",\\\"shipp\\\",\\\"countries\\\",\\\"shipping_states\\\",\\\"shipping_other_state\\\",\\\"shipping_cities\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/delivery-address.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/diagnostic-report-test-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aVGNv5GR\",\n    \"block\": \"[[[42,[28,[37,1],[[33,2]],null],null,[[[1,\\\"  \\\"],[10,0],[15,0,[29,[\\\"row diagnosticchildgrouptest_list\\\",[36,3]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered drpreview\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"diag-head\\\"],[12],[1,\\\"Test Name\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,1,[\\\"0\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"vital-th-date\\\"],[15,1,[29,[[30,4]]]],[12],[1,[28,[35,5],[[30,3,[\\\"report_date\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"tests\\\"],[12],[1,[30,2]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"0\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,1,[\\\"0\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,0,\\\"tests\\\"],[15,1,[29,[[30,5,[\\\"test_id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,5,[\\\"imaging\\\"]],\\\"1\\\"],null],[[[41,[30,5,[\\\"report_notes\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"report_details\\\"],[12],[1,[28,[35,9],[[30,5,[\\\"report_notes\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,10],[[30,5,[\\\"report_notes\\\"]],\\\"30\\\"],null],[[[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge badge-soft-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"notesDetails\\\",[30,5,[\\\"test_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Read\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"pdf\\\"],null],[[[1,\\\"                        \\\"],[10,3],[15,6,[29,[[36,12],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,13],null,[[\\\"extension\\\",\\\"size\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"doc\\\"],null],[[[1,\\\"                        \\\"],[10,3],[15,6,[29,[[36,12],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,13],null,[[\\\"extension\\\",\\\"size\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"docx\\\"],null],[[[1,\\\"                        \\\"],[10,3],[15,6,[29,[[36,12],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,13],null,[[\\\"extension\\\",\\\"size\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"csv\\\"],null],[[[1,\\\"                        \\\"],[10,3],[15,6,[29,[[36,12],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,13],null,[[\\\"extension\\\",\\\"size\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"jpg\\\"],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"jpeg\\\"],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]]]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"png\\\"],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]]]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[10,3],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/default-profile.jpg\\\"],[14,0,\\\"checkoutimage\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[12],[13],[13],[13],[1,\\\"\\\\n                      \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]],[[[1,\\\"                    \\\"],[10,1],[15,0,[29,[[28,[37,15],[\\\"bnr\\\",[30,5,[\\\"range_type\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"range_value\\\"]]],null],\\\" abnormal\\\",[30,5,[\\\"abnormal_value\\\"]]]]],[12],[1,[30,5,[\\\"range_value\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"report_notes\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"report_details\\\"],[12],[1,[28,[35,9],[[30,5,[\\\"report_notes\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,10],[[30,5,[\\\"report_notes\\\"]],\\\"30\\\"],null],[[[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge badge-soft-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"notesDetails\\\",[30,5,[\\\"test_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Read\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[\\\"list_group_array5\\\",\\\"key4\\\",\\\"test\\\",\\\"index\\\",\\\"test\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-each-in\\\",\\\"list_group_array4\\\",\\\"key3\\\",\\\"-track-array\\\",\\\"common-date\\\",\\\"array-last-index-value\\\",\\\"if\\\",\\\"eq\\\",\\\"message-turncate\\\",\\\"checklenght\\\",\\\"action\\\",\\\"file_url\\\",\\\"file-icon\\\",\\\"presigned-image\\\",\\\"class-name-change\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/diagnostic-report-test-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/diagnostic-report-test\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jZTOwys3\",\n    \"block\": \"[[[42,[28,[37,1],[[33,2]],null],null,[[[10,0],[15,0,[29,[\\\"row diagnosticchildgrouptest_list\\\",[36,3]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"3\\\"]],1],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-warning float-left drfbtn\\\"],[24,\\\"title\\\",\\\"Next Report\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"nextTest\\\",[33,7,[\\\"appointment_id\\\"]],[33,7,[\\\"patient_id\\\"]],[33,3],[30,1,[\\\"3\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-solid fa-backward\\\"],[12],[13],[1,\\\" Newer\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-danger float-right drrbtn\\\"],[24,\\\"title\\\",\\\"Remove List\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"removeTest\\\",[30,2],[33,7,[\\\"appointment_id\\\"]],[33,7,[\\\"patient_id\\\"]],[33,3]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered drtml\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"diag-head\\\"],[12],[1,\\\"Test Name\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,1,[\\\"0\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"vital-th-date\\\"],[15,1,[29,[[30,4]]]],[12],[1,[28,[35,9],[[30,3,[\\\"report_date\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"tests\\\"],[12],[1,[30,2]],[1,\\\" \\\"],[1,[28,[35,10],[[30,1,[\\\"0\\\"]]],null]],[1,\\\" \\\"],[11,\\\"i\\\"],[24,0,\\\"fa fa-question-circle\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,6],[[30,0],\\\"showTestNote\\\",[33,3]],null],[12],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,1,[\\\"0\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"tests\\\"],[15,1,[29,[[30,5,[\\\"test_id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,5,[\\\"imaging\\\"]],\\\"1\\\"],null],[[[41,[30,5,[\\\"report_notes\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ml-2\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"report_details\\\"],[12],[1,[28,[35,12],[[30,5,[\\\"report_notes\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,13],[[30,5,[\\\"report_notes\\\"]],\\\"30\\\"],null],[[[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge badge-soft-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"notesDetails\\\",[30,5,[\\\"test_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                  Read\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"pdf\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onViewPDFFileInPopup\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"viewPDFFileInPopup\\\"],null],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"\\\\n                  Details\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"doc\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"docx\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"csv\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"dcm\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"zip\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],null,[[\\\"filePath\\\",\\\"oldRegistrationNo\\\",\\\"firstName\\\",\\\"lastName\\\",\\\"fileName\\\",\\\"fileType\\\",\\\"fileCount\\\",\\\"fieldId\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[33,15],[33,16],[33,17],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_name\\\"]],[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[30,5,[\\\"filereport\\\"]],[30,5,[\\\"id\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs dbwidth\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"jpg\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,18],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\",\\\"fileCount\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"filereport\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs ddetails\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"jpeg\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,18],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\",\\\"fileCount\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"filereport\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs ddetails\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],\\\"png\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,18],null,[[\\\"filePath\\\",\\\"title\\\",\\\"testName\\\",\\\"fileCount\\\",\\\"onClick\\\"],[[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"upload_folder_path\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"filereport\\\"]],[28,[37,6],[[30,0],\\\"editDiagnosticReportWrapper\\\",[30,5]],null]]]]],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs ddetails\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n                \\\"],[10,3],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"thumbnail-container\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/default-profile.jpg\\\"],[14,0,\\\"checkoutimage\\\"],[15,\\\"title\\\",[29,[[30,5,[\\\"range_value\\\"]]]]],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-diinfo btn-xs ddetails\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]],[[[41,[28,[37,19],[[30,5,[\\\"created_at\\\"]],[33,20]],null],[[[1,\\\"              \\\"],[10,1],[15,0,[29,[[28,[37,21],[\\\" bnr\\\",[30,5,[\\\"range_type\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"range_value\\\"]]],null],\\\" dcursor abnormal\\\",[30,5,[\\\"abnormal_value\\\"]]]]],[12],[1,[30,5,[\\\"range_value\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ml-2\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge dbadge-info ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"report_notes\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report_details\\\"],[12],[1,[28,[35,12],[[30,5,[\\\"report_notes\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,13],[[30,5,[\\\"report_notes\\\"]],\\\"30\\\"],null],[[[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge badge-soft-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"notesDetails\\\",[30,5,[\\\"test_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                  Read\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[11,1],[16,0,[29,[[28,[37,21],[\\\" bnr\\\",[30,5,[\\\"range_type\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"range_value\\\"]]],null],\\\" dcursor abnormal\\\",[30,5,[\\\"abnormal_value\\\"]]]]],[4,[38,6],[[30,0],\\\"editDiagnosticReport\\\",[30,5,[\\\"test_id\\\"]],[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"test_name\\\"]],[30,5,[\\\"lower_range\\\"]],[30,5,[\\\"upper_range\\\"]],[30,5,[\\\"unit_name\\\"]],[30,5,[\\\"range_value\\\"]],[30,5,[\\\"range_type\\\"]],[30,5,[\\\"diagnostic_report_id\\\"]],[30,5,[\\\"created_at\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[30,5,[\\\"range_value\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"filereport\\\",\\\"0\\\",\\\"file_type\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ml-2\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"report_notes\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report_details\\\"],[12],[1,[28,[35,12],[[30,5,[\\\"report_notes\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,13],[[30,5,[\\\"report_notes\\\"]],\\\"30\\\"],null],[[[11,\\\"button\\\"],[24,0,\\\"btn btn-xs dbadge badge-soft-primary pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"notesDetails\\\",[30,5,[\\\"test_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                  Read\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"3\\\"]],[30,1,[\\\"2\\\"]]],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-warning float-right drfbtn\\\"],[24,\\\"title\\\",\\\"Previous Report\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"previousTest\\\",[33,7,[\\\"appointment_id\\\"]],[33,7,[\\\"patient_id\\\"]],[33,3],[30,1,[\\\"3\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Older \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-solid fa-forward\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[\\\"list_group_array5\\\",\\\"key4\\\",\\\"test\\\",\\\"index\\\",\\\"test\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-each-in\\\",\\\"list_group_array4\\\",\\\"key3\\\",\\\"if\\\",\\\"ifnoteq\\\",\\\"action\\\",\\\"diagnostic_test_user\\\",\\\"-track-array\\\",\\\"common-date\\\",\\\"array-last-index-value\\\",\\\"eq\\\",\\\"message-turncate\\\",\\\"checklenght\\\",\\\"file-thumbnail\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\",\\\"presigned-image\\\",\\\"check-equal-date\\\",\\\"current_date\\\",\\\"class-name-change\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/diagnostic-report-test.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/diagnostic-reports-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"o39aOQoH\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[14,1,\\\"diagnosticPreview\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPAdvisedReport\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Diagnostic Reports\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPDiagnosticReportList\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"shipping_box\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[33,7]],null],null,[[[42,[28,[37,6],[[30,1]],null],null,[[[1,\\\"                \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"diagnosticbox-border\\\"],[15,5,[29,[\\\"border: 3px solid \\\",[30,2]]]],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border parent-test-name\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[30,3]],null],null,[[[1,\\\"                        \\\"],[10,0],[15,0,[29,[\\\"row dlist-margin diagnosticgrouptest_list\\\",[30,6]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,1],[14,0,\\\"report_name\\\"],[12],[1,[30,6]],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[30,5]],null],null,[[[1,\\\"                                 \\\"],[1,[28,[35,8],null,[[\\\"list_group_array4\\\",\\\"key3\\\",\\\"diagnostic_test_user\\\",\\\"notesDetails\\\"],[[30,7],[30,8],[33,9],\\\"notesDetails\\\"]]]],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null]],[1,2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"list_group_array1\\\",\\\"key\\\",\\\"list_group_array2\\\",\\\"key1\\\",\\\"list_group_array3\\\",\\\"key2\\\",\\\"list_group_array4\\\",\\\"key3\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"d_report_user\\\",\\\"section-add-edit-by\\\",\\\"each\\\",\\\"-each-in\\\",\\\"d_reports_list\\\",\\\"diagnostic-report-test-preview\\\",\\\"diagnostic_test_user\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/diagnostic-reports-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/diagnostic-reports\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/O4jzrwA\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"ICPAdvisedReport\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Diagnostic Reports\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPDiagnosticReportAdd\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-info float-right\\\"],[24,\\\"title\\\",\\\"Add Diagnostic Report\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add Diagnostic Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,1,\\\"diagnosticmessage\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"text-left text-label\\\"],[14,\\\"for\\\",\\\"drtodate\\\"],[12],[1,\\\"From:\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control date\\\"],[14,1,\\\"drfromdate\\\"],[14,3,\\\"drfromdate\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,5,\\\"margin-left:-38px;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right; margin-right: 37px; margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"drtodate\\\"],[14,0,\\\"text-left text-label\\\"],[12],[1,\\\"To:\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control date\\\"],[14,3,\\\"drtodate\\\"],[14,1,\\\"drtodate\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,5,\\\"margin-left:-55px;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"btn btn-default dtocalender\\\"],[14,5,\\\"float: right; margin-right: 54px; margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,2],[33,6],[33,7,[\\\"0\\\",\\\"patient_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Search Reports\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"ICPDiagnosticReportList\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"shipping_box\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[33,10,[\\\"data\\\"]]],null],null,[[[42,[28,[37,9],[[30,3]],null],null,[[[1,\\\"                        \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"diagnosticbox-border\\\"],[15,5,[29,[\\\"border: 3px solid \\\",[30,4]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border parent-test-name\\\"],[12],[1,[30,6]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[30,5]],null],null,[[[1,\\\"                                \\\"],[10,0],[15,0,[29,[\\\"row dlist-margin diagnosticgrouptest_list\\\",[30,8]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"report_name\\\"],[12],[1,[30,8]],[13],[1,\\\"\\\\n                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-info float-left\\\"],[16,\\\"title\\\",[29,[\\\"Add \\\",[30,8]]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,1],[30,8]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add \\\"],[1,[30,8]],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[30,7]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,11],null,[[\\\"list_group_array4\\\",\\\"key3\\\",\\\"diagnostic_test_user\\\",\\\"current_date\\\",\\\"previousTest\\\",\\\"removeTest\\\",\\\"editDiagnosticReport\\\",\\\"notesDetails\\\",\\\"showTestNote\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\",\\\"viewPDFFileInPopup\\\"],[[30,9],[30,10],[33,3],[33,12],\\\"previousTest\\\",\\\"removeTest\\\",\\\"editDiagnosticReport\\\",\\\"notesDetails\\\",\\\"showTestNote\\\",[33,13],[33,14],[33,15],[28,[37,5],[[30,0],\\\"viewPDFFileInPopup\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[9,10]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null]],[3,4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@addNewDiagnosticReport\\\",\\\"@getPageFilterReport\\\",\\\"list_group_array1\\\",\\\"key\\\",\\\"list_group_array2\\\",\\\"key1\\\",\\\"list_group_array3\\\",\\\"key2\\\",\\\"list_group_array4\\\",\\\"key3\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"diagnostic_test_user\\\",\\\"section-add-edit-by\\\",\\\"action\\\",\\\"appointment_id\\\",\\\"PatientInfo\\\",\\\"each\\\",\\\"-each-in\\\",\\\"patient_test_reports\\\",\\\"diagnostic-report-test\\\",\\\"current_date\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/diagnostic-reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/dispatched-orders-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ojWTyV7A\",\n    \"block\": \"[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive cware dispatch\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Dispatched Orders\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover display\\\"],[14,1,\\\"DispatchedOrders\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Presc Doc\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Packaged Date/Time\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Disp Date/Time\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Courier\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Tracking ID\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DispatchArchive\\\",[33,2]],null],[[[1,\\\"                \\\"],[6,[39,3],null,[[\\\"class\\\",\\\"title\\\",\\\"data-toggle\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm button-margin\\\",\\\"Dispatch Archive\\\",\\\"tooltip\\\",\\\"dispatch.archive\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-archive\\\"],[12],[13],[1,\\\"  Dispatch Archive\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[18,1,null]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/dispatched-orders-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/doctor-name-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"898+FeNa\",\n    \"block\": \"[[[10,0],[14,0,\\\"col-lg-12 col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row p-t-b\\\"],[14,1,\\\"thintaboriginal\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"col-lg-7 col-md-7 col-xs-7\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"home\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-lg-4 col-md-4 col-xs-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"doctor_name\\\"],[12],[1,[34,3]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-lg-4 col-md-4 col-xs-4\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" ChangeDrDataInfo \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"OtherChangeDrDataInfo\\\",[33,5]],null],[[[1,\\\"    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor\\\"],[14,1,\\\"doctor\\\"],[15,2,[36,6]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,7],[[30,0],[30,1]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"user_id\\\"]]]]],[15,\\\"selected\\\",[28,[37,11],[[33,6],[30,2,[\\\"user_id\\\"]]],null]],[12],[1,[30,2,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor\\\"],[14,1,\\\"doctor\\\"],[15,2,[36,6]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"user_id\\\"]]]]],[15,\\\"selected\\\",[28,[37,11],[[33,6],[30,3,[\\\"user_id\\\"]]],null]],[12],[1,[30,3,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[10,0],[14,0,\\\"col-lg-8 col-md-8 col-xs-8\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"badge-big marginLeft10 prescribed_counter float-left\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[12],[41,[33,12],[[[1,[34,12]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\"],[10,1],[14,0,\\\"badge-big marginLeft10 alert-success casetaken_counter float-left\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[41,[33,13],[[[1,[34,13]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"dashboard-header-counter float-left marginLeft10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining ICP & VC Patient\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"icon-user fa-remaining margin-right-10 \\\",[33,14,[\\\"urgent\\\",\\\"icpVc\\\"]]]]],[14,5,\\\"font-size: 21px;\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,1],[12],[1,[33,14,[\\\"remaining\\\",\\\"icpVc\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"dashboard-header-counter float-left\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"data-placement\\\",\\\"top\\\"],[24,\\\"data-original-title\\\",\\\"Remaining Phone Patient\\\"],[4,[38,7],[[30,0],\\\"ScrollToSection\\\",\\\"phone-section\\\"],null],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa fa-phone-square fa-remaining d-icon-space margin-right-10 \\\",[33,14,[\\\"urgent\\\",\\\"phone\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,1],[12],[1,[33,14,[\\\"remaining\\\",\\\"phone\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"dashboard-header-counter float-left\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"data-placement\\\",\\\"top\\\"],[24,\\\"data-original-title\\\",\\\"Remaining Email Patient\\\"],[4,[38,7],[[30,0],\\\"ScrollToSection\\\",\\\"email-section\\\"],null],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fas fa-envelope fa-remaining d-icon-space margin-right-10 \\\",[33,14,[\\\"urgent\\\",\\\"email\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,1],[12],[1,[33,14,[\\\"remaining\\\",\\\"email\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"dashboard-header-counter float-left\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"data-placement\\\",\\\"top\\\"],[24,\\\"data-original-title\\\",\\\"Remaining OCP Patient\\\"],[4,[38,7],[[30,0],\\\"ScrollToSection\\\",\\\"ocp-section\\\"],null],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fas fa-hospital fa-remaining d-icon-space margin-right-10 \\\",[33,14,[\\\"urgent\\\",\\\"ocp\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,1],[12],[1,[33,14,[\\\"remaining\\\",\\\"ocp\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,15],[[[10,0],[14,0,\\\"col-lg-5 col-md-5 col-xs-5 switch-tabs\\\"],[12],[1,\\\"\\\\n \\\"],[3,\\\" Nav tabs \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"tabserror\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,1,\\\"tab-list\\\"],[14,0,\\\"nav nav-tabs\\\"],[14,\\\"role\\\",\\\"tablist\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"home\\\"],null],[[[1,\\\"                    \\\"],[10,\\\"li\\\"],[12],[6,[39,16],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Doctor Dashboard\\\",\\\"doctor-dashboard.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-home fa-remaining tab-name-icon-left\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"tab-name-margin\\\"],[12],[1,\\\"Home\\\"],[13]],[]]]]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,15]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"li\\\"],[15,\\\"data-tabsid\\\",[30,4,[\\\"id\\\"]]],[15,\\\"data-AppId\\\",[30,4,[\\\"visit_id\\\"]]],[15,\\\"data-appointment\\\",[30,4,[\\\"appointment_id\\\"]]],[15,0,[29,[[28,[37,11],[[30,4,[\\\"appointment_id\\\"]],[33,17],\\\"active\\\",\\\" \\\"],null]]]],[12],[11,3],[16,\\\"title\\\",[29,[[30,4,[\\\"tab_name\\\"]],\\\" - \\\",[30,4,[\\\"patient_name\\\"]]]]],[16,1,[29,[[28,[37,18],[[30,5]],null]]]],[16,0,[29,[\\\"tabnumber tab\\\",[28,[37,19],[[30,5]],null]]]],[4,[38,7],[[30,0],[30,6],[30,4,[\\\"appointment_id\\\"]],[30,4,[\\\"patient_id\\\"]],[30,4,[\\\"read_message_log\\\"]]],null],[12],[10,\\\"i\\\"],[15,0,[29,[[30,4,[\\\"tab_icon\\\"]],\\\" fa-remaining tab-name-icon-left\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"text-capitalize tab-name-margin\\\"],[12],[1,[28,[35,20],[[30,4,[\\\"patient_name\\\"]]],[[\\\"limit\\\"],[6]]]],[13],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Remove this page\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,7],[30,4,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"×\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[4,5]],null]],[]],[[[42,[28,[37,9],[[28,[37,9],[[33,15]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"li\\\"],[15,\\\"data-tabsid\\\",[30,8,[\\\"id\\\"]]],[15,\\\"data-AppId\\\",[30,8,[\\\"visit_id\\\"]]],[15,\\\"data-appointment\\\",[30,8,[\\\"appointment_id\\\"]]],[15,0,[29,[[28,[37,11],[[30,8,[\\\"appointment_id\\\"]],[33,17],\\\"active\\\",\\\" \\\"],null]]]],[12],[11,3],[16,\\\"title\\\",[29,[[30,8,[\\\"tab_name\\\"]],\\\" - \\\",[30,8,[\\\"patient_name\\\"]]]]],[16,1,[29,[[28,[37,18],[[30,9]],null]]]],[16,0,[29,[\\\"tabnumber tab\\\",[28,[37,19],[[30,9]],null]]]],[4,[38,7],[[30,0],[30,6],[30,8,[\\\"appointment_id\\\"]],[30,8,[\\\"patient_id\\\"]],[30,8,[\\\"read_message_log\\\"]]],null],[12],[10,\\\"i\\\"],[15,0,[29,[[30,8,[\\\"tab_icon\\\"]],\\\" fa-remaining tab-name-icon-left\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"text-capitalize tab-name-margin\\\"],[12],[1,[28,[35,20],[[30,8,[\\\"patient_name\\\"]]],[[\\\"limit\\\"],[10]]]],[13],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Remove this page\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,7],[30,8,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"×\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[8,9]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@doctorId\\\",\\\"doc\\\",\\\"doc\\\",\\\"list\\\",\\\"index\\\",\\\"@showTabPage\\\",\\\"@removePrescribeTab\\\",\\\"onlylist\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"ifnoteq\\\",\\\"page\\\",\\\"logged_user\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"doctor_id\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctor\\\",\\\"eq\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"phoneEmailOcpRemaining\\\",\\\"tablist\\\",\\\"link-to\\\",\\\"appointment_id\\\",\\\"increment\\\",\\\"increase-tab-number\\\",\\\"truncate-text\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/doctor-name-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/doctor-schedule-view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Ph+8R3m0\",\n    \"block\": \"[[[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary pull-right marginbottom15\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],null],[12],[1,\\\"Go Back\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[3,\\\" <div class=\\\\\\\"widget-header\\\\\\\"> <i class=\\\\\\\"icon-list-ul\\\\\\\"></i>\\\\n\\\\t  <h3> {{doc_name}}'s Schedule </h3>\\\\n\\\\t</div> \\\"],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-tabs \\\"],[14,\\\"role\\\",\\\"tablist\\\"],[14,1,\\\"assign-tab-list\\\"],[14,5,\\\"margin-bottom:0px;background:#FFF;border-radius:5px 5px 0px 0px;border-bottom:none\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"active\\\"],[12],[11,3],[24,\\\"data-tab\\\",\\\"regular\\\"],[4,[38,0],[[30,0],\\\"showTab\\\",\\\"regular\\\"],null],[12],[1,\\\"Regular Schedule\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t     \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"\\\"],[12],[11,3],[16,\\\"data-tab\\\",[29,[[30,1,[\\\"from\\\"]]]]],[4,[38,0],[[30,0],\\\"showTab\\\",[30,1,[\\\"from\\\"]]],null],[12],[1,\\\" \\\"],[1,[30,1,[\\\"from\\\"]]],[1,\\\" to \\\"],[1,[30,1,[\\\"to\\\"]]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"tab-content\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[14,0,\\\"tab-pane \\\"],[15,1,[29,[[30,2,[\\\"from\\\"]]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[14,5,\\\"overflow:hidden;height:280px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t    \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Day\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,2,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"day\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"shift_1_time_in\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"shift_1_time_out\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"shift_2_time_in\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"shift_2_time_out\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t    \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\t\\\\t    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[14,0,\\\"tab-pane active\\\"],[14,1,\\\"regular\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[14,5,\\\"overflow:hidden;height:280px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t    \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Day\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time In\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Time Out\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,4]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"day\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"shift_1_time_in\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"shift_1_time_out\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"shift_2_time_in\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t      \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"shift_2_time_out\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t    \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"\\\\t\\\\t    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"tab\\\",\\\"tab\\\",\\\"schedule\\\",\\\"schedule\\\"],false,[\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctor_adjustment_schedule\\\",\\\"doctor_regular_schedule\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/doctor-schedule-view.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/dropdown-action-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"CzeQlV0P\",\n    \"block\": \"[[[3,\\\" Single button \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"btn-group vertical-align\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars action-font fa-action\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReassignPatientButton\\\",[33,2]],null],[[[1,\\\"        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#reSchedule\\\"],[4,[38,3],[[30,0],\\\"reSchedulePatient\\\",[33,4,[\\\"pateint_visit_id\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-retweet fa-blue fa-font margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[33,4,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,3],[[30,0],\\\"urgentPatient\\\",[33,4,[\\\"appointment_id\\\"]],[33,4,[\\\"urgent_status\\\"]],[33,4,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent fa-font margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,3],[[30,0],\\\"urgentPatient\\\",[33,4,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent fa-font margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicReschedulePatientsButton\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,\\\"li\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa fa-reply fa-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Reschedule\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicAbsentPatientsButton\\\",[33,2]],null],[[[1,\\\"        \\\"],[11,\\\"li\\\"],[4,[38,3],[[30,0],\\\"patientAbsent\\\",[33,4,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-warning fa-font fa-absent margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"InClinicCancelPatientsButton\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,\\\"li\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign fa-cancel margin-right-10\\\"],[14,5,\\\"font-size: 22px;\\\"],[12],[13],[1,\\\"Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"patient\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/dropdown-action-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/email-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"MpHXIQoq\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t\\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#emailcompletedVisit\\\"],[12],[1,\\\"Email Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"emailcompletedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"type\\\"]]],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-  \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Appt Time), \\\"],[1,[28,[35,1],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[28,[37,8],[[30,2,[\\\"checkin_time\\\"]],\\\" (Check-in),\\\"],null]],null]],[1,\\\" \\\"],[1,[28,[35,1],[[30,2,[\\\"complete_time\\\"]],null,\\\" \\\",[30,2,[\\\"complete_time\\\"]]],null]],[1,\\\" (Completed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"book_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"book_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"casetaken_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribe_doc_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"prescribe_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,10],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tNo appointments completed for today.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"completeReportsTypes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"emailComplete\\\",\\\"concat\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/email-complete-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/email-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"MJ0x8xRB\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#email-complete-patients\\\"],[12],[1,\\\"Email Completed Visit\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"email-complete-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescription Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Billing Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharma Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                    \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                            \\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"assign_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"casetaken_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"case_taken_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_doc_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pharmacy_complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding action_width\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"visit_complete\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"doctor-dashboard.checkoutdetail\\\",[28,[37,6],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"billing_id\\\"]],[30,1,[\\\"patient_id\\\"]],\\\"0\\\",\\\"preview\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"assigned_dr_2\\\"]],[33,7]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null],[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"No\\\"],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"Yes\\\"],null],[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,8],[[33,12],[30,1,[\\\"patient_id\\\"]]],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Case Taken Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[1]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"13\\\"],[12],[1,\\\"No appointments completed for today..\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@addPrescribeTab\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"completeEmailPatients\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"array\\\",\\\"login_user\\\",\\\"find-tab-patient\\\",\\\"icptablist\\\",\\\"action\\\",\\\"and\\\",\\\"button_status\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/email-completed-visit-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/email-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"EphbJq75\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[14,1,\\\"email-section\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#email-patients\\\"],[12],[1,\\\"Email Patients\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 prescribed_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[12],[41,[33,1,[\\\"total_email_prescribe\\\"]],[[[1,[33,1,[\\\"total_email_prescribe\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 alert-success casetaken_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[41,[33,1,[\\\"total_email_casetaken\\\"]],[[[1,[33,1,[\\\"total_email_casetaken\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[34,2]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"email-patients\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Date/Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,0,\\\"action-width\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[30,1,[\\\"absent_status\\\"]]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,6],[[30,1,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,7],[[30,0],[30,2],[30,1,[\\\"cancel_note\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[41,[28,[37,8],[[30,1,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,9],[[30,1,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\" \\\"],[1,[28,[35,10],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"doctor-dashboard\\\"]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"dr_appt\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"absent\\\"]],\\\"0\\\",[30,1,[\\\"assign_time\\\"]],[30,1,[\\\"assign_date_time\\\"]]],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\",[30,1,[\\\"casetaken_label\\\"]],\\\" \\\"],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding text-right\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Prescribe Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicPrescribeButton\\\",[33,13]],null]],null],[[[1,\\\"                                              \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font ml-2\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                               \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font ml-2\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Prescribe Button \\\"],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font ml-2\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"assign_to\\\"]],[33,19]],null],[[[41,[28,[37,6],[[30,1,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[6,[39,20],null,[[\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,21],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt d-icon-font icon-side-margin message-icon\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[3,\\\" Single button \\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"btn-group doctor-group-action vertical-align\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent z-index-0\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars action-font fa-action icon-side-margin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Re-assign Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrReAssignButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Re-assign Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Reschedule Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicReschedulePatientsButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Reschedule Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Absent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrAbsentButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Absent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Cancel Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrCancelButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Cancel Button \\\"],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"ShippingPreferenceButton\\\",[33,13]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,7],[[30,0],[30,4],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"Shipping preference\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"OldPrescribeButton\\\",[33,13]],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"divider \\\",[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"prescribed\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,5],[30,1,[\\\"pateint_visit_id\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-check margin-right-10\\\"],[14,5,\\\"color: #2ba2bd;font-size: 24px;\\\"],[12],[13],[1,\\\" Prescribed\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"reassigned\\\"]],\\\"false\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"casetaken\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,6],[30,1,[\\\"reassigned\\\"]],[30,1,[\\\"pateint_visit_id\\\"]],[30,1,[\\\"booked_doctor\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope margin-right-10\\\"],[14,5,\\\"color:#1ABD75;font-weight: bold;font-size: 24px;\\\"],[12],[13],[1,\\\" Case taken\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                        No appointments left/found for today.\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@showCancelNote\\\",\\\"@addPrescribeTab\\\",\\\"@setShippingPreference\\\",\\\"@markCompleteC\\\",\\\"@reAssignC\\\"],false,[\\\"if\\\",\\\"patientCount\\\",\\\"remainingEmailPatients\\\",\\\"each\\\",\\\"-track-array\\\",\\\"emailPatients\\\",\\\"eq\\\",\\\"action\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"isDisabled\\\",\\\"find-tab-patient\\\",\\\"emailtablist\\\",\\\"button_status\\\",\\\"currentUser\\\",\\\"user_id\\\",\\\"link-to\\\",\\\"array\\\",\\\"find-array-value\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/email-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ember-datepicker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"WwV1XxU6\",\n    \"block\": \"[[[18,1,null]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ember-datepicker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/empty-schedule-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/g8WyTJQ\",\n    \"block\": \"[[[10,0],[14,0,\\\"text-center\\\"],[14,5,\\\"padding: 60px 20px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Circle icon background \\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"center-block\\\"],[14,5,\\\"width: 80px; height: 80px; background-color: #f1f1f1; border-radius: 50%; display: flex; align-items: center; justify-content: center;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-calendar\\\"],[14,5,\\\"font-size: 36px; color: #6366f1;\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" Message \\\"],[1,\\\"\\\\n        \\\"],[10,2],[14,5,\\\"margin-top: 20px; color: #6b7280; font-size: 16px;\\\"],[12],[1,\\\"\\\\n            No schedules found for this doctor.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" Button \\\"],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[4,[38,0],[[30,0],[30,1],[30,2],\\\"\\\",\\\"add\\\"],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Create First Schedule\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@toggleForm\\\",\\\"@doctorId\\\"],false,[\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/empty-schedule-message.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/error-display\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"6IAz31EJ\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"alert alert-danger\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,1]],null]],null],null,[[[1,\\\"    \\\"],[10,2],[12],[1,\\\" \\\"],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"error\\\"],false,[\\\"if\\\",\\\"errors_list\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/error-display.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/file-icon\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xlTSBm+/\",\n    \"block\": \"[[[18,1,null]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/file-icon.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/file-preview-modal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JJIqDgU+\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal fade modal-dialog-centered pdf-modal\\\"],[14,1,\\\"filePreviewModal\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-xl\\\"],[14,\\\"role\\\",\\\"document\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"iframe-wrapper\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,3]],[14,\\\"allowfullscreen\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@closePDFReport\\\",\\\"@previewFileName\\\",\\\"@previewUrl\\\"],false,[\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/file-preview-modal.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/file-thumbnail\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"VdrTceJX\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1,[\\\"length\\\"]],1],null],[[[11,3],[24,0,\\\"dcursor\\\"],[16,\\\"title\\\",[29,[[30,2]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"handleFileDownloadClick\\\"]],[30,3],[30,4],[30,5],[30,6],[30,2],[30,7],[30,8]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"presignedUrl\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"thumbnail-container\\\"],[14,5,\\\"position: relative;\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],null,[[\\\"class\\\",\\\"extension\\\",\\\"size\\\"],[\\\"dleft\\\",[30,7],\\\"medium\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"image-count-overlay\\\"],[12],[1,[30,1,[\\\"length\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[10,0],[15,1,[29,[\\\"loader-\\\",[30,8]]]],[14,0,\\\"loader-overlay\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"spinner-border\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[11,3],[24,0,\\\"dcursor\\\"],[16,\\\"title\\\",[29,[[30,2]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"presignedUrl\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"thumbnail-container\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],null,[[\\\"class\\\",\\\"extension\\\",\\\"size\\\"],[\\\"dleft\\\",[30,7],\\\"medium\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"image-count-overlay\\\"],[12],[1,[30,1,[\\\"length\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@fileCount\\\",\\\"@fileName\\\",\\\"@filePath\\\",\\\"@oldRegistrationNo\\\",\\\"@firstName\\\",\\\"@lastName\\\",\\\"@fileType\\\",\\\"@fieldId\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"on\\\",\\\"fn\\\",\\\"file-icon\\\",\\\"gt\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/file-thumbnail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/file-upload\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"MPC8iY5X\",\n    \"block\": \"[[[11,\\\"label\\\"],[24,\\\"for\\\",\\\"diagnostic_report_file\\\"],[24,0,\\\"btn btn-primary btn-sm btn-block\\\"],[4,[38,0],[[30,0],\\\"add\\\"],null],[12],[1,[34,1]],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"counter pull-right\\\"],[15,1,[29,[[33,2,[\\\"length\\\"]]]]],[12],[1,[34,3]],[13],[1,\\\"\\\\n\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,\\\"Maximum upload file size 50 MB. You can upload only 12 files including JPG, PNG, JPEG, PDF, DOC, DOCX, CSV, DCM, DICOM and ZIP.\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"items\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,2]],null]],null],null,[[[41,[30,1,[\\\"thumbnail\\\"]],[[[1,\\\"      \\\"],[10,0],[15,0,[29,[\\\"item \\\",[52,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],\\\"invalid\\\",\\\"valid\\\"]]]],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"cancel pull-right imageid\\\"],[16,\\\"data-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,\\\"title\\\",[29,[\\\"Remove \\\",[30,1,[\\\"file\\\",\\\"name\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"removeUploadFile\\\",[30,1],[30,1,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"inner\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"thumbnail\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"img\\\"],[16,\\\"src\\\",[29,[[30,1,[\\\"thumbnail\\\"]]]]],[16,\\\"title\\\",[29,[[30,1,[\\\"file\\\",\\\"name\\\"]]]]],[16,\\\"alt\\\",[29,[[30,1,[\\\"file\\\",\\\"name\\\"]]]]],[4,[38,0],[[30,0],\\\"imagePreview\\\",[30,1,[\\\"thumbnail\\\"]],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"error-message\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"text\\\"],[12],[1,\\\"\\\\n                  \\\"],[41,[30,1,[\\\"error\\\"]],[[[1,[30,1,[\\\"error\\\"]]]],[]],[[[1,[28,[35,9],[[33,10],[30,2]],null]]],[]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[15,1,[29,[\\\"myProgress[\\\",[30,1,[\\\"file\\\",\\\"name\\\"]],\\\"]\\\"]]],[14,5,\\\"display:none; width: 100%;  background-color: grey;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[15,1,[29,[\\\"myBar[\\\",[30,1,[\\\"file\\\",\\\"name\\\"]],\\\"]\\\"]]],[14,5,\\\"width: 1%;  height: 10px;  background-color: rgb(15, 179, 15);\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"other_file\\\"]],[[[1,\\\"      \\\"],[10,0],[15,0,[29,[\\\"item \\\",[52,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],\\\"invalid\\\",\\\"valid\\\"]]]],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"cancel pull-right imageid\\\"],[16,\\\"data-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,\\\"title\\\",[29,[\\\"Remove \\\",[30,1,[\\\"file\\\",\\\"name\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"removeUploadFile\\\",[30,1],[30,1,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"inner\\\"],[14,5,\\\"position: relative;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"thumbnail\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"pdf\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"viewPDFFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]],[30,1,[\\\"id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"pdf\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n              \\\"],[10,0],[15,1,[29,[\\\"loader-\\\",[30,1,[\\\"id\\\"]]]]],[14,0,\\\"loader-overlay\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"spinner-border\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"doc\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"doc\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"docx\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"docx\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"csv\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"csv\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"dicom\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"dicom\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"zip\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"zip\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"other_file\\\"]],\\\"dcm\\\"],null],[[[1,\\\"              \\\"],[11,3],[4,[38,0],[[30,0],\\\"downloadFile\\\",[30,1,[\\\"file_path\\\"]],[33,12],[33,13],[33,14],[30,1,[\\\"file\\\",\\\"name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"dcm\\\",true,\\\"medium\\\"]]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,15],null,[[\\\"extension\\\",\\\"iconOnly\\\",\\\"size\\\"],[\\\"NA\\\",true,\\\"medium\\\"]]]],[1,\\\"\\\\n            \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[41,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"error-message\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"text\\\"],[12],[1,\\\"\\\\n                  \\\"],[41,[30,1,[\\\"error\\\"]],[[[1,[30,1,[\\\"error\\\"]]]],[]],[[[1,[28,[35,9],[[33,10],[30,2]],null]]],[]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[15,1,[29,[\\\"myProgress[\\\",[30,1,[\\\"file\\\",\\\"name\\\"]],\\\"]\\\"]]],[14,5,\\\"display:none; width: 100%;  background-color: grey;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[15,1,[29,[\\\"myBar[\\\",[30,1,[\\\"file\\\",\\\"name\\\"]],\\\"]\\\"]]],[14,5,\\\"width: 1%;  height: 10px;  background-color: rgb(15, 179, 15);\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[15,0,[29,[\\\"item \\\",[52,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],\\\"invalid\\\",\\\"valid\\\"]]]],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"cancel pull-right imageid\\\"],[16,\\\"title\\\",[29,[\\\"Remove \\\",[30,1,[\\\"file\\\",\\\"name\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"removeUploadFile\\\",[30,1],[30,1,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"inner\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"thumbnail\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/wrong-file-type.png\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[28,[37,8],[[30,1,[\\\"valid\\\"]]],null],[28,[37,9],[[33,10],[30,2]],null]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"error-message\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"text\\\"],[12],[1,\\\"\\\\n                  \\\"],[41,[30,1,[\\\"error\\\"]],[[[1,[30,1,[\\\"error\\\"]]]],[]],[[[1,[28,[35,9],[[33,10],[30,2]],null]]],[]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[1,2]],null],[13]],[\\\"QueuedFile\\\",\\\"index\\\"],false,[\\\"action\\\",\\\"addLabel\\\",\\\"filequeue\\\",\\\"counter\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"logical-or\\\",\\\"is-not\\\",\\\"array-item\\\",\\\"errors\\\",\\\"eq\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\",\\\"file-icon\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/file-upload.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/flash-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"RM2kzIPn\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[33,3,[\\\"message\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"template\\\",\\\"yield\\\",\\\"flash\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/flash-message.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/footer-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JlZBadzl\",\n    \"block\": \"[[[10,\\\"footer\\\"],[14,0,\\\"footer\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"footer-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"footer-content\\\"],[12],[1,\\\"\\\\n        © 2019 \\\"],[10,3],[14,6,\\\"#\\\"],[12],[1,\\\"Dr. Kalyan Banerjee's Clinic\\\"],[13],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/footer-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/free-note-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"iEj2hum9\",\n    \"block\": \"[[[1,\\\" \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Free Note\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"margin-top: 20px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"green-border-focus\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"patientFreeNote\\\"],[14,1,\\\"patientFreeNote\\\"],[14,\\\"rows\\\",\\\"3\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"placeholder\\\",\\\"Free Note\\\"],[12],[1,[30,1,[\\\"free_note\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"notes\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"free_note\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/free-note-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/header-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"pH3jo+Oj\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,\\\"header\\\"],[14,1,\\\"dkbc-page-header\\\"],[14,0,\\\"dkbc m-page-header\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"navbar navbar-fixed-top\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"navbar-inner\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,0],null,[[\\\"currentControllerBinding\\\",\\\"baseURL\\\",\\\"loginUsername\\\",\\\"loginCheck\\\",\\\"branchName\\\",\\\"shiftDetail\\\",\\\"pDetails\\\",\\\"rrpDetails\\\",\\\"resetHeader\\\"],[\\\"application\\\",[33,1],[33,2],[33,3],[33,4],[33,5],[33,6],[33,7],[33,8]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\" \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n\\\"],[13],[1,\\\" \\\"],[3,\\\" /navbar-inner \\\"],[1,\\\"\\\\n\\\"],[13],[1,\\\" \\\"],[3,\\\" /navbar \\\"],[1,\\\"\\\\n\\\"],[41,[33,3],[[[1,\\\"    \\\"],[1,[28,[35,10],null,[[\\\"currentControllerBinding\\\",\\\"perDetial\\\"],[\\\"application\\\",[33,6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"top-nav-component\\\",\\\"applicationUrlSet\\\",\\\"loginUsername\\\",\\\"loginCheck\\\",\\\"branchName\\\",\\\"shiftDetail\\\",\\\"permissionsDetail\\\",\\\"roleRoutePermissionsCheckDetail\\\",\\\"resetHeader\\\",\\\"if\\\",\\\"sub-menu\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/header-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/history-loader\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"uNUbIPYx\",\n    \"block\": \"[[[10,\\\"li\\\"],[14,5,\\\"text-align: center;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"50\\\"],[14,\\\"height\\\",\\\"50\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/history-loader.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/icp-vc-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"BNIEuTJU\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t\\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#icpVccompletedVisit\\\"],[12],[1,\\\"ICP & VC Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"icpVccompletedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"type\\\"]]],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-  \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Appt Time), \\\"],[1,[28,[35,1],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[28,[37,8],[[30,2,[\\\"checkin_time\\\"]],\\\" (Check-in),\\\"],null]],null]],[1,\\\" \\\"],[1,[28,[35,1],[[30,2,[\\\"complete_time\\\"]],null,\\\" \\\",[30,2,[\\\"complete_time\\\"]]],null]],[1,\\\" (Completed) \\\"],[1,[28,[35,9],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"dashboard\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"book_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"book_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"casetaken_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribe_doc_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"prescribe_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,11],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"No appointments completed for today.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"completeReportsTypes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"icpVcComplete\\\",\\\"concat\\\",\\\"booked-from-badge\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/icp-vc-complete-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/icp-vc-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zqez62VW\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#icp-vc-complete-patients\\\"],[12],[1,\\\"ICP & VC Completed Visit\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"icp-vc-complete-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescription Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Billing Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharma Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,1,[\\\"type\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                    \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                            \\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[1,[28,[35,4],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"doctor-dashboard\\\"]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"assign_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"casetaken_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"case_taken_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_doc_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pharmacy_complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding action_width\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"visit_complete\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,6],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"doctor-dashboard.checkoutdetail\\\",[28,[37,7],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"billing_id\\\"]],[30,1,[\\\"patient_id\\\"]],\\\"0\\\",\\\"preview\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"assigned_dr_2\\\"]],[33,8]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,9],[[33,10],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[28,[37,5],[[30,1,[\\\"assigned_dr_1\\\"]],[33,8]],null],[28,[37,5],[[30,1,[\\\"case_taken\\\"]],\\\"No\\\"],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,9],[[33,10],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,5],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]]],[]],[[[41,[28,[37,12],[[28,[37,5],[[30,1,[\\\"case_taken\\\"]],\\\"Yes\\\"],null],[28,[37,5],[[30,1,[\\\"assigned_dr_1\\\"]],[33,8]],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,9],[[33,10],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,9],[[33,13],[30,1,[\\\"patient_id\\\"]]],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Case Taken Edit\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[1]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"13\\\"],[12],[1,\\\"No appointments completed for today..\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@addPrescribeTab\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"completeIcpVcPatients\\\",\\\"if\\\",\\\"booked-from-badge\\\",\\\"eq\\\",\\\"link-to\\\",\\\"array\\\",\\\"login_user\\\",\\\"find-tab-patient\\\",\\\"icptablist\\\",\\\"action\\\",\\\"and\\\",\\\"button_status\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/icp-vc-completed-visit-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/icp-vc-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"UyHbil8V\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#icp-vc-patients\\\"],[12],[1,\\\" ICP & VC Patients\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 prescribed_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[12],[41,[33,1,[\\\"totalIcpVcPrescribe\\\"]],[[[1,[33,1,[\\\"totalIcpVcPrescribe\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 alert-success casetaken_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[41,[33,1,[\\\"totalIcpVcCasetaken\\\"]],[[[1,[33,1,[\\\"totalIcpVcCasetaken\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[34,2]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"icp-vc-patients\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[30,1,[\\\"absent_status\\\"]]]]],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,1,[\\\"type\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,7],[[30,0],[30,2],[30,1,[\\\"cancel_note\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[41,[30,1,[\\\"token_no\\\"]],[[[1,\\\" (\\\"],[1,[30,1,[\\\"token_no\\\"]]],[1,\\\") \\\"]],[]],null],[1,\\\" \\\"],[41,[28,[37,8],[[30,1,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,9],[[30,1,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\" \\\"],[1,[28,[35,10],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"doctor-dashboard\\\"]]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"dr_appt\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"absent\\\"]],\\\"0\\\",[30,1,[\\\"appointment_time\\\"]],[30,1,[\\\"appointment_datetime\\\"]]],null]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"absent\\\"]],\\\"0\\\",[30,1,[\\\"assign_time\\\"]],[30,1,[\\\"assign_date_time\\\"]]],null]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\",[30,1,[\\\"casetaken_label\\\"]],\\\" \\\"],null]],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding text-right\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Prescribe Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicPrescribeButton\\\",[33,13]],null]],null],[[[1,\\\"\\\\n                                                \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font icon-side-margin\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"\\\\n                                                 \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font icon-side-margin\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Prescribe Button \\\"],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"]],[]]]],[]]],[1,\\\"\\\\n                                            \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n                                             \\\"],[3,\\\" Start Front-desk Message log button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"assign_to\\\"]],[33,19]],null],[[[41,[28,[37,6],[[30,1,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[6,[39,20],null,[[\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,21],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt d-icon-font icon-side-margin message-icon\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                             \\\"],[3,\\\" End Front-desk Message log button \\\"],[1,\\\"\\\\n                                            \\\"],[3,\\\" Single button \\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"btn-group doctor-group-action vertical-align\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent z-index-0\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars action-font fa-action icon-side-margin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Re-assign Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrReAssignButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Re-assign Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Reschedule Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicReschedulePatientsButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Reschedule Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Absent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrAbsentButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Absent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Cancel Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrCancelButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Cancel Button \\\"],[1,\\\"\\\\n                                               \\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"ShippingPreferenceButton\\\",[33,13]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,7],[[30,0],[30,4],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"Shipping preference\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"OldPrescribeButton\\\",[33,13]],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"divider \\\",[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"prescribed\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,5],[30,1,[\\\"pateint_visit_id\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-check margin-right-10\\\"],[14,5,\\\"color: #2ba2bd;font-size: 24px;\\\"],[12],[13],[1,\\\" Prescribed\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"reassigned\\\"]],\\\"false\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"casetaken\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,6],[30,1,[\\\"reassigned\\\"]],[30,1,[\\\"pateint_visit_id\\\"]],[30,1,[\\\"booked_doctor\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope margin-right-10\\\"],[14,5,\\\"color:#1ABD75;font-weight: bold;font-size: 24px;\\\"],[12],[13],[1,\\\" Case taken\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                     \\\"],[3,\\\"   dropdown-action-component permission_arr=permission_arr patient=patient reSchedulePatient=\\\\\\\"reSchedulePatient\\\\\\\" \\\"],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                         No appointments left/found for today.\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@showCancelNote\\\",\\\"@addPrescribeTab\\\",\\\"@setShippingPreference\\\",\\\"@markCompleteC\\\",\\\"@reAssignC\\\"],false,[\\\"if\\\",\\\"patientCount\\\",\\\"remainingIcpVcPatients\\\",\\\"each\\\",\\\"-track-array\\\",\\\"icpVcPatients\\\",\\\"eq\\\",\\\"action\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"isDisabled\\\",\\\"find-tab-patient\\\",\\\"icptablist\\\",\\\"button_status\\\",\\\"currentUser\\\",\\\"user_id\\\",\\\"link-to\\\",\\\"array\\\",\\\"find-array-value\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/icp-vc-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/icpattend-medicine-prescribe\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"oSz0y81E\",\n    \"block\": \"[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Prescription\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"                                \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pres-b prescription\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary btn-sm btn2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Visit History\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,6,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[1,[28,[35,7],null,[[\\\"flash\\\"],[[30,2]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                    \\\"],[10,0],[14,1,\\\"visitmessage\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"precribetable-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"form\\\"],[24,1,\\\"cwPrescribeForm\\\"],[4,[38,3],[[30,0],[30,3]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,8]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[29,[[36,10]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"page\\\"],[14,2,\\\"prescribeadd\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,3,\\\"importvisitid\\\"],[14,1,\\\"importvisitid\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,11],null,[[\\\"errors_list\\\"],[[33,12]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-prescribe\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"#\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,13],[[33,14],[33,15]],null]],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,0,\\\"sort capitalize sort-label\\\"],[12],[1,\\\"Do NOT sort medicines by serial number when saving    \\\"],[10,\\\"input\\\"],[14,1,\\\"sort-serial\\\"],[14,0,\\\"sort-serial\\\"],[14,2,\\\"sort_serial\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"col-xs-2 text-right status-label capitalize\\\"],[12],[1,\\\"Instructions/Notes   \\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[14,5,\\\"width: 97.9%\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,16],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,17]]]]],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,18],null,[[\\\"pharmacyHistory\\\"],[[33,19]]]]],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\" Combo Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Medicine\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-refresh\\\"],[12],[13],[1,\\\" Reset Serial No\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm cp-btn\\\"],[24,\\\"title\\\",\\\"Clear Prescription\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"ClearPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Clear Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency_form\\\"],[14,1,\\\"medi_form_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2 pull-right text-right\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm ps-btn\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Save Prescription\\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13]],[\\\"@addPrescriptionMedicine\\\",\\\"flash\\\",\\\"@billingDataSubmit\\\"],false,[\\\"if\\\",\\\"patient_case_taking_list\\\",\\\"section-add-edit-by\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"logged_id\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"icpattend-prescribe-medicine\\\",\\\"billpatient\\\",\\\"instruction\\\",\\\"textarea\\\",\\\"precribe_pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/icpattend-medicine-prescribe.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/increment-for\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"QH5ReiZL\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\" \\\"],[18,2,[[30,1]]],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"time\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"numOfTimes\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/increment-for.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/jqui-datepicker\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"eqtEgfX5\",\n    \"block\": \"[[[18,1,null]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/jqui-datepicker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/letter-avatar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"XmmtRtUi\",\n    \"block\": \"[[[10,\\\"text\\\"],[14,\\\"text-anchor\\\",\\\"middle\\\"],[14,\\\"x\\\",\\\"50%\\\"],[14,\\\"y\\\",\\\"50%\\\"],[14,\\\"dy\\\",\\\"0.35em\\\"],[15,\\\"fill\\\",[29,[[36,0]]]],[15,\\\"font-size\\\",[29,[[36,1]]]],[15,\\\"font-family\\\",[29,[[36,2]]]],[12],[1,[34,3]],[13]],[],false,[\\\"textColor\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"initials\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/letter-avatar.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/master-menu\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"KmmXHhpp\",\n    \"block\": \"[[[10,0],[14,0,\\\"nav-side-menu\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars fa-2x toggle-btn\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#menu-content\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"menu-list\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"ul\\\"],[14,1,\\\"menu-content\\\"],[14,0,\\\"menu-content collapse out\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"BranchManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#branch\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Branch Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.branch.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-cubes\\\"],[12],[13],[1,\\\" Branch Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ChargesManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#charges\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Charges Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.charges\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-life-ring\\\"],[12],[13],[1,\\\" Charges Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"DiseaseManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#disease\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Disease Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.disease.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-disease\\\"],[12],[13],[1,\\\" Disease Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"DiagnosticManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#diagnostic\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Diagnostic Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.diagnostic.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-medical-alt\\\"],[12],[13],[1,\\\" Diagnostic Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"DTGManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#dtg\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Diagnostic Test Groups Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.dtg.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-heartbeat\\\"],[12],[13],[1,\\\" DTG Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"DoctorManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#doctor-management\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Doctor Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.doctor-management.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-md\\\"],[12],[13],[1,\\\" Doctor Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DoctorLevelManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#doctor-level\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Dr. Level Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.doctor-level.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical\\\"],[12],[13],[1,\\\" Dr. Level Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"DosageManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#instruction\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Dosage/Volume Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.medicines.instruction.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info\\\"],[12],[13],[1,\\\" Dosage/Volume Management \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MedicinesManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#medicine\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Medicines Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.medicines.medicine.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\" Medicines Management \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"MixMedicineManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#medicine\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Mix Medicines Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.medicines.mix.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-briefcase-medical\\\"],[12],[13],[1,\\\" Mix Medicines Management \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"TemplateManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#medicine\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Medicines Template Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.medicines.template.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\"Medicines Template Management \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"OrganManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#organ\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Organ Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.organ.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lungs\\\"],[12],[13],[1,\\\" Organ Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"PermissionsManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#permissions\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Permissions Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.permissions.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[12],[13],[1,\\\" Permissions Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PricingGroupManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#pricinggroup\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Pricing Group Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.pricegroup\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" Pricing Group Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"PotencyManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#potency\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Potencies Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.potency\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-fill\\\"],[12],[13],[1,\\\" Potencies Management \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"RolesManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#role\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Roles Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.role\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-users\\\"],[12],[13],[1,\\\" Roles Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"SystemManagement\\\",[33,2]],null],[[[1,\\\"                \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#system\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"System Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.system.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-heart\\\"],[12],[13],[1,\\\" System Management\\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"TokenManagement\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#token\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Token Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.token\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[12],[13],[1,\\\" Token Management\\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"UnitsManagement\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#outcomesuom\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Units Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.outcomesuom.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-balance-scale\\\"],[12],[13],[1,\\\" Units Management\\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"UsersManagement\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"li\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\"#users\\\"],[14,0,\\\"collapsed\\\"],[14,\\\"title\\\",\\\"Users Management\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                \\\"],[6,[39,3],null,[[\\\"route\\\"],[\\\"settings.masters.users\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[12],[13],[1,\\\" Users Management\\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"check-permission\\\",\\\"perDetial\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/master-menu.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/message-logs-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"wvVIe2FR\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Message Log \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"form-group green-border-focus\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,1]],null]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"assign_doc\\\"]],\\\"DKAB\\\"],null],[[[1,\\\"                            \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left DKAB\\\"],[12],[1,[28,[35,5],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\" \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left\\\"],[12],[1,[28,[35,5],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\" \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"logs\\\"],false,[\\\"if\\\",\\\"message_logs_list\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"letter-avatar\\\",\\\"message-log-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/message-logs-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/message-logs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"MmW8D0lX\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"MessageLogSections\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Message Log\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"modified_by\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,1,\\\"message_logs\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MessageLogList\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,5],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-group green-border-focus mlg-list e-message-div\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,5]],null]],null],null,[[[41,[28,[37,8],[[30,1,[\\\"assign_doc\\\"]],\\\"DKAB\\\"],null],[[[1,\\\"                                \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left DKAB\\\"],[12],[1,[28,[35,9],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,10],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left\\\"],[12],[1,[28,[35,9],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,10],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,1,\\\"addMessageLog\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,11],[[30,0],[30,2]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,12]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,13]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-9\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MessageLogEnter\\\",[33,2]],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-group green-border-focus\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"textarea\\\"],[24,0,\\\"form-control\\\"],[24,1,\\\"patientLogEntry\\\"],[16,\\\"data-appointment\\\",[29,[[36,12]]]],[24,3,\\\"patientLogEntry\\\"],[24,\\\"rows\\\",\\\"3\\\"],[24,\\\"placeholder\\\",\\\"Log Entry\\\"],[16,2,[36,14]],[4,[38,15],[\\\"change\\\",[30,0,[\\\"onRealTimeMessageLogsChanges\\\"]]],null],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AssignDoctorDropDown\\\",[33,2]],null],[[[1,\\\"                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control e-re-assign-doctor\\\"],[14,1,\\\"assign_doctor\\\"],[14,3,\\\"assign_doctor\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select User\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,16]],null]],null],null,[[[41,[28,[37,8],[[30,3,[\\\"0\\\",\\\"user_id\\\"]],[33,17]],null],[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"0\\\",\\\"user_id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,8],[[30,3,[\\\"0\\\",\\\"user_id\\\"]],[33,17]],null],\\\"true\\\"]],[15,\\\"data-doctor-label\\\",[29,[[30,3,[\\\"0\\\",\\\"label\\\"]]]]],[12],[1,[30,3,[\\\"0\\\",\\\"employee_code\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"0\\\",\\\"user_id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,8],[[30,3,[\\\"0\\\",\\\"user_id\\\"]],[33,18]],null],\\\"true\\\"]],[15,\\\"data-doctor-label\\\",[29,[[30,3,[\\\"0\\\",\\\"label\\\"]]]]],[12],[1,[30,3,[\\\"0\\\",\\\"employee_code\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"MessageAssignButton\\\",[33,2]],null],[[[1,\\\"                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success m-a-b messagelg ml-2 float-right\\\"],[14,\\\"title\\\",\\\"Assign\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Assign\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"logs\\\",\\\"@assignToDoctorFrontDesk\\\",\\\"assign\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"message_logs_user\\\",\\\"section-add-edit-by\\\",\\\"message_logs_list\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"letter-avatar\\\",\\\"message-log-date\\\",\\\"action\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"message_log_changes\\\",\\\"on\\\",\\\"assigntolist\\\",\\\"assigned_by\\\",\\\"appointment_doctor\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/message-logs.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/mfa-setup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"O+WUWU+b\",\n    \"block\": \"[[[10,0],[14,0,\\\"panel-body mt-8\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"qrCodeDataUrl\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n        To secure your account, please set up two-factor authentication (2FA) by scanning the QR code\\\\n        below using the Google Authenticator app. Alternatively, you can manually enter the following setup key into the app:\\\\n        \\\"],[10,\\\"strong\\\"],[12],[1,[30,0,[\\\"secret\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"qrCodeDataUrl\\\"]]],[14,\\\"alt\\\",\\\"MFA QR Code\\\"],[14,0,\\\"img-responsive qr-img center-block\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center text-muted\\\"],[12],[1,\\\"\\\\n        You must complete this step before continuing. Without setting up 2FA, you will not be able to log in.\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"error\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"alert alert-danger text-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"error\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center text-muted\\\"],[12],[1,\\\"Loading QR code...\\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]],[1,\\\"\\\\n    \\\"],[3,\\\" Centered Buttons \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"text-center margin-bottom\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary bw\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"goToOtpVerification\\\"]]],null],[12],[1,\\\"Continue\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[18,1,null]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/mfa-setup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/nonocp-schedule-form\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"lkj9P3dQ\",\n    \"block\": \"[[[10,0],[14,0,\\\"col-sm-4 pr day-panel\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"panel panel-default \\\",[52,[28,[37,1],[[30,1,[\\\"errors\\\"]],[28,[37,2],[\\\"weeklySchedule.\\\",[30,2,[\\\"week_day\\\"]]],null]],null],\\\"panel-danger\\\"]]]],[15,1,[29,[\\\"weekly-day-\\\",[30,2,[\\\"week_day\\\"]]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-heading\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"week_day\\\"]]],[13],[1,\\\"\\\\n      \\\"],[41,[28,[37,3],[[30,3],\\\"regular\\\"],null],[[[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-body small-heading\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"dropdown\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default dropdown-toggle btn-block text-left\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,5],[[30,4,[\\\"availability\\\"]],[30,2,[\\\"week_day\\\"]]],null]],[[[41,[30,5,[\\\"length\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"selected-tags clearfix\\\"],[14,5,\\\"margin-top: 5px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,5]],null]],null],null,[[[1,\\\"            \\\"],[10,1],[15,0,[29,[\\\"label selected-tag\\\\n                    \\\",[52,[28,[37,3],[[30,6,[\\\"shift\\\"]],1],null],\\\" label-success\\\"],\\\" \\\",[52,[28,[37,3],[[30,6,[\\\"shift\\\"]],2],null],\\\"label-warning\\\"],\\\" \\\",[52,[28,[37,3],[[30,6,[\\\"from\\\"]],\\\"Not Available\\\"],null],\\\"label-default\\\"]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"from\\\"]],\\\" - \\\",[30,6,[\\\"to\\\"]],[52,[30,6,[\\\"shift\\\"]],[28,[37,2],[\\\" (Shift \\\",[30,6,[\\\"shift\\\"]],\\\")\\\"],null]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"from\\\"]]],[1,\\\" - \\\"],[1,[30,6,[\\\"to\\\"]]],[41,[30,6,[\\\"shift\\\"]],[[[1,\\\" (Shift \\\"],[1,[30,6,[\\\"shift\\\"]]],[1,\\\")\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[11,3],[24,6,\\\"#\\\"],[24,0,\\\"text-danger\\\"],[24,\\\"title\\\",\\\"Remove this time slot\\\"],[4,[38,8],[[30,0],[30,7],[30,2,[\\\"week_day\\\"]],[30,6,[\\\"from\\\"]],[30,6,[\\\"to\\\"]],[30,6,[\\\"shift\\\"]]],null],[12],[1,\\\"✖\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          Select Availability\\\\n\\\"]],[]]]],[5]]],[1,\\\"          \\\"],[10,1],[14,0,\\\"caret pull-right\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[14,5,\\\"width: 100%;\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],[30,8],[30,2,[\\\"week_day\\\"]],\\\"Not Available\\\",\\\"\\\",1],null],[12],[1,\\\"\\\\n              Morning Shift - Not Available\\\\n\\\"],[41,[28,[37,9],[[28,[37,5],[[30,4,[\\\"availability\\\"]],[30,2,[\\\"week_day\\\"]]],null],\\\"Not Available\\\",\\\"\\\",1],null],[[[1,\\\"              ✔ \\\"]],[]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],[30,8],[30,2,[\\\"week_day\\\"]],\\\"Not Available\\\",\\\"\\\",2],null],[12],[1,\\\"\\\\n              Evening Shift - Not Available\\\\n\\\"],[41,[28,[37,9],[[28,[37,5],[[30,4,[\\\"availability\\\"]],[30,2,[\\\"week_day\\\"]]],null],\\\"Not Available\\\",\\\"\\\",2],null],[[[1,\\\"              ✔ \\\"]],[]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,2,[\\\"schedules\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],[30,8],[30,2,[\\\"week_day\\\"]],[30,9,[\\\"from_time\\\"]],[30,9,[\\\"to_time\\\"]],[30,9,[\\\"shift\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,9,[\\\"shift\\\"]],1],null],[[[1,\\\"              Morning Shift - \\\"],[1,[30,9,[\\\"from_time\\\"]]],[1,\\\" - \\\"],[1,[30,9,[\\\"to_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,9,[\\\"shift\\\"]],2],null],[[[1,\\\"              Evening Shift - \\\"],[1,[30,9,[\\\"from_time\\\"]]],[1,\\\" - \\\"],[1,[30,9,[\\\"to_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,9,[\\\"from_time\\\"]]],[1,\\\" - \\\"],[1,[30,9,[\\\"to_time\\\"]]],[1,\\\"\\\\n              \\\"]],[]]]],[]]],[1,\\\"              \\\"],[41,[28,[37,9],[[28,[37,5],[[30,4,[\\\"availability\\\"]],[30,2,[\\\"week_day\\\"]]],null],[30,9,[\\\"from_time\\\"]],[30,9,[\\\"to_time\\\"]],[30,9,[\\\"shift\\\"]]],null],[[[1,\\\" ✔ \\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,6,\\\"#\\\"],[24,0,\\\"text-success\\\"],[4,[38,8],[[30,0],[30,10],[30,9,[\\\"id\\\"]],[30,9,[\\\"from_time\\\"]],[30,9,[\\\"to_time\\\"]],[30,2,[\\\"week_day\\\"]],[30,9,[\\\"shift\\\"]],[30,2,[\\\"id\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n                  Edit\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,1,[\\\"errors\\\"]],[28,[37,2],[\\\"weeklySchedule.\\\",[30,2,[\\\"week_day\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,[28,[35,1],[[30,1,[\\\"errors\\\"]],[28,[37,2],[\\\"weeklySchedule.\\\",[30,2,[\\\"week_day\\\"]]],null]],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@formValidator\\\",\\\"@day\\\",\\\"@selectedScheduleType\\\",\\\"@selectedSchedule\\\",\\\"selected\\\",\\\"s\\\",\\\"@removeDayAvailability\\\",\\\"@setDayAvailability\\\",\\\"schedule\\\",\\\"@editSchedule\\\"],false,[\\\"if\\\",\\\"get-error\\\",\\\"concat\\\",\\\"eq\\\",\\\"let\\\",\\\"get\\\",\\\"each\\\",\\\"-track-array\\\",\\\"action\\\",\\\"schedule-selected\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/nonocp-schedule-form.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/not-completed-appointment-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"oRgAFtKV\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[14,5,\\\"\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#booked-ovr\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Booked (Not Assigned): \\\"],[13],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"booked-ovr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2,[\\\"booked\\\"]]],null]],null],null,[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"icp\\\"]]],null]],null],null,[[[1,\\\"\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[28,[35,3],[[30,3]],null]],[1,\\\".\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"capitalize\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,1],[15,0,[29,[[30,2,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],[[[1,\\\"\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"visit_types\\\",\\\"appointment\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"branchAppointments\\\",\\\"increment\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/not-completed-appointment-daily.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/not-completed-onspot-daily\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jaJohhJU\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,5,\\\"\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table header-fixed\\\"],[14,5,\\\"margin-bottom:0px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,0,\\\"booked\\\"],[14,6,\\\"#bookedonspot-ovr\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"On-Spot (Not Assigned): \\\"],[13],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,\\\"tbody\\\"],[14,1,\\\"bookedonspot-ovr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2,[\\\"onspot\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\"],[1,[54,[[30,1]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"icp\\\"]]],null]],null],null,[[[41,[30,2,[\\\"queue_number\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"queue_number\\\"]]],[1,\\\".\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"capitalize\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[10,1],[15,0,[29,[[30,2,[\\\"label\\\"]]]]],[12],[1,\\\"(\\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\")\\\"],[13],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],[[[1,\\\"\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No appointments left/found for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"visit_types\\\",\\\"appointment\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"branchAppointments\\\",\\\"log\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/not-completed-onspot-daily.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/not-completed-visits\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"U7x3eSW0\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#completedVisit\\\"],[12],[1,\\\" Absentees\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"completedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Big Screen Doctor\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Current Assigned Doctor\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[3,\\\" selected_patient_big \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox-list\\\"],[14,3,\\\"big_screen_absent\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"data-ap\\\",[29,[[30,1,[\\\"patient_id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]]],[1,\\\" - \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,1,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,1,[\\\"priority\\\"]]]]],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"big_screen_doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"assigned_dr_2\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"assigned_dr_2\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"assigned_dr_1\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"No absentees for today. \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"appointment\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"notCompletedAppointments\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/not-completed-visits.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-appointment-doctor-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"akbf8P3k\",\n    \"block\": \"[[[10,0],[14,0,\\\"doctor_weekly_appointment\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"cware-available-appointment\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"title\\\",\\\"Next Available Dates\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"counterIncrease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[4,[38,0],[[30,0],\\\"nextAvailableDates\\\",[33,1],[33,2]],null],[12],[1,\\\"Next Available Dates\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[3,\\\" Comment input field because i think no need of this input field written by shubh tiwari as on 26 April 2022 \\\"],[1,\\\"\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-default initial_select_date\\\"],[24,\\\"data-count\\\",\\\"0\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"title\\\",\\\"Next week\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"counterIncrease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[4,[38,0],[[30,0],\\\"nextDates\\\",[33,1],[33,2]],null],[12],[1,\\\"Next week\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-default \\\",[36,3]]]],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,\\\"title\\\",\\\"Prev week\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"counterDecrease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[4,[38,0],[[30,0],\\\"prevDates\\\",[33,1],[33,2]],null],[12],[1,\\\"Prev week\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"OCP Appointments \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"table\\\"],[14,0,\\\"table ocp_doctor_appointments table-fixed\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t   \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" Table responsive \\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"action\\\",\\\"branches\\\",\\\"time_slot_array\\\",\\\"prev_week\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-appointment-doctor-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-appointment-slots\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"9HH3FTqX\",\n    \"block\": \"[[[10,0],[14,0,\\\"ocp_appointments_regular\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-alt\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[12],[1,\\\" OCP Appointments - \\\"],[10,1],[14,0,\\\"\\\"],[12],[1,[34,0]],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"table\\\"],[14,0,\\\"table ocp_appointments table-fixed-ocp\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,0,\\\"\\\"],[14,5,\\\"width:10%\\\"],[12],[1,\\\"Time Slot\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[15,0,[29,[[30,1,[\\\"label\\\"]]]]],[15,5,[36,4]],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[3,\\\" Table responsive \\\"],[1,\\\"\\\\n\\\\n\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"userdata\\\"],false,[\\\"appointment_heading\\\",\\\"each\\\",\\\"-track-array\\\",\\\"result\\\",\\\"td_width\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-appointment-slots.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"FUH/xgwS\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t\\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#ocpcompletedVisit\\\"],[12],[1,\\\"OCP Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"ocpcompletedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"type\\\"]]],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-  \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Appt Time), \\\"],[1,[28,[35,1],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[28,[37,8],[[30,2,[\\\"checkin_time\\\"]],\\\" (Check-in),\\\"],null]],null]],[1,\\\" \\\"],[1,[28,[35,1],[[30,2,[\\\"complete_time\\\"]],null,\\\" \\\",[30,2,[\\\"complete_time\\\"]]],null]],[1,\\\" (Completed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"book_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"book_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"casetaken_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribe_doc_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"prescribe_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,10],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tNo appointments completed for today.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"completeReportsTypes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ocpComplete\\\",\\\"concat\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-complete-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7jhNjlxz\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#ocp-complete-patients\\\"],[12],[1,\\\"OCP Completed Visit\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"ocp-complete-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescription Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Billing Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharma Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                    \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                            \\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"assign_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"casetaken_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"case_taken_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_doc_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pharmacy_complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding action_width\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"visit_complete\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"doctor-dashboard.checkoutdetail\\\",[28,[37,6],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"billing_id\\\"]],[30,1,[\\\"patient_id\\\"]],\\\"0\\\",\\\"preview\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"assigned_dr_2\\\"]],[33,7]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null],[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"No\\\"],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"Yes\\\"],null],[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,8],[[33,12],[30,1,[\\\"patient_id\\\"]]],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Case Taken Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[1]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"13\\\"],[12],[1,\\\"No appointments completed for today..\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@addPrescribeTab\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"completeOcpPatients\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"array\\\",\\\"login_user\\\",\\\"find-tab-patient\\\",\\\"icptablist\\\",\\\"action\\\",\\\"and\\\",\\\"button_status\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-completed-visit-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-empty-schedule-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Rhpx4iDC\",\n    \"block\": \"[[[10,0],[14,0,\\\"text-center\\\"],[14,5,\\\"padding: 60px 20px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Circle icon background \\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"center-block\\\"],[14,5,\\\"width: 80px; height: 80px; background-color: #f1f1f1; border-radius: 50%; display: flex; align-items: center; justify-content: center;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-calendar\\\"],[14,5,\\\"font-size: 36px; color: #6366f1;\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" Message \\\"],[1,\\\"\\\\n        \\\"],[10,2],[14,5,\\\"margin-top: 20px; color: #6b7280; font-size: 16px;\\\"],[12],[1,\\\"\\\\n            No schedules found for this doctor.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" Button \\\"],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary\\\"],[4,[38,0],[[30,0],[30,1],[30,2],\\\"ocp\\\",\\\"add\\\"],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Create First OCP Schedule\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@addOCPForm\\\",\\\"@doctorId\\\"],false,[\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-empty-schedule-message.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-patient-orders-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"NPtUQkCK\",\n    \"block\": \"[[[10,0],[14,0,\\\"col-lg-12 table-responsive cware dispatch\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Patient Orders \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover display\\\"],[14,1,\\\"OCPPatientOrders\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Presc Doctor\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Packaged Date/Time\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Bill Date/Time\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-patient-orders-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"V1T0CCLz\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[14,1,\\\"ocp-section\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#ocp-patients\\\"],[12],[1,\\\"OCP Visit\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 prescribed_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[12],[41,[33,1,[\\\"total_ocp_prescribe\\\"]],[[[1,[33,1,[\\\"total_ocp_prescribe\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 alert-success casetaken_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[41,[33,1,[\\\"total_ocp_casetaken\\\"]],[[[1,[33,1,[\\\"total_ocp_casetaken\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[34,2]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"ocp-patients\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\"<th>Type</th>\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Date/Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Shift\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Address/Location\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[30,1,[\\\"absent_status\\\"]]]]],[12],[1,\\\"\\\\n                                       \\\"],[3,\\\"<td>{{patient.type}}</td>\\\"],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,6],[[30,1,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,7],[[30,0],[30,2],[30,1,[\\\"cancel_note\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\"  \\\"],[41,[28,[37,8],[[30,1,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,9],[[30,1,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\" \\\"],[1,[28,[35,10],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"doctor-dashboard\\\"]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"dr_appt\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"absent\\\"]],\\\"0\\\",[30,1,[\\\"assign_time\\\"]],[30,1,[\\\"assign_date_time\\\"]]],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,1,[\\\"ocp_shift\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"ocp_address\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding text-right\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Prescribe Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicPrescribeButton\\\",[33,13]],null]],null],[[[1,\\\"                                                \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font icon-side-margin\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font icon-side-margin\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Prescribe Button \\\"],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"assign_to\\\"]],[33,19]],null],[[[41,[28,[37,6],[[30,1,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[6,[39,20],null,[[\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,21],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt d-icon-font icon-side-margin message-icon\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[3,\\\" Single button \\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"btn-group doctor-group-action vertical-align\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent z-index-0\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars action-font fa-action icon-side-margin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Re-assign Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrReAssignButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Re-assign Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Reschedule Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicReschedulePatientsButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Reschedule Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Absent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrAbsentButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Absent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Cancel Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrCancelButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Cancel Button \\\"],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"ShippingPreferenceButton\\\",[33,13]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,7],[[30,0],[30,4],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"Shipping preference\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"OldPrescribeButton\\\",[33,13]],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"divider \\\",[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"prescribed\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,5],[30,1,[\\\"pateint_visit_id\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-check margin-right-10\\\"],[14,5,\\\"color: #2ba2bd;font-size: 24px;\\\"],[12],[13],[1,\\\" Prescribed\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"reassigned\\\"]],\\\"false\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"casetaken\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,6],[30,1,[\\\"reassigned\\\"]],[30,1,[\\\"pateint_visit_id\\\"]],[30,1,[\\\"booked_doctor\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope margin-right-10\\\"],[14,5,\\\"color:#1ABD75;font-weight: bold;font-size: 24px;\\\"],[12],[13],[1,\\\" Case taken\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                        No appointments left/found for today.\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@showCancelNote\\\",\\\"@addPrescribeTab\\\",\\\"@setShippingPreference\\\",\\\"@markCompleteC\\\",\\\"@reAssignC\\\"],false,[\\\"if\\\",\\\"patientCount\\\",\\\"remainingOcpPatients\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ocpPatients\\\",\\\"eq\\\",\\\"action\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"isDisabled\\\",\\\"find-tab-patient\\\",\\\"ocptablist\\\",\\\"button_status\\\",\\\"currentUser\\\",\\\"user_id\\\",\\\"link-to\\\",\\\"array\\\",\\\"find-array-value\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-schedule-card\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"d5Wl+msr\",\n    \"block\": \"[[[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"panel-heading clearfix\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-6 pull-left\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"strong\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"start_date\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,1],[[30,1,[\\\"start_date\\\"]]],null]],[1,\\\" -\\\\n\\\"],[41,[28,[37,2],[[30,1,[\\\"end_date\\\"]],[28,[37,3],[[30,1,[\\\"end_date\\\"]],\\\"onwards\\\"],null]],null],[[[1,\\\"            \\\"],[1,[28,[35,1],[[30,1,[\\\"end_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            onwards\\\\n\\\"]],[]]]],[]],[[[1,\\\"          Ongoing Schedule\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-6 text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-info\\\"],[24,\\\"title\\\",\\\"Edit Schedule\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,2],[30,1],\\\"update\\\"],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-pencil-alt\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"is_on_leave\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-danger text-left\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plane\\\"],[12],[13],[1,\\\"\\\\n        Doctor on Leave for this period\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[3,\\\" Header Row: Days of the week \\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"display: flex; text-align: center; font-weight: bold; padding: 8px; border-bottom: 1px solid #ccc;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1;\\\"],[12],[1,\\\"Shift/Day\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,7],[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],null]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1;\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[3,\\\" Rows: Each Shift \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,7],[\\\"before_morning\\\",\\\"after_morning\\\",\\\"after_evening\\\"],null]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"display: flex; text-align: center; padding: 8px 0; border-bottom: 1px solid #eee;\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1; font-weight: bold;\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,8],[[30,4],\\\"before_morning\\\"],null],\\\"Before Morning\\\"]],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,8],[[30,4],\\\"after_morning\\\"],null],\\\"After Morning\\\"]],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,8],[[30,4],\\\"after_evening\\\"],null],\\\"After Evening\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,7],[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],null]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1;\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,10],[[30,1,[\\\"weekly_schedule\\\"]],[30,5]],null]],[[[41,[28,[37,8],[[28,[37,10],[[30,6],[30,4]],null],1],null],[[[1,\\\"                  \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"bg-green-100 text-green-700 rounded\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,\\\"Available\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"bg-gray-100 text-gray-500 rounded fixed-label\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,\\\"N/A\\\"],[13],[1,\\\"\\\\n                 \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[6]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@schedule\\\",\\\"@editOCPDoctorSchedule\\\",\\\"day\\\",\\\"shiftKey\\\",\\\"day\\\",\\\"slots\\\"],false,[\\\"if\\\",\\\"schedule-date-format\\\",\\\"and\\\",\\\"not-eq\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"array\\\",\\\"eq\\\",\\\"let\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-schedule-card.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ocp-schedule-form\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"o1+gdGZJ\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-heading\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[12],[1,[30,1,[\\\"week_day\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-body small-heading\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,2]],null]],null],null,[[[44,[[28,[37,3],[[30,5],[30,3]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"col-sm-4 pr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[\\\"ocp-weekly-day-\\\",[30,1,[\\\"week_day\\\"]],\\\"-\\\",[30,6]]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[[30,7],[30,3]],null]],[1,\\\" \\\"],[41,[28,[37,5],[[30,8],\\\"regular\\\"],null],[[[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"select\\\"],[15,1,[29,[\\\"ocp-weekly-day-\\\",[30,1,[\\\"week_day\\\"]],\\\"-\\\",[30,6]]]],[15,0,[29,[\\\"form-control \\\",[52,[28,[37,6],[[30,9,[\\\"errors\\\"]],[28,[37,7],[\\\"ocpWeeklySchedule.\\\",[30,1,[\\\"week_day\\\"]],\\\".\\\",[30,6]],null]],null],\\\"has-error\\\"]]]],[15,\\\"onchange\\\",[28,[37,8],[[30,0],[30,10],[30,1,[\\\"week_day\\\"]],[30,6]],null]],[15,2,[28,[37,3],[[28,[37,3],[[30,11],[30,1,[\\\"week_day\\\"]]],null],[30,6]],null]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[28,[37,5],[[28,[37,3],[[28,[37,3],[[30,11],[30,1,[\\\"week_day\\\"]]],null],[30,6]],null],1],null]],[12],[1,\\\"Available\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[28,[37,5],[[28,[37,3],[[28,[37,3],[[30,11],[30,1,[\\\"week_day\\\"]]],null],[30,6]],null],0],null]],[12],[1,\\\"Not Available\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,9,[\\\"errors\\\"]],[28,[37,7],[\\\"ocpWeeklySchedule.\\\",[30,1,[\\\"week_day\\\"]],\\\".\\\",[30,6]],null]],null],[[[1,\\\"                \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[[30,9,[\\\"errors\\\"]],[28,[37,7],[\\\"ocpWeeklySchedule.\\\",[30,1,[\\\"week_day\\\"]],\\\".\\\",[30,6]],null]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[6]]]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@day\\\",\\\"@requiredShifts\\\",\\\"shift\\\",\\\"index\\\",\\\"@shiftKeyMap\\\",\\\"shiftKey\\\",\\\"@shiftLabels\\\",\\\"@selectedScheduleType\\\",\\\"@formValidator\\\",\\\"@setOcpSlotAvailability\\\",\\\"@ocpSlotAvailability\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"get\\\",\\\"if\\\",\\\"eq\\\",\\\"get-error\\\",\\\"concat\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ocp-schedule-form.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/online-payment-details-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5VcsXPlw\",\n    \"block\": \"[[[3,\\\" This model is used for online payment details popup by shubh tiwari as on 14-05-2026\\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal payment-modal fade payment-details-popup frontdesk-bill-popup\\\"],[14,1,\\\"onlinePaymentDetailsPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content margin-right-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,1,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[14,0,\\\"margintop0px\\\"],[12],[41,[33,1],[[[1,\\\"Batch Refund Details\\\"]],[]],[[[1,\\\"Online Payment Details\\\"]],[]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"refund_class\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"paymenterror\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,2],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-success alert-dismissible\\\"],[14,5,\\\"margin-bottom:15px !important;\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"dismissSuccessMessage\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[1,[34,2]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[33,1]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"payment_details_table\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Order Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Currency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Gateway\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Payment Method\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Gateway Order ID\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Payment Date & Time\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,5],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[12],[13],[1,\\\"\\\\n                                            Loading payment details...\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[33,6,[\\\"length\\\"]],[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,6]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"order_id\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"amount\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"currency\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"gateway\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"payment_method\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"gateway_order_id\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,9],[[30,1,[\\\"updated_at\\\"]]],null]],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            No Transaction Available\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"]],[]]]],[]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Gateway Response Details\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered table-striped\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Item\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Value\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,10,[\\\"length\\\"]],[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,10]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"key\\\"]]],[13],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"value\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                No Gateway Data Available\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"                    \\\"],[1,[28,[35,11],null,[[\\\"batch\\\",\\\"refunds\\\",\\\"mode\\\",\\\"showClose\\\",\\\"onRefresh\\\",\\\"onClose\\\"],[[33,12],[33,13],\\\"embedded\\\",true,[28,[37,3],[[30,0],\\\"refreshBatchDetails\\\"],null],[28,[37,3],[[30,0],\\\"closeBatchDetails\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[33,6,[\\\"length\\\"]],[28,[37,15],[[33,6,[\\\"firstObject\\\",\\\"status\\\"]],\\\"completed\\\"],null]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[36,16]],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"openRefundPopup\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-refund\\\"],[12],[13],[1,\\\" Cancel And Refund\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"payment\\\",\\\"item\\\"],false,[\\\"if\\\",\\\"showBatchDetails\\\",\\\"cancellationSuccessMessage\\\",\\\"action\\\",\\\"unless\\\",\\\"isPaymentLoading\\\",\\\"online_payment_details\\\",\\\"each\\\",\\\"-track-array\\\",\\\"date-format\\\",\\\"gateway_response_list\\\",\\\"batch-refund-details\\\",\\\"currentBatch\\\",\\\"currentRefunds\\\",\\\"and\\\",\\\"eq\\\",\\\"disableRefundButton\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/online-payment-details-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/otp-verification\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"o2idCUZT\",\n    \"block\": \"[[[10,0],[14,0,\\\"panel-body text-center mt-8\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"error\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"alert alert-danger\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"error\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Please enter the \\\"],[10,\\\"strong\\\"],[12],[1,\\\"6 digit MFA code\\\"],[13],[1,\\\" generated on your Google Authenticator App. \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Ensure you\\\\n        submit the current one\\\\n        because it refreshes every 30 seconds.\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"form-horizontal\\\"],[14,\\\"onsubmit\\\",\\\"return false;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"otpCode\\\"],[14,0,\\\"control-label col-sm-4\\\"],[12],[1,\\\"MFA code: \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],null,[[\\\"type\\\",\\\"id\\\",\\\"maxlength\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"value\\\",\\\"key-down\\\",\\\"input\\\",\\\"autofocus\\\"],[\\\"text\\\",\\\"otpCode\\\",\\\"6\\\",\\\"form-control\\\",\\\"Enter code\\\",\\\"one-time-code\\\",[30,0,[\\\"otp\\\"]],[28,[37,2],[[30,0],[30,0,[\\\"handleEnterKey\\\"]]],null],[28,[37,2],[[30,0],[30,0,[\\\"handleInput\\\"]]],null],true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-offset-4 col-sm-6\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"mfaEnabled\\\"]]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-block\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goToMfaSetup\\\"]]],null],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"mfaEnabled\\\"]],\\\" col-xs-12\\\",\\\"col-xs-8\\\"]]]],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-block ml-2\\\"],[16,\\\"disabled\\\",[28,[37,5],[[30,0,[\\\"isCountdownActive\\\"]],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"verifyOtp\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[12],[13],[1,\\\"\\\\n                            Verifying...\\\\n\\\"]],[]],[[[1,\\\"                            Login\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[18,1,null]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"input\\\",\\\"action\\\",\\\"unless\\\",\\\"on\\\",\\\"or\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/otp-verification.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pagination-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"BwNXIpPZ\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n      \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,0],[[30,0],\\\"prev\\\",[33,1],[33,2]],null],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n      \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,0],[[30,0],\\\"next\\\",[33,1],[33,2]],null],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"input\\\"],[14,5,\\\"width:25px\\\"],[15,2,[36,2]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n       of \\\"],[1,[33,1,[\\\"total_pages\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"action\\\",\\\"stats\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pagination-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/patient-information-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"V0JXg9TT\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"section-list \\\",[33,0,[\\\"0\\\",\\\"priority\\\"]],\\\" \\\",[52,[28,[37,2],[[33,0,[\\\"0\\\",\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[14,1,\\\"patientInformationPreview\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,0,[\\\"0\\\",\\\"OldRegistrationNo\\\"]],[[[1,\\\"          \\\"],[1,[33,0,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          NP\\\\n        \\\"]],[]]],[1,\\\"-\\\\n        \\\"],[10,1],[14,0,\\\"capitalize\\\"],[12],[41,[33,0,[\\\"0\\\",\\\"first_name\\\"]],[[[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"first_name\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[41,[33,0,[\\\"0\\\",\\\"middle_name\\\"]],[[[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"middle_name\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[41,[33,0,[\\\"0\\\",\\\"last_name\\\"]],[[[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"last_name\\\"]]],[1,\\\" \\\"]],[]],null],[13],[1,\\\" (\\\"],[1,[33,0,[\\\"0\\\",\\\"gender\\\"]]],[1,[28,[35,3],[[33,0,[\\\"0\\\",\\\"birthday\\\"]]],[[\\\"visit_date\\\",\\\"years\\\",\\\"months\\\",\\\"days\\\"],[[33,0,[\\\"0\\\",\\\"dateTime\\\"]],[33,0,[\\\"0\\\",\\\"age\\\"]],[33,0,[\\\"0\\\",\\\"months\\\"]],[33,0,[\\\"0\\\",\\\"days\\\"]]]]]],[1,\\\")\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[33,0,[\\\"0\\\",\\\"urgent_status\\\"]],\\\"0\\\"],null],[[[1,\\\"        \\\"],[10,\\\"i\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[33,0,[\\\"0\\\",\\\"urgent_note\\\"]]]]],[14,0,\\\"fas fa-exclamation-circle fa-urgent fa-2x urgent_note\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[28,[35,5],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[33,0,[\\\"0\\\",\\\"appointment_booked_from\\\"]],\\\"checkout\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[33,7],[33,8]],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"pt-control-label text-right sp float-right\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Shipping Preferences:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,7],\\\"/\\\",[36,8]]]],[12],[1,[34,7]],[1,\\\"/\\\"],[1,[34,8]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,7],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"pt-control-label text-right sp float-right\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Shipping Preferences:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,7]]]],[12],[1,[34,7]],[13],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[41,[28,[37,2],[\\\"preview\\\",[33,9]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right\\\"],[24,3,\\\"goBack\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"goBack\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[1,\\\" Back\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Appt. Type :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"app_type\\\"],[12],[1,[33,0,[\\\"0\\\",\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Appt. Date/Time :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[1,[33,0,[\\\"0\\\",\\\"appointment_time_checkout\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Check In :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[1,[33,0,[\\\"0\\\",\\\"checkin_time_checkout\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Appt. Doc. :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[1,[33,0,[\\\"0\\\",\\\"doctor_name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Case Taking :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[[33,0,[\\\"0\\\",\\\"reassigned\\\"]],\\\"true\\\",[33,0,[\\\"0\\\",\\\"casetaken_doctor\\\"]],\\\" \\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Prescribing :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[1,[33,0,[\\\"0\\\",\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-8\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Address :\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"capitalize\\\"],[12],[1,[33,0,[\\\"0\\\",\\\"full_address_per\\\"]]],[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"full_address_res\\\"]]],[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"city_name\\\"]]],[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"state_name\\\"]]],[1,\\\" \\\"],[1,[33,0,[\\\"0\\\",\\\"country_name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Discounts :\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,0,[\\\"0\\\",\\\"discount_category_name\\\"]],[[[1,\\\"          \\\"],[1,[33,0,[\\\"0\\\",\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[12],[1,\\\"NA\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"PatientInfo\\\",\\\"if\\\",\\\"eq\\\",\\\"checkout-preview-date-format\\\",\\\"ifnoteq\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\",\\\"preview\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/patient-information-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/patient-information\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Gq3UlTd+\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"PatientInfoSection\\\",[33,2]],null],[[[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-9\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading capitalize\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"OldRegistrationNo\\\"]],[[[1,\\\"                \\\"],[1,[33,3,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]],[1,\\\" -\\\\n\\\"]],[]],[[[1,\\\"                NP -\\\\n\\\"]],[]]],[1,\\\"            \\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"gender\\\"]],[[[1,\\\"            (\\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"gender\\\"]]],null]],[1,[28,[35,5],[[33,3,[\\\"0\\\",\\\"birthday\\\"]]],[[\\\"visit_date\\\",\\\"years\\\",\\\"months\\\",\\\"days\\\"],[[33,3,[\\\"0\\\",\\\"dateTime\\\"]],[33,3,[\\\"0\\\",\\\"age\\\"]],[33,3,[\\\"0\\\",\\\"months\\\"]],[33,3,[\\\"0\\\",\\\"days\\\"]]]]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"         \\\"],[13],[1,\\\"\\\\n         \\\"],[1,[28,[35,6],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[33,3,[\\\"0\\\",\\\"appointment_booked_from\\\"]],\\\"icpattend\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"UrgentNoteIcon\\\",[33,2]],null],[[[41,[28,[37,7],[[33,3,[\\\"0\\\",\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,8],[[30,0],[30,1],[33,3,[\\\"0\\\",\\\"id\\\"]],[33,3,[\\\"0\\\",\\\"urgent_status\\\"]],[33,3,[\\\"0\\\",\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[33,3,[\\\"0\\\",\\\"urgent_note\\\"]]]]],[14,0,\\\"fas fa-exclamation-circle fa-urgent fa-2x\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,8],[[30,0],[30,1],[33,3,[\\\"0\\\",\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,\\\"title\\\",\\\"Not Urgent\\\"],[14,0,\\\"fas fa-exclamation-circle fa-2x\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3 float-right\\\"],[12],[1,\\\"\\\\n            \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-default btn-sm float-right ml-2\\\",\\\"Back to Doctor Dashboard\\\",\\\"doctor-dashboard.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"VisitHistoryButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-default btn2 patient float-right\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],[30,2],[33,3,[\\\"0\\\",\\\"patient_id\\\"]],\\\"all\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Visit History \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"patientInfoTable\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Appt.Dr.\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"8%\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"21%\\\"],[12],[1,\\\"Address\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13%\\\"],[12],[1,\\\"Discount Category\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13%\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"20%\\\"],[12],[1,\\\"Shipping/Email Pref\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,3]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,3,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,7],[[30,3,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"appt_dr\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"appointment_time_icp\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"assign_1\\\"]],[[[1,\\\"                                                    \\\"],[1,[30,3,[\\\"assign_1\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[12],[1,\\\" \\\"],[1,[30,3,[\\\"assign_2\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,4],[[30,3,[\\\"full_address_per\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,3,[\\\"full_address_res\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,3,[\\\"city_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,3,[\\\"state_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,3,[\\\"country_name\\\"]]],null]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,7],[[30,3,[\\\"reassigned\\\"]],\\\"true\\\",[30,3,[\\\"casetaken_doctor_name\\\"]],\\\" \\\"],null]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"discount_category_name\\\"]],[[[1,\\\"                                                    \\\"],[1,[30,3,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[12],[1,\\\"NA\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"vip_category\\\"]],[[[1,\\\"                                                    \\\"],[1,[30,3,[\\\"vip_category\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[12],[1,\\\"NA\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[33,13],[33,14]],null],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,13],\\\"/\\\",[36,14]]]],[12],[1,[34,13]],[1,\\\"/\\\"],[1,[34,14]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,13],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,13]]]],[12],[1,[34,13]],[13],[1,\\\"\\\\n                                            \\\"]],[]],null]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"margin-top: 20px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"free_notemessage\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PatientFreeNote\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"green-border-focus\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,15],[[[1,\\\"                \\\"],[11,\\\"textarea\\\"],[24,0,\\\"form-control\\\"],[24,\\\"autosave\\\",\\\"autosave\\\"],[16,\\\"data-appointment\\\",[29,[[36,16]]]],[24,3,\\\"patientFreeNote\\\"],[24,1,\\\"patientFreeNote\\\"],[24,\\\"rows\\\",\\\"3\\\"],[24,\\\"placeholder\\\",\\\"Free Notes - This data remains, can be edited by any doctor on any visit, and cannot be seen by any other user on any other screen\\\"],[16,2,[29,[[36,15]]]],[4,[38,17],[\\\"change\\\",[30,0,[\\\"onRealTimeFreeNoteChanges\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[11,\\\"textarea\\\"],[24,0,\\\"form-control\\\"],[24,\\\"autosave\\\",\\\"autosave\\\"],[16,\\\"data-appointment\\\",[29,[[36,16]]]],[24,3,\\\"patientFreeNote\\\"],[24,1,\\\"patientFreeNote\\\"],[24,\\\"rows\\\",\\\"3\\\"],[24,\\\"placeholder\\\",\\\"Free Notes - This data remains, can be edited by any doctor on any visit, and cannot be seen by any other user on any other screen\\\"],[16,2,[29,[[33,3,[\\\"0\\\",\\\"free_note\\\"]]]]],[4,[38,17],[\\\"change\\\",[30,0,[\\\"onRealTimeFreeNoteChanges\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[10,\\\"input\\\"],[14,3,\\\"free_patient_id\\\"],[14,1,\\\"free_patient_id\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"col-md-1 expand-urgent-button float-right fr-note\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"FreeNoteSaveButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,\\\"title\\\",\\\"Save Free Note\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],[30,5]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@urgentPatient\\\",\\\"@filterVisitHistory\\\",\\\"presdata\\\",\\\"index\\\",\\\"@saveFreeNote\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"PatientInfo\\\",\\\"capitalize\\\",\\\"checkout-date-format\\\",\\\"booked-from-badge\\\",\\\"eq\\\",\\\"action\\\",\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"and\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\",\\\"free_note_changes\\\",\\\"appointment_id\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/patient-information.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/patient-registration\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"rSxSba2B\",\n    \"block\": \"[[[10,0],[14,0,\\\"panel-body patient_registration_form \\\"],[14,1,\\\"patient_registration_form\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"registration-margin\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"register-patient\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"register_patient\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"date_time_doctor\\\",\\\"date_time_doctor\\\",[33,1]]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"date_time_ocp_doctor\\\",\\\"date_time_ocp_doctor\\\",[33,2]]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"branch_id\\\",\\\"branch_id\\\"]]]],[1,\\\"\\\\n     \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"appointment_type\\\",\\\"appointment_type\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"patient_id\\\",\\\"patient_id\\\",[33,3]]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"span5 form-control is_rescheduled\\\",\\\"is_rescheduled\\\",\\\"is_rescheduled\\\",[33,4]]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"span5 form-control appointmentId\\\",\\\"appointmentId\\\",\\\"appointmentId\\\",\\\"\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"rel\\\"],[\\\"hidden\\\",\\\"span5 form-control button_clicked\\\",\\\"button_clicked\\\",\\\"button_clicked\\\",[33,5],[33,5]]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mode\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Mode of Registration\\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"select\\\"],[14,3,\\\"mode\\\"],[14,1,\\\"mode\\\"],[14,0,\\\"form-control\\\"],[15,2,[36,6]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setMode\\\"],null]],[14,\\\"required\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"email\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"email\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"phone\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"phone\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Phone\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"clinic\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"clinic\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Clinic\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"priority\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Priority\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,3,\\\"priority\\\"],[14,1,\\\"priority\\\"],[15,2,[36,10]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setPriority\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"normal\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"normal\\\",[33,10]],null],\\\"true\\\"]],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"medium\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"medium\\\",[33,10]],null],\\\"true\\\"]],[12],[1,\\\"Medium\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"high\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"high\\\",[33,10]],null],\\\"true\\\"]],[12],[1,\\\"High\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"blood_type\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Blood Type\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"select\\\"],[14,3,\\\"blood_type\\\"],[14,1,\\\"blood_type\\\"],[15,2,[36,11]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setBloodType\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"A+\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"A-\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"B+\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"B-\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"O+\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"O-\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"AB+\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"AB\\\",[33,11]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"category\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Category\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,3,\\\"category\\\"],[14,1,\\\"category\\\"],[15,2,[36,12]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setCategory\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Serious Illness\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Serious Illness\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Serious Illness\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Family\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Family\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Family\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Friend\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Friend\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Friend\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"IRS\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"IRS\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"IRS\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"IAS\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"IAS\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"IAS\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Police\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Police\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Police\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Armed Forces\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Armed Forces\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Armed Forces\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"Politician\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Politician\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Politician\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"media\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"media\\\",[33,12]],null],\\\"true\\\"]],[12],[1,\\\"Media\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Discount Category\\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"discount_category\\\"],[15,2,[36,13]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"updateDiscountCategoty\\\"],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[15,\\\"selected\\\",[28,[37,9],[[33,13],0],null]],[12],[1,\\\"Select Discount Category\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[33,16]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,9],[[30,1,[\\\"id\\\"]],[33,13]],null]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"title_prefix\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Title\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"select\\\"],[14,3,\\\"title_prefix\\\"],[14,1,\\\"title_prefix\\\"],[15,2,[36,17]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setTitlePrefix\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Mr\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Mr\\\",[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Mr.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Mrs\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Mrs\\\",[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Mrs.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Ms\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Ms\\\",[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Ms.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Dr\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Dr\\\",[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Dr.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Master\\\"],[15,\\\"selected\\\",[52,[28,[37,9],[\\\"Master\\\",[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Master\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"first_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"First Name \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"first_name\\\",\\\"first_name\\\",\\\"First Name\\\",[33,18],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"middle_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Middle Name\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"middle_name\\\",\\\"middle_name\\\",\\\"Middle Name\\\",[33,19],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"last_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Last Name\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"last_name\\\",\\\"last_name\\\",\\\"Last Name\\\",[33,20],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"gender\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Gender \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"select\\\"],[14,3,\\\"gender\\\"],[14,1,\\\"gender\\\"],[15,2,[36,21]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setGender\\\"],null]],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"M\\\"],[15,\\\"selected\\\",[28,[37,9],[\\\"M\\\",[33,21]],null]],[12],[1,\\\"Male\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"F\\\"],[15,\\\"selected\\\",[28,[37,9],[\\\"F\\\",[33,21]],null]],[12],[1,\\\"Female\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"O\\\"],[15,\\\"selected\\\",[28,[37,9],[\\\"O\\\",[33,21]],null]],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t    \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"date_of_birth\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Date of birth\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,22],null,[[\\\"locale\\\",\\\"name\\\",\\\"id\\\",\\\"yearRange\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\",\\\"placeholder\\\",\\\"readonly\\\"],[[33,23],\\\"date_of_birth\\\",\\\"date_of_birth\\\",\\\"1950,currentYear\\\",[33,24],\\\"MM/DD/YYYY\\\",\\\"form-control date_of_birth\\\",\\\"Date of birth\\\",\\\"readonly\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"age\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Age \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control patient_age\\\",\\\"age_years\\\",\\\"readonly\\\",\\\"age_years\\\",\\\"Years\\\",[33,25]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-2 ml-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control patient_age\\\",\\\"age_months\\\",\\\"readonly\\\",\\\"age_months\\\",\\\"Months\\\",[33,26]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-2 ml-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control patient_age\\\",\\\"age_days\\\",\\\"readonly\\\",\\\"age_days\\\",\\\"Days\\\",[33,27]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"phone_1\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Phone 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"phone_1\\\",\\\"phone_1\\\",\\\"Phone 1\\\",[33,28],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"phone_2\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Phone 2\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"phone_2\\\",\\\"phone_2\\\",\\\"Phone 2\\\",[33,29],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Email id \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t         \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email id\\\",[33,30]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_1\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"address_1\\\",\\\"address_1\\\",\\\"Address Line 1\\\",[33,31],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_2\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"address_2\\\",\\\"address_2\\\",\\\"Address Line 2\\\",[33,32],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"country\\\"],[15,2,[36,33]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"updateCountry\\\"],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[33,34]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,9],[[30,2,[\\\"id\\\"]],[33,33]],null]],[12],[1,\\\" \\\"],[1,[30,2,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"state\\\"],[15,2,[36,35]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"updateState\\\"],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[33,36]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,9],[[30,3,[\\\"id\\\"]],[33,35]],null]],[12],[1,\\\" \\\"],[1,[30,3,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[3]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"other_state\\\",\\\"other_state\\\",\\\"Other State\\\",[33,37]]]]],[1,\\\"\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[3,\\\" {{input type=\\\\\\\"text\\\\\\\" class=\\\\\\\"span5 form-control\\\\\\\" id=\\\\\\\"city\\\\\\\" name=\\\\\\\"city\\\\\\\" placeholder=\\\\\\\"City\\\\\\\" value=city}} \\\"],[1,\\\"\\\\n              \\\"],[3,\\\" {{selected_city}} \\\"],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"city\\\"],[15,2,[36,38]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"updateCity\\\"],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[33,39]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,9],[[30,4,[\\\"id\\\"]],[33,38]],null]],[12],[1,\\\" \\\"],[1,[30,4,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[4]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n                \\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"other_city\\\",\\\"other_city\\\",\\\"Other City\\\",[33,40]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,[28,[35,0],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"zip\\\",\\\"zip\\\",\\\"Zip\\\",[33,41],\\\"readonly\\\"]]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"note\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Note\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"note\\\"],[15,\\\"oninput\\\",[28,[37,7],[[30,0],\\\"setNote\\\"],null]],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,[34,42]],[13],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large submit_patient_data\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"submit\\\",[33,43],[33,44]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,45],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-warning btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"enableForm\\\"],null],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"category\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\"],false,[\\\"input\\\",\\\"date_time_doctor\\\",\\\"date_time_ocp_doctor\\\",\\\"patient_id\\\",\\\"is_rescheduled\\\",\\\"button_clicked\\\",\\\"mode\\\",\\\"action\\\",\\\"if\\\",\\\"eq\\\",\\\"priority\\\",\\\"blood_type\\\",\\\"category\\\",\\\"selected_discount_category\\\",\\\"each\\\",\\\"-track-array\\\",\\\"discount_categories\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"email_id\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"countries\\\",\\\"selected_state\\\",\\\"pstates\\\",\\\"other_state\\\",\\\"selected_city\\\",\\\"cities\\\",\\\"other_city\\\",\\\"zip\\\",\\\"note\\\",\\\"page\\\",\\\"reloadDashboard\\\",\\\"editPage\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/patient-registration.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/patient-thin-info-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"FNrnVp+8\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"thintabinfo-left float-left capitalize\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\" \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\" - \\\"]],[]],[[[1,\\\" NP - \\\"]],[]]],[1,\\\"\\\\n            \\\"],[41,[30,1,[\\\"first_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[41,[30,1,[\\\"middle_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[41,[30,1,[\\\"last_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"gender\\\"]],[[[1,\\\"                (\\\"],[1,[28,[35,4],[[30,1,[\\\"gender\\\"]]],null]],[1,[28,[35,5],[[30,1,[\\\"birthday\\\"]]],[[\\\"visit_date\\\",\\\"years\\\",\\\"months\\\",\\\"days\\\"],[[30,1,[\\\"dateTime\\\"]],[30,1,[\\\"age\\\"]],[30,1,[\\\"months\\\"]],[30,1,[\\\"days\\\"]]]]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"0\\\"],null],[[[1,\\\"            \\\"],[10,\\\"i\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[14,0,\\\"fas fa-exclamation-circle fa-urgent fa-2x urgent_note\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[28,[35,7],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"checkout\\\"]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"thintabinfo-right float-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,10],[33,11]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,11]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[33,10],[33,11]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,11]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,10]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[33,10]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,10],[33,11]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,11]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,10]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,1,[\\\"vip_category\\\"]],[33,10],[33,11]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,11]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,1,[\\\"discount_category_name\\\"]],[33,10],[33,11]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,11]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[33,10]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[30,1,[\\\"discount_category_name\\\"]],[33,10]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,10]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,10],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,10]]]],[12],[1,[34,10]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,11],[[[1,\\\"             \\\"],[10,\\\"b\\\"],[12],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,11]]]],[12],[1,[34,11]],[13],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[\\\"presdata\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PatientInfo\\\",\\\"if\\\",\\\"capitalize\\\",\\\"checkout-date-format\\\",\\\"ifnoteq\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"eq\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/patient-thin-info-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/patient-thin-info\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5gwk7chP\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"thintabinfo-left float-left capitalize\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\" \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\" - \\\"]],[]],[[[1,\\\" NP - \\\"]],[]]],[1,\\\"\\\\n            \\\"],[41,[30,1,[\\\"first_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[41,[30,1,[\\\"middle_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[41,[30,1,[\\\"last_name\\\"]],[[[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"gender\\\"]],[[[1,\\\"            (\\\"],[1,[28,[35,4],[[30,1,[\\\"gender\\\"]]],null]],[1,[28,[35,5],[[30,1,[\\\"birthday\\\"]]],[[\\\"visit_date\\\",\\\"years\\\",\\\"months\\\",\\\"days\\\"],[[30,1,[\\\"dateTime\\\"]],[30,1,[\\\"age\\\"]],[30,1,[\\\"months\\\"]],[30,1,[\\\"days\\\"]]]]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"icpattend\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"UrgentNoteIcon\\\",[33,8]],null],[[[41,[28,[37,9],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,10],[[30,0],[30,3],[30,1,[\\\"id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[14,0,\\\"fas fa-exclamation-circle fa-urgent fa-2x\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,10],[[30,0],[30,3],[30,1,[\\\"id\\\"]]],null],[12],[10,\\\"i\\\"],[14,\\\"title\\\",\\\"Not Urgent\\\"],[14,0,\\\"fas fa-exclamation-circle fa-2x\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"        \\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"thintabinfo-right float-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,12],[33,13]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[33,12],[33,13]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,12]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[30,1,[\\\"discount_category_name\\\"]],[33,12]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,12],[33,13]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"discount_category_name\\\"]],[30,1,[\\\"vip_category\\\"]],[33,12]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"vip_category\\\"]],[33,12],[33,13]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"vip_category\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"discount_category_name\\\"]],[33,12],[33,13]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[33,12]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"discount_category_name\\\"]],[33,12]],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\", \\\"],[13],[10,\\\"b\\\"],[12],[1,[34,12]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\"],null],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[1,\\\"Case Taken: \\\"],[1,[30,1,[\\\"casetaken_doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,12],[[[1,\\\"                \\\"],[10,\\\"b\\\"],[12],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,12]]]],[12],[1,[34,12]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,13],[[[1,\\\"             \\\"],[10,\\\"b\\\"],[12],[10,1],[14,0,\\\"spvb\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,13]]]],[12],[1,[34,13]],[13],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[\\\"presdata\\\",\\\"index\\\",\\\"@urgentPatient\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PatientInfo\\\",\\\"if\\\",\\\"capitalize\\\",\\\"checkout-date-format\\\",\\\"booked-from-badge\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"eq\\\",\\\"action\\\",\\\"and\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/patient-thin-info.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/payment-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xLt/MLTT\",\n    \"block\": \"[[[3,\\\" This model is used for cash popup remove class cware-billing-preview by shubh tiwari as on 03-07-2022\\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal payment-modal fade payment-details-popup frontdesk-bill-popup\\\"],[14,1,\\\"cashpopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content margin-right-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"ResetPopupPaymentMode\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3,[\\\"PageName\\\"]],\\\"appointment\\\"],null],[[[1,\\\"                    \\\"],[10,\\\"h2\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Advance\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,\\\"h2\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Transaction Entry\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"refund_class\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"paymenterror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"h3\\\"],[14,0,\\\"margintop0px\\\"],[12],[10,\\\"b\\\"],[12],[41,[33,3,[\\\"OldRegistrationNo\\\"]],[[[1,\\\" \\\"],[1,[33,3,[\\\"OldRegistrationNo\\\"]]],[1,\\\" \\\"]],[]],[[[1,\\\" NP \\\"]],[]]],[13],[1,\\\" - \\\"],[10,1],[14,0,\\\"text-capitalize\\\"],[12],[1,[33,3,[\\\"FirstName\\\"]]],[1,\\\" \\\"],[1,[33,3,[\\\"MiddleName\\\"]]],[1,\\\" \\\"],[1,[33,3,[\\\"LastName\\\"]]],[13],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"h4\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Previously Owed\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"previous_due\\\"],[12],[1,\\\"Previous Balance \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" :\\\"],[13],[1,[33,3,[\\\"previous_balance_exist_then_set_value_zero\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control twodecimal previous_due\\\"],[16,\\\"data-previousdue\\\",[29,[[33,3,[\\\"PreviousBalance\\\"]]]]],[24,1,\\\"previous_due\\\"],[24,3,\\\"previous_due\\\"],[24,\\\"placeholder\\\",\\\"Previous Due\\\"],[16,2,[29,[[33,3,[\\\"PreviousBalance\\\"]]]]],[24,\\\"readonly\\\",\\\"readonly\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"text\\\"],[4,[38,0],[[30,0],\\\"onChangesRecalculate\\\"],[[\\\"on\\\"],[\\\"keyUp\\\"]]],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-2 smml-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"dueadv\\\"],[14,1,\\\"dueadv\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"onChangeTotalBalanceCalculate\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"disabled\\\",\\\"disabled\\\"],[15,\\\"data-adueadv\\\",[29,[[33,3,[\\\"PreviousBalanceStatus\\\"]]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"option\\\"],[14,2,\\\"due\\\"],[15,\\\"selected\\\",[28,[37,4],[\\\"due\\\",[33,3,[\\\"PreviousBalanceStatus\\\"]]],null]],[12],[1,\\\"Due\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"option\\\"],[14,2,\\\"adv\\\"],[15,\\\"selected\\\",[28,[37,4],[\\\"adv\\\",[33,3,[\\\"PreviousBalanceStatus\\\"]]],null]],[12],[1,\\\"Advance\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-3 smml-2 pder\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"previous_due_edit_reason\\\"],[14,3,\\\"previous_due_edit_reason\\\"],[14,\\\"placeholder\\\",\\\"Edit Reason\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-2 smml-2\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,1,\\\"editbutton\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"editPreviousDue\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit editicon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"texttoggle\\\"],[12],[1,\\\"Edit Previous Balance\\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[10,1],[14,0,\\\"help-text\\\"],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"NOTE:\\\"],[13],[1,\\\" Figure is based on manual entries in the system & sanctity of data may not be verified\\\"],[13],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[33,3,[\\\"PageName\\\"]],\\\"Bill Patient\\\"],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-info pull-right btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"patientTransactionHistory\\\",[33,3,[\\\"patientId\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Transaction History\\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[33,3,[\\\"PageName\\\"]],\\\"appointment\\\"],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"\\\"],[12],[1,\\\"Select charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\" *\\\"],[13],[1,\\\" :\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"appliedcharge\\\"],[14,0,\\\"form-control appliedcharge\\\"],[14,1,\\\"appliedcharge\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"onChangeSelectCharge\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select Charge \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"price\\\"]]]]],[15,\\\"selected\\\",[28,[37,4],[[30,1,[\\\"charge_code\\\"]],[33,3,[\\\"chargeCode\\\"]]],null]],[15,\\\"data-code\\\",[29,[[30,1,[\\\"charge_code\\\"]]]]],[15,\\\"data-chargetype\\\",[29,[[30,1,[\\\"charge\\\",\\\"charge_type\\\"]]]]],[15,\\\"data-shipping_related\\\",[29,[[30,1,[\\\"charge\\\",\\\"shipping_related\\\"]]]]],[12],[1,[30,1,[\\\"charge\\\",\\\"charge_type\\\"]]],[1,\\\" - \\\"],[1,[30,1,[\\\"price\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"\\\"],[12],[1,\\\"Visit Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,10],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"\\\"],[12],[1,\\\"Visit Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,10],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"\\\"],[12],[1,\\\"Visit Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"]],[]]]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"paylaterAmount\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control visit_due inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[33,3,[\\\"MedicinePrintCode\\\"]]]]],[15,\\\"data-consprint\\\",[29,[[33,3,[\\\"ConsultancyPrintCode\\\"]]]]],[14,1,\\\"visit_due\\\"],[14,3,\\\"visit_due\\\"],[14,\\\"data-visitdue\\\",\\\"0\\\"],[14,\\\"placeholder\\\",\\\"Visit Due\\\"],[15,2,[29,[[33,3,[\\\"VisitDue\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,3,[\\\"totalHidden\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control visit_due inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[33,3,[\\\"MedicinePrintCode\\\"]]]]],[15,\\\"data-consprint\\\",[29,[[33,3,[\\\"ConsultancyPrintCode\\\"]]]]],[14,1,\\\"visit_due\\\"],[14,3,\\\"visit_due\\\"],[15,\\\"data-visitdue\\\",[29,[[33,3,[\\\"totalHidden\\\"]]]]],[14,\\\"placeholder\\\",\\\"Visit Due\\\"],[15,2,[29,[[33,3,[\\\"VisitDue\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[\\\"0\\\",[33,3,[\\\"totalHidden\\\"]]],null],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control visit_due inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[33,3,[\\\"MedicinePrintCode\\\"]]]]],[15,\\\"data-consprint\\\",[29,[[33,3,[\\\"ConsultancyPrintCode\\\"]]]]],[14,1,\\\"visit_due\\\"],[14,3,\\\"visit_due\\\"],[15,\\\"data-visitdue\\\",[29,[[33,3,[\\\"totalHidden\\\"]]]]],[14,\\\"placeholder\\\",\\\"Visit Due\\\"],[15,2,[29,[[33,3,[\\\"VisitDue\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control visit_due inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[33,3,[\\\"MedicinePrintCode\\\"]]]]],[15,\\\"data-consprint\\\",[29,[[33,3,[\\\"ConsultancyPrintCode\\\"]]]]],[14,1,\\\"visit_due\\\"],[14,3,\\\"visit_due\\\"],[15,\\\"data-visitdue\\\",[29,[[33,3,[\\\"VisitDue\\\"]]]]],[14,\\\"placeholder\\\",\\\"Visit Due\\\"],[15,2,[29,[[33,3,[\\\"VisitDue\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"]],[]]]],[]]]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"received-text\\\"],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"NOTE:\\\"],[13],[1,\\\" Includes payment gateway amount, if any.\\\"],[13],[10,1],[14,0,\\\"newvisitdue\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_recieved\\\"],[12],[1,\\\"Received Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,10],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null]],null],[[[1,\\\" (B) \\\"]],[]],null],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control inputreadonly\\\"],[14,1,\\\"total_recieved\\\"],[15,\\\"data-total_received\\\",[29,[[33,3,[\\\"ReceivedAmount\\\"]]]]],[14,3,\\\"total_recieved\\\"],[14,\\\"placeholder\\\",\\\"Total Received\\\"],[15,2,[29,[[33,3,[\\\"ReceivedAmount\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"received-text\\\"],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"NOTE:\\\"],[13],[1,\\\" Received amount includes payment gateway charges, if any.\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"PreviousPGAmount\\\"]],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_recieved\\\"],[12],[1,\\\"Previous PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[33,3,[\\\"PreviousPGAmount\\\"]],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control inputreadonly\\\"],[14,1,\\\"previous_pg_amount\\\"],[15,\\\"data-previous_pg_amount\\\",[29,[[33,3,[\\\"PreviousPGAmount\\\"]]]]],[14,3,\\\"previous_pg_amount\\\"],[14,\\\"placeholder\\\",\\\"Previous PG Charge\\\"],[15,2,[29,[[33,3,[\\\"PreviousPGAmount\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,3,[\\\"currentPGAmount\\\"]],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_recieved\\\"],[12],[1,\\\"Current PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(D)\\\"],[1,\\\" \\\"]],[]],[[[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control inputreadonly\\\"],[14,1,\\\"current_pg_amount\\\"],[15,\\\"data-current_pg_amount\\\",[29,[[33,3,[\\\"currentPGAmount\\\"]]]]],[14,3,\\\"current_pg_amount\\\"],[14,\\\"placeholder\\\",\\\"Current PG Charge\\\"],[15,2,[29,[[33,3,[\\\"currentPGAmount\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"current_pg_charge\\\"],[14,1,\\\"current_pg_charge\\\"],[15,2,[29,[[33,3,[\\\"currentPGCharge\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_due\\\"],[14,0,\\\"required\\\"],[12],[1,\\\"Total Balance \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,11]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ReceivedAmount\\\"]],\\\"0.00\\\"],null]],null],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,5],[[33,3,[\\\"currentPGAmount\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,12]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[28,[37,5],[[33,3,[\\\"ModeValue\\\"]],\\\"0\\\"],null]],null],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_due\\\"],[14,0,\\\"required\\\"],[12],[1,\\\"Total Balance \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[[[1,\\\" (A - B) \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_due\\\"],[14,0,\\\"required\\\"],[12],[1,\\\"Total Balance \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,5],[[33,3,[\\\"PreviousPGAmount\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,13]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                \\\"]],[]]]],[]]]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control inputreadonly total_due\\\"],[14,1,\\\"total_due\\\"],[14,3,\\\"total_due\\\"],[15,\\\"data-totaldue\\\",[29,[[33,3,[\\\"TotalDue\\\"]]]]],[14,\\\"placeholder\\\",\\\"Total Due\\\"],[15,2,[29,[[33,3,[\\\"TotalDue\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2 smml-2 duesmml-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"recieveddueadv\\\"],[14,3,\\\"recieveddueadv\\\"],[15,2,[29,[[33,3,[\\\"TotalBalanceStatus\\\"]]]]],[14,\\\"placeholder\\\",\\\"Due / Advance\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Payment Details \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"transaction_mode\\\"],[12],[1,\\\"Transaction Mode \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[33,3,[\\\"PageName\\\"]],\\\"appointment\\\"],null],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"transaction_mode\\\"],[14,1,\\\"transaction_mode\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select--\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[28,[37,4],[\\\"0\\\",[33,3,[\\\"ModeValue\\\"]]],null]],[12],[1,\\\"Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[10,1],[14,0,\\\"help-text\\\"],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"NOTE:\\\"],[13],[1,\\\"You cannot issue refunds when taking advance payment. Use 'Manage transactions' for refunds\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"transaction_mode\\\"],[14,1,\\\"transaction_mode\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],\\\"transactionModeChanged\\\"],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select--\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[28,[37,4],[\\\"0\\\",[33,3,[\\\"ModeValue\\\"]]],null]],[12],[1,\\\"Receipt\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[28,[37,4],[\\\"1\\\",[33,3,[\\\"ModeValue\\\"]]],null]],[12],[1,\\\"Payment (Refund)\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"payment_mode\\\"],[12],[1,\\\"Payment Mode \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[14,1,\\\"patient_options\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,14]],null]],null],null,[[[41,[28,[37,2],[[30,3],\\\"4\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"break\\\"],[12],[10,\\\"input\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],\\\"changePopupPaymentMode\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,3,\\\"payment_mode\\\"],[15,1,[29,[\\\"payment_mode\\\",[30,2,[\\\"id\\\"]]]]],[14,0,\\\"payment_mode\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,3],\\\"8\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"break\\\"],[12],[10,\\\"input\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],\\\"changePopupPaymentMode\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,3,\\\"payment_mode\\\"],[15,1,[29,[\\\"payment_mode\\\",[30,2,[\\\"id\\\"]]]]],[14,0,\\\"payment_mode\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"nobreak\\\"],[12],[10,\\\"input\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,0],[[30,0],\\\"changePopupPaymentMode\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,3,\\\"payment_mode\\\"],[15,1,[29,[\\\"payment_mode\\\",[30,2,[\\\"id\\\"]]]]],[14,0,\\\"payment_mode\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[2,3]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"payment-option-list\\\"],[12],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"recieved\\\"],[14,0,\\\"required\\\"],[12],[1,\\\"Total Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" :\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control twodecimal recieved\\\"],[14,1,\\\"recieved\\\"],[14,3,\\\"recieved\\\"],[14,\\\"placeholder\\\",\\\"Received\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"note\\\"],[12],[1,\\\"Notes:\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control note\\\"],[14,1,\\\"note\\\"],[14,3,\\\"note\\\"],[14,\\\"placeholder\\\",\\\"Note\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"note\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-8 pull-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3,[\\\"PageName\\\"]],\\\"appointment\\\"],null],[[[41,[28,[37,2],[[33,15],\\\"appointment_id\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"paylateradvance\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[14,0,\\\"appointment_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[14,0,\\\"patient_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[14,0,\\\"doctor_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"receiveAdvancePayment\\\",\\\"2\\\",[33,3,[\\\"PageName\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save and Close\\\"],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right ml-2\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"ResetPopupPaymentMode\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                        \\\"],[10,0],[14,0,\\\"paynowadvance\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"receiveAdvancePayment\\\",\\\"1\\\",[33,3,[\\\"PageName\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save and Close\\\"],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"receiveAdvancePayment\\\",\\\"0\\\",[33,3,[\\\"PageName\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Accept Later\\\"],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right ml-2\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"ResetPopupPaymentMode\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,4],[[33,3,[\\\"PageName\\\"]],\\\"Manage Transaction\\\"],null],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[33,3,[\\\"prescribed_branch\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[33,3,[\\\"prescribed_shift\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"past_visit_date\\\"],[14,1,\\\"past_visit_date\\\"],[15,2,[29,[[36,16]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"consutancy_fee\\\"],[14,0,\\\"consutancy_fee\\\"],[15,2,[29,[[33,3,[\\\"ConsultancyFee\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"page_name\\\"],[14,0,\\\"page_name\\\"],[15,2,[29,[[33,3,[\\\"PageName\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[14,1,\\\"patient_id\\\"],[15,2,[29,[[33,3,[\\\"patientId\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"PrescribingDoctor\\\"],[14,1,\\\"PrescribingDoctor\\\"],[15,2,[29,[[33,3,[\\\"PrescribeDoctor\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"visiting_id\\\"],[14,1,\\\"visiting_id\\\"],[15,2,[29,[[33,3,[\\\"VisitingId\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_id\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[33,3,[\\\"BillingId\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"previous_bill_amount\\\"],[14,1,\\\"previous_bill_amount\\\"],[15,2,[29,[[33,3,[\\\"PreviousBillPaid\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"consultancy_print_code\\\"],[14,1,\\\"consultancy_print_code\\\"],[15,2,[29,[[33,3,[\\\"ConsultancyPrintCode\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_print_code\\\"],[14,1,\\\"medicine_print_code\\\"],[15,2,[29,[[33,3,[\\\"MedicinePrintCode\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[33,3,[\\\"PageName\\\"]],\\\"Manage Transaction\\\"],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"prescribeSaveAndClose\\\",\\\"nopopup\\\",\\\"NoprintPrescribe\\\",[33,3,[\\\"ShippingResult\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save and Close\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right ml-2\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"ResetPopupPaymentMode\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"prescribePrintAndClose\\\",[33,3,[\\\"PrintValue\\\"]],\\\"printPrescribe\\\",[33,3,[\\\"ShippingResult\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Print and Close\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"prescribeSaveAndClose\\\",\\\"nopopup\\\",\\\"NoprintPrescribe\\\",[33,3,[\\\"ShippingResult\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save and Close\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right ml-2\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"ResetPopupPaymentMode\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"charge\\\",\\\"mode\\\",\\\"index\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"ifeg\\\",\\\"payment_value\\\",\\\"eq\\\",\\\"ifnoteq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctorcharges\\\",\\\"and\\\",\\\"or\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"Payment_mode\\\",\\\"advance_payment_type\\\",\\\"billDate\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/payment-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pending-details-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gT5SSjWa\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal fade cware-billing-preview\\\"],[14,1,\\\"pendingdetails\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Patient Pending Due History\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-12 padding0px5px\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],[33,3]],null],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"goToPage\\\",[33,5],[33,6],[33,7],[33,3]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"<<\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"goToPrev\\\",[33,5],[33,6],[33,7],[33,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"<\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[[33,2],1],null],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"goToNext\\\",[33,5],[33,6],[33,7],[33,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\">\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"goToPage\\\",[33,5],[33,6],[33,7],1],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\">>\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pendingdetail\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Previous Due Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Edit reason\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Total Due Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Received Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Credit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Debit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Status\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Comments\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10]],null]],null],null,[[[1,\\\"                             \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,11],null,[[\\\"date\\\"],[[30,1,[\\\"transaction_time\\\"]]]]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"previous_due_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"previous_due_reason\\\"]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"total_due_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"recieved_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"credit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"debit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_status\\\"]]],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"remark\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row form-group text-right\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-window-close\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"pdetail\\\"],false,[\\\"if\\\",\\\"ifnoteq\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"action\\\",\\\"patient_id\\\",\\\"visiting_id\\\",\\\"billing_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"Pendingdetailslist\\\",\\\"format-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pending-details-list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pending-refund-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Z4JQaDDf\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pending-refund-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pharmacy-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"rEOL5HKS\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                         \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                               \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,5],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,4],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                       \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text capitalize\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                            \\\"],[1,[28,[35,7],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,8],null,[[\\\"errors_list\\\"],[[33,9]]]]],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"cware-scroll-table pharmacy-details\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                         \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,10],null,[[\\\"billpatientdetails\\\"],[[33,11]]]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"pharmacy-instruction\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h5\\\"],[12],[1,\\\"Pharmacy Instruction:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"\\\"],[12],[1,\\\" \\\"],[1,[34,12]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-3 float-right text-right\\\"],[12],[1,\\\"\\\\n                              \\\"],[3,\\\"  <button class=\\\\\\\"btn btn-success\\\\\\\" {{action @pharmacyComplete visiting_id billing_id}}>Save and Close</button>\\\"],[1,\\\"\\\\n                                \\\"],[3,\\\"<button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-success\\\\\\\" {{action \\\\\\\"pharmacyComplete\\\\\\\" visiting_id billing_id on=\\\\\\\"click\\\\\\\"}}></button>\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"PRMPatientList\\\",[33,14]],null],[[[1,\\\"                                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#reprint\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],[30,3]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print\\\"],[12],[13],[1,\\\" Re-print\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\"This below popup is used for print the Option \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"reprint\\\"],[14,0,\\\"modal fade\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Re-Print Options\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"visiting_id\\\"],[14,1,\\\"visiting_id\\\"],[15,2,[29,[[36,16]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_id\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[36,17]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,0,\\\"print_domestic\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,18]],[15,\\\"onchange\\\",[28,[37,15],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"Domestic \\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,3,\\\"evlp_label\\\"],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[15,\\\"disabled\\\",[36,19]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"  Envelope Label\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inc_presc\\\"],[14,1,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[15,\\\"disabled\\\",[36,19]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Inclinic Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"med_label\\\"],[14,1,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[15,\\\"disabled\\\",[36,19]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Medicine Label\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,1,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[15,\\\"disabled\\\",[36,19]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"medical_certificate\\\"],[14,1,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[15,\\\"disabled\\\",[36,19]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Medical Certificate\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,19]],[15,\\\"onchange\\\",[28,[37,15],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"International \\\"],[13],[13],[1,\\\"\\\\n                             \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"add_label\\\"],[14,1,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[15,\\\"disabled\\\",[36,18]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Address Label \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"cons_presc\\\"],[14,1,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[15,\\\"disabled\\\",[36,18]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Consignment Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"receipt\\\"],[14,1,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[15,\\\"disabled\\\",[36,18]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Receipt\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row text-right cw-margintop25\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-sm\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],[30,5]],null],[12],[1,\\\"Print and Close\\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@reprintOptions\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"booked-from-badge\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine-view\\\",\\\"billpatientlist\\\",\\\"pharmacy_page_instruction\\\",\\\"check-permission\\\",\\\"user_permission\\\",\\\"action\\\",\\\"printAId\\\",\\\"billing_id\\\",\\\"print_domestic\\\",\\\"print_international\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pharmacy-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pharmacy-history-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Tr1DVp5a\",\n    \"block\": \"[[[10,0],[14,0,\\\"pharmacy_instruction_history\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n               \\\"],[10,0],[14,0,\\\"heading-date\\\"],[12],[1,[28,[35,3],[[30,1,[\\\"creation_date\\\"]]],null]],[13],[1,\\\"\\\\n               \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Billed By :\\\"],[13],[1,\\\" \\\"],[1,[30,1,[\\\"biller_name\\\"]]],[1,\\\"\\\\n                    \\\"],[6,[39,4],null,[[\\\"class\\\",\\\"target\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-sm\\\",\\\"_self\\\",\\\"Previous Prescribed Details\\\",\\\"billing.billeddetails\\\",[28,[37,5],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"importvisitid\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Details \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[42,[28,[37,1],[[28,[37,1],[[33,6]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n               \\\"],[10,0],[14,0,\\\"heading-date\\\"],[12],[1,[28,[35,3],[[30,2,[\\\"creation_date\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pharmacy_instruction\\\"]],[[[1,\\\"                    \\\"],[10,2],[12],[1,\\\"Instructions/notes: \\\"],[1,[30,2,[\\\"pharmacy_instruction\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"biller_name\\\"]],[[[1,\\\"                    \\\"],[10,2],[12],[1,\\\"Billed By : \\\"],[1,[30,2,[\\\"biller_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_reason\\\"]],[[[1,\\\"                    \\\"],[10,2],[12],[1,\\\"Medicine discount Reason : \\\"],[1,[30,2,[\\\"discount_reason\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_reason\\\"]],[[[1,\\\"                    \\\"],[10,2],[12],[1,\\\"consultancy_waived_reason : \\\"],[1,[30,2,[\\\"consultancy_waived_reason\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[13]],[\\\"bill_history\\\",\\\"history\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"visitBillingHistory\\\",\\\"date-format\\\",\\\"link-to\\\",\\\"array\\\",\\\"pharmacyHistory\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pharmacy-history-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/pharmacy-view-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"UgIdbnzj\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                    \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,5],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,4],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                    \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                    \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text capitalize\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[1,[28,[35,7],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                    \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                    \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                    \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[14,1,\\\"pharmacyerror\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,8],null,[[\\\"errors_list\\\"],[[33,9]]]]],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table pharmacy-details\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,10],null,[[\\\"billpatientdetails\\\"],[[33,11]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\"<div class=\\\\\\\"pharmacy-instruction\\\\\\\">\\\\n                                <h5>Pharmacy Instruction:</h5>\\\\n                                <textarea class=\\\\\\\"form-control\\\\\\\" readonly> {{pharmacy_instruction}} </textarea>\\\\n                            </div>\\\"],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print-option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,2,\\\"international\\\"],[14,3,\\\"print-option\\\"],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"checkboxinvisible\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"PE\\\",[33,13]],null],\\\"true\\\"]],[14,3,\\\"prescriptionemail\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment\\\\n                                            Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,14]],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic\\\\n                                            Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,15]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,15]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"checked\\\",[36,14]],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row marginTop10\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-10 text-right\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,16]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,17]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[\\\"ReprintButton\\\",[33,19]],null],[[[1,\\\"                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success ajaxButtonHide pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,4]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print\\\"],[12],[13],[1,\\\" Re-print\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,20],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"medicine_default_pickup\\\",\\\"billed_listing_id\\\",\\\"pickup_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\"],[[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],[33,2,[\\\"0\\\",\\\"prescribing_doc_name\\\"]],[33,27],[33,28],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,17],[33,29],[33,30],[33,31]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"pharmacy-instruction\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"h5\\\"],[12],[1,\\\"Instructions/notes:\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"\\\"],[12],[1,\\\" \\\"],[1,[34,32]],[13],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,33],null,[[\\\"pharmacyHistory\\\"],[[33,34]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options marginTop10\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-4 float-right text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[\\\"MedicinePreparedButton\\\",[33,19]],null],[[[41,[28,[37,4],[[33,35],\\\"0\\\"],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-info ajaxButtonHide phab\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,5],[33,17],[33,16],[33,35]],null],[12],[1,\\\"Medicine Prepared\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-info ajaxButtonHide phab\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,5],[33,17],[33,16],[33,35]],null],[12],[1,\\\"Medicine Not Prepared \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[28,[37,18],[\\\"SaveCloseButton\\\",[33,19]],null],[[[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm ajaxButtonHide ml-2 phab\\\"],[16,\\\"disabled\\\",[36,36]],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,6],[33,17],[33,16],[33,2,[\\\"0\\\",\\\"patient_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-save\\\"],[12],[13],[1,\\\"\\\\n                                    Save and Close\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm ajaxButtonHide ml-2 phab\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\"This below popup is used for print the Option \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"reprint\\\"],[14,0,\\\"modal fade\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Re-Print Options\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,0,\\\"print_domestic\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,14]],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"Domestic \\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_vial\\\"],[15,\\\"disabled\\\",[36,15]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Vials\\\\n                                    \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_envelope\\\"],[15,\\\"disabled\\\",[36,15]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Envelope\\\\n                                    \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_receipt\\\"],[15,\\\"disabled\\\",[36,15]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Receipt\\\\n                                    \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_presc\\\"],[15,\\\"disabled\\\",[36,15]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic\\\\n                                        Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,15]],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"International \\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_vial\\\"],[15,\\\"disabled\\\",[36,14]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Vial\\\\n                                    \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_envelope\\\"],[15,\\\"disabled\\\",[36,14]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Envelope\\\\n                                    \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_presc\\\"],[15,\\\"disabled\\\",[36,14]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Receipt\\\\n                                        & Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row text-right cw-margintop25\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-sm\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,4]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print\\\"],[12],[13],[1,\\\" Print and Close\\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\",\\\"@medicinePrepared\\\",\\\"@pharmacyComplete\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"booked-from-badge\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine-view\\\",\\\"billpatientlist\\\",\\\"action\\\",\\\"prescription_email\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"check-permission\\\",\\\"user_permission\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\",\\\"pharmacy_page_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"prepared_flag\\\",\\\"isDisabled\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/pharmacy-view-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/phone-complete-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"E0dUBylQ\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\t\\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#phonecompletedVisit\\\"],[12],[1,\\\"Phone Completed visits\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],\\\"dashboard\\\"],null],[[[1,\\\" \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-small btn-primary pull-right\\\"],[24,5,\\\"margin-right:10px; margin-top:5px\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Refresh\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content booking panel-collapse collapse in\\\"],[14,1,\\\"phonecompletedVisit\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table \\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patients\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Booked for\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,2,[\\\"type\\\"]]],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t-  \\\"],[10,1],[15,0,[29,[\\\"capitalize \\\",[30,2,[\\\"priority\\\"]]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Priority : \\\",[30,2,[\\\"priority\\\"]]]]],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\" : \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\" (Appt Time), \\\"],[1,[28,[35,1],[[30,2,[\\\"checkin_time\\\"]],null,\\\" \\\",[28,[37,8],[[30,2,[\\\"checkin_time\\\"]],\\\" (Check-in),\\\"],null]],null]],[1,\\\" \\\"],[1,[28,[35,1],[[30,2,[\\\"complete_time\\\"]],null,\\\" \\\",[30,2,[\\\"complete_time\\\"]]],null]],[1,\\\" (Completed)\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"book_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"book_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"casetaken_doctor_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribe_doc_name\\\"]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"prescribe_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,2,[\\\"casetaken_doctor_name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,4],\\\"new\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65px\\\"],[12],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"billing.billedpatient\\\",[28,[37,10],[[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]],[30,2,[\\\"visit_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tNo appointments completed for today.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"@refreshcompleteList\\\",\\\"appointment\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"route\\\",\\\"action\\\",\\\"completeReportsTypes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"phoneComplete\\\",\\\"concat\\\",\\\"link-to\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/phone-complete-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/phone-completed-visit-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"GLNgiVd1\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#phone-complete-patients\\\"],[12],[1,\\\"Phone Completed Visit\\\"],[13],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"phone-complete-patients\\\"],[14,5,\\\"overflow:hidden; height: auto;\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Case Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescription Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Billing Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharma Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                    \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                            \\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"assign_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"casetaken_label\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"case_taken_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_doc_name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pharmacy_complete_time\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding action_width\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"visit_complete\\\"]],\\\"1\\\"],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"doctor-dashboard.checkoutdetail\\\",[28,[37,6],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"billing_id\\\"]],[30,1,[\\\"patient_id\\\"]],\\\"0\\\",\\\"preview\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"assigned_dr_2\\\"]],[33,7]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null],[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"No\\\"],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"billing_progress\\\"]],\\\"Yes\\\"],null],\\\"patient_open_status\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"2\\\"],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"visit_status\\\"]],\\\"3\\\"],null],\\\"rxhide\\\"]]]],[24,\\\"title\\\",\\\"Prescribe Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,4],[[30,1,[\\\"case_taken\\\"]],\\\"Yes\\\"],null],[28,[37,4],[[30,1,[\\\"assigned_dr_1\\\"]],[33,7]],null]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-success btn-xs \\\",[52,[28,[37,8],[[33,9],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,8],[[33,12],[30,1,[\\\"patient_id\\\"]]],null],\\\"patient_open_status\\\"]]]],[24,\\\"title\\\",\\\"Case Taken Edit\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,2],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]],\\\"edit\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],[]],null]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[1]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"13\\\"],[12],[1,\\\"No appointments completed for today..\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@addPrescribeTab\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"completePhonePatients\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"array\\\",\\\"login_user\\\",\\\"find-tab-patient\\\",\\\"icptablist\\\",\\\"action\\\",\\\"and\\\",\\\"button_status\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/phone-completed-visit-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/phone-patients-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"YmcVgVaY\",\n    \"block\": \"[[[10,0],[14,0,\\\"widget widget-nopad\\\"],[14,1,\\\"phone-section\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"panel-group\\\"],[12],[1,\\\"\\\\n\\\\t  \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"widget-header\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-list-ul\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"h3\\\"],[14,0,\\\"cursorPointer\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,6,\\\"#phone-patients\\\"],[12],[1,\\\"Phone Patients\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 prescribed_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Prescribed\\\"],[12],[41,[33,1,[\\\"total_phone_prescribe\\\"]],[[[1,[33,1,[\\\"total_phone_prescribe\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5 alert-success casetaken_counter\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Case Taken\\\"],[12],[41,[33,1,[\\\"total_phone_casetaken\\\"]],[[[1,[33,1,[\\\"total_phone_casetaken\\\"]]]],[]],[[[1,\\\"0\\\"]],[]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,1],[14,0,\\\"badge marginleft5\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Remaining Assigned Patients\\\"],[12],[1,[34,2]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"widget-content panel-collapse collapse in\\\"],[14,1,\\\"phone-patients\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"span12 panel-body\\\"],[14,5,\\\"width:100%!important;margin-left:0px!important\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt. Dr.\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Assign Date/Time\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50\\\"],[12],[1,\\\"Case Taken\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[14,0,\\\"action-width\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[30,1,[\\\"absent_status\\\"]]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,6],[[30,1,[\\\"cancel_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                        \\\\t    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#cancelNote\\\"],[4,[38,7],[[30,0],[30,2],[30,1,[\\\"cancel_note\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"cancel-text\\\"],[12],[1,\\\"Cancelled\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" \\\"],[41,[28,[37,8],[[30,1,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign balance_flag\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Amount : \\\",[28,[37,9],[[30,1,[\\\"balance_amount\\\"]]],null]]]],[12],[13]],[]],null],[1,\\\" \\\"],[1,[28,[35,10],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"checkout\\\"]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"dr_appt\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"absent\\\"]],\\\"0\\\",[30,1,[\\\"assign_time\\\"]],[30,1,[\\\"assign_date_time\\\"]]],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"reassigned\\\"]],\\\"true\\\",[30,1,[\\\"casetaken_label\\\"]],\\\" \\\"],null]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t    \\\"],[10,\\\"td\\\"],[14,0,\\\"table-action-nopadding text-right\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Prescribe Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicPrescribeButton\\\",[33,13]],null]],null],[[[1,\\\"\\\\n                                                \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font ml-2\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicPrescribeButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                \\\"],[11,1],[16,\\\"disabled\\\",[36,14]],[16,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"],\\\" \\\",[52,[28,[37,15],[[33,17],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxbuttondisable\\\"]]]],[4,[38,7],[[30,0],[30,3],[30,1,[\\\"type\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]],[30,1,[\\\"visit_id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope d-icon-font ml-2\\\"],[14,5,\\\"color:#1ABD75; font-weight: bold;font-size:24px;\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Take/Prescribe Case\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Prescribe Button \\\"],[1,\\\"\\\\n\\\\n                                            \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font ml-2\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,1],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font icon-side-margin\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"assign_to\\\"]],[33,19]],null],[[[41,[28,[37,6],[[30,1,[\\\"read_message_log\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[6,[39,20],null,[[\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"View Message Log\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,21],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"read_message_log\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt d-icon-font icon-side-margin message-icon\\\"],[12],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[3,\\\" Single button \\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"btn-group doctor-group-action vertical-align\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm dropdown-toggle no-btn-padding btn-transparent z-index-0\\\"],[14,\\\"data-boundary\\\",\\\"window\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars action-font fa-action icon-side-margin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Re-assign Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrReAssignButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DReAssignButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"reSchedulePatient\\\",[30,1,[\\\"pateint_visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet d-icon-font margin-right-10 reassign-icon\\\"],[12],[13],[1,\\\"Re-assign\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Re-assign Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Urgent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherMarkUrgentButton\\\",[33,13]],null]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"markUrgentButton\\\",[33,13]],null],[33,18]],null],[[[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"urgent_status\\\"]],[30,1,[\\\"urgent_note\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Not Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[11,\\\"li\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#markUrgent\\\"],[4,[38,7],[[30,0],\\\"urgentPatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent d-icon-font margin-right-10\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Urgent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Reschedule Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherInClinicReschedulePatientsButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"InClinicReschedulePatientsButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"drreschedulepatient\\\",[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus d-icon-font fa-reschedule margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Reschedule\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Reschedule Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Absent Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrAbsentButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DAbsentButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[4,[38,7],[[30,0],\\\"patientAbsent\\\",[30,1,[\\\"visit_id\\\"]],[30,1,[\\\"absent\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-slash d-icon-font absent-icon margin-right-10\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Absent\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Absent Button \\\"],[1,\\\"\\\\n\\\\n                                                \\\"],[3,\\\" Start Cancel Button \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[28,[37,12],[\\\"OtherDrCancelButton\\\",[33,13]],null]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[\\\"DCancelButton\\\",[33,13]],null],[33,18]],null],[[[1,\\\"                                                    \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"cancelDashboardPatient \\\",[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[4,[38,7],[[30,0],\\\"cancelPatient\\\",[30,1,[\\\"visit_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle d-icon-font fa-cancel margin-right-10\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                                \\\"],[3,\\\" End Cancel Button \\\"],[1,\\\"\\\\n                                                \\\"],[3,\\\" Start Shipping preference Shubh Tiwari, 28 July 2023\\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"ShippingPreferenceButton\\\",[33,13]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"li\\\"],[16,0,[29,[[52,[28,[37,22],[[33,16],[30,1,[\\\"appointment_id\\\"]]],null],\\\"menu-lock\\\"]]]],[24,\\\"title\\\",\\\"Set shipping preference\\\"],[4,[38,7],[[30,0],[30,4],[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"patient_id\\\"]]],null],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-shipping-fast icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\"Shipping preference\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" End Shipping preference \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"OldPrescribeButton\\\",[33,13]],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"divider \\\",[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"prescribed\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,5],[30,1,[\\\"pateint_visit_id\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-check margin-right-10\\\"],[14,5,\\\"color: #2ba2bd;font-size: 24px;\\\"],[12],[13],[1,\\\" Prescribed\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"reassigned\\\"]],\\\"false\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[[52,[28,[37,15],[[33,16],[30,1,[\\\"patient_id\\\"]]],null],\\\"rxhide\\\"]]]],[12],[11,1],[16,1,[29,[\\\"casetaken\\\",[30,1,[\\\"patient_id\\\"]]]]],[4,[38,7],[[30,0],[30,6],[30,1,[\\\"reassigned\\\"]],[30,1,[\\\"pateint_visit_id\\\"]],[30,1,[\\\"booked_doctor\\\"]],1,[33,19],[30,1,[\\\"patient_id\\\"]],[30,1,[\\\"appointment_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"icon-stethoscope margin-right-10\\\"],[14,5,\\\"color:#1ABD75;font-weight: bold;font-size: 24px;\\\"],[12],[13],[1,\\\" Case taken\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                        No appointments left/found for today.\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\",\\\"@showCancelNote\\\",\\\"@addPrescribeTab\\\",\\\"@setShippingPreference\\\",\\\"@markCompleteC\\\",\\\"@reAssignC\\\"],false,[\\\"if\\\",\\\"patientCount\\\",\\\"remainingPhonePatients\\\",\\\"each\\\",\\\"-track-array\\\",\\\"phonePatients\\\",\\\"eq\\\",\\\"action\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"booked-from-badge\\\",\\\"and\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"isDisabled\\\",\\\"find-tab-patient\\\",\\\"phonetablist\\\",\\\"button_status\\\",\\\"currentUser\\\",\\\"user_id\\\",\\\"link-to\\\",\\\"array\\\",\\\"find-array-value\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/phone-patients-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescribe-detail-component-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"OVOpjxbU\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[14,1,\\\"prescribeHeading\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Prescribed Medicine\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,1,[\\\"modified_by\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[33,4],\\\"Outside\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"col-md-8 spvb\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge badge-warning address-flash address-badge\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"The patient will acquire medicines from outside.\\\"],[12],[1,\\\"\\\\n                The patient will acquire medicines from outside.\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[14,1,\\\"medicineList\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,5],null,[[\\\"errors_list\\\"],[[33,6]]]]],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"cware-scroll-table checkout-bill\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,7],null,[[\\\"billpatientdetails\\\"],[[33,8]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                 \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n         \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info office-expand off-use pull-right\\\"],[14,\\\"title\\\",\\\"Expand or Collapse\\\"],[14,\\\"data-target\\\",\\\"#Exampleone\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-minus\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row section-office\\\"],[14,1,\\\"officeUsesHeading\\\"],[12],[10,\\\"h3\\\"],[14,0,\\\"office-uses-heading\\\"],[12],[1,\\\"***For Clinic Use Only***\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"panel-collapse collapse in section-office\\\"],[14,1,\\\"Exampleone\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,10,[\\\"0\\\",\\\"urgent_status\\\"]],\\\"0\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Urgent Notes\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"green-border-focus\\\"],[12],[1,\\\"\\\\n                                                                    \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,3,\\\"patientFreeNote\\\"],[14,1,\\\"patientFreeNote\\\"],[14,\\\"rows\\\",\\\"3\\\"],[14,\\\"placeholder\\\",\\\"Free Note\\\"],[12],[1,[33,10,[\\\"0\\\",\\\"urgent_note\\\"]]],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,10,[\\\"0\\\",\\\"free_note\\\"]],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Free Note\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"green-border-focus\\\"],[12],[1,\\\"\\\\n                                                                    \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,3,\\\"patientFreeNote\\\"],[14,1,\\\"patientFreeNote\\\"],[14,\\\"rows\\\",\\\"3\\\"],[14,\\\"placeholder\\\",\\\"Free Note\\\"],[12],[1,[33,10,[\\\"0\\\",\\\"free_note\\\"]]],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[3,\\\" Start message logs preview component \\\"],[1,\\\"\\\\n\\\"],[41,[33,11],[[[1,\\\"                                    \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Message Log \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,12,[\\\"modified_by\\\"]],[[[1,\\\"                                                        \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,12,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,12,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"form-group green-border-focus\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,11]],null]],null],null,[[[41,[28,[37,3],[[30,1,[\\\"assign_doc\\\"]],\\\"DKAB\\\"],null],[[[1,\\\"                                                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left DKAB\\\"],[12],[1,[28,[35,15],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\" \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,16],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"logs-list\\\"],[12],[10,1],[14,0,\\\"logs-list-left\\\"],[12],[1,[28,[35,15],null,[[\\\"text\\\",\\\"size\\\",\\\"classNames\\\"],[[30,1,[\\\"assign_doc\\\"]],48,\\\"circle-right\\\"]]]],[13],[1,\\\" \\\"],[10,2],[14,0,\\\"logs-list-center\\\"],[12],[1,[30,1,[\\\"log_notes\\\"]]],[1,\\\" - \\\"],[10,1],[14,0,\\\"logs-list-right\\\"],[12],[1,[28,[35,16],[[30,1,[\\\"created_at\\\"]]],null]],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null],[1,\\\"                                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[3,\\\" End message logs preview component \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[33,17,[\\\"data\\\"]],[[[1,\\\"                                        \\\"],[3,\\\" Start case history preview component \\\"],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Case Taking History\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"                                                    \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,17,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,17,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,17,[\\\"data\\\"]],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered checkoutcasehistorylist\\\"],[14,1,\\\"checkoutcasehistorylist\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 12%;\\\"],[12],[1,\\\"Visit Date\\\"],[13],[1,\\\"\\\\n                                                                \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 80%;\\\"],[12],[1,\\\"Disease/System/Organ Name\\\"],[13],[1,\\\"\\\\n                                                                \\\"],[10,\\\"th\\\"],[14,5,\\\"width:8%;\\\"],[12],[1,\\\"Appt Type\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"tbody\\\"],[14,1,\\\"checkoutcasehistorytbodyid\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[1,[28,[35,18],[[33,17,[\\\"data\\\"]]],null]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[3,\\\" End case history preview component \\\"],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n         \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,19],[[[1,\\\"                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,1,\\\"report_advice\\\"],[14,2,\\\"report_advice\\\"],[14,3,\\\"report_advice\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"  \\\\n\\\"]],[]],[[[1,\\\"                                             \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"report_advice\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,1,\\\"print_case\\\"],[14,2,\\\"print_case\\\"],[14,3,\\\"print_case\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Print Case X \\\"],[13],[1,\\\" \\\\n                                          \\\"],[10,\\\"input\\\"],[14,1,\\\"print_case_val\\\"],[14,3,\\\"print_case_val\\\"],[14,5,\\\"width:20%;\\\"],[15,\\\"oninput\\\",[28,[37,20],[[30,0],\\\"checkMaxPrintCopy\\\"],null]],[14,\\\"min\\\",\\\"1\\\"],[14,\\\"max\\\",\\\"9\\\"],[14,0,\\\"onlynumeric\\\"],[14,2,\\\"1\\\"],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,1,\\\"clinic_used\\\"],[14,2,\\\"clinic_used\\\"],[14,3,\\\"clinic_used\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" For Clinic Use Only \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,3],[\\\"PE\\\",[33,21]],null],\\\"true\\\"]],[14,3,\\\"prescriptionemail\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Prescription Email \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print_option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"onchange\\\",[28,[37,20],[[30,0],[30,2]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,2,\\\"international\\\"],[14,3,\\\"print_option\\\"],[15,\\\"onchange\\\",[28,[37,20],[[30,0],[30,2]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"evlp_label\\\"],[15,\\\"checked\\\",[36,22]],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                     \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,23]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"  \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,23]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" <div class=\\\\\\\"row marginTop10\\\\\\\">\\\\n                                      <div class=\\\\\\\"col-md-10 text-right\\\\\\\">\\\\n{{#if (check-permission 'ReprintButton' user_permission) }}\\\\n                                        <button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-sm btn-success\\\\\\\" {{action @getRePrints}}><i class=\\\\\\\"fas fa-print\\\\\\\"></i> Re-print</button>\\\\n                                        {{/if}}                                    </div>\\\\n                                </div> \\\"],[1,\\\"\\\\n                                 \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,24],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,25],\\\"readonly\\\"]]]],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,26],null,[[\\\"pharmacyHistory\\\"],[[33,27]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,28],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,29]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,30]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[3,\\\" <button  title=\\\\\\\"{{medicine_reason}}\\\\\\\" class=\\\\\\\"btn btn-info btn-sm\\\\\\\" data-toggle=\\\\\\\"tooltip\\\\\\\" type=\\\\\\\"button\\\\\\\"><i class=\\\\\\\"fas fa-info-circle\\\\\\\"></i></button> \\\"],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove Discount\\\"],[24,0,\\\"btn btn-danger btn-sm med_remove_button\\\"],[16,\\\"data-discountId\\\",[29,[[36,28]]]],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,3],[33,28]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[33,31],\\\"100\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[14,0,\\\"onthemed discount\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,29]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                     \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,29]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"percentage perremove\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,31]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,28],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,32]]]],[15,\\\"data-reason\\\",[29,[[36,33]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,34],[[33,29],[33,30]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,32]]]],[15,\\\"data-reason\\\",[29,[[36,33]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,34],[[33,29],[33,31]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,31],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,4]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"title\\\",[29,[[36,35]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[28,[37,3],[[33,37],\\\"0\\\"],null],[28,[37,3],[[33,38],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,38]],[13],[1,\\\"\\\\n\\\"],[41,[33,40],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm cons_remove_button\\\"],[24,\\\"title\\\",\\\"Remove Consultancy\\\"],[16,\\\"data-billingId\\\",[29,[[36,40]]]],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,5]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,36],[[28,[37,3],[[33,37],\\\"0\\\"],null],[28,[37,3],[[33,38],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,37]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[33,37],\\\"0\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,37]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[33,37],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis discount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,37]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[28,[37,3],[[33,37],\\\"0\\\"],null],[28,[37,3],[[33,38],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                 \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,34],[[33,43],[33,37]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,44],[[28,[37,3],[[33,37],\\\"0\\\"],null],[28,[37,3],[[33,38],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,34],[[33,39],[33,37]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[33,37],\\\"100\\\"],null],[[[1,\\\"                                                     \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,34],[[33,39],[33,37]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,37],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,6]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Balance \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\" \\\"],[10,1],[12],[1,\\\"Due (+) / adv (-)\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,45]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,45],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],\\\"pendingDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                 \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,46]],null]],null],null,[[[1,\\\"                                                        \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,7,[\\\"charge_code\\\"]]]]],[15,\\\"data-shipping-related\\\",[29,[[30,7,[\\\"shipping_related\\\"]]]]],[15,2,[29,[[30,7,[\\\"charge_cost\\\"]]]]],[12],[1,[30,7,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                                 \\\"],[3,\\\" {{other-charge charge_master_list charge=visit_charges}} \\\"],[1,\\\"\\\\n                                                 \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,8]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[33,47]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,9,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                     \\\"],[10,\\\"label\\\"],[12],[1,[30,9,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control box-charge numeric charge-total\\\"],[16,\\\"data-chargeId\\\",[29,[[30,9,[\\\"id\\\"]]]]],[16,\\\"data-shipping-related\\\",[29,[[30,9,[\\\"shipping\\\"]]]]],[16,\\\"data-label\\\",[29,[[30,9,[\\\"charge_name\\\"]]]]],[16,\\\"data-charge_code\\\",[29,[[30,9,[\\\"charge_code\\\"]]]]],[16,1,[29,[[30,9,[\\\"charge_code\\\"]]]]],[16,2,[29,[[30,9,[\\\"charge_amount\\\"]]]]],[24,4,\\\"text\\\"],[4,[38,48],[\\\"keyup\\\",[30,0,[\\\"onChangesAddCharge\\\"]]],null],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,10],[30,9,[\\\"id\\\"]],[30,9,[\\\"charge_amount\\\"]],[30,9,[\\\"charge_name\\\"]],[30,9,[\\\"billing_id\\\"]],[30,9,[\\\"appointment_id\\\"]],[30,9,[\\\"shipping\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[1,[28,[35,49],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"pickup_listing_id\\\",\\\"billed_listing_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\"],[[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[33,10,[\\\"0\\\",\\\"patient_id\\\"]],[33,56],[33,57],[33,58],[33,59],[33,60],[33,61]]]]],[1,\\\"\\\\n                                \\\"],[41,[33,62],[[[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,9],[[33,63],\\\"0\\\"],null],[[[1,\\\" (A) \\\"]],[]],null],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,2,[29,[[28,[37,64],[[33,29]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\"],[[33,31],[33,39],[33,37],[33,45],[33,65],[33,28],[33,30],[33,38],[33,43]]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,66]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,56]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"consutancy_fee\\\"],[14,3,\\\"consutancy_fee\\\"],[15,2,[29,[[36,39]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,10,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_instruction\\\"],[14,3,\\\"billing_instruction\\\"],[15,2,[29,[[36,67]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2 checkout-total-status\\\"],[12],[1,[28,[35,68],[[33,29]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\"],[[33,31],[33,39],[33,37],[33,45],[33,65],[33,28],[33,30],[33,38],[33,43]]]]],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\" previous_bill_amount={{previous_bill_amount}} \\\"],[1,\\\"\\\\n                                    \\\"],[3,\\\" <button {{action \\\\\\\"refresh\\\\\\\"}} class=\\\\\\\"mdl-button mdl-js-button mdl-button--raised mdl-button--accent\\\\\\\">Search Again!</button> \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,69],\\\"0.00\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,9],[[33,63],\\\"0\\\"],null],[[[1,\\\" (B) \\\"]],[]],null],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly\\\"],[15,\\\"data-paid-amount\\\",[29,[[36,69]]]],[15,2,[29,[[36,69]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[10,1],[14,5,\\\"margin-left:12px; font-weight:500\\\"],[12],[1,[34,70]],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,63],\\\"0\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous PG Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,9],[[33,63],\\\"0\\\"],null],[[[1,\\\" (C) \\\"]],[]],null],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pg_amount inputreadonly\\\"],[15,\\\"data-pg-amount\\\",[29,[[36,63]]]],[15,2,[29,[[36,63]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"due_advance\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,9],[[33,63],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,71]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_dues inputreadonly\\\"],[15,\\\"data-total-dues\\\",[29,[[28,[37,72],[[33,29]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PGamount\\\"],[[33,31],[33,39],[33,37],[33,45],[33,65],[33,28],[33,30],[33,38],[33,43],[33,69],[33,63]]]]]]],[15,2,[29,[[28,[37,72],[[33,29]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PGamount\\\"],[[33,31],[33,39],[33,37],[33,45],[33,65],[33,28],[33,30],[33,38],[33,43],[33,69],[33,63]]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                 \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left:12px;\\\"],[12],[10,1],[14,0,\\\"payment_status\\\"],[12],[1,[28,[35,73],[[33,29]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PGamount\\\"],[[33,31],[33,39],[33,37],[33,45],[33,65],[33,28],[33,30],[33,38],[33,43],[33,69],[33,63]]]]],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" Previous due details list popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,74],null,[[\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"visiting_id\\\",\\\"patient_id\\\",\\\"billing_id\\\"],[[33,75],[33,76],[33,77],[33,56],[33,10,[\\\"0\\\",\\\"patient_id\\\"]],[33,66]]]]],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\" Discount reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"discountspopup\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,11]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Medicine Discount Reason\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"medicinediscounterror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"discountForm\\\"],[4,[38,20],[[30,0],[30,12]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,20],[[30,0],[30,11]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" Consultancy waived reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"consultancydiscountpopup\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Consultancy Waive Reason\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"conwaveerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"conwaiveddiscountForm\\\"],[4,[38,20],[[30,0],[30,13]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"consultancy_discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"consultancy_discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" Other charge add popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"OtherCharge\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Other Charge\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"other_chargeForm\\\"],[4,[38,20],[[30,0],[30,14]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"otherinstructionid\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"chargeerror\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\"Charge Name: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_name\\\",\\\"form-control\\\",\\\"Enter Charge Name\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_code\\\"],[12],[1,\\\"Charge Code: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_code\\\",\\\"form-control\\\",\\\"Enter Charge Code\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_amount\\\"],[12],[1,\\\"Charge Amount: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,78],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_amount\\\",\\\"form-control onlynumeric\\\",\\\"Enter Charge Amount\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"logs\\\",\\\"@setprintType\\\",\\\"@removeMedicineDiscount\\\",\\\"@applyDiscountCharge\\\",\\\"@removeWaiveConsutancy\\\",\\\"@consultancyWave\\\",\\\"clist\\\",\\\"@addCharge\\\",\\\"charge\\\",\\\"@removeAddedOtherCharge\\\",\\\"@clearDisccountinput\\\",\\\"@addDiscountReason\\\",\\\"@consultancyWaivedReason\\\",\\\"@addOtherCharge\\\"],false,[\\\"if\\\",\\\"prescribe_user\\\",\\\"section-add-edit-by\\\",\\\"eq\\\",\\\"pe\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"checkout-prescribe-medicine\\\",\\\"billpatientlist\\\",\\\"ifnoteq\\\",\\\"PrescribePatient\\\",\\\"message_logs_list\\\",\\\"message_logs_user\\\",\\\"each\\\",\\\"-track-array\\\",\\\"letter-avatar\\\",\\\"message-log-date\\\",\\\"case_taken_history_list\\\",\\\"checkout-case-history\\\",\\\"advised_report\\\",\\\"action\\\",\\\"prescription_email\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"textarea\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"remove_discount_button\\\",\\\"med_amount\\\",\\\"onthefly_discount\\\",\\\"medd_discount\\\",\\\"medicine_code\\\",\\\"medicine_reason\\\",\\\"discount\\\",\\\"consultancyFullName\\\",\\\"and\\\",\\\"consult_dicount\\\",\\\"consultancy_waive_type\\\",\\\"doctor_fees\\\",\\\"consultancy_remove_button\\\",\\\"consultancy_code\\\",\\\"consultancy_waived_reason\\\",\\\"consultancy_waived_amount\\\",\\\"or\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"on\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"visiting_id\\\",\\\"pharmacy_location\\\",\\\"billing_location\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\",\\\"isLoading\\\",\\\"PGamount\\\",\\\"checkout-total\\\",\\\"previous_total_charge\\\",\\\"billing_id\\\",\\\"billing_instruction\\\",\\\"checkout-total-status\\\",\\\"previous_bill_amount\\\",\\\"advance_label\\\",\\\"totaldue_label\\\",\\\"checkout-total-dues-amount\\\",\\\"checkout-payment-status\\\",\\\"pending-details-list\\\",\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescribe-detail-component-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescribe-detail-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"RYfx9fnp\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[14,1,\\\"billpatient\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,0],null,[[\\\"class\\\",\\\"style\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15\\\",\\\"margin-right: 12px;\\\",\\\"Back to Billing Dashboard\\\",\\\"billing.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm pull-right marginbottom15 ajaxButtonHide\\\"],[24,5,\\\"margin-right: 12px;\\\"],[24,\\\"title\\\",\\\"Edit Prescribe Medicine\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,1],[33,2],[33,3],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,5],[33,4,[\\\"0\\\",\\\"prescribing_doc_name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Medicine Edit\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,4]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,2,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,9],[[30,2,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,2,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                            \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,10],[[30,2,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,2,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,2,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,9],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,\\\" \\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                            \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text capitalize\\\"],[12],[1,[28,[35,11],[[30,2,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[1,[28,[35,12],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_category_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"completed_date_time\\\"]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[1,[30,2,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,13],[[[1,\\\"\\\\n                                            \\\"],[1,[34,13]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"title\\\",[29,[[36,14]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            0.00\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[33,15],\\\"O\\\"],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-md-12 spvb\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[15,0,[29,[[52,[28,[37,9],[[33,15],\\\"O\\\"],null],\\\"badge badge-warning address-flash address-badge\\\"]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"The patient will acquire medicines from outside.\\\"],[12],[1,\\\"\\\\n                                The patient will acquire medicines from outside.\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],null,[[\\\"errors_list\\\"],[[33,17]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,18],[[33,19]],[[\\\"PrescribePatient\\\",\\\"pe\\\"],[[33,4],[33,15]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"1\\\",[33,20,[\\\"report_advice\\\"]]],null],\\\"true\\\"]],[14,3,\\\"report_advice\\\"],[14,1,\\\"report_advice\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"print_case\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"print_case\\\",[33,20,[\\\"print_case\\\"]]],null],\\\"true\\\"]],[14,3,\\\"print_case\\\"],[14,1,\\\"print_case\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Print Case X \\\"],[13],[1,\\\" \\\\n                                         \\\"],[10,\\\"input\\\"],[14,1,\\\"print_case_val\\\"],[14,3,\\\"print_case_val\\\"],[14,5,\\\"width:20%;\\\"],[15,\\\"oninput\\\",[28,[37,1],[[30,0],\\\"checkMaxPrintCopy\\\"],null]],[14,\\\"min\\\",\\\"1\\\"],[14,\\\"max\\\",\\\"9\\\"],[14,0,\\\"onlynumeric\\\"],[15,2,[29,[[33,20,[\\\"print_case_val\\\"]]]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"clinic_used\\\",[33,20,[\\\"clinic_used\\\"]]],null],\\\"true\\\"]],[14,2,\\\"clinic_used\\\"],[14,3,\\\"clinic_used\\\"],[14,1,\\\"clinic_used\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" For Clinic Use Only \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"PE\\\",[33,21]],null],\\\"true\\\"]],[14,3,\\\"prescriptionemail\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Prescription Email \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"domestic\\\",[33,20,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"domestic\\\"],[14,3,\\\"print_option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"international\\\",[33,20,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"international\\\"],[14,3,\\\"print_option\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[30,4]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"evlp_label\\\",[33,20,[\\\"evlp_label\\\"]]],null],\\\"true\\\"]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"domst_cons_presc\\\",[33,20,[\\\"domst_cons_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"inc_presc\\\",[33,20,[\\\"inc_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"cons_presc\\\",[33,20,[\\\"cons_presc\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,22]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"add_label\\\",[33,20,[\\\"add_label\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,22]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"receipt\\\",[33,20,[\\\"receipt\\\"]]],null],\\\"true\\\"]],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"medical_certificate\\\",[33,20,[\\\"medical_certificate\\\"]]],null],\\\"true\\\"]],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,2,\\\"med_label\\\"],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"med_label\\\",[33,20,[\\\"med_label\\\"]]],null],\\\"true\\\"]],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,23],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"80\\\",\\\"3\\\",\\\"precribe_pharmacy_instruction\\\",\\\"precribe_pharmacy_instruction\\\",\\\"form-control precribe_pharmacy_instruction\\\",\\\"Enter Instructions/Notes\\\",[33,24],\\\"readonly\\\"]]]],[1,\\\"\\\\n                                \\\"],[1,[28,[35,25],null,[[\\\"pharmacyHistory\\\"],[[33,26]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,27,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,28],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,29],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,30]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[12],[1,\\\" \\\"],[1,[34,31]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove Discount\\\"],[24,0,\\\"btn btn-danger btn-sm med_remove_button\\\"],[16,\\\"data-discountId\\\",[29,[[36,29]]]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,6],[33,29]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,32],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed discount\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,30]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,30]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"percentage perremove\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,32]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,29],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,33]]]],[15,\\\"data-reason\\\",[29,[[36,34]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,35],[[33,30],[33,31]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,33]]]],[15,\\\"data-reason\\\",[29,[[36,34]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,35],[[33,30],[33,32]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[33,32],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,14]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,9],[[33,38],\\\"0\\\"],null],[28,[37,9],[[33,39],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,13]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,39]],[13],[1,\\\"\\\\n\\\"],[41,[33,40],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm cons_remove_button\\\"],[24,\\\"title\\\",\\\"Remove Consultancy\\\"],[16,\\\"data-billingId\\\",[29,[[36,40]]]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,8]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,37],[[28,[37,9],[[33,38],\\\"0\\\"],null],[28,[37,9],[[33,39],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,13]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,38]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,38],\\\"0\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,13]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,38]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,38],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis discount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,13]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,38]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,9],[[33,38],\\\"0\\\"],null],[28,[37,9],[[33,39],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,35],[[33,43],[33,38]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,44],[[28,[37,9],[[33,38],\\\"0\\\"],null],[28,[37,9],[[33,39],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,35],[[33,13],[33,38]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,9],[[33,38],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,41]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,42]]]],[15,2,[29,[[28,[37,35],[[33,13],[33,38]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[33,38],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,9]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,45]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[33,45],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"pendingDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,46]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,10,[\\\"charge_code\\\"]]]]],[15,\\\"data-shipping-related\\\",[29,[[30,10,[\\\"shipping_related\\\"]]]]],[15,2,[29,[[30,10,[\\\"charge_cost\\\"]]]]],[12],[1,[30,10,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,11]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,47]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,12,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,[30,12,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control box-charge twodecimal charge-total\\\"],[16,\\\"data-chargeId\\\",[29,[[30,12,[\\\"id\\\"]]]]],[16,\\\"data-shipping-related\\\",[29,[[30,12,[\\\"shipping\\\"]]]]],[16,\\\"data-label\\\",[29,[[30,12,[\\\"charge_name\\\"]]]]],[16,\\\"data-charge_code\\\",[29,[[30,12,[\\\"charge_code\\\"]]]]],[16,1,[29,[[30,12,[\\\"charge_code\\\"]]]]],[16,2,[29,[[30,12,[\\\"charge_amount\\\"]]]]],[24,4,\\\"text\\\"],[4,[38,48],[\\\"keyup\\\",[30,0,[\\\"onChangesAddCharge\\\"]]],null],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,13],[30,12,[\\\"id\\\"]],[30,12,[\\\"charge_amount\\\"]],[30,12,[\\\"charge_name\\\"]],[30,12,[\\\"billing_id\\\"]],[30,12,[\\\"appointment_id\\\"]],[30,12,[\\\"shipping\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Comment as 7/07/2022 by shubh Tiwari \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"Payment Gateway Charge \\\"],[10,1],[12],[10,\\\"strong\\\"],[12],[1,\\\"%\\\"],[13],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"pagepayment_gateway_checkbox\\\"],[14,0,\\\"pagepayment_gateway_checkbox inputreadonly\\\"],[15,\\\"onchange\\\",[28,[37,1],[[30,0],[28,[37,1],[[30,0],[30,14],\\\"default\\\",[33,3],[33,2]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,\\\"checked\\\",[52,[28,[37,9],[\\\"checked\\\",[33,49]],null],\\\"true\\\"]],[14,5,\\\"margin-left:12px !important;\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[11,\\\"input\\\"],[24,\\\"data-pgpercentage\\\",\\\"Payment Gateway Charge\\\"],[16,\\\"data-current-pg-amount\\\",[29,[[36,50]]]],[24,3,\\\"pagepayment_gateway_charge\\\"],[24,1,\\\"pagepayment_gateway_charge\\\"],[16,0,[29,[\\\"twodecimal form-control pagepayment_gateway_charge \\\",[36,51]]]],[16,2,[29,[[36,52]]]],[24,4,\\\"text\\\"],[4,[38,48],[\\\"focusout\\\",[30,0,[\\\"onKeyupPGCalculation\\\"]]],null],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\" <div class=\\\\\\\"col-sm-3 pageadvancedpg_amount\\\\\\\">\\\\n{{#if PGChargePercentage}}\\\\n                                            <span id=\\\\\\\"pageadvancedpg_amount\\\\\\\">PG Amount <i class=\\\\\\\"fas fa-rupee-sign\\\\\\\"></i> {{pgAmountText}}</span>\\\\n                                        {{/if}}                                    </div> \\\"],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,53],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"medicine_default_pickup\\\",\\\"billed_listing_id\\\",\\\"pickup_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"medicin_eprepared\\\",\\\"address_mismatch\\\"],[[33,54],[33,55],[33,56],[33,57],[33,15],[33,58],[33,4,[\\\"0\\\",\\\"prescribing_doc_name\\\"]],[33,59],[33,60],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,2],[33,61],[33,62],[33,63],[33,64]]]]],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,44],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,44],[[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,44],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[3,\\\" remove PGAmount variable because when pg is apply then original amount value change after that we change pg charge then pg apply on total = total+pg written by shubh tiwari as on 18 April 2022 \\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,\\\"data-onlyservice-amount\\\",[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],0,0,0,0]]]]]],[15,\\\"data-original_amount\\\",[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],0,0,0,0]]]]]],[15,2,[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],0,0,0,0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,3]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"page\\\"],[15,2,[29,[[36,58]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"page_name\\\"],[14,3,\\\"page_name\\\"],[15,2,[29,[[36,58]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"gateway_amount\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,2]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"OldRegistrationNo\\\"],[14,3,\\\"OldRegistrationNo\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"FirstName\\\"],[14,3,\\\"FirstName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"first_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"MiddleName\\\"],[14,3,\\\"MiddleName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"middle_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"LastName\\\"],[14,3,\\\"LastName\\\"],[15,2,[29,[[33,4,[\\\"0\\\",\\\"last_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[36,69]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[36,70]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"PrescribingDoctor\\\"],[14,3,\\\"PrescribingDoctor\\\"],[15,2,[29,[[36,71]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"doctor_fees\\\"],[14,3,\\\"doctor_fees\\\"],[15,2,[29,[[36,13]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,72]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,73]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[33,66],\\\"0.00\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,44],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null]],null],[[[1,\\\" (B) \\\"]],[]],null],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly received_amount\\\"],[15,\\\"data-paid-amount\\\",[29,[[36,66]]]],[15,2,[29,[[36,66]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[10,1],[14,5,\\\"margin-left:12px; font-weight:500\\\"],[12],[1,[34,74]],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,36],[[33,65],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous PG Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[1,\\\" (C)\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pg_amount inputreadonly\\\"],[14,1,\\\"pg_amount\\\"],[15,\\\"data-pg-amount\\\",[29,[[36,65]]]],[15,2,[29,[[36,65]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,37],[[28,[37,36],[[33,52],\\\"\\\"],null],[28,[37,36],[[33,52],\\\"0\\\"],null]],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current PG Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[1,\\\" \\\"],[41,[28,[37,37],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(D)\\\"],[1,\\\" \\\"]],[]],[[[41,[28,[37,37],[[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]],[[[1,\\\" \\\"],[1,\\\"(B)\\\"],[1,\\\" \\\"]],[]]]],[]]],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pgAmount inputreadonly\\\"],[14,1,\\\"pgAmount\\\"],[15,\\\"data-pgAmount\\\",[29,[[36,50]]]],[15,2,[29,[[36,50]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[28,[37,36],[[33,65],\\\"0\\\"],null],[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,36],[[33,50],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,75]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,36],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,36],[[33,50],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,76]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[28,[37,36],[[33,50],\\\"0\\\"],null],[28,[37,9],[[33,66],\\\"0.00\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,36],[[33,50],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,77]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,36],[[33,65],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,78]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_dues inputreadonly\\\"],[15,\\\"data-service-total-due\\\",[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],[33,66],[33,65],0,0]]]]]],[15,\\\"data-total-dues\\\",[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],[33,66],[33,65],[33,50],0]]]]]],[15,2,[29,[[28,[37,67],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],[33,66],[33,65],[33,50],0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left:12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[1,[28,[35,79],[[33,30]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\"],[[33,32],[33,13],[33,38],[33,45],[33,68],[33,29],[33,31],[33,39],[33,43],[33,66],[33,65],[33,50]]]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineobj\\\"],[14,1,\\\"medicineobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patientobj\\\"],[14,1,\\\"patientobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-block ajaxButtonHide\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,15],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,4,[\\\"0\\\",\\\"prescribing_doc_name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Payment\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Added code Shubh Tiwari 19 July 2023\\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[33,80],[33,81]],null],[[[1,\\\"                                             \\\"],[10,\\\"label\\\"],[12],[1,\\\"Last Prescription Edited By :- \\\"],[13],[1,\\\" \\\"],[1,[34,80]],[1,\\\" , \\\"],[1,[28,[35,82],[[33,81]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Previous due details list popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,83],null,[[\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"visiting_id\\\",\\\"patient_id\\\",\\\"billing_id\\\"],[[33,84],[33,85],[33,86],[33,2],[33,4,[\\\"0\\\",\\\"patient_id\\\"]],[33,3]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Discount reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"discountspopup\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,16]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Medicine Discount Reason\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"discounterror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"discountForm\\\"],[4,[38,1],[[30,0],[30,17]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,87],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,16]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Consultancy waived reason popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"consultancydiscountpopup\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Consultancy Waive Reason\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"conwaveerror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"conwaiveddiscountForm\\\"],[4,[38,1],[[30,0],[30,18]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"consultancy_discount_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,87],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"consultancy_discount_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Charge popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"OtherCharge\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Other Charge\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"other_chargeForm\\\"],[4,[38,1],[[30,0],[30,19]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"otherinstructionid\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"chargeerror\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_name\\\"],[12],[1,\\\"Charge Name: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,87],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_name\\\",\\\"form-control\\\",\\\"Enter Charge Name\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_code\\\"],[12],[1,\\\"Charge Code: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,87],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_code\\\",\\\"form-control\\\",\\\"Enter Charge Code\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_amount\\\"],[12],[1,\\\"Charge Amount: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,87],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"charge_amount\\\",\\\"form-control onlynumeric\\\",\\\"Enter Charge Amount\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@medicineEditPopup\\\",\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"flash\\\",\\\"@removeMedicineDiscount\\\",\\\"@applyDiscountCharge\\\",\\\"@removeWaiveConsutancy\\\",\\\"@consultancyWave\\\",\\\"clist\\\",\\\"@addCharge\\\",\\\"charge\\\",\\\"@removeAddedOtherCharge\\\",\\\"@applyPGCharge\\\",\\\"@openPaymentPopup\\\",\\\"@clearDisccountinput\\\",\\\"@addDiscountReason\\\",\\\"@consultancyWaivedReason\\\",\\\"@addOtherCharge\\\"],false,[\\\"link-to\\\",\\\"action\\\",\\\"visiting_id\\\",\\\"billing_id\\\",\\\"PrescribePatient\\\",\\\"history_visit_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"booked-from-badge\\\",\\\"doctor_fees\\\",\\\"consultancyFullName\\\",\\\"shiping_pickup\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribe-medicine\\\",\\\"billpatientlist\\\",\\\"print_option\\\",\\\"prescription_email\\\",\\\"print_international\\\",\\\"textarea\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"remove_discount_button\\\",\\\"med_amount\\\",\\\"onthefly_discount\\\",\\\"medd_discount\\\",\\\"medicine_code\\\",\\\"medicine_reason\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"and\\\",\\\"consult_dicount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_remove_button\\\",\\\"consultancy_code\\\",\\\"consultancy_waived_reason\\\",\\\"consultancy_waived_amount\\\",\\\"or\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"on\\\",\\\"PGChargeChecked\\\",\\\"pgAmountText\\\",\\\"PGChargeDisable\\\",\\\"PGChargePercentage\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"page\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"medicin_eprepared\\\",\\\"address_mismatch\\\",\\\"PGamount\\\",\\\"previous_bill_amount\\\",\\\"common-payment-calculation\\\",\\\"previous_total_charge\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"PrescribingDoctor\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"advance_label\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"normalcasepg\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"billpatient-payment-status\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"date-format\\\",\\\"pending-details-list\\\",\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescribe-detail-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescribe-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"n8pTi9Vs\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                         \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,4],[[30,1,[\\\"last_name\\\"]]],null]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"placeholder\\\",\\\"Consultancy\\\"],[15,2,[29,[[36,5]]]],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,6],null,[[\\\"errors_list\\\"],[[33,7]]]]],[1,\\\"\\\\n                \\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"7%\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"25%\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"8%\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"25%\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"5%\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,8],null,[[\\\"billpatientdetails\\\"],[[33,9]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print-option\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,2,\\\"international\\\"],[14,3,\\\"print-option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,3]],null],[12],[1,\\\"Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,4]],null],[12],[1,\\\"Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,5]],null],[12],[1,\\\"Envelope\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,6]],null],[12],[1,\\\"Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],[30,7]],null],[12],[1,\\\"Prescription Cum Receipt\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-offset-1 col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[14,3,\\\"meidicine_cost\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control medicine_discount\\\"],[15,2,[29,[[36,11]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage numeric\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"applyDiscountCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,2,[29,[[36,5]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy_discount\\\"],[15,2,[29,[[36,12]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\" \\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Pending \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[14,2,\\\"100\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-3 col-md-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                 \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,13]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,8,[\\\"charge_code\\\"]]]]],[15,2,[29,[[30,8,[\\\"charge_cost\\\"]]]]],[12],[1,[30,8,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"addCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\" \\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cash\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                           \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Card\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                           \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block\\\"],[14,\\\"data-toggle\\\",\\\"modal\\\"],[14,\\\"data-target\\\",\\\"#cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Debit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3 pull-right\\\"],[12],[1,\\\"\\\\n                                             \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-warning btn-sm\\\",\\\"Edit Prescribe Medicine\\\",\\\"billing.prescribeedit\\\",[28,[37,15],[[33,16],[33,17]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"]],[]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@receipt\\\",\\\"@prescription\\\",\\\"@envelope\\\",\\\"@label\\\",\\\"@prescription_receipt\\\",\\\"clist\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"capitalize\\\",\\\"doctor_fees\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribed-medicine\\\",\\\"billpatientlist\\\",\\\"action\\\",\\\"medd_discount\\\",\\\"consult_dicount\\\",\\\"charge_master_list\\\",\\\"link-to\\\",\\\"array\\\",\\\"appointment_id\\\",\\\"billing_id\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescribe-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescribed-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"1xNOylMO\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered bill-patient\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,4],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase highlight-text\\\"],[12],[41,[30,1,[\\\"appointment_type\\\"]],[[[1,\\\"\\\\n                                            \\\"],[10,\\\"i\\\"],[15,0,[29,[[28,[37,5],[[30,1,[\\\"appointment_type\\\"]]],null],\\\" d-icon-space margin-right-10\\\"]]],[15,\\\"title\\\",[29,[[30,1,[\\\"appointment_type\\\"]]]]],[12],[13],[1,[30,1,[\\\"appointment_type\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,4],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                            \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font margin-right-10\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                            \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"highlight-text capitalize\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,6],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                      \\\"],[1,[28,[35,7],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,1,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,8],[[[1,\\\"\\\\n                                            \\\"],[1,[34,8]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"title\\\",[29,[[36,9]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            0.00\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[33,10],\\\"O\\\"],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[15,0,[29,[[52,[28,[37,4],[[33,10],\\\"O\\\"],null],\\\"badge badge-warning address-flash address-badge\\\"]]]],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"The patient will acquire medicines from outside.\\\"],[12],[1,\\\"\\\\n                                The patient will acquire medicines from outside.\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,11],null,[[\\\"errors_list\\\"],[[33,12]]]]],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,13],[[33,14]],[[\\\"PrescribePatient\\\",\\\"pe\\\"],[[33,2],[33,10]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\" Trigger the modal with a button \\\"],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-reprint cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"1\\\",[33,15,[\\\"report_advice\\\"]]],null],\\\"true\\\"]],[14,3,\\\"report_advice\\\"],[14,1,\\\"report_advice\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Report Advice \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[3,\\\"\\\\n                                    <div class=\\\\\\\"col-md-5\\\\\\\">\\\\n                                        <label> <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cw_print_check\\\\\\\" value=\\\\\\\"print_case\\\\\\\" checked={{if (eq 'print_case' print_option.print_case) 'true'}} name=\\\\\\\"print_case\\\\\\\" id=\\\\\\\"print_case\\\\\\\" /> Print Case X </label>&nbsp;\\\\n                                        &nbsp;<input type=\\\\\\\"number\\\\\\\" id=\\\\\\\"print_case_val\\\\\\\" name=\\\\\\\"print_case_val\\\\\\\" style=\\\\\\\"width:20%;\\\\\\\" oninput={{action 'checkMaxPrintCopy'}} min=\\\\\\\"1\\\\\\\" max=\\\\\\\"9\\\\\\\" class=\\\\\\\"onlynumeric\\\\\\\" value=\\\\\\\"{{print_option.print_case_val}}\\\\\\\">\\\\n                                    </div>\\\\n                                    <div class=\\\\\\\"col-md-4\\\\\\\">\\\\n                                        <label> <input type=\\\\\\\"checkbox\\\\\\\" class=\\\\\\\"cw_print_check\\\\\\\" checked={{if (eq 'clinic_used' print_option.clinic_used) 'true'}} value=\\\\\\\"clinic_used\\\\\\\" name=\\\\\\\"clinic_used\\\\\\\" id=\\\\\\\"clinic_used\\\\\\\" /> For Clinic Use Only </label>\\\\n                                    </div>\\\\n                                    \\\"],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"input\\\"],[14,0,\\\"checkboxinvisible\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"PE\\\",[33,16]],null],\\\"true\\\"]],[14,3,\\\"prescriptionemail\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_domestic\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"domestic\\\",[33,15,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"domestic\\\"],[14,3,\\\"print_option\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[30,3]],null]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"international\\\",[33,15,[\\\"print_option\\\"]]],null],\\\"true\\\"]],[14,2,\\\"international\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[30,3]],null]],[14,3,\\\"print_option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"evlp_label\\\",[33,15,[\\\"evlp_label\\\"]]],null],\\\"true\\\"]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"domst_cons_presc\\\",[33,15,[\\\"domst_cons_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"inc_presc\\\",[33,15,[\\\"inc_presc\\\"]]],null],\\\"true\\\"]],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"cons_presc\\\",[33,15,[\\\"cons_presc\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,18]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"add_label\\\",[33,15,[\\\"add_label\\\"]]],null],\\\"true\\\"]],[15,\\\"checked\\\",[36,18]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"receipt\\\",[33,15,[\\\"receipt\\\"]]],null],\\\"true\\\"]],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"medical_certificate\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"medical_certificate\\\",[33,15,[\\\"medical_certificate\\\"]]],null],\\\"true\\\"]],[14,2,\\\"medical_certificate\\\"],[14,3,\\\"medical_certificate\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medical Certificate\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"med_label\\\",[33,15,[\\\"med_label\\\"]]],null],\\\"true\\\"]],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-10 text-right\\\"],[12],[1,\\\"\\\\n                                        \\\"],[3,\\\"\\\\n                                          This button is used in Previous version of print option, Rahul Khan, 27 sept 2019\\\\n                                           <button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-sm\\\\\\\" data-toggle=\\\\\\\"modal\\\\\\\" data-target=\\\\\\\"#reprint\\\\\\\" {{action @reprintOptions }}>Re-print</button> \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"BilledRePrintButton\\\",[33,20]],null],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success ajaxButtonHide pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,4]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print\\\"],[12],[13],[1,\\\" Re-print\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"textarea\\\"],[14,\\\"cols\\\",\\\"80\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,3,\\\"precribe_pharmacy_instruction\\\"],[14,1,\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"form-control precribe_pharmacy_instruction\\\"],[14,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[41,[33,21],[[[10,\\\"b\\\"],[12],[1,\\\"Instructions/notes:\\\"],[13],[1,\\\" \\\"],[1,[34,21]],[1,\\\" : \\\"],[1,[34,22]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[1,[34,23]],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Visit Instructions/notes\\\"],[13],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,24],null,[[\\\"pharmacyHistory\\\",\\\"visitBillingHistory\\\",\\\"page\\\"],[[33,25],[33,26],[33,27]]]]],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,28,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,29],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"start\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,30],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,31]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[12],[1,\\\" \\\"],[1,[34,32]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Remove Discount\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,6],[33,30]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[33,33],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed discount\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,31]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,31]],[1,\\\", \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"percentage perremove\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,33]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,30],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,34]]]],[15,\\\"data-reason\\\",[29,[[36,35]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,36],[[33,31],[33,32]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,34]]]],[15,\\\"data-reason\\\",[29,[[36,35]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,36],[[33,31],[33,33]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[33,33],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"applyDiscountCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle consultancy-tooltip\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[[36,9]]]],[12],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,4],[[33,39],\\\"0\\\"],null],[28,[37,4],[[33,40],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,8]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,40]],[13],[1,\\\"\\\\n\\\"],[41,[33,41],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,\\\"title\\\",\\\"Remove Consultancy\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,38],[[28,[37,4],[[33,39],\\\"0\\\"],null],[28,[37,4],[[33,40],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,8]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,[34,39]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[33,39],\\\"0\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,8]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[33,39],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"cons_dis discount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,8]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"percentage cons_amount\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,39]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]],null]],[]]],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,4],[[33,39],\\\"0\\\"],null],[28,[37,4],[[33,40],\\\"Waived\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,42]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,43]]]],[15,2,[29,[[28,[37,36],[[33,44],[33,39]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,45],[[28,[37,4],[[33,39],\\\"0\\\"],null],[28,[37,4],[[33,40],\\\"Not Set\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,42]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,43]]]],[15,2,[29,[[28,[37,36],[[33,8],[33,39]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[33,39],\\\"100\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,42]]]],[15,\\\"data-consultancy_reason\\\",[29,[[36,43]]]],[15,2,[29,[[28,[37,36],[[33,8],[33,39]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[33,39],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"consultancyWave\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,46]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[33,46],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"pendingVisitDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,47]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,8,[\\\"charge_code\\\"]]]]],[15,2,[29,[[30,8,[\\\"charge_cost\\\"]]]]],[12],[1,[30,8,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"addCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,48]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,9,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,[30,9,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control box-charge numeric charge-total\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[15,\\\"data-label\\\",[30,9,[\\\"charge_name\\\"]]],[15,\\\"data-charge_code\\\",[30,9,[\\\"charge_code\\\"]]],[15,1,[30,9,[\\\"id\\\"]]],[15,2,[30,9,[\\\"charge_amount\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm chargeremove\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"data-charge_value\\\",\\\"0\\\"],[15,\\\"data-cids\\\",[30,9,[\\\"id\\\"]]],[15,\\\"data-charge\\\",[30,9,[\\\"charge_name\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" {{#if (ifnoteq PGChargePercentage '0.00') }}\\\\n                                    <div class=\\\\\\\"row margin5\\\\\\\">\\\\n                                        <div class=\\\\\\\"col-sm-5\\\\\\\">\\\\n                                            <label>Payment Gateway Charge <span><strong>&#37;</strong></span> <input class=\\\\\\\"pagepayment_gateway_checkbox inputreadonly\\\\\\\" onchange={{action (action @applyPGCharge billing_id visiting_id) value=\\\\\\\"target.checked\\\\\\\"}} type=\\\\\\\"checkbox\\\\\\\" disabled=\\\\\\\"disabled\\\\\\\" checked={{if (eq 'checked' PGChargeChecked) 'true'}} style=\\\\\\\"margin-left:12px !important;\\\\\\\" /></label>\\\\n                                        </div>\\\\n                                        <div class=\\\\\\\"col-sm-4\\\\\\\">\\\\n                                            <input data-pgpercentage=\\\\\\\"Payment Gateway Charge\\\\\\\" disabled=\\\\\\\"disabled\\\\\\\" class=\\\\\\\"twodecimal form-control pagepayment_gateway_charge {{PGChargeDisable}}\\\\\\\" type=\\\\\\\"text\\\\\\\" value=\\\\\\\"{{PGChargePercentage}}\\\\\\\" />\\\\n                                        </div>\\\\n                                    </div>\\\\n                                {{/if}} \\\"],[1,\\\"\\\\n                                \\\"],[1,[28,[35,49],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"medicine_default_pickup\\\",\\\"billed_listing_id\\\",\\\"pickup_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\"],[[33,50],[33,51],[33,52],[33,53],[33,10],[33,27],[33,2,[\\\"0\\\",\\\"prescribing_doc_name\\\"]],[33,54],[33,55],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,56],[33,57],[33,58],[33,59]]]]],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,4],[[33,61],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,61],\\\"0\\\"],null]],null],[[[1,\\\" (A) \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\"  (A) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,38],[[28,[37,37],[[33,63],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (A) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,2,[29,[[28,[37,64],[[33,31]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,33],[33,8],[33,39],[33,46],[33,65],[33,30],[33,32],[33,40],[33,44],0,0,0,0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[36,66]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"page\\\"],[15,2,[29,[[36,27]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[14,3,\\\"visiting_id\\\"],[15,2,[29,[[36,56]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"OldRegistrationNo\\\"],[14,3,\\\"OldRegistrationNo\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"OldRegistrationNo\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"FirstName\\\"],[14,3,\\\"FirstName\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"first_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"MiddleName\\\"],[14,3,\\\"MiddleName\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"middle_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"LastName\\\"],[14,3,\\\"LastName\\\"],[15,2,[29,[[33,2,[\\\"0\\\",\\\"last_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_location\\\"],[15,2,[29,[[36,67]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"pharmacy_location\\\"],[15,2,[29,[[36,68]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"PrescribingDoctor\\\"],[14,3,\\\"PrescribingDoctor\\\"],[15,2,[29,[[36,69]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"doctor_fees\\\"],[14,3,\\\"doctor_fees\\\"],[15,2,[29,[[36,8]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_branch\\\"],[14,3,\\\"prescribe_branch\\\"],[15,2,[29,[[36,70]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"prescribe_shift\\\"],[14,3,\\\"prescribe_shift\\\"],[15,2,[29,[[36,71]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineobj\\\"],[14,1,\\\"medicineobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"patientobj\\\"],[14,1,\\\"patientobj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[33,62],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,45],[[28,[37,37],[[33,63],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,61],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B) \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly received_amount\\\"],[15,\\\"data-paid-amount\\\",[29,[[36,62]]]],[15,2,[29,[[36,62]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,37],[[33,60],\\\"0\\\"],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (C)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,4],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" (B)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total PG Charge \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control gateway_charge inputreadonly\\\"],[14,1,\\\"pg_amount\\\"],[15,\\\"data-pg-amount\\\",[29,[[36,60]]]],[15,2,[29,[[36,60]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,61],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,37],[[33,61],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,72]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,37],[[33,60],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,73]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,4],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,37],[[33,60],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,74]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                 \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,75]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[41,[28,[37,37],[[33,60],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,76]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n                                                \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control current_due inputreadonly\\\"],[15,2,[29,[[28,[37,64],[[33,31]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,33],[33,8],[33,39],[33,46],[33,65],[33,30],[33,32],[33,40],[33,44],[33,62],[33,60],[33,61],0]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[1,[28,[35,77],[[33,31]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"TotalPGAmount\\\"],[[33,33],[33,8],[33,39],[33,46],[33,65],[33,30],[33,32],[33,40],[33,44],[33,62],[33,60]]]]],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"total_received\\\"],[12],[1,[34,78]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"(D)\\\"],[1,\\\" \\\"]],[]],[[[41,[28,[37,38],[[28,[37,4],[[33,60],\\\"0\\\"],null],[28,[37,4],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\" \\\"],[1,\\\"\\\"],[1,\\\" \\\"]],[]],[[[1,\\\" \\\"],[1,\\\"(C)\\\"],[1,\\\" \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4 \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control received_amount inputreadonly secondround\\\"],[15,\\\"data-partialtotal\\\",[29,[[36,63]]]],[15,2,[36,63]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,79],[[33,80],\\\"yes\\\"],null],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,81]]]],[12],[1,\\\" (\\\"],[1,[34,81]],[1,\\\") ...\\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,\\\"title\\\",\\\"Transaction Details\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"visitTransactionDetails\\\",[33,56],[33,66]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,82]]]],[12],[1,\\\" (\\\"],[1,[34,82]],[1,\\\") \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,83]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,38],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,4],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[41,[28,[37,37],[[33,60],\\\"0\\\"],null],[[[1,\\\" \\\"],[1,[34,84]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,45],[[28,[37,37],[[33,60],\\\"0\\\"],null],[28,[37,37],[[33,62],\\\"0\\\"],null]],null],[[[1,\\\"                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,85]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"]],[]]]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_due inputreadonly\\\"],[15,2,[29,[[28,[37,64],[[33,31]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"previous_bill_amount\\\",\\\"PreviousPGAmount\\\",\\\"currentPGAmount\\\",\\\"lastPaidAmount\\\"],[[33,33],[33,8],[33,39],[33,46],[33,65],[33,30],[33,32],[33,40],[33,44],[33,62],[33,60],[33,61],[33,63]]]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"due_payment_status\\\"],[12],[1,[28,[35,86],[[33,31]],[[\\\"medd_discount\\\",\\\"doctor_fees\\\",\\\"consult_dicount\\\",\\\"ped_amount\\\",\\\"previous_total_charge\\\",\\\"remove_discount_button\\\",\\\"onthefly_discount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"TotalPGAmount\\\",\\\"previous_bill_amount\\\",\\\"lastPaidAmount\\\"],[[33,33],[33,8],[33,39],[33,46],[33,65],[33,30],[33,32],[33,40],[33,44],[33,60],[33,62],[33,63]]]]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"BilledPaymentButton\\\",[33,20]],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-block btn-sm payment_nodue ajaxButtonHide\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,10],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,2,[\\\"0\\\",\\\"prescribing_doc_name\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" Payment \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,19],[\\\"BilledEditButton\\\",[33,20]],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-block btn-sm ajaxButtonHide\\\"],[16,\\\"disabled\\\",[36,87]],[24,\\\"title\\\",\\\"Prescribed Edit\\\"],[24,5,\\\"display:none\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,11],[33,56],[33,66],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,88]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,19],[\\\"BilledEditButton\\\",[33,20]],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-block btn-sm ajaxButtonHide\\\"],[16,\\\"disabled\\\",[36,89]],[24,5,\\\"display:none\\\"],[24,\\\"title\\\",\\\"Error Correction\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],[30,12],[33,56],[33,66],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,88]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Error Correction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-block btn-sm ajaxButtonHide\\\"],[24,5,\\\"display:none\\\"],[24,\\\"title\\\",\\\"Transaction History\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"transactionHistory\\\",[33,56],[33,66]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Transaction History\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-1\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[3,\\\" Added code Shubh Tiwari 19 july 2023\\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-7 cw-paddingleft10 float-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[33,90],[33,91]],null],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Last Prescription Edited By :- \\\"],[13],[1,\\\" \\\"],[1,[34,90]],[1,\\\" , \\\"],[1,[28,[35,92],[[33,91]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-sm-7 pull-down\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,93],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By : \\\"],[13],[1,\\\" \\\"],[1,[34,93]],[1,\\\" , \\\"],[1,[28,[35,92],[[33,94]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By : \\\"],[13],[1,\\\" \\\"],[1,[34,95]],[1,\\\" , \\\"],[1,[28,[35,92],[[33,96]],null]],[1,\\\", \\\"],[10,1],[14,0,\\\"prescription_type\\\"],[12],[1,[34,97]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Previous due details list popup html \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,98],null,[[\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\",\\\"visiting_id\\\",\\\"patient_id\\\",\\\"billing_id\\\"],[[33,99],[33,100],[33,101],[33,56],[33,2,[\\\"0\\\",\\\"patient_id\\\"]],[33,66]]]]],[1,\\\"\\\\n\\\"]],[\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\",\\\"flash\\\",\\\"@removeMedicineDiscount\\\",\\\"@removeWaiveConsutancy\\\",\\\"clist\\\",\\\"charge\\\",\\\"@openPaymentPopup\\\",\\\"@medicineEditPopup\\\",\\\"@pastMedicineEditPopup\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"eq\\\",\\\"appointment-type-icon\\\",\\\"capitalize\\\",\\\"booked-from-badge\\\",\\\"doctor_fees\\\",\\\"consultancyFullName\\\",\\\"shiping_pickup\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribed-medicine\\\",\\\"billpatientlist\\\",\\\"print_option\\\",\\\"prescription_email\\\",\\\"action\\\",\\\"print_international\\\",\\\"check-permission\\\",\\\"user_permission\\\",\\\"pharmacy_instruction\\\",\\\"without_prescription_reason\\\",\\\"pharmacy_message\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"visitBillingHistory\\\",\\\"page\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"remove_discount_button\\\",\\\"med_amount\\\",\\\"onthefly_discount\\\",\\\"medd_discount\\\",\\\"medicine_code\\\",\\\"medicine_reason\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"and\\\",\\\"consult_dicount\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_remove_button\\\",\\\"consultancy_code\\\",\\\"consultancy_waived_reason\\\",\\\"consultancy_waived_amount\\\",\\\"or\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"visiting_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\",\\\"PGamount\\\",\\\"pgAmountText\\\",\\\"lastPreviousPaidAmount\\\",\\\"lastPaidAmount\\\",\\\"common-payment-calculation\\\",\\\"previous_total_charge\\\",\\\"billing_id\\\",\\\"billing_location\\\",\\\"pharmacy_location\\\",\\\"PrescribingDoctor\\\",\\\"prescribe_branch\\\",\\\"prescribe_shift\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"normalcasepg\\\",\\\"normalAminusB\\\",\\\"totalduelabel_with_current_pg\\\",\\\"billed-current-due-status\\\",\\\"total_received_label\\\",\\\"ifeg\\\",\\\"more_mode\\\",\\\"partial_transaction_mode\\\",\\\"transaction_mode\\\",\\\"detailstotalduelabelwithBothPG\\\",\\\"normalpgcurentdue\\\",\\\"normalAminusBminusC\\\",\\\"billed-payment-status\\\",\\\"editEnableButton\\\",\\\"history_visit_id\\\",\\\"visitEdit\\\",\\\"last_prescription_edit_by\\\",\\\"last_prescription_edit_date\\\",\\\"date-format\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"direct_biller_name\\\",\\\"direct_biller_time\\\",\\\"prescription_type\\\",\\\"pending-details-list\\\",\\\"Pendingdetailslist\\\",\\\"page_no\\\",\\\"no_of_pages\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescribed-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescription-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"qZHlkehs\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Prescriptions\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right marginbottom15\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                   \\\"],[3,\\\"  {{#link-to \\\\\\\"billing.list\\\\\\\" class=\\\\\\\"btn btn-warning btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\"}}<i class=\\\\\\\"fa fa-arrow-left\\\\\\\"></i> Back {{/link-to}}\\\\n                  <!--  {{#link-to \\\\\\\"billing.prescribeedit\\\\\\\" visiting_id billing_id PrescribePatient.[0].patient_id class=\\\\\\\"btn btn-success btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\" title=\\\\\\\"Edit Prescribe Medicine\\\\\\\"}} <i class=\\\\\\\"fa fa-pencil-square-o\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\"></i> Medicine Edit {{/link-to}}\\\"],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,5],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,5],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,5],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,6],[[[1,\\\"\\\\n                                                \\\"],[1,[34,6]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                0.00\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"errors_list\\\"],[[33,8]]]]],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,9],null,[[\\\"billpatientdetails\\\"],[[33,10]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\" Trigger the modal with a button \\\"],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-reprint cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_domestic\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print-option\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,3,\\\"print-option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,11]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                     \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,12]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"  \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,12]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"col-md-10 text-right\\\"],[12],[1,\\\"\\\\n                                      \\\"],[3,\\\"\\\\n                                          This button is used in Previous version of print option, Rahul Khan, 27 sept 2019\\\\n                                           <button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-sm\\\\\\\" data-toggle=\\\\\\\"modal\\\\\\\" data-target=\\\\\\\"#reprint\\\\\\\" {{action @reprintOptions }}>Re-print</button> \\\"],[1,\\\"\\\\n                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,4]],null],[12],[1,\\\"Re-print\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"textarea\\\"],[14,\\\"cols\\\",\\\"80\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,3,\\\"precribe_pharmacy_instruction\\\"],[14,1,\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"form-control precribe_pharmacy_instruction\\\"],[14,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,\\\" \\\"],[41,[33,13],[[[1,\\\" \\\"],[1,[34,13]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[1,[34,14]],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,15,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,16],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                 \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,17],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,18]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\" \\\"],[1,[34,17]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,18]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage perremove onthefly_per\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,19]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"remove_button\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,17],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,20]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,21],[[33,18],[33,17]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,20]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,21],[[33,18],[33,19]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,17],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"applyDiscountCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,23],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis discount 11\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,6]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage cons_amount 11\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,23]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,6],[[[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,6]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n                                                             \\\"],[10,1],[14,0,\\\"const_remove_button\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[12],[1,\\\" 0.00 \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,23],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,24]]]],[15,2,[29,[[28,[37,21],[[33,6],[33,23]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,24]]]],[15,2,[29,[[28,[37,21],[[33,6],[33,25]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,23],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"consultancyWave\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,26]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,26],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"pendingVisitDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                 \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,27]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,2,[29,[[30,6,[\\\"charge_cost\\\"]]]]],[12],[1,[30,6,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"addCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,28]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,7,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                     \\\"],[10,\\\"label\\\"],[12],[1,[30,7,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control box-charge numeric charge-total\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[15,\\\"data-label\\\",[30,7,[\\\"charge_name\\\"]]],[15,\\\"data-charge_code\\\",[30,7,[\\\"charge_code\\\"]]],[15,1,[30,7,[\\\"id\\\"]]],[15,2,[30,7,[\\\"charge_amount\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm chargeremove\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"data-charge_value\\\",\\\"0\\\"],[15,\\\"data-cids\\\",[30,7,[\\\"id\\\"]]],[15,\\\"data-charge\\\",[30,7,[\\\"charge_name\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,2,[29,[[28,[37,29],[[33,18],[33,17],[33,6],[33,23]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[36,30]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[15,2,[29,[[36,31]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[[33,32],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Bill Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly\\\"],[15,2,[29,[[36,32]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control current_due inputreadonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                               \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"refund\\\"],[12],[1,\\\"Total Received \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4 \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control received_amount inputreadonly\\\"],[15,2,[36,33]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[[33,35],\\\"yes\\\"],null],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,36]]]],[12],[1,\\\" (\\\"],[1,[34,36]],[1,\\\") ...\\\"],[13],[1,\\\"\\\\n                                               \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info visitTransactionDetails\\\"],[15,\\\"data-visit\\\",[29,[[36,31]]]],[15,\\\"data-billing\\\",[29,[[36,30]]]],[14,\\\"title\\\",\\\"Transaction Details\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,37]]]],[12],[1,\\\" (\\\"],[1,[34,37]],[1,\\\") \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_due inputreadonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"due_payment_status\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" Payment \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-8 pull-right\\\"],[12],[1,\\\"\\\\n                                             \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By: \\\"],[13],[1,\\\"  \\\"],[1,[34,38]],[1,\\\" , \\\"],[1,[34,39]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                      \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade cware-billing-preview\\\"],[14,1,\\\"pendingdetails\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Patient Pending Due History\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-12 padding0px5px\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pendingdetail\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Total Due Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Received Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Credit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Debit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Status\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Comments\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,40]],null]],null],null,[[[1,\\\"                             \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,41],null,[[\\\"date\\\"],[[30,8,[\\\"transaction_time\\\"]]]]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"total_due_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"recieved_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"credit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"debit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"transaction_status\\\"]]],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"remark\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\"-This is the model used for Re-print Options  \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"reprint\\\"],[14,0,\\\"modal fade\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Re-Print Options\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,0,\\\"print_domestic\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,11]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"Domestic \\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_vial\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Vials \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_envelope\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Envelope \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_receipt\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Receipt \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_presc\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"address_label\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Address Label \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"envelope_label\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Envelope Label \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,12]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"International \\\"],[13],[13],[1,\\\"\\\\n                             \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_vial\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Vial \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_envelope\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Envelope \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_presc\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Receipt & Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row text-right cw-margintop25\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Back\\\"],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,4]],null],[12],[1,\\\"Print and Close\\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\",\\\"flash\\\",\\\"clist\\\",\\\"charge\\\",\\\"pdetail\\\"],false,[\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"capitalize\\\",\\\"doctor_fees\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribed-medicine\\\",\\\"billpatientlist\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy_message\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"normal_med_dis\\\",\\\"medicine_code\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"consult_dicount\\\",\\\"consultancy_code\\\",\\\"normal_consultancy_dis\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"sum\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"previous_bill_paid_amount\\\",\\\"visitTotalReceived\\\",\\\"ifeg\\\",\\\"more_mode\\\",\\\"partial_transaction_mode\\\",\\\"transaction_mode\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"Pendingdetailslist\\\",\\\"format-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescription-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/prescription\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"lk8ebUoE\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionSection\\\",[33,2]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Prescription\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"prescribedatedoctor clearpresription_code\\\"],[12],[1,\\\"\\\\n                        (\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"visit_date\\\"]],[[[1,\\\"                            \\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"visit_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[1,[28,[35,4],[[33,3,[\\\"0\\\",\\\"creation_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]],[[[1,\\\"                            , \\\"],[1,[33,3,[\\\"0\\\",\\\"prescribe_doctor\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]],[[[1,\\\"                            , \\\"],[10,1],[14,0,\\\"visit_mode\\\"],[12],[1,[33,3,[\\\"0\\\",\\\"visit_type\\\",\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]],[[[1,\\\"                            , \\\"],[10,1],[14,0,\\\"prescribed_branch\\\"],[12],[1,[33,3,[\\\"0\\\",\\\"prescribed_branch\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        )\\\\n                    \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,5],[[33,6],\\\"Outside\\\"],null],[[[1,\\\"        \\\"],[10,0],[15,0,[29,[[52,[33,3],\\\"col-md-3 pull-left\\\",\\\"col-md-6 pull-left\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge badge-warning address-flash address-badge\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"The patient will acquire medicines from outside.\\\"],[12],[1,\\\"\\\\n            The patient will acquire medicines from outside.\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"col-md-2 pull-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"VisitHistoryButton\\\",[33,2]],null],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm btn2 float-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,1],[33,8],\\\"prescription\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-history\\\"],[12],[13],[1,\\\" Import Prescription\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[14,5,\\\"margin-top: 12px; margin-bottom: 12px;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"RemoveSelectedButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"MixButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"UnmixButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row ml-2 float-left\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ComboPrescriptionButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\"\\\\n                Combo Prescr.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"SortMedicineButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Med\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ResetSerialNoButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[12],[13],[1,\\\" Reset S. No.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ClearPrescriptionButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Clear Prescription\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"ClearPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Clear Prescr.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"FactorZero\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-left ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionAddButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm add-prescription-medicine b-alignment float-left ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,3]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency_form\\\"],[14,1,\\\"medi_form_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,11,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,12],null,[[\\\"flash\\\"],[[30,4]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[10,0],[14,1,\\\"visitmessage\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescribeMedicine\\\",[33,2]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"precribetable-data\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[16,1,[29,[\\\"cwPrescribeForm\\\",[36,13]]]],[4,[38,7],[[30,0],[30,5]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"filterheight\\\"],[14,1,\\\"filterheight\\\"],[15,2,[29,[[36,14]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"filterweight\\\"],[14,1,\\\"filterweight\\\"],[15,2,[29,[[36,15]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"filterbodytemp\\\"],[14,1,\\\"filterbodytemp\\\"],[15,2,[29,[[36,16]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,8]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,13]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[29,[[36,17]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"billing_id\\\"],[15,2,[29,[[36,18]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"read_message\\\"],[15,2,[29,[[36,19]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"page\\\"],[14,1,\\\"prescribeedit\\\"],[15,2,[29,[[36,20]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,3,\\\"prescriptionedit\\\"],[14,1,\\\"prescriptionedit\\\"],[15,2,[29,[[36,21]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"previous_other_charge\\\"],[14,1,\\\"previous_other_charge\\\"],[15,2,[29,[[36,22]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"importvisitid\\\"],[14,1,\\\"importvisitid\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],null,[[\\\"errors_list\\\"],[[33,24]]]]],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"cware-scroll-table icpatten-billing-prescribe\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"check_all\\\"],[14,1,\\\"checkAll\\\"],[14,0,\\\"checkAll\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[33,25],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head a\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,26],[[33,25],[33,27],[33,6]],null]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,28],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover b\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,29],[[33,28],[33,27],[33,6]],null]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,3],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover c\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,30],[[33,3],[33,27],[33,6]],null]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"loader\\\"],[14,0,\\\"loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head d\\\"],[14,1,\\\"prescriptionmedicine\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-1\\\"],[14,\\\"data-order\\\",\\\"1\\\"],[14,0,\\\"tableRow previousRow\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,1,\\\"checkboxid-1\\\"],[14,0,\\\"geometry\\\"],[14,\\\"data-id\\\",\\\"1\\\"],[14,3,\\\"check\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control srno-1 srnoItem \\\"],[14,\\\"minlength\\\",\\\"1\\\"],[14,\\\"maxlength\\\",\\\"4\\\"],[14,1,\\\"srno-1\\\"],[14,3,\\\"srnoItem[1]\\\"],[14,2,\\\"1\\\"],[14,\\\"data-uniqueserial\\\",\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,24,[\\\"srnoItem\\\"]]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[14,0,\\\"cw-search-box\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"medicineItem[1]\\\"],[14,0,\\\"form-control prescribeinput dosage-1 medicineItem\\\"],[14,1,\\\"medicine_name-1\\\"],[14,\\\"medicine_status\\\",\\\"notset\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,\\\"placeholder\\\",\\\"Type min 3 char to search\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_type[1]\\\"],[14,1,\\\"medicine_type-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_id[1]\\\"],[14,1,\\\"medicine_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,2],[14,1,\\\"results1\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"potencyItem[1]\\\"],[14,0,\\\"form-control potency-1 potencyItem\\\"],[14,1,\\\"potency-1\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"potency_id[1]\\\"],[14,1,\\\"potency_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"dilutionItem[1]\\\"],[14,0,\\\"form-control dilution-1 dilutionItem\\\"],[14,1,\\\"dilution-1\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"dilution_id[1]\\\"],[14,1,\\\"dilution_id-1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"select\\\"],[14,3,\\\"formItem[1]\\\"],[14,0,\\\"form-control slectform-1 formItem\\\"],[14,1,\\\"prescribeform-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"factorItem[1]\\\"],[14,0,\\\"form-control factor-1 factorItem onlynumeric\\\"],[14,1,\\\"factor-1\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,3,\\\"medicineVial[1]\\\"],[14,0,\\\"form-control medicinevial-1 medicinevialItem onlynumeric\\\"],[14,1,\\\"medicinevial-1\\\"],[14,2,\\\"1\\\"],[14,4,\\\"text\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"instructionItem[1]\\\"],[14,0,\\\"form-control instructionItem cwareinstruction-1 iother-1\\\"],[14,1,\\\"instruction-1\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,27]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[14,0,\\\"editable-1\\\"],[15,2,[29,[[30,6,[\\\"instruction_name\\\"]]]]],[12],[1,\\\"\\\\n                                                        \\\"],[1,[30,6,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,1,\\\"edit_instruction-1\\\"],[14,3,\\\"instruction[1]\\\"],[14,0,\\\"editOption-1 inst_other\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"bottom\\\"],[14,\\\"data-original-title\\\",\\\"\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"]],[]]]],[]]]],[]]],[1,\\\"                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tr\\\"],[14,1,\\\"id-l\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"check_all\\\"],[14,1,\\\"checkAll\\\"],[14,0,\\\"checkAll\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"RemoveSelectedButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm delete-row float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[1,\\\" Remove Selected\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"MixButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm cw-Medicine float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fab fa-mixcloud\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Mix\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"UnmixButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default btn-sm undo-delete-row ml-2 float-left\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Unmix\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ComboPrescriptionButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription float-left ml-2\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\" Combo Prescr.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"SortMedicineButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Sort Medicine by Serial Number\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"sortMedicine\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-sort\\\"],[12],[13],[1,\\\" Sort Med\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ResetSerialNoButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Reset Serial No\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"ResetSerialNo\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[12],[13],[1,\\\" Reset S. No.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"ClearPrescriptionButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm float-left ml-2\\\"],[24,\\\"title\\\",\\\"Clear Prescription\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"ClearPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Clear Prescr.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"FactorZero\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm float-left ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-regular fa-vial\\\"],[12],[13],[1,\\\" Factor Zero\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionAddButton\\\",[33,2]],null],[[[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm b-alignment float-left ml-2\\\"],[24,\\\"title\\\",\\\"Add more medicine\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,3]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                                 \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency\\\"],[14,1,\\\"medi_potn_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"input\\\"],[14,3,\\\"medicine_potency_form\\\"],[14,1,\\\"medi_form_combo\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[14,5,\\\"margin-top: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,31],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Edit Reason:\\\"],[13],[1,\\\"\\\\n                                        \\\"],[1,[34,31]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionEditButton\\\",[33,2]],null],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"apply_reasons\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"reasons_show\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionEditButton\\\",[33,2]],null],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm apply_reasons_edit\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,7]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row vital-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionSortCheckbox\\\",[33,2]],null],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[14,0,\\\"sort capitalize sort-label\\\"],[12],[1,\\\"Do NOT sort medicines by serial number when saving    \\\"],[10,\\\"input\\\"],[14,1,\\\"sort-serial\\\"],[14,0,\\\"sort-serial\\\"],[14,2,\\\"sort_serial\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"PrescriptionInstructionText\\\",[33,2]],null],[[[1,\\\"                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"col-xs-2 text-right status-label capitalize\\\"],[12],[1,\\\"Instructions/Notes   \\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,32],[[[1,\\\"                                \\\"],[11,\\\"textarea\\\"],[24,\\\"cols\\\",\\\"80\\\"],[24,\\\"rows\\\",\\\"3\\\"],[16,\\\"data-appointment\\\",[29,[[36,13]]]],[24,3,\\\"precribe_pharmacy_instruction\\\"],[24,1,\\\"precribe_pharmacy_instruction\\\"],[24,0,\\\"form-control precribe_pharmacy_instruction\\\"],[24,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[16,2,[29,[[36,32]]]],[4,[38,33],[\\\"change\\\",[30,0,[\\\"onRealTimePrescriptionNoteChanges\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[11,\\\"textarea\\\"],[24,\\\"cols\\\",\\\"80\\\"],[24,\\\"rows\\\",\\\"3\\\"],[16,\\\"data-appointment\\\",[29,[[36,13]]]],[24,3,\\\"precribe_pharmacy_instruction\\\"],[24,1,\\\"precribe_pharmacy_instruction\\\"],[24,0,\\\"form-control precribe_pharmacy_instruction\\\"],[24,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[16,2,[29,[[36,34]]]],[4,[38,33],[\\\"change\\\",[30,0,[\\\"onRealTimePrescriptionNoteChanges\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[1,[28,[35,35],null,[[\\\"pharmacyHistory\\\"],[[33,36]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row row-space vital-table\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12 b-pr-btn\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"SaveAndPreviewButton\\\",[33,2]],null],[[[1,\\\"                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-sm float-right ml-2 ajaxButtonHide\\\"],[14,\\\"title\\\",\\\"Save & Preview\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-save icon-space\\\"],[12],[13],[1,\\\" Save & Preview \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,37],[[[41,[28,[37,1],[\\\"CompleteCaseTakenButton\\\",[33,2]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm float-right ajaxButtonHide\\\"],[16,0,[29,[\\\"casetaken\\\",[33,37,[\\\"patient_id\\\"]]]]],[24,\\\"title\\\",\\\"Case taken\\\"],[16,\\\"data-reassign\\\",[33,37,[\\\"reassigned\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],[30,8],[33,37,[\\\"reassigned\\\"]],[33,37,[\\\"id\\\"]],[33,37,[\\\"booked_doctor\\\"]],1,[33,38],[33,37,[\\\"patient_id\\\"]],[33,37,[\\\"appointment_id\\\"]],\\\"icppage\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Complete Case Taking\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@filterVisitHistory\\\",\\\"@factorZero\\\",\\\"@addPrescriptionMedicine\\\",\\\"flash\\\",\\\"@billingDataSubmit\\\",\\\"instlist\\\",\\\"@reasonEdit\\\",\\\"@reAssign\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"last_visit_history\\\",\\\"last-visit-date-format\\\",\\\"eq\\\",\\\"pe\\\",\\\"action\\\",\\\"patient_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"appointment_id\\\",\\\"height_unit\\\",\\\"weight_unit\\\",\\\"body_temp_unit\\\",\\\"logged_id\\\",\\\"prescription_billing_id\\\",\\\"read_message\\\",\\\"page_name\\\",\\\"edit_tablist\\\",\\\"previous_edit_page_visit_charges\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"temp_billpatient\\\",\\\"icpattend-tempprescribe-medicine\\\",\\\"instruction\\\",\\\"billpatient\\\",\\\"icpattend-prescribe-medicine\\\",\\\"last-visit-list\\\",\\\"medicine_reason\\\",\\\"instruction_note\\\",\\\"on\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy-history-component\\\",\\\"pharmacyHistory\\\",\\\"current_doc_appointments\\\",\\\"doc_id\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/prescription.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/presigned-image\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3Eq7BXx8\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1,[\\\"length\\\"]],1],null],[[[10,3],[14,6,\\\"#\\\"],[14,0,\\\"pop\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"presignedUrl\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"thumbnail-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"presignedUrl\\\"]]],[14,0,\\\"checkoutimage\\\"],[15,\\\"title\\\",[30,2]],[15,\\\"data-testname\\\",[30,3]],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"image-count-overlay\\\"],[12],[1,[30,1,[\\\"length\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[11,3],[24,6,\\\"#\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"handleClick\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"presignedUrl\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"thumbnail-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"presignedUrl\\\"]]],[14,0,\\\"checkoutimage\\\"],[15,\\\"title\\\",[30,2]],[15,\\\"data-testname\\\",[30,3]],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"image-count-overlay\\\"],[12],[1,[30,1,[\\\"length\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@fileCount\\\",\\\"@title\\\",\\\"@testName\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"gt\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/presigned-image.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/print-options-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"EtSWxnLF\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Prescriptions\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard billing-preview\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right marginbottom15\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                   \\\"],[3,\\\"  {{#link-to \\\\\\\"billing.list\\\\\\\" class=\\\\\\\"btn btn-warning btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\"}}<i class=\\\\\\\"fa fa-arrow-left\\\\\\\"></i> Back {{/link-to}}\\\\n                  <!--  {{#link-to \\\\\\\"billing.prescribeedit\\\\\\\" visiting_id billing_id PrescribePatient.[0].patient_id class=\\\\\\\"btn btn-success btn-sm pull-right marginbottom15\\\\\\\" style=\\\\\\\"margin-right: 12px;\\\\\\\" title=\\\\\\\"Edit Prescribe Medicine\\\\\\\"}} <i class=\\\\\\\"fa fa-pencil-square-o\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\"></i> Medicine Edit {{/link-to}}\\\"],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"table-responsive cware\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Type\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Category\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribe Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"In Clinic Patient\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                                                \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,5],[[30,1,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,5],[[30,1,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,5],[[30,1,[\\\"last_name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"label\\\"]],[[[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"sup\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"discount_category_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"discount_category_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribing_doc_name\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"prescribing_doc_name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"i\\\"],[12],[1,\\\" Repeat Medicine \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"completed_date_time\\\"]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"completed_date_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[1,[30,1,[\\\"appointment_time\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[41,[33,6],[[[1,\\\"\\\\n                                                \\\"],[1,[34,6]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                0.00\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,\\\"form\\\"],[14,1,\\\"my_form\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,1],[14,1,\\\"displayerror\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"errors_list\\\"],[[33,8]]]]],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"cware-scroll-table billing-bill\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[14,1,\\\"10000\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"S. No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Factor\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Vial\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Medicine Prices\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"inner_table\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover head\\\"],[14,1,\\\"prescribeDetails\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[14,0,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,9],null,[[\\\"billpatientdetails\\\"],[[33,10]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"preview-options\\\"],[12],[1,\\\"\\\\n                            \\\"],[3,\\\" Trigger the modal with a button \\\"],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-5 cw-reprint cw-paddingright10\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Print Options\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_domestic\\\"],[14,2,\\\"domestic\\\"],[14,3,\\\"print-option\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" Domestic\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,3,\\\"print-option\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" International\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row cw-paddingleftright15\\\"],[12],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,11]],[14,1,\\\"evlp_label\\\"],[14,2,\\\"evlp_label\\\"],[14,3,\\\"evlp_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Envelope Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                     \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"domst_cons_presc\\\"],[14,2,\\\"domst_cons_presc\\\"],[14,3,\\\"domst_cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Domestic Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                     \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"inc_presc\\\"],[14,2,\\\"inc_presc\\\"],[14,3,\\\"inc_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Inclinic Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                       \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,12]],[14,1,\\\"cons_presc\\\"],[14,2,\\\"cons_presc\\\"],[14,3,\\\"cons_presc\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"International Consignment Prescription\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"  \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[15,\\\"checked\\\",[36,12]],[14,1,\\\"add_label\\\"],[14,2,\\\"add_label\\\"],[14,3,\\\"add_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Address Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"receipt\\\"],[14,2,\\\"receipt\\\"],[14,3,\\\"receipt\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Receipt\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,1,\\\"med_label\\\"],[14,2,\\\"med_label\\\"],[14,3,\\\"med_label\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Medicine Label\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"col-md-10 text-right\\\"],[12],[1,\\\"\\\\n                                      \\\"],[3,\\\"\\\\n                                          This button is used in Previous version of print option, Rahul Khan, 27 sept 2019\\\\n                                           <button type=\\\\\\\"button\\\\\\\" class=\\\\\\\"btn btn-sm\\\\\\\" data-toggle=\\\\\\\"modal\\\\\\\" data-target=\\\\\\\"#reprint\\\\\\\" {{action @reprintOptions }}>Re-print</button> \\\"],[1,\\\"\\\\n                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,4]],null],[12],[1,\\\"Re-print\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Instructions/notes\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"textarea\\\"],[14,\\\"cols\\\",\\\"80\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,3,\\\"precribe_pharmacy_instruction\\\"],[14,1,\\\"precribe_pharmacy_instruction\\\"],[14,0,\\\"form-control precribe_pharmacy_instruction\\\"],[14,\\\"placeholder\\\",\\\"Enter Instructions/Notes\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,\\\" \\\"],[41,[33,13],[[[1,\\\" \\\"],[1,[34,13]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[1,[34,14]],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\" col-md-7 cw-paddingleft10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,15,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,16],null,[[\\\"flash\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                 \\\"],[10,0],[14,1,\\\"dicoundisplayerror\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"waive-section\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Medicine Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,17],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"med_dic discount onthemed\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,[34,18]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage onthefly_per\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\" \\\"],[1,[34,17]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"onthemed\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,[34,18]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage perremove onthefly_per\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,19]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"remove_button\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,17],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,20]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,21],[[33,18],[33,17]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control grdtot inputreadonly\\\"],[15,\\\"data-medprint\\\",[29,[[36,20]]]],[14,3,\\\"meidicine_cost\\\"],[15,2,[29,[[28,[37,21],[[33,18],[33,19]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,17],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control discount_percentage onlynumeric\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"placeholder\\\",\\\"%\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-sm-1  cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm disdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"applyDiscountCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Discount\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,5,\\\"margin-right: 5px;\\\"],[12],[1,\\\"Consultancy \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[33,23],[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"cons_dis discount 11\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,6]],[1,\\\", \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"percentage cons_amount 11\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\" \\\"],[1,[34,23]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,6],[[[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[1,\\\" \\\"],[1,[34,6]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,1],[14,0,\\\"cons_waived\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n                                                             \\\"],[10,1],[14,0,\\\"const_remove_button\\\"],[14,5,\\\"margin-right:5px;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"cons_dis\\\"],[12],[1,\\\" 0.00 \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,23],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,24]]]],[15,2,[29,[[28,[37,21],[[33,6],[33,23]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control consultancy inputreadonly\\\"],[15,\\\"data-consprint\\\",[29,[[36,24]]]],[15,2,[29,[[28,[37,21],[[33,6],[33,25]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,23],\\\"100\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm consdisable\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"consultancyWave\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Waive\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control pending inputreadonly\\\"],[15,2,[29,[[36,26]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[33,26],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"pendingVisitDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"extra-charges\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-md-offset-5 col-md-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control medicine_chargess\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,1,\\\"medicine_charge\\\"],[14,3,\\\"medicine_charge\\\"],[12],[1,\\\"\\\\n                                                 \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Charge\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,27]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,\\\"data-cid\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,2,[29,[[30,6,[\\\"charge_cost\\\"]]]]],[12],[1,[30,6,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"Other\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,\\\"disabled\\\",\\\"disabled\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"addCharge\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add Charge\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"chargebox\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,28]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[15,1,[30,7,[\\\"id\\\"]]],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                     \\\"],[10,\\\"label\\\"],[12],[1,[30,7,[\\\"charge_name\\\"]]],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control box-charge numeric charge-total\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[15,\\\"data-label\\\",[30,7,[\\\"charge_name\\\"]]],[15,\\\"data-charge_code\\\",[30,7,[\\\"charge_code\\\"]]],[15,1,[30,7,[\\\"id\\\"]]],[15,2,[30,7,[\\\"charge_amount\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-2 cware-disabled\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm chargeremove\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,\\\"data-charge_value\\\",\\\"0\\\"],[15,\\\"data-cids\\\",[30,7,[\\\"id\\\"]]],[15,\\\"data-charge\\\",[30,7,[\\\"charge_name\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"title\\\",\\\"Remove\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"total-amount\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total inputreadonly\\\"],[15,2,[29,[[28,[37,29],[[33,18],[33,17],[33,6],[33,23]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"billing_id\\\"],[15,2,[29,[[36,30]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"visiting_id\\\"],[15,2,[29,[[36,31]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,1,\\\"patient_id\\\"],[15,2,[29,[[33,3,[\\\"0\\\",\\\"patient_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[[33,32],\\\"0.00\\\"],null],[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[12],[1,\\\"Previous Bill Paid Amount \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control paid_amount inputreadonly\\\"],[15,2,[29,[[36,32]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[12],[1,\\\"Current Due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[14,5,\\\"margin-right: 12px;\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control current_due inputreadonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[10,1],[14,0,\\\"payment_status\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                               \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"refund\\\"],[12],[1,\\\"Total Received \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4 \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control received_amount inputreadonly\\\"],[15,2,[36,33]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[[33,35],\\\"yes\\\"],null],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,36]]]],[12],[1,\\\" (\\\"],[1,[34,36]],[1,\\\") ...\\\"],[13],[1,\\\"\\\\n                                               \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info visitTransactionDetails\\\"],[15,\\\"data-visit\\\",[29,[[36,31]]]],[15,\\\"data-billing\\\",[29,[[36,30]]]],[14,\\\"title\\\",\\\"Transaction Details\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                               \\\"],[10,1],[14,0,\\\"transaction_mode\\\"],[15,\\\"data-transaction\\\",[29,[[36,37]]]],[12],[1,\\\" (\\\"],[1,[34,37]],[1,\\\") \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-5\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\"Total due \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control total_due inputreadonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[10,0],[14,0,\\\"col-sm-2\\\"],[14,5,\\\"margin-left: 12px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"due_payment_status\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[10,0],[14,0,\\\"submit-buttons\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"row margin5\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary btn-block cashpopup\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" Payment \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-8 pull-right\\\"],[12],[1,\\\"\\\\n                                             \\\"],[10,\\\"label\\\"],[12],[1,\\\"Billed By: \\\"],[13],[1,\\\"  \\\"],[1,[34,38]],[1,\\\" , \\\"],[1,[34,39]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                      \\\"],[3,\\\" Added code Shubh Tiwari 13 Feb 2020\\\"],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade cware-billing-preview\\\"],[14,1,\\\"pendingdetails\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Patient Pending Due History\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-12 padding0px5px\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pendingdetail\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Total Due Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Received Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Credit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Debit Amount\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Status\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Comments\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,40]],null]],null],null,[[[1,\\\"                             \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,41],null,[[\\\"date\\\"],[[30,8,[\\\"transaction_time\\\"]]]]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"total_due_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"recieved_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"credit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"debit_amount\\\"]]],[13],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"transaction_status\\\"]]],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"remark\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row form-group text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\"-This is the model used for Re-print Options  \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,1,\\\"reprint\\\"],[14,0,\\\"modal fade\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Re-Print Options\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,2,\\\"domestic\\\"],[14,0,\\\"print_domestic\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,11]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"Domestic \\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_vial\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Vials \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_envelope\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Envelope \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_receipt\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Receipt \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"doms_presc\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Domestic Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"address_label\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Address Label \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"envelope_label\\\"],[15,\\\"disabled\\\",[36,12]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" Envelope Label \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,0],[14,0,\\\"radio\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"print_international\\\"],[14,2,\\\"international\\\"],[14,3,\\\"optradio\\\"],[15,\\\"checked\\\",[36,12]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[30,3]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\"International \\\"],[13],[13],[1,\\\"\\\\n                             \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row cw-checkbox\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_vial\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Vial \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_envelope\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Envelope \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"checkbox\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"cw_print_check\\\"],[14,2,\\\"inst_presc\\\"],[15,\\\"disabled\\\",[36,11]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"cw-lebel-text\\\"],[12],[1,\\\" International Receipt & Prescription \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row text-right cw-margintop25\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Back\\\"],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,4]],null],[12],[1,\\\"Print and Close\\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"presdata\\\",\\\"index\\\",\\\"@setprintType\\\",\\\"@getRePrints\\\",\\\"flash\\\",\\\"clist\\\",\\\"charge\\\",\\\"pdetail\\\"],false,[\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"PrescribePatient\\\",\\\"if\\\",\\\"capitalize\\\",\\\"doctor_fees\\\",\\\"error-display\\\",\\\"vali_errors\\\",\\\"prescribed-medicine\\\",\\\"billpatientlist\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"pharmacy_instruction\\\",\\\"pharmacy_message\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"normal_med_dis\\\",\\\"medicine_code\\\",\\\"discount\\\",\\\"ifnoteq\\\",\\\"consult_dicount\\\",\\\"consultancy_code\\\",\\\"normal_consultancy_dis\\\",\\\"ped_amount\\\",\\\"charge_master_list\\\",\\\"visit_charges\\\",\\\"sum\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"previous_bill_paid_amount\\\",\\\"visitTotalReceived\\\",\\\"ifeg\\\",\\\"more_mode\\\",\\\"partial_transaction_mode\\\",\\\"transaction_mode\\\",\\\"biller_name\\\",\\\"billing_time\\\",\\\"Pendingdetailslist\\\",\\\"format-date\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/print-options-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/ready-for-pickup-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"G1Do8ZhZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"col-lg-12 table-responsive cware dispatch\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Ready for Pickup \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover display\\\"],[14,1,\\\"ReadyforPickup\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"#\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient ID\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Presc Doc\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Packaged Date/Time\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Disp Date/Time\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Pickup Loc\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Shipp Address\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Courier\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"MarkSelectedasDispatched\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm button-margin\\\"],[24,\\\"title\\\",\\\"Mark Selected as Dispatched\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,1]],null],[12],[1,\\\"Mark Selected as Dispatched\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@markSelectedDispatched\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/ready-for-pickup-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/refund-batches-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"+kNa220B\",\n    \"block\": \"[[[10,0],[14,5,\\\"position: fixed; inset: 0; z-index: 500004; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; padding: 15px;\\\"],[15,\\\"onclick\\\",[28,[37,0],[[30,0],\\\"close\\\"],null]],[12],[1,\\\"\\\\n  \\\"],[11,0],[24,5,\\\"width: 100%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);\\\"],[4,[38,0],[[30,0],\\\"stopPropagation\\\"],null],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,5,\\\"padding: 20px 24px 0;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0; font-size: 18px; font-weight: 600; color: #1a1a1a;\\\"],[12],[1,\\\"Refund batches\\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,5,\\\"background: none; border: none; font-size: 22px; color: #999; cursor: pointer; line-height: 1;\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"close\\\"],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,5,\\\"margin: 6px 0 0; font-size: 13px; color: #525252;\\\"],[12],[1,\\\"Refunds raised from online appointment cancellations on this screen. Refund status keeps updating until the gateway confirms it.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"padding: 14px 24px; overflow-y: auto; flex: 1;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"length\\\"]],[[[42,[28,[37,4],[[28,[37,4],[[33,2]],null]],null],null,[[[1,\\\"          \\\"],[1,[28,[35,5],null,[[\\\"batch\\\",\\\"refunds\\\",\\\"mode\\\",\\\"showClose\\\",\\\"onClose\\\"],[[30,1],[30,1,[\\\"refunds\\\"]],\\\"embedded\\\",true,[28,[37,0],[[30,0],\\\"close\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,5,\\\"padding: 20px 14px; text-align: center; color: #999; font-size: 13px;\\\"],[12],[1,\\\"No refund batches yet.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #f0f0f0;\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,5,\\\"border-radius: 6px; background: #171717; border-color: #171717; color: #fff; font-size: 13px; padding: 6px 14px;\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"close\\\"],null],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"batch\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"batches\\\",\\\"each\\\",\\\"-track-array\\\",\\\"batch-refund-details\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/refund-batches-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/report-notes-details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"67qwkNg2\",\n    \"block\": \"[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"diagnosticNotesReports\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,1,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Notes\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body modal-scroll\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"textarea\\\"],[14,\\\"rows\\\",\\\"15\\\"],[14,\\\"cols\\\",\\\"120\\\"],[15,2,[29,[[36,0]]]],[14,\\\"wrap\\\",\\\"soft\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n        \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n    \\\"],[13]],[],false,[\\\"report_notes\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/report-notes-details.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/route-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"++ZmnBUI\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main page-height\\\"],[12],[1,\\\"\\\\n \\\\n \\\"],[10,0],[14,0,\\\"bgimg\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"middle\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[12],[1,\\\"You are not authorized to access this page.Please contact your administrator\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/route-message.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/schedule-card\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"D3s0aX5K\",\n    \"block\": \"[[[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel-heading clearfix\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-6 pull-left\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded-full\\\"],[12],[1,[30,1,[\\\"branch_name\\\"]]],[13],[1,\\\"  \\\\n            \\\"],[10,\\\"strong\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"start_date\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,1],[[30,1,[\\\"start_date\\\"]]],null]],[1,\\\" -\\\\n\\\"],[41,[30,1,[\\\"end_date\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,1],[[30,1,[\\\"end_date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                onwards\\\\n\\\"]],[]]]],[]],[[[1,\\\"                Ongoing Schedule\\\\n\\\"]],[]]],[41,[30,1,[\\\"source_type\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"bg-red-100 text-red-800 text-xs font-semibold px-2.5 py-0.5 rounded-full ml-1\\\"],[12],[1,\\\"(\\\"],[1,[28,[35,2],[[30,1,[\\\"source_type\\\"]]],null]],[1,\\\" Schedule)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-6 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-xs btn-info\\\"],[24,\\\"title\\\",\\\"Edit Schedule\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],[30,2],[30,1],\\\"update\\\"],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-pencil-alt\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"is_on_leave\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-danger text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plane\\\"],[12],[13],[1,\\\"\\\\n            Doctor on Leave for this period\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n        \\\"],[3,\\\" Header Row \\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"display: flex; text-align: center; font-weight: bold; padding: 8px; border-bottom: 1px solid #ccc;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 0.7;\\\"],[12],[1,\\\"Shift\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[28,[37,6],[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],null]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1.1;\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[3,\\\" Shifts \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[28,[37,6],[\\\"1\\\",\\\"2\\\"],null]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"display: flex; margin-bottom: 8px; text-align: center; border-bottom: 1px solid #eee; padding: 8px 0;\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Shift label \\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 0.7; font-weight: bold;\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,7],[[30,4],\\\"1\\\"],null],\\\"Morning\\\",\\\"Evening\\\"]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[3,\\\" Day-wise slots \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[28,[37,6],[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],null]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col\\\"],[14,5,\\\"flex: 1.1; min-height: 40px;\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,9],[[30,1,[\\\"weekly_schedule\\\"]],[30,5]],null]],[[[41,[28,[37,10],[[30,6],[28,[37,9],[[30,6],[30,4]],null]],null],[[[41,[28,[37,11],[[28,[37,9],[[28,[37,9],[[30,6],[30,4]],null],\\\"length\\\"],null],0],null],[[[42,[28,[37,5],[[28,[37,5],[[28,[37,9],[[30,6],[30,4]],null]],null]],null],null,[[[41,[28,[37,12],[[30,7,[\\\"time_range\\\"]],\\\"00:00 - 00:00\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"bg-green-100 text-green-700 rounded\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,[28,[35,13],[[30,7,[\\\"time_range\\\"]]],null]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                 \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"bg-gray-100 text-gray-500 rounded fixed-label\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,\\\"—\\\"],[13],[1,\\\"\\\\n                 \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[7]],null]],[]],[[[1,\\\"                 \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"bg-gray-100 text-gray-500 rounded fixed-label\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,\\\"—\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"                 \\\"],[10,0],[14,5,\\\"margin: 2px 0;\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"bg-gray-100 text-gray-500 rounded fixed-label\\\"],[14,5,\\\"padding: 2px 6px; display: inline-block;\\\"],[12],[1,\\\"—\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[6]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@schedule\\\",\\\"@editDoctorSchedule\\\",\\\"day\\\",\\\"shiftNumber\\\",\\\"day\\\",\\\"shifts\\\",\\\"slot\\\"],false,[\\\"if\\\",\\\"schedule-date-format\\\",\\\"capitalize\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"array\\\",\\\"eq\\\",\\\"let\\\",\\\"get\\\",\\\"and\\\",\\\"gt\\\",\\\"not-eq\\\",\\\"format-slot\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/schedule-card.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/search-filed-element\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"oGZToCqz\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border case-report-legend\\\"],[12],[1,\\\"Search Report\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"grid-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"grid-item\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"seach_checkbox\\\"],[15,\\\"checked\\\",[30,1,[\\\"isChecked\\\"]]],[15,\\\"disabled\\\",[30,1,[\\\"disable\\\"]]],[15,\\\"data\\\",[30,1,[\\\"data\\\"]]],[15,1,[30,1,[\\\"id\\\"]]],[15,\\\"onchange\\\",[28,[37,3],[[30,0],[28,[37,3],[[30,0],[30,2],[30,1,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"item\\\",\\\"@toggleReports\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"items\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/search-filed-element.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/search-patient-onspot\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"KmZNdrcS\",\n    \"block\": \"[[[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"listing onspot_listing_div\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Patient Id\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Name\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Gender\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Phone\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Address\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Priority\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13%\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Category\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              Select\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"title_prefix\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"gender\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"mobile_res\\\"]]],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"phone_res\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"first-letter-capital\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"full_address_per\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"priority\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n            \\\"],[41,[28,[37,4],[[30,1,[\\\"balance_amount\\\"]],\\\"0.00\\\"],null],[[[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,5],[[30,1,[\\\"balance_amount\\\"]]],null]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"category\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[3,\\\" Rahul Khan\\\"],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[16,1,[29,[\\\"test\\\",[30,1,[\\\"id\\\"]]]]],[24,0,\\\"btn btn-sm btn-primary onspotradio\\\"],[24,4,\\\"radio\\\"],[4,[38,6],[[30,0],\\\"submitOnSpot\\\",[30,1,[\\\"id\\\"]],[30,1,[\\\"OldRegistrationNo\\\"]],[30,1,[\\\"first_name\\\"]],[30,1,[\\\"middle_name\\\"]],[30,1,[\\\"last_name\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"9\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            Sorry, No patient found.\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" {{pagination-component stats=stats p=p}} \\\"],[1,\\\"\\\\n\\\\n\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,6],[[30,0],\\\"prevC\\\",[33,7],[33,8]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,6],[[30,0],\\\"nextC\\\",[33,7],[33,8]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"enter\\\"],[\\\"text\\\",\\\"pagination_input\\\",[33,8],[28,[37,6],[[30,0],\\\"gotoC\\\"],null]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n           of \\\"],[1,[33,7,[\\\"total_pages\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"patient\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"patients\\\",\\\"if\\\",\\\"ifnoteq\\\",\\\"due-advance-flag\\\",\\\"action\\\",\\\"stats\\\",\\\"p\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/search-patient-onspot.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/searchable-select-option\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"D5NmCCoE\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"Searchable-select__icon Searchable-select__icon--check\\\\n    Searchable-select__option-indicator--selected\\\"],[12],[1,\\\"\\\\n    ✓\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,1],[15,0,[29,[\\\"Searchable-select__option-label\\\\n  \\\",[52,[33,1],\\\"Searchable-select__option-label--selected\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,2],[[28,[37,3],[[33,4],[33,5]],null],[33,6]],null]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"isSelected\\\",\\\"searchable-select-highlight-match\\\",\\\"searchable-select-get\\\",\\\"option\\\",\\\"optionLabelKey\\\",\\\"searchText\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/searchable-select-option.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/searchable-select\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zrPBCZTe\",\n    \"block\": \"[[[11,3],[24,6,\\\"#\\\"],[16,0,[29,[\\\"Searchable-select__label\\\\n    \\\",[52,[33,1],\\\"Searchable-select__label--menu-open\\\"],\\\"\\\\n    \\\",[52,[33,2],\\\"Searchable-select__label--multiple\\\"],\\\"\\\\n    \\\",[52,[33,3],\\\"Searchable-select__label--multiple-selected\\\"]]]],[4,[38,4],[[30,0],\\\"toggleMenu\\\"],null],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,5],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"Searchable-select__selected-label\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[[33,7],[33,8]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,3],[[[42,[28,[37,10],[[28,[37,10],[[33,7]],null]],null],null,[[[1,\\\"      \\\"],[10,1],[14,0,\\\"Searchable-select__selected-pill\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"Searchable-select__selected-pill-text\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,1],[33,8]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,1],[24,0,\\\"Searchable-select__selected-pill-clear\\\"],[4,[38,4],[[30,0],\\\"removeOption\\\",[30,1]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n          ×\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[33,12]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"Searchable-select__prompt\\\"],[12],[1,[34,13]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"Searchable-select__menu\\\"],[12],[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"Searchable-select__search\\\"],[4,[38,4],[[30,0],\\\"noop\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,14],null,[[\\\"class\\\",\\\"type\\\",\\\"placeholder\\\",\\\"key-up\\\",\\\"tabindex\\\",\\\"bubbles\\\"],[\\\"Searchable-select__input\\\",\\\"text\\\",[33,15],[28,[37,4],[[30,0],\\\"updateSearch\\\"],null],-1,false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,16],[[[1,\\\"      \\\"],[11,0],[24,0,\\\"Searchable-select__clear\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[24,\\\"data-enter-key-action\\\",\\\"clear\\\"],[4,[38,4],[[30,0],\\\"clear\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"Searchable-select__icon Searchable-select__icon--clear\\\"],[12],[1,\\\"\\\\n          ×\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[1,[34,17]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,18],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"Searchable-select__add-new\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[24,\\\"data-enter-key-action\\\",\\\"addNew\\\"],[4,[38,4],[[30,0],\\\"addNew\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[1,[34,19]],[1,\\\" \\\"],[10,\\\"em\\\"],[12],[1,[34,20]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,21],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"Searchable-select__info\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[34,22]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,23],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"Searchable-select__info\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Loading SVG by Sam Herbert (@sherb), More @ http://goo.gl/7AJzbL \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"12\\\"],[14,\\\"height\\\",\\\"12\\\"],[14,\\\"viewBox\\\",\\\"0 0 40 40\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"stroke\\\",\\\"#9a9a9a\\\"],[14,0,\\\"Searchable-select__loader\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"g\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"fill-rule\\\",\\\"evenod  d\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(2 2)\\\"],[14,\\\"stroke-width\\\",\\\"4\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"circle\\\"],[14,\\\"stroke-opacity\\\",\\\".6\\\"],[14,\\\"cx\\\",\\\"18\\\"],[14,\\\"cy\\\",\\\"18\\\"],[14,\\\"r\\\",\\\"18\\\"],[14,0,\\\"Searchable-select__loader-circle\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"M36 18c0-9.94-8.06-18-18-18\\\"],[14,0,\\\"Searchable-select__loader-spinner\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"animateTransform\\\"],[14,\\\"attributeName\\\",\\\"transform\\\"],[14,\\\"from\\\",\\\"0 18 18\\\"],[14,\\\"to\\\",\\\"360 18 18\\\"],[14,\\\"dur\\\",\\\"0.8s\\\"],[14,\\\"repeatCount\\\",\\\"indefinite\\\"],[14,4,\\\"rotate\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"Searchable-select__loader-text\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[34,24]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,25],[[[1,\\\"    \\\"],[10,\\\"ul\\\"],[14,0,\\\"Searchable-select__options-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,26]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,27],null,[[\\\"option\\\",\\\"selected\\\",\\\"searchText\\\",\\\"optionLabelKey\\\",\\\"optionDisabledKey\\\",\\\"select-item\\\"],[[30,2],[33,7],[33,20],[33,8],[33,28],[28,[37,4],[[30,0],\\\"selectItem\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"selectedOption\\\",\\\"option\\\"],false,[\\\"if\\\",\\\"_isShowingMenu\\\",\\\"multiple\\\",\\\"_hasMultipleSelection\\\",\\\"action\\\",\\\"_hasSingleSelection\\\",\\\"searchable-select-get\\\",\\\"_selected\\\",\\\"optionLabelKey\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"_hasSelection\\\",\\\"prompt\\\",\\\"input\\\",\\\"searchPrompt\\\",\\\"_isShowingClear\\\",\\\"clearLabel\\\",\\\"_isShowingAddNew\\\",\\\"addLabel\\\",\\\"_searchText\\\",\\\"_isShowingNoResultsMessage\\\",\\\"noResultsMessage\\\",\\\"isLoading\\\",\\\"loadingMessage\\\",\\\"_hasResults\\\",\\\"_filteredContent\\\",\\\"searchable-select-option\\\",\\\"optionDisabledKey\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/searchable-select.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/section-add-edit-by\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aLzPCIzJ\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"case-taken-by\\\"],[12],[1,\\\"(\\\"],[1,[34,1]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"username\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/section-add-edit-by.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/shift-report-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"99vgdoFq\",\n    \"block\": \"[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"shift_report_popup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-dialog-centered\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h3\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Shift Report\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"Location : \\\"],[10,\\\"b\\\"],[12],[1,[33,0,[\\\"branch\\\"]]],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-6 ml-auto\\\"],[12],[1,\\\"Shift : \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\"1\\\"],null],[[[1,\\\"                            Morning\\\\n\\\"]],[]],[[[1,\\\"                            Evening\\\\n\\\"]],[]]],[1,\\\"                          \\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"h5\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Total Collection for the shift\\\"],[13],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 ml-auto\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"Total Collection\\\"],[13],[13],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,[30,1,[\\\"modename\\\"]]],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 ml-auto\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"totalCollection\\\"]]],[13],[1,\\\"\\\\n\\\"],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Confirm & Close Shift\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13]],[\\\"shiftcollection\\\",\\\"@confirmCloseShift\\\"],false,[\\\"collectiondata\\\",\\\"if\\\",\\\"eq\\\",\\\"shift\\\",\\\"each\\\",\\\"-track-array\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/shift-report-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/shipping-pickup-details-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"diIrKjSB\",\n    \"block\": \"[[[10,0],[14,0,\\\"shipping-details\\\"],[14,1,\\\"shipping_box\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Shipping/Pickup/Outside Details \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-5 p-r-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-4 m-b-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],[33,3]],null],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"pickup\\\"],[14,2,\\\"P\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"P\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pickup\\\"],[12],[1,\\\"Pickup\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[\\\"P\\\",[33,3]],null],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"pickup\\\"],[14,2,\\\"P\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"P\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pickup\\\"],[12],[1,\\\"Pickup\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"pickup\\\"],[14,2,\\\"P\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pickup\\\"],[12],[1,\\\"Pickup\\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-4 m-b-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],[33,3]],null],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"dispatch\\\"],[14,2,\\\"D\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"D\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dispatch\\\"],[12],[1,\\\"Dispatch\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[\\\"D\\\",[33,3]],null],[[[1,\\\"                 \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"dispatch\\\"],[14,2,\\\"D\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"D\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dispatch\\\"],[12],[1,\\\"Dispatch\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"dispatch\\\"],[14,2,\\\"D\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dispatch\\\"],[12],[1,\\\"Dispatch\\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-4 m-b-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[33,2],[33,3]],null],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"outside\\\"],[14,2,\\\"O\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"O\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"outside\\\"],[12],[1,\\\"Outside\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[\\\"O\\\",[33,3]],null],[[[1,\\\"                 \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"outside\\\"],[14,2,\\\"O\\\"],[15,\\\"checked\\\",[52,[28,[37,4],[\\\"O\\\",[33,3]],null],\\\"true\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"outside\\\"],[12],[1,\\\"Outside\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,\\\"input\\\"],[14,3,\\\"service\\\"],[14,1,\\\"outside\\\"],[14,2,\\\"O\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"outside\\\"],[12],[1,\\\"Outside\\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-12 m-b-10\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Pharmacy Location \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[15,0,[29,[\\\"form-control pharmacy_location \\\",[52,[28,[37,4],[[33,5],\\\"Process Medication\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Billed Patient Details\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Prescribed Billing Details\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,6],\\\"3\\\"],null],\\\"location_disable\\\"]]]],[14,1,\\\"pharmacy_location\\\"],[14,3,\\\"pharmacy_location\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[41,[33,10],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,1,[\\\"id\\\"]],[33,10]],null]],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,11],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,1,[\\\"id\\\"]],[33,11]],null]],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,1,[\\\"id\\\"]],[33,12]],null]],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n                        \\\"]],[]]]],[]]]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Billing Location \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[15,0,[29,[\\\"form-control billing_location \\\",[52,[28,[37,4],[[33,5],\\\"Bill Patient\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Process Medication\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Billed Patient Details\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Prescribed Billing Details\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,13],\\\"rm\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,13],\\\"email rm\\\"],null],\\\"location_disable\\\"]]]],[14,1,\\\"billing_location\\\"],[14,3,\\\"billing_location\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[41,[33,14],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,2,[\\\"id\\\"]],[33,14]],null]],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,15],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,2,[\\\"id\\\"]],[33,15]],null]],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,4],[[30,2,[\\\"id\\\"]],[33,12]],null]],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n                        \\\"]],[]]]],[]]]],[2]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-7\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-bottom-margin\\\"],[12],[1,\\\"Shipping Address:   \\\"],[41,[28,[37,4],[[33,16],1],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"badge badge-warning ml-2 address-flash address-badge\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[14,\\\"data-original-title\\\",\\\"Shipping address was updated\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-map-marker address-icon\\\"],[12],[13],[1,\\\" Address Changed\\\"],[13]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control resize-none shipping_address_column m-b-10 capitalize\\\"],[14,1,\\\"shipping_address_column\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[12],[1,[34,17]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn pull-right\\\"],[16,0,[29,[[52,[28,[37,4],[[33,5],\\\"Billed Patient Details\\\"],null],\\\"location_disable\\\"],\\\" \\\",[52,[28,[37,4],[[33,5],\\\"Prescribed Billing Details\\\"],null],\\\"location_disable\\\"]]]],[24,4,\\\"button\\\"],[4,[38,18],[[30,0],\\\"changeshippingaddress\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Change Address\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,1,\\\"dispatch_pickup_details\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Shipping address popup \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered childModel\\\"],[14,1,\\\"shippingAddressModal\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close closeChild\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title no-margin-bottom\\\"],[12],[1,\\\"Shipping Address\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,1,\\\"discounterror\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"ShippingAddress\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,18],[[30,0],\\\"changeShippingAddress\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_1\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"shipping_address_1\\\",\\\"shipping_address_1\\\",\\\"Shipping Address Line 1\\\",[33,20,[\\\"shipping_address_1\\\"]]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_2\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"shipping_address_2\\\",\\\"shipping_address_2\\\",\\\"Shipping Address Line 2\\\",[33,20,[\\\"shipping_address_2\\\"]]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_country\\\"],[14,3,\\\"shipping_country\\\"],[15,2,[33,20,[\\\"shipping_selected_country\\\"]]],[15,\\\"onchange\\\",[28,[37,18],[[30,0],\\\"updateShippingCountry\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,21]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,4],[[30,3,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_country\\\"]]],null]],[12],[1,\\\"\\\\n                                        \\\"],[1,[30,3,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_state\\\"],[14,3,\\\"shipping_state\\\"],[15,2,[33,20,[\\\"shipping_selected_state\\\"]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,18],[[30,0],\\\"updateShippingState\\\"],null]],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,22]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,4],[[30,4,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_state\\\"]]],null]],[12],[1,\\\"\\\\n                                        \\\"],[1,[30,4,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_state\\\",\\\"shipping_other_state\\\",\\\"Other State\\\",[33,23]]]]],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_city\\\"],[14,3,\\\"shipping_city\\\"],[15,2,[33,20,[\\\"shipping_selected_city\\\"]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,18],[[30,0],\\\"updateShippingCity\\\"],null]],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,24]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,4],[[30,5,[\\\"id\\\"]],[33,20,[\\\"shipping_selected_city\\\"]]],null]],[12],[1,\\\"\\\\n                                        \\\"],[1,[30,5,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_city\\\",\\\"shipping_other_city\\\",\\\"Other City\\\"]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_zip\\\",\\\"shipping_zip\\\",\\\"Zip\\\",[33,20,[\\\"shipping_zip\\\"]]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Mobile No. \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,19],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_mob\\\",\\\"shipping_mob\\\",\\\"Mobile no\\\",[33,20,[\\\"shipping_mob\\\"]]]]]],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"text-left\\\"],[12],[1,\\\"By default, shipping address changes apply to the current visit only. If you want to update the patient shipping address permanently, select the below checkbox.\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"updateInMaster\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-9 text-left\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"input\\\"],[14,1,\\\"updateInMaster\\\"],[14,3,\\\"updateInMaster\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Update address in patient master also\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[14,1,\\\"patient_id\\\"],[15,2,[29,[[36,25]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[14,1,\\\"appointment_id\\\"],[15,2,[29,[[36,26]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,18],[[30,0],\\\"clearShippingAddress\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Clear\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"loc\\\",\\\"loc\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"medicine_default_pickup\\\",\\\"shiping_pickup\\\",\\\"eq\\\",\\\"page\\\",\\\"medicin_eprepared\\\",\\\"each\\\",\\\"-track-array\\\",\\\"location\\\",\\\"pickup_listing_id\\\",\\\"shipping_pharmacy_location\\\",\\\"branch\\\",\\\"mode_type\\\",\\\"billed_listing_id\\\",\\\"shipping_billing_location\\\",\\\"address_mismatch\\\",\\\"address\\\",\\\"action\\\",\\\"input\\\",\\\"shipp\\\",\\\"countries\\\",\\\"shipping_states\\\",\\\"shipping_other_state\\\",\\\"shipping_cities\\\",\\\"patient_id\\\",\\\"appointment_id\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/shipping-pickup-details-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/shipping-preference-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"6o9YIHp5\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[14,1,\\\"ShippingPreference\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"closeShippingPreferenceModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[12],[1,\\\"Set Shipping Preference/Shipping Address\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,2],[[[1,\\\"               \\\"],[10,0],[14,0,\\\"col-sm-12 m-b-10\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,3,\\\"prescriptionemail\\\"],[14,1,\\\"prescriptionemail\\\"],[14,2,\\\"PE\\\"],[15,\\\"checked\\\",[52,[28,[37,3],[\\\"PE\\\",[33,4]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Prescription Email\\\"],[12],[1,\\\" Prescription Email\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"pickup_listing_id\\\",\\\"billed_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"mode_type\\\",\\\"address_mismatch\\\"],[[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[33,19]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,1],[33,14],[33,15]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"closeShippingPreferenceModal\\\"],null],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal \\\"]],[\\\"@saveShippingPreference\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"refresh\\\",\\\"eq\\\",\\\"prescription_email\\\",\\\"shipping-pickup-details-component\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"pharmacy_listing_id\\\",\\\"billing_listing_id\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"visit_mode_type\\\",\\\"address_mismatch\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/shipping-preference-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/show-test-notes\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Fj3H9bIY\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal\\\"],[14,1,\\\"showTestNote\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal Header \\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Test Note\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[3,\\\" Modal body \\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[34,0]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[3,\\\" Modal footer \\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"test_notes\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/show-test-notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/sub-menu\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"DUP3jGgc\",\n    \"block\": \"[[[10,0],[14,0,\\\"subnavbar\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"subnavbar-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"mainnav top-level-menu\\\"],[12],[1,\\\"\\\\n       \\\"],[1,[28,[35,0],[[33,1]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" /subnavbar-inner \\\"],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"menu\\\",\\\"perDetial\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/sub-menu.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/top-nav-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xManuaaw\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,3],[14,0,\\\"btn btn-navbar\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,\\\"data-target\\\",\\\".nav-collapse\\\"],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"icon-bar\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"icon-bar\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"icon-bar\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,3],[14,0,\\\"brand\\\"],[14,6,\\\"/\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/logo.png\\\"],[14,\\\"alt\\\",\\\"Dr. Kalyan Banerjee's Clinic\\\"],[14,5,\\\"width: 300px;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"nav-collapse\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav pull-right\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"location\\\"],[12],[10,1],[12],[1,\\\"Ver: \\\"],[10,1],[14,0,\\\"appversion\\\"],[12],[1,[28,[35,2],null,[[\\\"versionOnly\\\",\\\"showExtended\\\"],[true,true]]]],[13],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"location\\\"],[12],[10,1],[12],[1,\\\"Location: \\\"],[10,1],[14,0,\\\"currentbranch\\\"],[12],[1,[34,3]],[13],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"location\\\"],[12],[10,1],[12],[1,\\\"Shift: \\\"],[1,[28,[35,4],[[33,5],2,\\\"Evening\\\",\\\"Morning\\\"],null]],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"clock\\\"],[12],[10,1],[12],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"li\\\"],[14,0,\\\"dropdown capilatize\\\"],[12],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"dropdown-toggle\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-user\\\"],[12],[13],[1,\\\" \\\"],[1,[34,6]],[1,\\\" \\\"],[10,\\\"b\\\"],[14,0,\\\"caret\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\"  <li>{{#link-to \\\\\\\"users.profile\\\\\\\"}}Profile{{/link-to}}</li>\\\"],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[6,[39,7],null,[[\\\"route\\\"],[\\\"settings.masters.users.profile\\\"]],[[\\\"default\\\"],[[[[1,\\\"Profile\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],\\\"confirmLogout\\\"],null],[12],[1,\\\"Logout\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"Settings\\\",[33,10]],null],[[[1,\\\"    \\\"],[10,\\\"li\\\"],[14,0,\\\"dropdown capilatize\\\"],[12],[1,\\\"\\\\n      \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"dropdown-toggle\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-cogs\\\"],[12],[13],[1,\\\" Settings\\\"],[10,\\\"b\\\"],[14,0,\\\"caret\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"MastersPage\\\",[33,10]],null],[[[1,\\\"              \\\"],[10,\\\"li\\\"],[12],[6,[39,7],null,[[\\\"route\\\"],[\\\"settings.masters\\\"]],[[\\\"default\\\"],[[[[1,\\\"Masters\\\"]],[]]]]],[13],[1,\\\" \\\"],[3,\\\" Masters manu added Rahul Khan\\\"],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"PrintToken\\\",[33,10]],null],[[[1,\\\"              \\\"],[10,\\\"li\\\"],[12],[6,[39,7],null,[[\\\"route\\\"],[\\\"settings.print-token\\\"]],[[\\\"default\\\"],[[[[1,\\\"Print Token\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"KioskDoctors\\\",[33,10]],null],[[[1,\\\"              \\\"],[10,\\\"li\\\"],[12],[6,[39,7],null,[[\\\"route\\\"],[\\\"settings.doctors\\\"]],[[\\\"default\\\"],[[[[1,\\\"Kiosk doctors\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[3,\\\"/.nav-collapse \\\"],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loginCheck\\\",\\\"app-version\\\",\\\"branchName\\\",\\\"eq\\\",\\\"shiftDetail\\\",\\\"loginUsername\\\",\\\"link-to\\\",\\\"action\\\",\\\"check-permission\\\",\\\"pDetails\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/top-nav-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/transaction-appointment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"g43Y2NcL\",\n    \"block\": \"[[[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Appointments\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"OCPPatientOrders\\\",[33,2]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"manage_appointment\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Appt ID\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Branch\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Visit Type\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Notes\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,\\\"Due (D) / Advance (A)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n        \\\"],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right ml-2\\\",\\\"manage-appointment\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"RescheduleCancelButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,1,\\\"manage-transaction-cancel\\\"],[24,3,\\\"cancel\\\"],[24,0,\\\"btn btn-danger btn-sm pull-right ml-2 buttonhideshow pending_amount\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,1]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,1],[\\\"RescheduleButton\\\",[33,2]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,1,\\\"manage-transaction-reschedule\\\"],[24,3,\\\"reschedule\\\"],[24,0,\\\"btn btn-warning btn-sm pull-right buttonhideshow\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,2],\\\"cancel-appointment\\\"],null],[12],[1,\\\"Reschedule\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"notebox\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,3]],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please give a reason for cancellation.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,1,\\\"advance-payment-refund-note\\\"],[14,0,\\\"modal-title\\\"],[14,5,\\\"display: none\\\"],[12],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"Warning: \\\"],[13],[1,\\\" This patient has a balance of Rs \\\"],[10,1],[14,1,\\\"advance-payment-refund-amount\\\"],[12],[13],[1,\\\", Please make sure to make adjustments from manage transactions\\\\n            screen if needed. Otherwise the balance will remain in patient's account and will be adjusted in\\\\n            future visits.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" <label class=\\\\\\\"control-label\\\\\\\"></label> \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"note\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Reason for cancellation.\\\"],[12],[1,[34,5]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,3,\\\"cancelAppointment\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,4]],null],[12],[1,\\\"Cancel Appointment\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"]],[\\\"@cancelSelectedAppointment\\\",\\\"@setupRescheduleAppointment\\\",\\\"@closeNoteBox\\\",\\\"@cancelAppointment\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"action\\\",\\\"note\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/transaction-appointment.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/transaction-details-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"iMoJD0+K\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"TransactionDetails\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n           \\\"],[10,\\\"h4\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Transaction Details\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pending\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Transaction Date & Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Price\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Transaction Status.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Reference No.\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"PG Charge %\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"PG Amount\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"                                      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_time\\\"]]],[13],[1,\\\"\\\\n                                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                                          \\\"],[10,\\\"td\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"mode_price\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"refund_flag\\\"]],\\\"1\\\"],null],[[[1,\\\"                                              \\\"],[10,\\\"td\\\"],[12],[1,\\\" Debit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                              \\\"],[10,\\\"td\\\"],[12],[1,\\\" Credit \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"reference_no\\\"]]],[13],[1,\\\"\\\\n                                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pg_charge\\\"]]],[13],[1,\\\"\\\\n                                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pg_amount\\\"]]],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[\\\"tdetail\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"transction_details\\\",\\\"if\\\",\\\"ifeg\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/transaction-details-list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/transaction-history-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zF69rbiA\",\n    \"block\": \"[[[10,0],[14,0,\\\"modal fade transaction_histrory_popup\\\"],[14,1,\\\"TotalTransactionDetails\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"resetTransactionDetails\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"margintop0px\\\"],[12],[1,\\\"Transaction History\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"previous_pending\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Transaction Date & Time\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Payment Mode\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Price\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Transaction Status.\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Reference No.\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"PG Charge %\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"PG Amount\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3],\\\" \\\"],null],[[[1,\\\"                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,5,\\\"text-align:center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,5,\\\"margin-left:auto; margin-right:auto\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[13],[1,\\\"\\\\n                  \\\"],[3,\\\" Image loader \\\"],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[33,3]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_time\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"transaction_mode\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[30,1,[\\\"mode_price\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"refund_flag\\\"]],\\\"1\\\"],null],[[[1,\\\"                      \\\"],[10,\\\"td\\\"],[12],[1,\\\" Debit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"td\\\"],[12],[1,\\\" Credit \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"reference_no\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pg_charge\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"pg_amount\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Total Received Amount\\\"],[13],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" \\\"],[1,[34,7]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"tdetail\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"eq\\\",\\\"total_transction_details\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ifeg\\\",\\\"total_transction\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/transaction-history-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/transaction-search-appointment\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"v5BYNVP0\",\n    \"block\": \"[[[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"transactionAppointmentSearch\\\"],[4,[38,0],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n\\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Search Appointments\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Doctor\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Doctor \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"setDoctorId\\\"],null]],[14,1,\\\"doctor_id\\\"],[14,3,\\\"doctor_id\\\"],[15,2,[36,1]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"user_id\\\"]]],[15,\\\"selected\\\",[52,[28,[37,6],[[30,2,[\\\"user_id\\\"]],[33,1]],null],\\\"true\\\"]],[12],[1,[30,2,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Branch \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"branch_id\\\"],[14,3,\\\"branch_id\\\"],[15,2,[36,7]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"setBranchId\\\"],null]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Branch\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,8]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,3,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,6],[[30,3,[\\\"id\\\"]],[33,7]],null]],[12],[1,\\\" \\\"],[1,[30,3,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"From Date \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"name\\\",\\\"id\\\",\\\"readonly\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"datepicker form-control\\\",[33,10],\\\"from_date\\\",\\\"from_date\\\",\\\"readonly\\\",\\\"From date\\\"]]]],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right;margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"To Date \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"name\\\",\\\"id\\\",\\\"readonly\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"datepicker form-control\\\",[33,11],\\\"to_date\\\",\\\"to_date\\\",\\\"readonly\\\",\\\"To date\\\"]]]],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right; margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"status_id\\\"],[15,2,[36,12]],[14,3,\\\"status_id\\\"],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"setStatusId\\\"],null]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Status\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,13]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,4,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,6],[[30,4,[\\\"id\\\"]],[33,12]],null]],[12],[1,\\\" \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Patient Name \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"patient_info\\\",\\\"patient_info\\\",[33,14],\\\"form-control\\\",\\\"Search by patient name\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Mobile No \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",[33,15],\\\"form-control numeric\\\",\\\"Search by mobile no\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 smml-2 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Registration No \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"registration\\\",\\\"registration\\\",[33,16],\\\"form-control numeric\\\",\\\"Search by reg no\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\"Appointment id\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 tmw\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Appointment ID \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\"appointment_id\\\",\\\"appointment_id\\\",[33,17],\\\"form-control\\\",\\\"Search by appointment id\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\"buttons\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-10 m-b-10\\\"],[12],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-sm-2 m-b-10 smp\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-sm ml-2 pull-right\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Go\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm pull-right\\\"],[14,4,\\\"reset\\\"],[12],[1,\\\"Clear\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@transactionAppointmentSearch\\\",\\\"doc\\\",\\\"branch\\\",\\\"status\\\"],false,[\\\"action\\\",\\\"doctor_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"if\\\",\\\"eq\\\",\\\"branch_id\\\",\\\"branches\\\",\\\"input\\\",\\\"from_date\\\",\\\"to_date\\\",\\\"status_id\\\",\\\"appointment_status\\\",\\\"patient_info\\\",\\\"mobile_no\\\",\\\"registration\\\",\\\"appointment_id\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/transaction-search-appointment.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/visit-billing-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"iifAGa4f\",\n    \"block\": \"[[[10,0],[14,0,\\\"pharmacy_instruction_history\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"heading-date\\\"],[12],[1,[28,[35,3],[[30,1,[\\\"creation_date\\\"]]],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"Billed By :\\\"],[13],[1,\\\" \\\"],[1,[30,1,[\\\"biller_name\\\"]]],[1,\\\"   \\\"],[6,[39,4],null,[[\\\"class\\\",\\\"target\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-info btn-sm\\\",\\\"_self\\\",\\\"Previous Prescribed Details\\\",\\\"billing.billeddetails\\\",[28,[37,5],[[30,1,[\\\"appointment_id\\\"]],[30,1,[\\\"id\\\"]],[30,1,[\\\"patient_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"],[1,\\\"\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[42,[28,[37,1],[[28,[37,1],[[33,6]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"heading-date\\\"],[12],[1,[28,[35,3],[[30,2,[\\\"created_at\\\"]]],null]],[1,[34,2]],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pharmacy_instruction\\\"]],[[[1,\\\"                 \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Instructions/notes:\\\"],[13],[1,\\\" \\\"],[1,[30,2,[\\\"pharmacy_instruction\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"biller_name\\\"]],[[[1,\\\"                 \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Billed By :\\\"],[13],[1,\\\" \\\"],[1,[30,2,[\\\"biller_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_reason\\\"]],[[[1,\\\"                 \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Medicine discount Reason :\\\"],[13],[1,\\\" \\\"],[1,[30,2,[\\\"discount_reason\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"discount_reason\\\"]],[[[1,\\\"                 \\\"],[10,2],[12],[10,\\\"b\\\"],[12],[1,\\\"Consultancy waived reason : \\\"],[13],[1,[30,2,[\\\"consultancy_waived_reason\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[13]],[\\\"history\\\",\\\"history\\\",\\\"index\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"visitBillingHistory\\\",\\\"date-format\\\",\\\"link-to\\\",\\\"array\\\",\\\"pharmacyHistory\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/visit-billing-history.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/visit-default-charge-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"H4DXFr4E\",\n    \"block\": \"[[[1,\\\"   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"visitDefaultChargePopup\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,1]],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Visit Default Charge\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,2],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[42,[28,[37,4],[[28,[37,4],[[33,6]],null]],null],null,[[[41,[28,[37,7],[[30,2,[\\\"visit_type_code\\\"]],[30,3,[\\\"code\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-2 text-right control-label\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[1,\\\" :\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md-8 ml-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"select\\\"],[15,3,[29,[\\\"visit_type_charge\\\",[30,3,[\\\"code\\\"]]]]],[14,0,\\\"form-control\\\"],[15,1,[29,[[30,3,[\\\"code\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,8]],null]],null],null,[[[1,\\\"                      \\\"],[10,\\\"option\\\"],[15,\\\"data-appointmenttype\\\",[29,[[30,3,[\\\"code\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,7],[[30,2,[\\\"charge_id\\\"]],[30,5,[\\\"id\\\"]]],null],\\\"true\\\"]],[15,\\\"data-chargeid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[15,2,[29,[[30,5,[\\\"charge_code\\\"]]]]],[12],[1,[30,5,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3,4]],null]],[2]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-12 text-center\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Note:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"doctor-charges-message\\\"],[12],[1,\\\"Please make sure that proper amounts are set for selected charges in doctor level\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info\\\"],[24,1,\\\"saveNote\\\"],[24,4,\\\"submit\\\"],[4,[38,0],[[30,0],[30,6]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,1]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"]],[\\\"@cancelVisitDefaultCharge\\\",\\\"map_code\\\",\\\"types\\\",\\\"index\\\",\\\"charges\\\",\\\"@saveVisitTypeCharge\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"refresh\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping_code\\\",\\\"appointment_types\\\",\\\"eq\\\",\\\"default_charges\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/visit-default-charge-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/visit-history-component-popup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cqvtWOic\",\n    \"block\": \"[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal fade come-from-modal right visit_model\\\"],[14,1,\\\"visithistoryPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,1]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Visit History\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3,[\\\"total\\\"]],0],null],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,5],[[33,6],\\\"lastVisitHistory\\\"],null]],[[[1,\\\"                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm pbutton cleartable float-right ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,2]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm pbutton parent_history float-right\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"icpattend-visit-history-list-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"visit_med_list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingHistory\\\"]],[[[1,\\\"                            \\\"],[1,[34,7]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,2],[[33,3,[\\\"total\\\"]],0],null],[[[41,[33,3,[\\\"0\\\"]],[[[42,[28,[37,9],[[33,3,[\\\"0\\\"]]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"cleartable\\\"],[15,\\\"disabled\\\",[28,[37,5],[[33,6],\\\"lastVisitHistory\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"prescribedatedoctor\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"prescription\\\",\\\"date\\\"]],[[[1,\\\"                                                \\\"],[1,[28,[35,10],[[30,3,[\\\"prescription\\\",\\\"date\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[1,[28,[35,10],[[30,4]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"prescription\\\",\\\"doctor_name\\\",\\\"label\\\"]],[[[1,\\\"                                                , \\\"],[1,[30,3,[\\\"prescription\\\",\\\"doctor_name\\\",\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"prescription\\\",\\\"visit_mode\\\",\\\"appointment_type\\\"]],[[[1,\\\"                                                , (\\\"],[10,1],[14,0,\\\"visit_mode\\\"],[12],[1,[30,3,[\\\"prescription\\\",\\\"visit_mode\\\",\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"prescription\\\",\\\"prescribed_branch\\\",\\\"title\\\"]],[[[1,\\\"                                                    , \\\"],[10,1],[14,0,\\\"prescribed_branch\\\"],[12],[1,[30,3,[\\\"prescription\\\",\\\"prescribed_branch\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n                                                \\\"]],[]],null],[1,\\\")\\\\n\\\\n\\\"]],[]],[[[41,[30,3,[\\\"prescription\\\",\\\"prescribed_branch\\\",\\\"title\\\"]],[[[1,\\\"                                                    , \\\"],[10,1],[14,0,\\\"prescribed_branch\\\"],[12],[1,[30,3,[\\\"prescription\\\",\\\"prescribed_branch\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"sub-visit_med_list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[33,11],\\\"icpattend\\\"],null],[[[41,[28,[37,5],[[33,6],\\\"all\\\"],null],[[[41,[30,3,[\\\"casetaken\\\"]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"visit-case\\\"],[12],[1,\\\"Case\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[42,[28,[37,9],[[30,3,[\\\"casetaken\\\"]]],null],null,[[[41,[30,5,[\\\"DKBC_disease_id\\\"]],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"case-inline capitalize major_condition\\\",[30,5,[\\\"major_condition\\\"]]]]],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable clearcheckbox\\\"],[15,\\\"data-casetakenId\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,3,\\\"casetaken_history\\\"],[15,\\\"data-casetakenappointment\\\",[29,[[30,5,[\\\"appointment_id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                                            \\\"],[41,[30,5,[\\\"disease\\\",\\\"name\\\"]],[[[1,\\\" \\\"],[1,[30,5,[\\\"disease\\\",\\\"name\\\"]]],[1,\\\", \\\"],[1,[30,5,[\\\"system\\\",\\\"name\\\"]]],[1,\\\", \\\"],[1,[30,5,[\\\"organ\\\",\\\"name\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,5,[\\\"DKBC_disease_others\\\"]],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"case-inline capitalize major_condition\\\",[30,5,[\\\"major_condition\\\"]]]]],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable clearcheckbox\\\"],[15,\\\"data-casetakenId\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,3,\\\"casetaken_history\\\"],[15,\\\"data-casetakenappointment\\\",[29,[[30,5,[\\\"appointment_id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                                            \\\"],[41,[30,5,[\\\"DKBC_disease_others\\\"]],[[[1,\\\" \\\"],[1,[30,5,[\\\"DKBC_disease_others\\\"]]],[1,\\\", \\\"],[1,[30,5,[\\\"DKBC_system_others\\\"]]],[1,\\\", \\\"],[1,[30,5,[\\\"DKBC_organ_others\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"case-inline capitalize major_condition\\\",[30,5,[\\\"major_condition\\\"]]]]],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable clearcheckbox\\\"],[15,\\\"data-casetakenId\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,3,\\\"casetaken_history\\\"],[15,\\\"data-casetakenappointment\\\",[29,[[30,5,[\\\"appointment_id\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                                            \\\"],[41,[30,5,[\\\"ICD_disease_name\\\"]],[[[1,\\\" \\\"],[1,[30,5,[\\\"ICD_disease_name\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"]],[]]]],[]]]],[5,6]],null],[41,[28,[37,5],[[33,6],\\\"all\\\"],null],[[[41,[30,3,[\\\"prescription\\\"]],[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"visit-case\\\"],[12],[1,\\\"Prescription\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[42,[28,[37,9],[[30,3,[\\\"prescription\\\"]]],null],null,[[[41,[30,7,[\\\"id\\\"]],[[[41,[28,[37,12],[[30,7,[\\\"midicine_type\\\"]],\\\"single\\\"],null],[[[1,\\\"                                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"case-inline\\\"],[12],[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"cleartable clearcheckbox\\\"],[15,\\\"data-medicineId\\\",[29,[[30,7,[\\\"id\\\"]]]]],[14,3,\\\"parent_history\\\"],[15,\\\"data-mtype\\\",[29,[[30,7,[\\\"midicine_type\\\"]]]]],[15,\\\"data-appointment\\\",[29,[[30,7,[\\\"appointment_id\\\"]]]]],[15,\\\"data-billing\\\",[29,[[30,7,[\\\"billing_id\\\"]]]]],[15,\\\"disabled\\\",[28,[37,5],[[33,6],\\\"lastVisitHistory\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,7,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,7,[\\\"medicine_name\\\"]]],[1,\\\",\\\"],[1,[30,7,[\\\"potency_name\\\"]]],[1,\\\" , \\\"],[1,[30,7,[\\\"form_name\\\"]]],[1,\\\" ,\\\"],[1,[30,7,[\\\"dilution_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,12],[[30,7,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,[30,7,[\\\"vial\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\" Vials, \\\"],[10,1],[14,0,\\\"visit_instruction\\\"],[12],[1,[30,7,[\\\"instruction_name\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,7,[\\\"midicine_type\\\"]],\\\"mix\\\"],null],[[[1,\\\"                                                            \\\"],[10,\\\"li\\\"],[14,\\\"title\\\",\\\"Mix Medicine\\\"],[15,0,[29,[[30,7,[\\\"midicine_type\\\"]],\\\" case-inline\\\"]]],[12],[10,\\\"input\\\"],[14,0,\\\"cleartable clearcheckbox\\\"],[15,\\\"data-medicineId\\\",[29,[[30,7,[\\\"id\\\"]]]]],[14,3,\\\"parent_history\\\"],[15,\\\"data-mtype\\\",[29,[[30,7,[\\\"midicine_type\\\"]]]]],[15,\\\"data-billing\\\",[29,[[30,7,[\\\"billing_id\\\"]]]]],[15,\\\"data-appointment\\\",[29,[[30,7,[\\\"appointment_id\\\"]]]]],[15,\\\"disabled\\\",[28,[37,5],[[33,6],\\\"lastVisitHistory\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,7,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,7,[\\\"medicine_name\\\"]]],[1,\\\" ,\\\\n                                                                \\\"],[1,[30,7,[\\\"form_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,12],[[30,7,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,\\\"\\\\n                                                                    \\\"],[1,[30,7,[\\\"vial\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\" Vials, \\\"],[10,1],[14,0,\\\"visit_instruction\\\"],[12],[1,[30,7,[\\\"instruction_name\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                            \\\"],[10,\\\"li\\\"],[14,\\\"title\\\",\\\"On the fly mix medicine\\\"],[15,0,[29,[[30,7,[\\\"midicine_type\\\"]],\\\" case-inline\\\"]]],[12],[10,\\\"input\\\"],[15,\\\"data-medicineId\\\",[29,[[30,7,[\\\"id\\\"]]]]],[14,0,\\\"cleartable clearcheckbox\\\"],[14,3,\\\"parent_history\\\"],[15,\\\"data-mtype\\\",[29,[[30,7,[\\\"midicine_type\\\"]]]]],[15,\\\"data-billing\\\",[29,[[30,7,[\\\"billing_id\\\"]]]]],[15,\\\"data-appointment\\\",[29,[[30,7,[\\\"appointment_id\\\"]]]]],[15,\\\"disabled\\\",[28,[37,5],[[33,6],\\\"lastVisitHistory\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"history-badge\\\"],[12],[1,[30,7,[\\\"medicine_serial_no\\\"]]],[13],[1,\\\" \\\"],[1,[30,7,[\\\"medicine_name\\\"]]],[1,\\\" ,\\\\n                                                                \\\"],[1,[30,7,[\\\"form_name\\\"]]],[1,\\\" , \\\"],[41,[28,[37,12],[[30,7,[\\\"vial\\\"]],\\\"0\\\"],null],[[[1,\\\" 1 \\\"]],[]],[[[1,\\\"\\\\n                                                                    \\\"],[1,[30,7,[\\\"vial\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\" Vials, , \\\"],[10,1],[14,0,\\\"visit_instruction\\\"],[12],[1,[30,7,[\\\"instruction_name\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null]],[7,8]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[41,[28,[37,13],[[28,[37,14],[[33,3,[\\\"count\\\"]],[33,3,[\\\"total\\\"]]],null],[28,[37,2],[[33,3,[\\\"total\\\"]],5],null]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-corner\\\"],[24,\\\"title\\\",\\\"Load More History\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,9],[33,3,[\\\"count\\\"]],[33,3,[\\\"patient_id\\\"]],[33,6]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Load\\\\n                                        More +\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[33,3,[\\\"total\\\"]],0],null],[[[41,[28,[37,13],[[28,[37,15],[[28,[37,5],[[33,6],\\\"all\\\"],null],[28,[37,5],[[33,6],\\\"casetaken\\\"],null]],null],[28,[37,16],[[28,[37,17],[[33,3,[\\\"0\\\"]]],null]],null]],null],[[[1,\\\"                                        \\\\n\\\"],[41,[28,[37,13],[[28,[37,14],[[33,3,[\\\"count\\\"]],[33,3,[\\\"total\\\"]]],null],[28,[37,2],[[33,3,[\\\"total\\\"]],5],null]],null],[[[1,\\\"                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"sub-visit_med_list\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"badge-message\\\"],[12],[1,\\\"\\\\n                                            No case taken history found in the last 5 visits. Click 'Load More' to view more.\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm pull-corner\\\"],[24,\\\"title\\\",\\\"Load More History\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],[30,9],[33,3,[\\\"count\\\"]],[33,3,[\\\"patient_id\\\"]],[33,6]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"\\\\n                                                Load More +\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"sub-visit_med_list\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"badge-message\\\"],[12],[1,\\\"\\\\n                                            No case taken history found in the last 5 visits.\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]]]],[]],[[[41,[51,[30,0,[\\\"isLoadingHistory\\\"]]],[[[1,\\\"                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"no-history-message\\\"],[12],[1,\\\"No History Found\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13]],[\\\"@clearSelectedCheckbox\\\",\\\"@historyClearCheckbox\\\",\\\"history\\\",\\\"key\\\",\\\"history_list\\\",\\\"key2\\\",\\\"med_value\\\",\\\"key1\\\",\\\"@loadMoreHistory\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"gt\\\",\\\"PatientHistory\\\",\\\"unless\\\",\\\"eq\\\",\\\"filterParameter\\\",\\\"history-loader\\\",\\\"each\\\",\\\"-each-in\\\",\\\"date-format\\\",\\\"history_page\\\",\\\"ifeg\\\",\\\"and\\\",\\\"lessthen\\\",\\\"or\\\",\\\"not\\\",\\\"has-casetaken\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/visit-history-component-popup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/visit-log-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"yBXO4ejy\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"VisitLogSection\\\",[33,2]],null],[[[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"visit_log\\\"],[12],[10,1],[14,0,\\\"table-visitlog\\\"],[12],[1,\\\"Visit Log\\\"],[13],[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-xs office-expand\\\"],[14,\\\"data-target\\\",\\\"#visitlog\\\"],[14,\\\"data-toggle\\\",\\\"collapse\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"title\\\",\\\"Expand or Collapse\\\"],[12],[13],[13],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-collapse collapse\\\"],[14,1,\\\"visitlog\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[14,1,\\\"visitloglist\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,5,\\\"width:12%\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,5,\\\"width:12%\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,5,\\\"width:10%\\\"],[12],[1,\\\"Discount%\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,5,\\\"width:33%\\\"],[12],[1,\\\"Charges codes\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"th\\\"],[14,5,\\\"width:31%\\\"],[12],[1,\\\"Reason\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,\\\"tbody\\\"],[14,1,\\\"visitlogbody\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,3],[[33,4]],null]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[18,1,null]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"visit-log\\\",\\\"visit_logs\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/visit-log-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/vist-billing-history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"EsIyzebq\",\n    \"block\": \"[[[18,1,null]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/vist-billing-history.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/vital-statistics-component-preview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3pYtxo0q\",\n    \"block\": \"[[[10,0],[14,0,\\\"section-list\\\"],[14,1,\\\"vitalStatisticsComponentPreview\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n         \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Vital Statistics\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"modified_by\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"         \\\"],[1,[28,[35,2],null,[[\\\"username\\\"],[[33,1,[\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"sub-section-list\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Height :\\\"],[13],[13],[1,\\\"\\\\n       \\\"],[1,[28,[35,3],[[33,4,[\\\"height_inches\\\"]],[33,4,[\\\"height_filter_unit\\\"]]],null]],[1,\\\" \\\"],[41,[28,[37,5],[[33,4,[\\\"height_filter_unit\\\"]],\\\"feet\\\"],null],[[[1,\\\"  \\\"],[1,\\\"feet/inch\\\"],[1,\\\" \\\"]],[]],[[[1,\\\" \\\"],[1,[33,4,[\\\"height_filter_unit\\\"]]],[1,\\\" \\\"]],[]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Weight :\\\"],[13],[13],[1,\\\"\\\\n     \\\"],[1,[28,[35,6],[[33,4,[\\\"weight_kgs\\\"]],[33,4,[\\\"weight_filter_unit\\\"]]],null]],[1,\\\" \\\"],[1,[33,4,[\\\"weight_filter_unit\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"BMI :\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"vatalwarning\\\",[33,4,[\\\"bmi_warning\\\"]]]]],[12],[1,[28,[35,7],[[33,4,[\\\"bmi\\\"]],\\\"2\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Blood Type :\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[1,[33,4,[\\\"blood_type\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Body Temp. :\\\"],[13],[13],[1,\\\"\\\\n       \\\"],[10,1],[15,0,[29,[\\\"vatalwarning\\\",[33,4,[\\\"body_temp_warning\\\"]]]]],[12],[1,[28,[35,8],[[33,4,[\\\"body_temp_celsius\\\"]],[33,4,[\\\"body_temp_filter_unit\\\"]]],null]],[13],[1,\\\" \\\"],[1,[33,4,[\\\"body_temp_filter_unit\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n     \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Pulse :\\\"],[13],[13],[1,\\\"\\\\n     \\\"],[10,1],[15,0,[29,[\\\"vatalwarning\\\",[33,4,[\\\"pluse_warning\\\"]]]]],[12],[1,[33,4,[\\\"pulse_bpm\\\"]]],[13],[1,\\\"/min\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n     \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Blood Pressure :\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"vatalwarning\\\",[33,4,[\\\"blood_pressure_systolic_warning\\\"]]]]],[12],[1,[33,4,[\\\"blood_pressure_systolic\\\"]]],[13],[1,\\\"/\\\"],[10,1],[15,0,[29,[\\\"vatalwarning\\\",[33,4,[\\\"blood_pressure_diastolic_warning\\\"]]]]],[12],[1,[33,4,[\\\"blood_pressure_diastolic\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[13]],[],false,[\\\"if\\\",\\\"last_updated_by\\\",\\\"section-add-edit-by\\\",\\\"height-conversion\\\",\\\"patient_vital_list\\\",\\\"eq\\\",\\\"weight-conversion\\\",\\\"number-format\\\",\\\"body-temp-conversion\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/vital-statistics-component-preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/components/vital-statistics-component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cVoGAXZv\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"VitalStatisticsSection\\\",[33,2]],null],[[[1,\\\"   \\\"],[10,0],[14,0,\\\"row vital-table\\\"],[12],[1,\\\"\\\\n     \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n       \\\"],[10,1],[14,0,\\\"table-heading\\\"],[12],[1,\\\"Vital Statistics\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"visit_data\\\",\\\"modified_by\\\"]],[[[1,\\\"         \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"visit_data\\\",\\\"modified_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"         \\\"],[1,[28,[35,4],null,[[\\\"username\\\"],[[33,3,[\\\"visit_data\\\",\\\"created_by\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"     \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"AddVitalStatistics\\\",[33,2]],null],[[[41,[33,3,[\\\"visit_data\\\"]],[[[1,\\\"         \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm btn-info addvital\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add Vital Statistics\\\\n           \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"         \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-sm btn-info addvital v-add-b float-right\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-plus\\\"],[12],[13],[1,\\\" Add Vital Statistics\\\\n           \\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"data\\\"]],[[[1,\\\"     \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"VitalStatisticsFilter\\\",[33,2]],null],[[[1,\\\"         \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-2 text-label\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"visit_due\\\"],[12],[1,\\\"Blood Type:\\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"               \\\"],[10,0],[14,0,\\\"col-md-1 e-vt-bt bt-filter\\\"],[14,1,\\\"blood_type\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"blood_type_filter\\\"],[14,3,\\\"blood_type_filter\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[33,3,[\\\"visit_data\\\",\\\"blood_type\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n               \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"               \\\"],[10,0],[14,0,\\\"col-md-1 e-vt-bt bt-filter\\\"],[14,1,\\\"blood_type\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"blood_type_filter\\\"],[14,3,\\\"blood_type_filter\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[33,5,[\\\"0\\\",\\\"blood_type\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n               \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"             \\\"],[10,0],[14,0,\\\"col-md-1 label-space\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"visit_due\\\"],[12],[1,\\\"Height:\\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-1 select-width e-vt-h h-filter\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"height_unit_filter\\\"],[14,1,\\\"height_unit_filter\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"heightUnitFilter\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"feet\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"feet\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"feet\\\"],[13],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"inch\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"inch\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"inch\\\"],[13],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"m\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"m\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"m\\\"],[13],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"cm\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"cm\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"cm\\\"],[13],[1,\\\"\\\\n               \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-1 label-space\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"visit_due\\\"],[12],[1,\\\"Weight:\\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-1 select-width e-vt-w w-filter\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"weight_unit_filter\\\"],[14,1,\\\"weight_unit_filter\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"weightUnitFilter\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"kg\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"kg\\\",[33,9]],null],\\\"true\\\"]],[12],[1,\\\"kg\\\"],[13],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"pound\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"pound\\\",[33,9]],null],\\\"true\\\"]],[12],[1,\\\"pounds\\\"],[13],[1,\\\"\\\\n               \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-2 label-space\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"visit_due\\\"],[12],[1,\\\"Body Temp:\\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"col-md-1 text-label-last e-vt-btp btp-filter\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control select-width\\\"],[14,3,\\\"body_temp_unit_filter\\\"],[14,1,\\\"body_temp_unit_filter\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"bodyTempUnitFilter\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"°F\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"°F\\\",[33,10]],null],\\\"true\\\"]],[12],[1,\\\"°F\\\"],[13],[1,\\\"\\\\n                 \\\"],[10,\\\"option\\\"],[14,2,\\\"°C\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[\\\"°C\\\",[33,10]],null],\\\"true\\\"]],[12],[1,\\\"°C\\\"],[13],[1,\\\"\\\\n\\\\n               \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n           \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"     \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n     \\\"],[10,0],[14,1,\\\"vitalmessage\\\"],[12],[13],[1,\\\"\\\\n   \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,3,[\\\"data\\\"]],[[[1,\\\"     \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"VitalStatisticTable\\\",[33,2]],null],[[[1,\\\"         \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n           \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered vital-table\\\"],[12],[1,\\\"\\\\n             \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"th\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"th\\\"],[14,0,\\\"vital-th-date\\\"],[12],[1,[28,[35,13],[[30,1,[\\\"created_at\\\"]]],null]],[1,\\\"  \\\"],[41,[28,[37,7],[[30,1,[\\\"id\\\"]],[33,3,[\\\"visit_data\\\",\\\"id\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,\\\"title\\\",\\\"Edit Vital Data\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"editVitalData\\\",[33,3,[\\\"visit_data\\\",\\\"id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n               \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n             \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"Height  (\\\"],[1,[34,8]],[1,\\\") \\\"],[10,\\\"input\\\"],[14,0,\\\"height\\\"],[15,2,[29,[[36,8]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"height\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\" \\\"],[41,[30,2,[\\\"height_inches\\\"]],[[[1,\\\" \\\"],[1,[28,[35,14],[[30,2,[\\\"height_inches\\\"]],[33,8]],null]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"Weight  (\\\"],[1,[34,9]],[1,\\\")\\\"],[10,\\\"input\\\"],[14,0,\\\"weight\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"weight\\\",[30,3,[\\\"id\\\"]]]]],[12],[41,[30,3,[\\\"weight_kgs\\\"]],[[[1,\\\" \\\"],[1,[28,[35,15],[[30,3,[\\\"weight_kgs\\\"]],[33,9]],null]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"BMI  (kg/(m)2)\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"bmi\\\",[30,4,[\\\"id\\\"]],\\\" vatalwarning\\\",[30,4,[\\\"bmi_warning\\\"]]]]],[12],[41,[30,4,[\\\"bmi\\\"]],[[[1,\\\" \\\"],[1,[28,[35,16],[[30,4,[\\\"bmi\\\"]],\\\"2\\\"],null]]],[]],null],[10,\\\"input\\\"],[15,0,[29,[\\\"bmi_warning\\\",[30,4,[\\\"id\\\"]]]]],[15,2,[29,[[30,4,[\\\"bmi_warning\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"Body Temp  (\\\"],[1,[34,10]],[1,\\\")\\\"],[10,\\\"input\\\"],[14,0,\\\"bodytemp\\\"],[15,2,[29,[[36,10]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"bodytemp\\\",[30,5,[\\\"id\\\"]],\\\" vatalwarning\\\",[30,5,[\\\"body_temp_warning\\\"]]]]],[12],[41,[30,5,[\\\"body_temp_celsius\\\"]],[[[1,\\\" \\\"],[1,[28,[35,17],[[30,5,[\\\"body_temp_celsius\\\"]],[33,10]],null]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"body_temp_warning\\\",[30,5,[\\\"id\\\"]]]]],[15,2,[29,[[30,5,[\\\"body_temp_warning\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"Pulse\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"pulse\\\",[30,6,[\\\"id\\\"]],\\\" vatalwarning\\\",[30,6,[\\\"pluse_warning\\\"]]]]],[12],[41,[30,6,[\\\"pulse_bpm\\\"]],[[[1,\\\" \\\"],[1,[30,6,[\\\"pulse_bpm\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"pluse_warning\\\",[30,6,[\\\"id\\\"]]]]],[15,2,[29,[[30,6,[\\\"pluse_warning\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n               \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                 \\\"],[10,\\\"td\\\"],[14,0,\\\"vital-head\\\"],[12],[1,\\\"Blood Pressure\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,3,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"                   \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"bodypressure\\\",[30,7,[\\\"id\\\"]],\\\" vatalwarning\\\",[30,7,[\\\"blood_pressure_systolic_warning\\\"]],\\\" vatalwarning\\\",[30,7,[\\\"blood_pressure_diastolic_warning\\\"]]]]],[12],[41,[30,7,[\\\"blood_pressure_systolic\\\"]],[[[1,\\\" \\\"],[1,[30,7,[\\\"blood_pressure_systolic\\\"]]],[1,\\\"/\\\"],[1,[30,7,[\\\"blood_pressure_diastolic\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"blood_pressure_systolic_warning\\\",[30,7,[\\\"id\\\"]]]]],[15,2,[29,[[30,7,[\\\"blood_pressure_systolic_warning\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"blood_pressure_diastolic_warning\\\",[30,7,[\\\"id\\\"]]]]],[15,2,[29,[[30,7,[\\\"blood_pressure_diastolic_warning\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"               \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n           \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"     \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"vital_list\\\",\\\"vital_list\\\",\\\"vital_list\\\",\\\"vital_list\\\",\\\"vital_list\\\",\\\"vital_list\\\",\\\"vital_list\\\"],false,[\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"patient_vital_list\\\",\\\"section-add-edit-by\\\",\\\"PatientInfo\\\",\\\"action\\\",\\\"eq\\\",\\\"height_unit\\\",\\\"weight_unit\\\",\\\"body_temp_unit\\\",\\\"each\\\",\\\"-track-array\\\",\\\"common-date\\\",\\\"height-conversion\\\",\\\"weight-conversion\\\",\\\"number-format\\\",\\\"body-temp-conversion\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/components/vital-statistics-component.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dashboard\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xCqwZ6CU\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" Nav tabs \\\"],[1,\\\"\\\\n        \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-tabs \\\"],[14,\\\"role\\\",\\\"tablist\\\"],[14,1,\\\"assign-tab-list\\\"],[14,5,\\\"margin-bottom:0px;background:#FFF;border-radius:5px 5px 0px 0px;border-bottom:none; display: none;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"DoctorList\\\",[33,3]],null],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"active\\\"],[12],[11,3],[24,\\\"data-tab\\\",\\\"home\\\"],[24,0,\\\"booked\\\"],[4,[38,4],[[30,0],\\\"showTab\\\",\\\"home\\\"],null],[12],[1,\\\"Overview\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[12],[11,3],[16,\\\"data-tab\\\",[30,1,[\\\"label\\\"]]],[16,0,[29,[[30,1,[\\\"label\\\"]]]]],[4,[38,4],[[30,0],\\\"showTab\\\",[30,1,[\\\"label\\\"]]],null],[12],[1,[30,1,[\\\"Name\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n         \\\"],[3,\\\" Login message display \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,8,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[1,[28,[35,9],null,[[\\\"flash\\\"],[[30,2]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[3,\\\" Tab panes \\\"],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tab-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[15,0,[29,[\\\"tab-pane \\\",[28,[37,10],[\\\"home\\\",[33,11],\\\"active\\\",\\\"\\\"],null]]]],[14,1,\\\"home\\\"],[12],[1,\\\"  \\\"],[1,[28,[35,12],null,[[\\\"markComplete\\\",\\\"cancelOnSpot\\\",\\\"assignPatient\\\",\\\"cancelAssignment\\\",\\\"reAssign\\\",\\\"reScheduleModal\\\",\\\"updateDkbList\\\",\\\"branchAppointments\\\",\\\"assigned\\\",\\\"onSpotModal\\\",\\\"refreshAssignPatientModule\\\",\\\"bookedAppCount\\\",\\\"onspotAppCount\\\",\\\"user_shift_id\\\",\\\"moveToBigScreenMedicine\\\",\\\"markCompleteMedicineC\\\",\\\"checkinbookedAssignment\\\",\\\"getDoctorCharges\\\",\\\"branch_id\\\",\\\"permission_arr\\\",\\\"user_id\\\",\\\"frontUrgentPatient\\\",\\\"frontdeskDrReschedulePatient\\\",\\\"bookedPrint\\\",\\\"onspotPrint\\\",\\\"tablist\\\",\\\"openPayTransactionPopup\\\",\\\"moveToBigScreenDashboard\\\",\\\"setShippingPreference\\\"],[\\\"markComplete\\\",\\\"cancelOnSpot\\\",\\\"assignPatient\\\",\\\"cancelAssignment\\\",\\\"reAssign\\\",\\\"reScheduleModal\\\",\\\"updateDkbList\\\",[33,13],[33,14],[28,[37,4],[[30,0],\\\"onSpotModal\\\"],null],\\\"refreshAssignPatientModule\\\",[33,15],[33,16],[33,17],\\\"moveToBigScreenMedicine\\\",\\\"markCompleteMedicineC\\\",\\\"checkinbookedAssignment\\\",\\\"getDoctorCharges\\\",[33,18],[33,3],[33,19],\\\"frontUrgentPatient\\\",\\\"frontdeskDrReschedulePatient\\\",\\\"bookedPrint\\\",\\\"onspotPrint\\\",[33,20],\\\"openPayTransactionPopup\\\",\\\"moveToBigScreenDashboard\\\",[28,[37,4],[[30,0],\\\"setShippingPreference\\\"],null]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[15,0,[29,[\\\"tab-pane \\\",[28,[37,10],[[30,3,[\\\"label\\\"]],[33,11],\\\"active\\\",\\\"\\\"],null]]]],[15,1,[30,3,[\\\"label\\\"]]],[12],[1,[28,[35,21],null,[[\\\"markComplete\\\",\\\"assignPatient\\\",\\\"cancelAssignment\\\",\\\"cancelOnSpot\\\",\\\"reAssign\\\",\\\"reScheduleModal\\\",\\\"branchAppointments\\\",\\\"assigned\\\",\\\"refreshAssignPatientModule\\\",\\\"user_shift_id\\\"],[\\\"markComplete\\\",\\\"assignPatient\\\",\\\"cancelAssignment\\\",\\\"cancelOnSpot\\\",\\\"reAssign\\\",\\\"reScheduleModal\\\",[33,13],[30,3],\\\"refreshAssignPatientModule\\\",[33,17]]]]],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"Absentees\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t    \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,22],null,[[\\\"notCompletedAppointments\\\"],[[33,23]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n     \\\"],[3,\\\" {{#if (check-permission 'CompletedVisits' permission_arr) }}\\\\n\\\\t\\\\t\\\\t    <div class=\\\\\\\"col-xs-12\\\\\\\">{{completed-visits completedAppointments=completed route=\\\\\\\"dashboard\\\\\\\" completeReportsTypes=\\\\\\\"new\\\\\\\"  refreshcompleteList=(action 'refreshcompleteList')}}</div>\\\\n       {{/if}} \\\"],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,24],null,[[\\\"icpVcComplete\\\",\\\"route\\\",\\\"completeReportsTypes\\\",\\\"refreshcompleteList\\\"],[[33,25],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,26],null,[[\\\"phoneComplete\\\",\\\"route\\\",\\\"completeReportsTypes\\\",\\\"refreshcompleteList\\\"],[[33,27],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,28],null,[[\\\"emailComplete\\\",\\\"route\\\",\\\"completeReportsTypes\\\",\\\"refreshcompleteList\\\"],[[33,29],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,30],null,[[\\\"ocpComplete\\\",\\\"route\\\",\\\"completeReportsTypes\\\",\\\"refreshcompleteList\\\"],[[33,31],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,2],[\\\"MedicineCompletedVisits\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t      \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,32],null,[[\\\"completedMedicineAppointments\\\",\\\"route\\\",\\\"medComReportType\\\",\\\"refreshcompleteList\\\"],[[33,33],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,2],[\\\"MedicineCompletedVisits\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t      \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,[28,[35,34],null,[[\\\"EmailRepeatMedicineComplete\\\",\\\"route\\\",\\\"EmailRMmedComReportType\\\",\\\"refreshcompleteList\\\"],[[33,35],\\\"dashboard\\\",\\\"new\\\",[28,[37,4],[[30,0],\\\"refreshcompleteList\\\"],null]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,2],[\\\"AppointmentsTimeslot\\\",[33,3]],null],[[[1,\\\"          \\\"],[1,[28,[35,36],null,[[\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"branch_id\\\",\\\"td_width\\\"],[[33,37,[\\\"data\\\"]],[33,38,[\\\"data\\\"]],[33,39],[33,18],[33,40]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[14,1,\\\"reSchedule\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header row\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"reschedule_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[12],[1,[30,5,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"reScheduleButton\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"reSchedule\\\"],null],[12],[1,\\\"Re Assign\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[14,1,\\\"reAssignDoctor\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeReAssignModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"reassign_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[12],[1,[30,6,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"reAssignButton\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"reAssign\\\"],null],[12],[1,\\\"Re Assign\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n\\\"],[3,\\\"This model is open for on the spot booking \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal common_model\\\"],[14,1,\\\"on-spot-modal\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n       \\\"],[10,0],[14,0,\\\"modal-content row\\\"],[14,5,\\\"max-height:700px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header row\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeOnSpotModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"On-Spot booking\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"\\\"],[14,5,\\\"padding-left:20px\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label col-xs-2\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control col-xs-10\\\"],[14,3,\\\"onSpotDoc\\\"],[14,1,\\\"onSpotDoc\\\"],[14,5,\\\"width:80%!important\\\"],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setOnspotDoc\\\"],null]],[12],[1,\\\"\\\\n              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,7,[\\\"user_id\\\"]]]]],[12],[1,[30,7,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"            \\\"],[10,\\\"option\\\"],[14,2,\\\"medicine\\\"],[12],[1,\\\"Medicine Queue\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"option\\\"],[14,2,\\\"emailrm\\\"],[12],[1,\\\"Email RM\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row \\\"],[14,5,\\\"padding-left:20px;padding-top:15px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 appointment_type_div control-label\\\"],[12],[1,\\\"Appointment Type\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-5 appointment_type_div\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,41]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-sm btn-info appointment_buttons appointmentType_buttons appointmenttype_\\\",[30,8,[\\\"code\\\"]]]]],[16,1,[29,[\\\"branch_\\\",[30,8,[\\\"code\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"appointmentType\\\",[30,8,[\\\"code\\\"]],[30,8,[\\\"name\\\"]]],null],[12],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_status\\\"],[14,5,\\\"float:left;margin-right: 10px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-exclamation-circle fa-urgent icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"input\\\"],[14,3,\\\"urgent_status\\\"],[14,1,\\\"urgent_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Urgent\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\\t\\\"],[10,\\\"textarea\\\"],[14,3,\\\"urgenttagnote\\\"],[14,\\\"rows\\\",\\\"1\\\"],[14,1,\\\"urgenttagnote\\\"],[14,0,\\\"form-control marginleft5\\\"],[14,5,\\\"display:none;\\\"],[14,\\\"placeholder\\\",\\\"Enter reason\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row location_row\\\"],[14,5,\\\"display:none;padding-left:20px;margin-top: 10px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"appointment_type\\\"],[14,0,\\\"col-xs-2 control-label\\\"],[12],[1,\\\"OCP Visit Address\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t\\\"],[10,\\\"textarea\\\"],[14,3,\\\"ocp_visit_address\\\"],[14,1,\\\"ocp_visit_address\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"OCP Visit Address\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t \\\\t \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline text-center\\\"],[14,1,\\\"modal-functions\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-group \\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"col-xs-2 control-label\\\"],[12],[1,\\\"Search Patient \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Patient Name or ID\\\",[33,43]]]]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n             \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,4],[[30,0],\\\"search_patient\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"RegisterPatientButton\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t       \\\"],[10,1],[14,5,\\\"padding: 0 10px\\\"],[12],[1,\\\" OR \\\"],[13],[1,\\\"\\\\n                   \\\"],[11,\\\"button\\\"],[24,3,\\\"show-form\\\"],[24,0,\\\"btn btn-warning\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"showForm\\\"],null],[12],[1,\\\"Register\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row \\\"],[14,5,\\\"padding-left:20px\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"advance_payment_status\\\"],[14,3,\\\"advance_payment_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"\\\"],[12],[1,\\\" Is advance required? \\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"advance_payment_obj\\\"],[14,0,\\\"advance_payment_obj\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\"],[\\\"hidden\\\",\\\"span5 form-control\\\",\\\"appointment_type\\\",\\\"appointment_type\\\"]]]],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"advance_payment_urgency\\\"],[14,0,\\\"advance_payment_urgency\\\"],[14,2,\\\"0\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_doctor_id\\\"],[14,0,\\\"appointment_doctor_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_pay_later\\\"],[14,0,\\\"appointment_pay_later\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_patient_id\\\"],[14,0,\\\"appointment_patient_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,44],null,[[\\\"patients\\\",\\\"stats\\\",\\\"prev\\\",\\\"next\\\",\\\"goto\\\",\\\"p\\\",\\\"submitOnSpot\\\",\\\"q\\\"],[[33,45],[33,46],\\\"prev\\\",\\\"next\\\",\\\"goto\\\",[33,47],\\\"submitOnSpot\\\",[33,43]]]]],[1,\\\"\\\\n                  \\\"],[10,\\\"form\\\"],[14,0,\\\"form form-inline hidden\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"on-spot-registration\\\"],[14,5,\\\"margin-left:20px; padding-bottom: 20px;\\\"],[12],[1,\\\"\\\\n                    \\\"],[3,\\\" <div class=\\\\\\\"form-group \\\\\\\" style=\\\\\\\"width:100%\\\\\\\">\\\\n                      <label for=\\\\\\\"appointment_doctor\\\\\\\" class=\\\\\\\" span3 control-label\\\\\\\">Doctor</label>\\\\n                      <select name='appointment_doctor' id=\\\\\\\"appointment_doctor\\\\\\\" value={{mode}} onchange={{action \\\\\\\"setAppointmentDoctor\\\\\\\"}} required disabled=\\\\\\\"true\\\\\\\" class=\\\\\\\"form-control\\\\\\\">\\\\n{{#each assigned as |doc|}}\\\\n                            <option value=\\\\\\\"{{doc.id}}\\\\\\\">{{doc.doctor_name}}</option>\\\\n                          {{/each}}                      </select>\\\\n                    </div> \\\"],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"  \\\"],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mode\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Mode of Registration \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"mode\\\"],[14,1,\\\"mode\\\"],[15,2,[36,48]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setMode\\\"],null]],[14,\\\"required\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"email\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"phone\\\"],[12],[1,\\\"Phone\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"clinic\\\"],[12],[1,\\\"Clinic\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n        \\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"priority\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Priority \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"priority\\\"],[14,1,\\\"priority\\\"],[15,2,[36,49]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setPriority\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"normal\\\"],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"medium\\\"],[12],[1,\\\"Medium\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"high\\\"],[12],[1,\\\"High\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"blood_type\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Blood Type \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"blood_type\\\"],[14,1,\\\"blood_type\\\"],[15,2,[36,50]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setBloodType\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                         \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"A+\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"A-\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"B+\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"B-\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"O+\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"O-\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"AB+\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,10],[\\\"AB\\\",[33,50]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"category\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Category\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"category\\\"],[14,1,\\\"category\\\"],[15,2,[36,51]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setCategory\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Serious Illness\\\"],[12],[1,\\\"Serious Illness\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Family\\\"],[12],[1,\\\"Family\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Friend\\\"],[12],[1,\\\"Friend\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"IRS\\\"],[12],[1,\\\"IRS\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"IAS\\\"],[12],[1,\\\"IAS\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Police\\\"],[12],[1,\\\"Police\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Armed Forces\\\"],[12],[1,\\\"Armed Forces\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Politician\\\"],[12],[1,\\\"Politician\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t            \\\"],[10,\\\"option\\\"],[14,2,\\\"media\\\"],[12],[1,\\\"Media\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group bg_row_1\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"discount_category\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Discount Category \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"discount_category\\\"],[15,2,[36,52]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateDiscountCategoty\\\"],null]],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Discount Category\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,53]],null]],null],null,[[[1,\\\"                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,9,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,9,[\\\"id\\\"]],[33,52]],null]],[12],[1,\\\" \\\"],[1,[30,9,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"title_prefix\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Title\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"title_prefix\\\"],[14,1,\\\"title_prefix\\\"],[15,2,[36,54]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setTitlePrefix\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Mr\\\"],[12],[1,\\\"Mr.\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Mrs\\\"],[12],[1,\\\"Mrs.\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Ms\\\"],[12],[1,\\\"Ms.\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Dr\\\"],[12],[1,\\\"Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"Master\\\"],[12],[1,\\\"Master\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"first_name\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize width150\\\",\\\"first_name\\\",\\\"first_name\\\",\\\"First Name\\\",[33,55],\\\"readonly\\\"]]]],[1,\\\" \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize width150\\\",\\\"middle_name\\\",\\\"middle_name\\\",\\\"Middle Name\\\",[33,56],\\\"readonly\\\"]]]],[1,\\\" \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"form-control capitalize width150\\\",\\\"last_name\\\",\\\"last_name\\\",\\\"Last Name\\\",[33,57],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"gender\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Gender \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,3,\\\"gender\\\"],[14,1,\\\"gender\\\"],[15,2,[36,58]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setGender\\\"],null]],[14,\\\"disabled\\\",\\\"true\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"M\\\"],[12],[1,\\\"Male\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"F\\\"],[12],[1,\\\"Female\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"O\\\"],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group bg_row_1\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"date_of_birth\\\"],[14,0,\\\"span3 control-label\\\"],[12],[1,\\\"Date of birth\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t            \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"date_of_birth\\\",\\\"date_of_birth\\\",[33,59],\\\"form-control date date_of_birth\\\",\\\"Date of birth\\\",\\\"readonly\\\"]]]],[1,\\\"\\\\n\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"form-group bg_row_2\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"age\\\"],[14,0,\\\"span3 control-label\\\"],[12],[1,\\\"Age \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"width90 form-control patient_age\\\",\\\"age_years\\\",\\\"readonly\\\",\\\"age_years\\\",\\\"Years\\\",[33,60]]]]],[1,\\\"\\\\n\\\\n\\\\n                    \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"width90 form-control patient_age\\\",\\\"age_months\\\",\\\"readonly\\\",\\\"age_months\\\",\\\"Months\\\",[33,61]]]]],[1,\\\"\\\\n\\\\n                  \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"readonly\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"width90 form-control patient_age\\\",\\\"age_days\\\",\\\"readonly\\\",\\\"age_days\\\",\\\"Days\\\",[33,62]]]]],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"phone_1\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Phone 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"phone_1\\\",\\\"phone_1\\\",\\\"Phone 1\\\",[33,63],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"phone_2\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Phone 2\\\"],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"phone_2\\\",\\\"phone_2\\\",\\\"Phone 2\\\",[33,64],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Email Id \\\"],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,65],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_1\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"address_1\\\",\\\"address_1\\\",\\\"Address Line 1\\\",[33,66],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_2\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"address_2\\\",\\\"address_2\\\",\\\"Address Line 2\\\",[33,67],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"country\\\"],[15,2,[36,68]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateCountry\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,69]],null]],null],null,[[[1,\\\"                           \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,10,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,10,[\\\"id\\\"]],[33,68]],null]],[12],[1,\\\" \\\"],[1,[30,10,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                       \\\"],[3,\\\" {{#each country in countries}}\\\\n                          <option value=\\\\\\\"{{country.id}}\\\\\\\" selected={{eq country.id selected_country}}> {{country.country_name}} </option>\\\\n                        {{/each}}\\\"],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"state\\\"],[15,2,[36,70]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateState\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,71]],null]],null],null,[[[1,\\\"                            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,11,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,11,[\\\"id\\\"]],[33,70]],null]],[12],[1,\\\" \\\"],[1,[30,11,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                      \\\"],[3,\\\"  {{#each state in pstates}}\\\\n                          <option value=\\\\\\\"{{state.id}}\\\\\\\" selected={{eq state.id selected_state}}> {{state.state_name}} </option>\\\\n                        {{/each}}\\\"],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"span4 form-control capitalize hidden\\\",\\\"other_state\\\",\\\"other_state\\\",\\\"Other State\\\",[33,72]]]]],[1,\\\"\\\\n\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[3,\\\" {{input type=\\\\\\\"text\\\\\\\" class=\\\\\\\"span5 form-control\\\\\\\" id=\\\\\\\"city\\\\\\\" name=\\\\\\\"city\\\\\\\" placeholder=\\\\\\\"City\\\\\\\" value=city}} \\\"],[1,\\\"\\\\n                      \\\"],[3,\\\" {{selected_city}} \\\"],[1,\\\"\\\\n                      \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"city\\\"],[15,2,[36,73]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateCity\\\"],null]],[14,0,\\\"form-control\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,74]],null]],null],null,[[[1,\\\"                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,12,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,12,[\\\"id\\\"]],[33,73]],null]],[12],[1,\\\" \\\"],[1,[30,12,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                        \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" span3 form-control capitalize hidden\\\",\\\"other_city\\\",\\\"other_city\\\",\\\"Other City\\\",[33,75]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_2 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                      \\\"],[1,[28,[35,42],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"span5 form-control\\\",\\\"zip\\\",\\\"zip\\\",\\\"Zip\\\",[33,76],\\\"readonly\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[10,0],[14,0,\\\"form-group bg_row_1 \\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"note\\\"],[14,0,\\\" span3 control-label\\\"],[12],[1,\\\"Note\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"note\\\"],[15,\\\"oninput\\\",[28,[37,4],[[30,0],\\\"setNote\\\"],null]],[14,\\\"readonly\\\",\\\"\\\"],[12],[1,[34,77]],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-top:5px\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"submitOnSpot\\\",\\\"\\\",\\\"new\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[14,1,\\\"moveToBigScreen\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeBigScreenModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"bigscreen_doc\\\"],[14,1,\\\"bigscreen_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,13,[\\\"id\\\"]]]]],[12],[1,[30,13,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"moveToBigScreen\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"moveToBigScreen\\\"],null],[12],[1,\\\"Move To Big Screen\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n   \\\"],[3,\\\" Cancel All Appointment Reason Popup \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"CancelOnspotnotebox\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n       \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeNoteBox\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title modal-font\\\"],[12],[1,\\\"Please give a reason for cancellation.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,1,\\\"advance-payment-refund-note\\\"],[14,0,\\\"modal-title\\\"],[14,5,\\\"display: none\\\"],[12],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"Warning: \\\"],[13],[1,\\\" This patient has a balance of Rs \\\"],[10,1],[14,1,\\\"advance-payment-refund-amount\\\"],[12],[13],[1,\\\", Please make sure to make adjustments from manage transactions\\\\n            screen if needed. Otherwise the balance will remain in patient's account and will be adjusted in\\\\n            future visits.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" <label class=\\\\\\\"control-label\\\\\\\"></label> \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"cancel_onspot_note\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Reason for cancellation.\\\"],[14,\\\"rows\\\",\\\"4\\\"],[12],[1,[34,78]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,3,\\\"cancelOnspot\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"cancelOnspottWithReason\\\"],null],[12],[1,\\\"Cancel Appointment\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,79],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"doctorcharges\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"submitOnSpot\\\",\\\"paymentcomplete\\\",\\\"page\\\",\\\"advance_payment_type\\\",\\\"getDoctorCharges\\\",\\\"appointment_pay_later\\\",\\\"getTotalTransaction\\\",\\\"getPatientTransactions\\\"],[[33,80],[33,81],[33,82],[33,83],[33,84],[33,85],[33,86],[33,87],[33,88],[33,89],\\\"paymentsaved\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"submitOnSpot\\\",\\\"paymentcomplete\\\",\\\"appointment\\\",\\\"appointment_id\\\",\\\"getDoctorCharges\\\",[33,90],\\\"getTotalTransaction\\\",\\\"getPatientTransactions\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,91],null,[[\\\"total_transction_details\\\",\\\"total_transction\\\",\\\"resetTransactionDetails\\\"],[[33,92],[33,93],[33,94]]]]],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" urgent model \\\"],[1,\\\"\\\\n   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"frontMarkUrgent\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Mark Urgent\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"urgent_status_check\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-12 vital urgent_status_div\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent\\\"],[12],[1,\\\"Urgent :\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"front_urgent_status\\\"],[14,1,\\\"front_urgent_status\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group urgent_note_div\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_note\\\"],[12],[1,\\\"Important Notes :\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"urgent_note\\\"],[14,1,\\\"urgent_note\\\"],[14,\\\"placeholder\\\",\\\"Important Notes...\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row form-group action-btns\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12 button-alignment\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info\\\"],[24,1,\\\"saveNote\\\"],[24,4,\\\"submit\\\"],[4,[38,4],[[30,0],\\\"frontSaveUrgentNote\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n\\\\n  \\\"],[3,\\\" Start Cancel Note Model \\\"],[1,\\\"\\\\n   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"cancelNote\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,1,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Cancelled by \\\"],[10,1],[14,1,\\\"cancelBy\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-md-12 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,\\\"rows\\\",\\\"5\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cancel_note\\\"],[14,1,\\\"cancel_note\\\"],[14,\\\"readonly\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" End Cancel Note Model \\\"],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\" Start mapAddress Model \\\"],[1,\\\"\\\\n   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"mapAddressModel\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,1,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Address\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-md-12 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,\\\"rows\\\",\\\"5\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mapAddress\\\"],[14,1,\\\"mapAddress\\\"],[14,\\\"readonly\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" End mapAddress Model \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start Shipping Preference Modal \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,95],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"visit_mode_type\\\",\\\"refresh\\\",\\\"saveShippingPreference\\\",\\\"address_mismatch\\\"],[[33,96],[33,97],[33,98],[33,99],[33,100],[33,101],[33,102],[33,103],[33,104],[33,105],[33,106],[33,107],[33,108],[28,[37,4],[[30,0],\\\"saveShippingPreference\\\"],null],[33,109]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" End Shipping Preference Modal \\\"],[1,\\\"\\\\n\\\"],[41,[33,110],[[[1,\\\"  \\\"],[1,[28,[35,111],null,[[\\\"appointmentRows\\\",\\\"selectedReason\\\",\\\"customTitle\\\",\\\"disableRefundButton\\\",\\\"onConfirm\\\",\\\"onClose\\\"],[[33,112],[33,113],[33,114],[33,115],[28,[37,4],[[30,0],\\\"confirmOnlineCancel\\\"],null],[28,[37,4],[[30,0],\\\"closeOnlineCancelModal\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,116],[[[1,\\\"  \\\"],[1,[28,[35,117],null,[[\\\"batches\\\",\\\"onClose\\\"],[[33,118],[28,[37,4],[[30,0],\\\"closeRefundBatchesModal\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[1,[34,119]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"doctor\\\",\\\"flash\\\",\\\"doctor\\\",\\\"index\\\",\\\"doc\\\",\\\"doc\\\",\\\"doc\\\",\\\"type\\\",\\\"category\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\",\\\"doc\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"eq\\\",\\\"active_tab\\\",\\\"assign-doctor\\\",\\\"branchAppointments\\\",\\\"assigned\\\",\\\"bookedAppCount\\\",\\\"onspotAppCount\\\",\\\"user_shift_id\\\",\\\"branch_id\\\",\\\"user_id\\\",\\\"frontdesk_tablist\\\",\\\"assign-doctor-doctor-view\\\",\\\"not-completed-visits\\\",\\\"notcompleted\\\",\\\"icp-vc-complete-component\\\",\\\"icpVcComplete\\\",\\\"phone-complete-component\\\",\\\"phoneComplete\\\",\\\"email-complete-component\\\",\\\"emailComplete\\\",\\\"ocp-complete-component\\\",\\\"ocpComplete\\\",\\\"completed-medicine-visits\\\",\\\"medicinecompleted\\\",\\\"completed-emailrm-medicine-visits\\\",\\\"EmailRepeatMedicinePatientsBillComplete\\\",\\\"appointment-overview-component\\\",\\\"result\\\",\\\"appointments\\\",\\\"appointment_heading\\\",\\\"td_width\\\",\\\"appointment_types\\\",\\\"input\\\",\\\"q\\\",\\\"search-patient-onspot\\\",\\\"patients\\\",\\\"stats\\\",\\\"p\\\",\\\"mode\\\",\\\"priority\\\",\\\"blood_type\\\",\\\"category\\\",\\\"selected_discount_category\\\",\\\"discount_categories\\\",\\\"title_prefix\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"email_id\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"countries\\\",\\\"selected_state\\\",\\\"pstates\\\",\\\"other_state\\\",\\\"selected_city\\\",\\\"cities\\\",\\\"other_city\\\",\\\"zip\\\",\\\"note\\\",\\\"cancel_onspot_note\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"doctorcharges\\\",\\\"PrescribePatient\\\",\\\"appointment_pay_later\\\",\\\"transaction-history-popup\\\",\\\"total_transction_details\\\",\\\"total_transction\\\",\\\"resetTransactionDetails\\\",\\\"shipping-preference-popup\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"visit_mode_type\\\",\\\"refresh\\\",\\\"address_mismatch\\\",\\\"onlineCancelModalOpen\\\",\\\"cancellation-refund-popup\\\",\\\"onlineCancelRows\\\",\\\"onlineCancelSelectedReason\\\",\\\"onlineCancelTitle\\\",\\\"onlineCancelDisable\\\",\\\"refundBatchesModalOpen\\\",\\\"refund-batches-popup\\\",\\\"refundBatches\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/archive\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fPn93PUj\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-truck\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"           \\\"],[1,[28,[35,4],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"OCPPatientOrders\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Dispatch Archive List \\\"],[13],[1,\\\"\\\\n                                \\\"],[1,[28,[35,8],null,[[\\\"dispatchedArchive\\\",\\\"searchDispatchedArchivePatient\\\"],[[33,9],[28,[37,10],[[30,0],\\\"searchDispatchedArchivePatient\\\"],null]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13]],[\\\"flash\\\"],false,[\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"if\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"archive-list-component\\\",\\\"dispatchedArchive\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/archive.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Lco09LOe\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Edit\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/editarchive\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"eviWP1Hy\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Editarchive\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/editarchive.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gsT8AJZZ\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Index\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"YqtSpwpt\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-truck\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,2]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"           \\\"],[1,[28,[35,6],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard dispatch-dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"OCPPatientOrders\\\",[33,8]],null],[[[1,\\\"                        \\\"],[1,[34,9]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[\\\"ReadyforPickupList\\\",[33,8]],null],[[[1,\\\"                          \\\"],[1,[28,[35,10],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"markSelectedDispatched\\\"],[\\\"dispatch.dispatch\\\",\\\"list\\\",[28,[37,11],[[30,0],\\\"markSelectedDispatched\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[\\\"DispatchedOrdersList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[1,[34,12]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,14],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,15]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"ocp-patient-orders-component\\\",\\\"ready-for-pickup-component\\\",\\\"action\\\",\\\"dispatched-orders-component\\\",\\\"component\\\",\\\"-outlet\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/order\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jRy203to\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-truck\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,2]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"OCPPatientOrders\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\\\\\\Patient ID\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Prescribing Date/Time\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Bill Date/Time\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,6],[[30,1,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\"\\\\n                                                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,6],[[30,1,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,1,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"doc_label\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,1,[\\\"doc_label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"title\\\",\\\"Repeat Medicine\\\"],[12],[1,\\\"RM\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"prescribe_time\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,1,[\\\"prescribe_time\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NA\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row archive-search dispatch\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-lg-12\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,7],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"patient_info\\\",\\\"saveDispatchOrder\\\",\\\"courier_id\\\",\\\"tracking_id\\\",\\\"dis_select_disable\\\",\\\"already_archived\\\",\\\"page\\\",\\\"shiping_pickup\\\"],[[33,8],[33,9],[33,10],[33,11],[33,5],[28,[37,12],[[30,0],\\\"saveDispatchOrder\\\"],null],[33,13],[33,14],[33,15],[33,16],[33,2],[33,17]]]]],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,18]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"patient\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"DispatchOrders\\\",\\\"eq\\\",\\\"delivery-address\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"action\\\",\\\"courier_id\\\",\\\"tracking_id\\\",\\\"dis_select_disable\\\",\\\"already_archived\\\",\\\"shiping_pickup\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/order/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"qXKZSpu4\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Edit\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/order/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/dispatch/order/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aA8TGlrP\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Index\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/dispatch/order/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-activity-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"DDHk2THh\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-users\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"DoctorActivityReport\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_from\\\",\\\"currentYear\\\",\\\"transaction_from\\\",\\\"Select From date\\\",[33,8],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_to\\\",\\\"currentYear\\\",\\\"transaction_to\\\",\\\"Select To date\\\",[33,9],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ExportButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,1,\\\"downloadPatientsSeenByDoctors\\\"],[24,0,\\\"btn btn-success\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,10],[[30,0],\\\"downloadPatientsSeenByDoctors\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Download Report\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,11]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"transaction_from\\\",\\\"transaction_to\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-activity-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"n8YI8XiA\",\n    \"block\": \"[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n             \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                  \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n            \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/checkout\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"GWncrMQR\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Checkout\\\"],null]],[1,\\\"\\\\n\\\"],[41,[33,2],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"row vital doctor-page\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" flashes message showing due to flashes service \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,6],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],null,[[\\\"currentControllerBinding\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\"],[\\\"checkout\\\",[33,8],[33,9],\\\"newDoctorId\\\",[33,10],[28,[37,11],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,11],[[30,0],\\\"showTabPage\\\"],null],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[28,[37,11],[[30,0],\\\"doctorId\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row vital\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"thintab\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"doctor-scroll-div row vital\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],null,[[\\\"currentControllerBinding\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\"],[\\\"checkout\\\",[33,8],[33,9],\\\"newDoctorId\\\",[33,10],[28,[37,11],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,11],[[30,0],\\\"showTabPage\\\"],null],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[28,[37,11],[[30,0],\\\"doctorId\\\"],null]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n         \\\"],[10,0],[15,0,[29,[\\\"patientinfo-scroll-div row vital \\\",[33,19,[\\\"0\\\",\\\"priority\\\"]],\\\" \\\",[52,[28,[37,20],[[33,19,[\\\"0\\\",\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,21],null,[[\\\"PatientInfo\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\"],[[33,19],[33,22],[33,23]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"row checkout-page\\\"],[14,1,\\\"DivIdToPrint\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" Start patient information preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,24],null,[[\\\"currentControllerBinding\\\",\\\"PatientInfo\\\",\\\"preview\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\"],[\\\"checkout\\\",[33,19],[33,25],[33,22],[33,23]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" End patient information preview component \\\"],[1,\\\"\\\\n\\\\n    \\\"],[3,\\\" Start vital statistics preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,26],null,[[\\\"currentControllerBinding\\\",\\\"patient_vital_list\\\",\\\"PatientInfo\\\",\\\"last_updated_by\\\"],[\\\"checkout\\\",[33,27],[33,28],[33,29]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" End vital statistics preview component \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Start case taking preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,30],null,[[\\\"currentControllerBinding\\\",\\\"patient_case_taking_list\\\",\\\"caseTakenDetails\\\",\\\"editCaseTakingData\\\"],[\\\"checkout\\\",[33,31],[28,[37,11],[[30,0],\\\"caseTakenDetails\\\"],null],[28,[37,11],[[30,0],\\\"editCaseTakingData\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" End case taking preview component \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Start diagnostic reports preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,32],null,[[\\\"currentControllerBinding\\\",\\\"d_permission\\\",\\\"d_report_user\\\",\\\"d_reports_list\\\",\\\"notesDetails\\\"],[\\\"checkout\\\",[33,8],[33,33],[33,34],\\\"notesDetails\\\"]]]],[1,\\\"\\\\n    \\\"],[3,\\\" Start diagnostic reports preview component \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Start advised reports preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,35],null,[[\\\"currentControllerBinding\\\",\\\"advised_report_user\\\",\\\"advised_report\\\"],[\\\"checkout\\\",[33,36],[33,37]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" Start advised reports preview component \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Start prescription preview component \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,38],null,[[\\\"currentControllerBinding\\\",\\\"user_permission\\\",\\\"message_logs_user\\\",\\\"prescribe_user\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"setprintType\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"visit_charges\\\",\\\"previous_total_charge\\\",\\\"history_visit_id\\\",\\\"message_logs_list\\\",\\\"case_taken_history_list\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"advised_report\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_bill_amount\\\",\\\"addCharge\\\",\\\"addOtherCharge\\\",\\\"removeAddedOtherCharge\\\",\\\"onChangesAddCharge\\\",\\\"removeMedicineDiscount\\\",\\\"removeWaiveConsutancy\\\",\\\"applyDiscountCharge\\\",\\\"addDiscountReason\\\",\\\"consultancyWave\\\",\\\"consultancyWaivedReason\\\",\\\"clearDisccountinput\\\",\\\"page\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totaldue_label\\\",\\\"billing_instruction\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"pe\\\",\\\"address_mismatch\\\"],[\\\"checkout\\\",[33,8],[33,39],[33,40],[33,41],[33,42],[33,19],[33,43],[33,44],[33,45],[33,46],[33,47],[33,48],[33,49],[33,50],[33,51],[33,52],[33,53],[28,[37,11],[[30,0],\\\"setprintType\\\"],null],[33,54],[33,55],[33,56],[33,57],[33,58],[33,59],[33,60],[33,61],[33,62],[33,63],[33,64],[33,65],[33,66],[33,67],[33,37],[33,68],[33,69],[33,70],[33,71],[33,72],[33,73],[33,74],[33,75],[28,[37,11],[[30,0],\\\"addCharge\\\"],null],[28,[37,11],[[30,0],\\\"addOtherCharge\\\"],null],[28,[37,11],[[30,0],\\\"removeAddedOtherCharge\\\"],null],[28,[37,11],[[30,0],\\\"onChangesAddCharge\\\"],null],[28,[37,11],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,11],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[28,[37,11],[[30,0],\\\"applyDiscountCharge\\\"],null],[28,[37,11],[[30,0],\\\"addDiscountReason\\\"],null],[28,[37,11],[[30,0],\\\"consultancyWave\\\"],null],[28,[37,11],[[30,0],\\\"consultancyWaivedReason\\\"],null],[28,[37,11],[[30,0],\\\"clearDisccountinput\\\"],null],[33,12],[33,76],[33,77],[33,78],[33,79],[33,80],[33,81],[33,82],[33,22],[33,83]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" Start prescription preview component \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-12 ch-pr-btn\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"button-sticky\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,84],[[[6,[39,85],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\" btn btn-default btn-sm float-right ml-2 ajaxButtonHide\\\",\\\"Back\\\",\\\"doctor-dashboard.icpattend\\\",[28,[37,86],[[33,84,[\\\"appointment_id\\\"]],[33,84,[\\\"patient_id\\\"]],[33,87]],null]]],[[\\\"default\\\"],[[[[1,\\\"              \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left icon-space\\\"],[12],[13],[1,\\\"Back\\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"title\\\",\\\"Case Print\\\"],[24,0,\\\"btn btn-default btn-sm printIcpPage float-right ml-2 ajaxButtonHide\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"printIcpPage\\\",[33,84,[\\\"appointment_id\\\"]],[33,84,[\\\"patient_id\\\"]],[33,84,[\\\"booked_doctor\\\"]],\\\"DivIdToPrint\\\",[33,88],\\\"click\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-print icon-space\\\"],[12],[13],[1,\\\" Print\\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-dark btn-sm float-right ml-2 ajaxButtonHide\\\"],[24,\\\"data-toggle\\\",\\\"modal\\\"],[24,\\\"data-target\\\",\\\"#reSchedule\\\"],[24,\\\"title\\\",\\\"Re-assign\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"reSchedulePatient\\\",[33,84,[\\\"id\\\"]],\\\"checkoutpage\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-retweet icon-space dashboard-fa-font\\\"],[12],[13],[1,\\\" Re-assign\\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm float-right ml-2 ajaxButtonHide\\\"],[16,0,[29,[\\\"prescribed\\\",[33,84,[\\\"patient_id\\\"]]]]],[24,\\\"title\\\",\\\"Prescribed\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"markComplete\\\",[33,84,[\\\"id\\\"]],1,[33,84,[\\\"booked_doctor\\\"]],[33,84,[\\\"patient_id\\\"]],[33,89],[33,51]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-prescription icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Prescribe &\\\\n              Complete \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm float-right ml-2 ajaxButtonHide\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"markWithoutPrescriptionWithReason\\\",[33,84,[\\\"id\\\"]],[33,84,[\\\"booked_doctor\\\"]],1,[33,89],[33,84,[\\\"patient_id\\\"]],[33,51]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-square icon-space\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Complete without prescription \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm ml-2 float-right ajaxButtonHide\\\"],[16,0,[29,[\\\"casetaken\\\",[33,84,[\\\"patient_id\\\"]]]]],[24,\\\"title\\\",\\\"Case taken\\\"],[16,\\\"data-reassign\\\",[33,84,[\\\"reassigned\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"reAssign\\\",[33,84,[\\\"reassigned\\\"]],[33,84,[\\\"id\\\"]],[33,84,[\\\"booked_doctor\\\"]],1,[33,89],[33,84,[\\\"patient_id\\\"]],[33,51],\\\"checkout\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical icon-space dashboard-fa-font\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Complete Case\\\\n              Taking\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\"Reason popup of Mark Without Prescription \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"reasonPrescription\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"closedWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"modal-title\\\"],[12],[1,\\\"Complete without prescription reason\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"prescriptionWithoutReason\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,11],[[30,0],\\\"markWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"presId\\\"],[14,1,\\\"presId\\\"],[15,2,[29,[[36,90]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"prescribedId\\\"],[14,1,\\\"prescribedId\\\"],[15,2,[29,[[36,91]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"pres_doctor_id\\\"],[14,1,\\\"pres_doctor_id\\\"],[15,2,[29,[[36,92]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"pres_patient_id\\\"],[14,1,\\\"pres_patient_id\\\"],[15,2,[29,[[36,93]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,3,\\\"pres_billing_id\\\"],[14,1,\\\"pres_billing_id\\\"],[15,2,[29,[[36,94]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescription_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,95],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"prescription_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"closedWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[3,\\\" End Here \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"patientUrgentPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-xs\\\"],[12],[1,\\\"\\\\n      \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"reloadUrgentNote\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"modal-title\\\"],[12],[1,\\\"Mark Urgent\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[33,19,[\\\"0\\\",\\\"urgent_note\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row modal-footer\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"reSchedule\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"reschedule_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,96]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"reScheduleButton\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"reSchedule\\\"],null],[12],[1,\\\"Re\\\\n            Assign\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Diagnostic image Enlarge popup html \\\"],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal fade modal-dialog-centered common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"checkout_image_enlarge\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-xl\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"diagnostic_test_title\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"\\\"],[14,0,\\\"checkoutimagepreview\\\"],[14,5,\\\"width: 100%;\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Diagnostic Reports notes Popup html code\\\"],[1,\\\"\\\\n \\\"],[1,[28,[35,97],null,[[\\\"report_notes\\\"],[[33,98]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[34,99]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"doc\\\"],false,[\\\"page-title\\\",\\\"if\\\",\\\"route_access\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"doctor-name-component\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"tablist\\\",\\\"action\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"PrescribePatient\\\",\\\"eq\\\",\\\"patient-thin-info-preview\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\",\\\"patient-information-preview\\\",\\\"preview\\\",\\\"vital-statistics-component-preview\\\",\\\"patient_vital_list\\\",\\\"PatientInfo\\\",\\\"last_updated_by\\\",\\\"case-taking-preview\\\",\\\"patient_case_taking_list\\\",\\\"diagnostic-reports-preview\\\",\\\"d_report_user\\\",\\\"d_reports_list\\\",\\\"advised-reports-preview\\\",\\\"advised_report_user\\\",\\\"advised_report\\\",\\\"prescribe-detail-component-preview\\\",\\\"message_logs_user\\\",\\\"prescribe_user\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"visit_charges\\\",\\\"total_charge\\\",\\\"import_visit_id\\\",\\\"message_logs_list\\\",\\\"case_taken_history_list\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_bill_amount\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totaldue_label\\\",\\\"billing_instruction\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"address_mismatch\\\",\\\"current_doc_appointments\\\",\\\"link-to\\\",\\\"array\\\",\\\"read_message\\\",\\\"on\\\",\\\"doc_id\\\",\\\"presId\\\",\\\"prescribedId\\\",\\\"pres_doctor_id\\\",\\\"pres_patient_id\\\",\\\"pres_billing_id\\\",\\\"input\\\",\\\"assigned\\\",\\\"report-notes-details\\\",\\\"report_notes\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/checkout.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/checkoutdetail\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"iVnqoVnK\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n\\\"],[1,[28,[35,2],[\\\"Checkout\\\"],null]],[1,\\\"\\\\n\\\"],[41,[33,4],[[[10,0],[14,0,\\\"row vital doctor-page\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],null,[[\\\"currentControllerBinding\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\"],[\\\"checkout\\\",[33,6],[33,7],\\\"newDoctorId\\\",[33,8],[28,[37,9],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,9],[[30,0],\\\"showTabPage\\\"],null],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[28,[37,9],[[30,0],\\\"doctorId\\\"],null]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row checkout-page\\\"],[14,1,\\\"DivIdToPrint\\\"],[12],[1,\\\"\\\\n  \\\"],[3,\\\" Start patient information preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,17],null,[[\\\"currentControllerBinding\\\",\\\"PatientInfo\\\",\\\"preview\\\"],[\\\"checkout\\\",[33,18],[33,19]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" End patient information preview component \\\"],[1,\\\"\\\\n\\\\n  \\\"],[3,\\\" Start vital statistics preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,20],null,[[\\\"currentControllerBinding\\\",\\\"patient_vital_list\\\",\\\"PatientInfo\\\",\\\"last_updated_by\\\"],[\\\"checkout\\\",[33,21],[33,22],[33,23]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" End vital statistics preview component \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start case taking preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,24],null,[[\\\"currentControllerBinding\\\",\\\"patient_case_taking_list\\\",\\\"caseTakenDetails\\\",\\\"editCaseTakingData\\\"],[\\\"checkout\\\",[33,25],[28,[37,9],[[30,0],\\\"caseTakenDetails\\\"],null],[28,[37,9],[[30,0],\\\"editCaseTakingData\\\"],null]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" End case taking preview component \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start diagnostic reports preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,26],null,[[\\\"currentControllerBinding\\\",\\\"d_permission\\\",\\\"d_report_user\\\",\\\"d_reports_list\\\"],[\\\"checkout\\\",[33,6],[33,27],[33,28]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" Start diagnostic reports preview component \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start advised reports preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,29],null,[[\\\"currentControllerBinding\\\",\\\"advised_report_user\\\",\\\"advised_report\\\"],[\\\"checkout\\\",[33,30],[33,31]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" Start advised reports preview component \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start prescription preview component \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,32],null,[[\\\"currentControllerBinding\\\",\\\"user_permission\\\",\\\"message_logs_user\\\",\\\"prescribe_user\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"PrescribePatient\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"setprintType\\\",\\\"normal_med_dis\\\",\\\"ped_amount\\\",\\\"consultancy_code\\\",\\\"medicine_code\\\",\\\"visit_charges\\\",\\\"previous_total_charge\\\",\\\"history_visit_id\\\",\\\"message_logs_list\\\",\\\"case_taken_history_list\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"advised_report\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_bill_amount\\\",\\\"addCharge\\\",\\\"addOtherCharge\\\",\\\"removeAddedOtherCharge\\\",\\\"onChangesAddCharge\\\",\\\"removeMedicineDiscount\\\",\\\"removeWaiveConsutancy\\\",\\\"applyDiscountCharge\\\",\\\"addDiscountReason\\\",\\\"consultancyWave\\\",\\\"consultancyWaivedReason\\\",\\\"clearDisccountinput\\\",\\\"page\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totaldue_label\\\",\\\"pe\\\",\\\"address_mismatch\\\"],[\\\"checkout\\\",[33,6],[33,33],[33,34],[33,35],[33,36],[33,18],[33,37],[33,38],[33,39],[33,40],[33,41],[33,42],[33,43],[33,44],[33,45],[33,46],[33,47],[28,[37,9],[[30,0],\\\"setprintType\\\"],null],[33,48],[33,49],[33,50],[33,51],[33,52],[33,53],[33,54],[33,55],[33,56],[33,57],[33,58],[33,59],[33,60],[33,61],[33,31],[33,62],[33,63],[33,64],[33,65],[33,66],[33,67],[33,68],[33,69],[28,[37,9],[[30,0],\\\"addCharge\\\"],null],[28,[37,9],[[30,0],\\\"addOtherCharge\\\"],null],[28,[37,9],[[30,0],\\\"removeAddedOtherCharge\\\"],null],[28,[37,9],[[30,0],\\\"onChangesAddCharge\\\"],null],[28,[37,9],[[30,0],\\\"removeMedicineDiscount\\\"],null],[28,[37,9],[[30,0],\\\"removeWaiveConsutancy\\\"],null],[28,[37,9],[[30,0],\\\"applyDiscountCharge\\\"],null],[28,[37,9],[[30,0],\\\"addDiscountReason\\\"],null],[28,[37,9],[[30,0],\\\"consultancyWave\\\"],null],[28,[37,9],[[30,0],\\\"consultancyWaivedReason\\\"],null],[28,[37,9],[[30,0],\\\"clearDisccountinput\\\"],null],[33,10],[33,70],[33,71],[33,72],[33,73],[33,74]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\"Reason popup of Mark Without Prescription \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"reasonPrescription\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"closedWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"modal-title\\\"],[12],[1,\\\"Complete without prescription reason\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"prescriptionWithoutReason\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,9],[[30,0],\\\"markWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,3,\\\"presId\\\"],[14,1,\\\"presId\\\"],[15,2,[29,[[36,75]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,3,\\\"prescribedId\\\"],[14,1,\\\"prescribedId\\\"],[15,2,[29,[[36,76]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,3,\\\"pres_doctor_id\\\"],[14,1,\\\"pres_doctor_id\\\"],[15,2,[29,[[36,77]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,3,\\\"pres_patient_id\\\"],[14,1,\\\"pres_patient_id\\\"],[15,2,[29,[[36,78]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescription_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,79],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"prescription_reason\\\",\\\"form-control\\\",\\\"Please enter reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"closedWithoutPrescription\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" End Here \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"patientUrgentPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog modal-xs\\\"],[12],[1,\\\"\\\\n    \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"reloadUrgentNote\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"modal-title\\\"],[12],[1,\\\"Urgent Note\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[33,18,[\\\"0\\\",\\\"urgent_note\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row modal-footer\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"reSchedule\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"reschedule_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,81],[[28,[37,81],[[33,82]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,[30,1,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"reScheduleButton\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"reSchedule\\\"],null],[12],[1,\\\"Re\\\\n          Assign\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n\\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Diagnostic image Enlarge popup html \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade modal-dialog-centered common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"checkout_image_enlarge\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-xl\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"h3\\\"],[14,0,\\\"diagnostic_test_title\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"\\\"],[14,0,\\\"checkoutimagepreview\\\"],[14,5,\\\"width: 100%;\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,83]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"doc\\\"],false,[\\\"component\\\",\\\"-outlet\\\",\\\"page-title\\\",\\\"if\\\",\\\"route_access\\\",\\\"doctor-name-component\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"tablist\\\",\\\"action\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"patient-information-preview\\\",\\\"PrescribePatient\\\",\\\"preview\\\",\\\"vital-statistics-component-preview\\\",\\\"patient_vital_list\\\",\\\"PatientInfo\\\",\\\"last_updated_by\\\",\\\"case-taking-preview\\\",\\\"patient_case_taking_list\\\",\\\"diagnostic-reports-preview\\\",\\\"d_report_user\\\",\\\"d_reports_list\\\",\\\"advised-reports-preview\\\",\\\"advised_report_user\\\",\\\"advised_report\\\",\\\"prescribe-detail-component-preview\\\",\\\"message_logs_user\\\",\\\"prescribe_user\\\",\\\"pharmacyHistory\\\",\\\"pharmacy_instruction\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"pending_amount\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"visit_charges\\\",\\\"total_charge\\\",\\\"import_visit_id\\\",\\\"message_logs_list\\\",\\\"case_taken_history_list\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"consultancy_remove_button\\\",\\\"remove_discount_button\\\",\\\"medicine_discount_reason\\\",\\\"consultancy_waive_type\\\",\\\"consultancy_waived_amount\\\",\\\"consultancy_waived_reason\\\",\\\"onthefly_discount\\\",\\\"previous_bill_amount\\\",\\\"PGamount\\\",\\\"advance_label\\\",\\\"totaldue_label\\\",\\\"top_shiping_pickup\\\",\\\"address_mismatch\\\",\\\"presId\\\",\\\"prescribedId\\\",\\\"pres_doctor_id\\\",\\\"pres_patient_id\\\",\\\"input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"assigned\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/checkoutdetail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/icpattend\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"X7vjmwGa\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row doctor-page\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row vital\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,3],[33,4],\\\"newDoctorId\\\",[33,5],[28,[37,6],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,6],[[30,0],\\\"showTabPage\\\"],null],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[28,[37,6],[[30,0],\\\"doctorId\\\"],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row vital\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"thintab\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"doctor-scroll-div row vital\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,3],[33,4],\\\"newDoctorId\\\",[33,5],[28,[37,6],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,6],[[30,0],\\\"showTabPage\\\"],null],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[28,[37,6],[[30,0],\\\"doctorId\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[15,0,[29,[\\\"patientinfo-scroll-div row vital \\\",[33,14,[\\\"0\\\",\\\"priority\\\"]],\\\" \\\",[52,[28,[37,15],[[33,14,[\\\"0\\\",\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"PatientInfo\\\",\\\"permission_arr\\\",\\\"saveFreeNote\\\",\\\"urgentPatient\\\",\\\"onRealTimeFreeNoteChanges\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,14],[33,3],[28,[37,6],[[30,0],\\\"saveFreeNote\\\"],null],[28,[37,6],[[30,0],\\\"urgentPatient\\\"],null],[28,[37,6],[[30,0],\\\"onRealTimeFreeNoteChanges\\\"],null],[33,17],[33,18]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[14,1,\\\"left-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"nav\\\"],[14,1,\\\"sidebar\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled components\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,1,\\\"sidebarCollapse\\\"],[14,0,\\\"btn btn-info navbar-btn\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-left\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"PatientInfoSection\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab active patien-info\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#patient-information\\\"],[14,\\\"title\\\",\\\"Patient Information\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-address-card\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Patient Information\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,19],[\\\"VisitLogSection\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#visit-log\\\"],[14,\\\"title\\\",\\\"Vital Visit Log\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-clipboard-list\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Visit Log\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"VitalStatisticsSection\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab top-of-screen\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#vital-statistics\\\"],[14,\\\"title\\\",\\\"Vital Stastistics\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-thermometer-half\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Vital Stastistics\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,20,[\\\"data\\\"]],[[[41,[28,[37,19],[\\\"IcpCaseHistory\\\",[33,3]],null],[[[1,\\\"                            \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,3],[14,6,\\\"#case-history\\\"],[14,\\\"title\\\",\\\"Case History\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Case History\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,19],[\\\"CaseTakingSection\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#case-taking\\\"],[14,\\\"title\\\",\\\"Case Taking\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Case Taking\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,3],[14,6,\\\"#diagnostic-reports\\\"],[14,\\\"title\\\",\\\"Diagnostic Reports\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-medical-alt\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Diagnostic Reports\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"MessageLogSections\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab redirect\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#message-log\\\"],[14,\\\"title\\\",\\\"Message Log\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-alt\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Message Log\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,19],[\\\"ICPAdvisedReport\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#advised-Reports\\\"],[14,\\\"title\\\",\\\"Advised Reports\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Advised Reports\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,19],[\\\"PrescriptionSection\\\",[33,3]],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"lefttab\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,3],[14,6,\\\"#prescription\\\"],[14,\\\"title\\\",\\\"Prescription\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-prescription\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"nav-h\\\"],[12],[1,\\\"Prescription\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-md-10\\\"],[14,1,\\\"right-content\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-12 table-responsive cware cwtable-expand clear\\\"],[14,1,\\\"cw-details-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row section-border\\\"],[14,1,\\\"patient-information\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,21],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"PatientInfo\\\",\\\"appointment_types\\\",\\\"appointment_type\\\",\\\"permission_arr\\\",\\\"saveFreeNote\\\",\\\"urgentPatient\\\",\\\"onRealTimeFreeNoteChanges\\\",\\\"free_note_changes\\\",\\\"appointment_id\\\",\\\"visit_logs\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\",\\\"filterVisitHistory\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,14],[33,22],[33,23],[33,3],[28,[37,6],[[30,0],\\\"saveFreeNote\\\"],null],[28,[37,6],[[30,0],\\\"urgentPatient\\\"],null],[28,[37,6],[[30,0],\\\"onRealTimeFreeNoteChanges\\\"],null],[33,24],[33,9],[33,25],[33,17],[33,18],[28,[37,6],[[30,0],\\\"filterVisitHistory\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space visitlogs section-border\\\"],[14,1,\\\"visit-log\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,26],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"visit_logs\\\",\\\"permission_arr\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,25],[33,3]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space statistics section-border\\\"],[14,1,\\\"vital-statistics\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,27],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"patient_vital_list\\\",\\\"appointment_id\\\",\\\"height_unit\\\",\\\"weight_unit\\\",\\\"body_temp_unit\\\",\\\"PatientInfo\\\",\\\"permission_arr\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,28],[33,9],[33,29],[33,30],[33,31],[33,14],[33,3]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,20,[\\\"data\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"row row-space casehistory section-border\\\"],[14,1,\\\"case-history\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,32],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"case_taken_history_list\\\",\\\"page_no\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"no_of_pages\\\",\\\"permission_arr\\\",\\\"caseHistoryDetails\\\",\\\"goToNext\\\",\\\"goToPrev\\\",\\\"major_condition\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,20],[33,33],[33,9],[33,34],[33,35],[33,3],[28,[37,6],[[30,0],\\\"caseHistoryDetails\\\"],null],[28,[37,6],[[30,0],\\\"goToNext\\\"],null],[28,[37,6],[[30,0],\\\"goToPrev\\\"],null],[33,36]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space casetaking section-border\\\"],[14,1,\\\"case-taking\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,37],null,[[\\\"patient_case_taking_list\\\",\\\"permission_arr\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"reportedbyproxy\\\",\\\"reportedProxy\\\",\\\"case_taken_time\\\",\\\"clearCaseTakenDisease\\\",\\\"filterVisitHistory\\\"],[[33,38],[33,3],[33,9],[33,34],[28,[37,6],[[30,0],\\\"reportedbyproxy\\\"],null],[33,39],[33,14,[\\\"0\\\",\\\"case_taken_time\\\"]],[28,[37,6],[[30,0],\\\"clearCaseTakenDisease\\\"],null],[28,[37,6],[[30,0],\\\"filterVisitHistory\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[3,\\\" Diagnostic Reports component \\\"],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space diagnosticreports section-border\\\"],[14,1,\\\"diagnostic-reports\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,40],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"patient_test_reports\\\",\\\"diagnostic_test_user\\\",\\\"appointment_id\\\",\\\"PatientInfo\\\",\\\"permission_arr\\\",\\\"current_date\\\",\\\"editDiagnosticReport\\\",\\\"removeTest\\\",\\\"addNewDiagnosticReport\\\",\\\"getPageFilterReport\\\",\\\"notesDetails\\\",\\\"showTestNote\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\",\\\"viewPDFFileInPopup\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,41],[33,42],[33,9],[33,14],[33,3],[33,43],\\\"editDiagnosticReport\\\",\\\"removeTest\\\",[28,[37,6],[[30,0],\\\"addNewDiagnosticReport\\\"],null],[28,[37,6],[[30,0],\\\"getPageFilterReport\\\"],null],\\\"notesDetails\\\",\\\"showTestNote\\\",[33,14,[\\\"0\\\",\\\"OldRegistrationNo\\\"]],[33,14,[\\\"0\\\",\\\"first_name\\\"]],[33,14,[\\\"0\\\",\\\"last_name\\\"]],\\\"viewPDFFileInPopup\\\"]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space messagelog section-border\\\"],[14,1,\\\"message-log\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,44],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"assigned_by\\\",\\\"assigntolist\\\",\\\"assignToDoctorFrontDesk\\\",\\\"logged_id\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"message_logs_list\\\",\\\"onRealTimeMessageLogsChanges\\\",\\\"message_log_changes\\\",\\\"permission_arr\\\",\\\"case_taken_doctor_id\\\",\\\"appointment_doctor\\\",\\\"casetaken_true\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,45],[33,46],[28,[37,6],[[30,0],\\\"assignToDoctorFrontDesk\\\"],null],[33,47],[33,9],[33,34],[33,48],[28,[37,6],[[30,0],\\\"onRealTimeMessageLogsChanges\\\"],null],[33,49],[33,3],[33,14,[\\\"0\\\",\\\"casetaken_doctor_id\\\"]],[33,14,[\\\"0\\\",\\\"doctor_id\\\"]],[33,14,[\\\"0\\\",\\\"reassigned\\\"]]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space section-border\\\"],[14,1,\\\"advised-Reports\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,50],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"advised_report_user\\\",\\\"advised_report\\\",\\\"previous_advised_report\\\",\\\"removeAdvicedReport\\\",\\\"getAdvisedPrint\\\",\\\"advisedReport\\\",\\\"permission_arr\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,51],[33,52],[33,53],[28,[37,6],[[30,0],\\\"removeAdvicedReport\\\"],null],[28,[37,6],[[30,0],\\\"getAdvisedPrint\\\"],null],[28,[37,6],[[30,0],\\\"advisedReport\\\"],null],[33,3]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row row-space postion_message section-border\\\"],[14,1,\\\"prescription\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,54],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"temp_billpatient\\\",\\\"height_unit\\\",\\\"weight_unit\\\",\\\"body_temp_unit\\\",\\\"section_user\\\",\\\"appointment_id\\\",\\\"patient_id\\\",\\\"prescription_billing_id\\\",\\\"read_message\\\",\\\"billpatient\\\",\\\"logged_id\\\",\\\"last_visit_history\\\",\\\"instruction\\\",\\\"current_doc_appointments\\\",\\\"page_name\\\",\\\"pharmacy_instruction\\\",\\\"medicine_reason\\\",\\\"pharmacyHistory\\\",\\\"addPrescriptionMedicine\\\",\\\"billingDataSubmit\\\",\\\"reAssign\\\",\\\"reasonEdit\\\",\\\"factorZero\\\",\\\"onRealTimePrescriptionNoteChanges\\\",\\\"instruction_note\\\",\\\"doc_id\\\",\\\"permission_arr\\\",\\\"previous_edit_page_visit_charges\\\",\\\"edit_tablist\\\",\\\"filterVisitHistory\\\",\\\"pe\\\"],[\\\"icpattend\\\",\\\"icpattend\\\",[33,55],[33,29],[33,30],[33,31],[33,56],[33,9],[33,34],[33,57],[33,58],[33,59],[33,47],[33,60],[33,61],[33,62],[33,7],[33,63],[33,64],[33,65],[28,[37,6],[[30,0],\\\"addPrescriptionMedicine\\\"],null],[28,[37,6],[[30,0],\\\"billingDataSubmit\\\"],null],[28,[37,6],[[30,0],\\\"reAssign\\\"],null],[28,[37,6],[[30,0],\\\"reasonEdit\\\"],null],[28,[37,6],[[30,0],\\\"factorZero\\\"],null],[28,[37,6],[[30,0],\\\"onRealTimePrescriptionNoteChanges\\\"],null],[33,66],[33,67],[33,3],[33,68],[33,69],[28,[37,6],[[30,0],\\\"filterVisitHistory\\\"],null],[33,17]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,1,\\\"vitalStatisticsPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetVitalPopupValue\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"modal-title\\\"],[12],[1,\\\"Add Vital Statistics\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"vital-error\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"form\\\"],[24,1,\\\"addVitalStatistics\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,6],[[30,0],\\\"saveVitalStatistic\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"vital_id\\\"],[14,1,\\\"vital_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,34]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                            \\\"],[10,\\\"input\\\"],[14,3,\\\"master_blood_type\\\"],[15,2,[29,[[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"input\\\"],[14,3,\\\"master_blood_type\\\"],[15,2,[29,[[33,14,[\\\"0\\\",\\\"blood_type\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-5\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"height\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Height:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"height_unit\\\"],[14,1,\\\"height_unit\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"feet\\\"],[12],[1,\\\"feet\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"inch\\\"],[12],[1,\\\"inch\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"m\\\"],[12],[1,\\\"m\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"cm\\\"],[12],[1,\\\"cm\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches input-space threshold th-height\\\"],[14,1,\\\"height_inches\\\"],[14,3,\\\"height_inches\\\"],[14,\\\"placeholder\\\",\\\"feet\\\"],[14,\\\"data-feet-min\\\",\\\"0\\\"],[14,\\\"data-feet-max\\\",\\\"10\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches1 height_inches input-space th-height\\\"],[14,1,\\\"height_inches1\\\"],[14,3,\\\"height_inches1\\\"],[14,\\\"placeholder\\\",\\\"inch\\\"],[14,\\\"data-inches-min\\\",\\\"0\\\"],[14,\\\"data-inches-max\\\",\\\"11\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-4 div-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"weight\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Weight:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"weight_unit\\\"],[14,1,\\\"weight_unit\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"kg\\\"],[12],[1,\\\"kg\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"pound\\\"],[12],[1,\\\"Pounds\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number height_inches\\\"],[14,1,\\\"weight_kgs\\\"],[14,3,\\\"weight_kgs\\\"],[14,\\\"placeholder\\\",\\\"kg\\\"],[14,\\\"data-kg-min\\\",\\\"1\\\"],[14,\\\"data-kg-max\\\",\\\"650\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bmi\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"BMI:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[1,\\\"(18.5 – 25)\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"bmi\\\"],[14,3,\\\"bmi\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,\\\"placeholder\\\",\\\"BMI\\\"],[14,\\\"data-bmi-min\\\",\\\"1\\\"],[14,\\\"data-bmi-max\\\",\\\"300\\\"],[14,\\\"data-bmi-warning-min\\\",\\\"18.5\\\"],[14,\\\"data-bmi-warning-max\\\",\\\"25\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"bmi_warning\\\"],[14,3,\\\"bmi_warning\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-5\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bodytemp\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Body Temp:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[1,\\\"(97 – 98.8F)\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"body_temp_unit\\\"],[14,1,\\\"body_temp_unit\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"°F\\\"],[12],[1,\\\"°F\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"°C\\\"],[12],[1,\\\"°C\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-6\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"body_temp_celsius\\\"],[14,3,\\\"body_temp_celsius\\\"],[14,\\\"placeholder\\\",\\\"°F\\\"],[14,\\\"data-bt-warning-min\\\",\\\"97\\\"],[14,\\\"data-bt-warning-max\\\",\\\"98.8\\\"],[14,\\\"data-bt-min\\\",\\\"40\\\"],[14,\\\"data-bt-max\\\",\\\"110\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"body_temp_warning\\\"],[14,3,\\\"body_temp_warning\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-4 div-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bloodtype\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Blood Type:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"blood_type\\\"],[14,1,\\\"blood_type\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"A+\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"A+\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"A-\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"A-\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"B+\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"B+\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"B-\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"B-\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"O+\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"O+\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"O-\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"O-\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"AB+\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"AB+\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"AB\\\",[33,28,[\\\"visit_data\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"AB\\\",[33,14,[\\\"0\\\",\\\"blood_type\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pulse\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Pulse:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[1,\\\"(60 – 100 bpm)\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"pulse_bpm\\\"],[14,3,\\\"pulse_bpm\\\"],[14,\\\"placeholder\\\",\\\"Pulse\\\"],[14,\\\"data-pulse-min\\\",\\\"1\\\"],[14,\\\"data-pulse-max\\\",\\\"500\\\"],[14,\\\"data-pulse-warning-min\\\",\\\"60\\\"],[14,\\\"data-pulse-warning-max\\\",\\\"100\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"pluse_warning\\\"],[14,3,\\\"pluse_warning\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-8\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"bloodpressure\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Blood Pressure:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"threshold-color\\\"],[12],[1,\\\"(110/70 – 120/85)\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-4 systolic\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"blood_pressure_systolic\\\"],[14,3,\\\"blood_pressure_systolic\\\"],[14,\\\"placeholder\\\",\\\"Systolic\\\"],[14,\\\"data-sbp-min\\\",\\\"1\\\"],[14,\\\"data-sbp-max\\\",\\\"400\\\"],[14,\\\"data-sbp-warning-min\\\",\\\"110\\\"],[14,\\\"data-sbp-warning-max\\\",\\\"120\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"blood_pressure_systolic_warning\\\"],[14,3,\\\"blood_pressure_systolic_warning\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[14,5,\\\"padding:4px 4px;width:15px;\\\"],[12],[1,\\\"\\\\n                                        /\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-4 diastolic\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,\\\"pattern\\\",\\\"^\\\\\\\\d*(\\\\\\\\.\\\\\\\\d{0,2})?$\\\"],[14,0,\\\"form-control number\\\"],[14,1,\\\"blood_pressure_diastolic\\\"],[14,3,\\\"blood_pressure_diastolic\\\"],[14,\\\"placeholder\\\",\\\"Diastolic\\\"],[14,\\\"data-dbp-min\\\",\\\"1\\\"],[14,\\\"data-dbp-max\\\",\\\"400\\\"],[14,\\\"data-dbp-warning-min\\\",\\\"70\\\"],[14,\\\"data-dbp-warning-max\\\",\\\"85\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"blood_pressure_diastolic_warning\\\"],[14,3,\\\"blood_pressure_diastolic_warning\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"save\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success pull-left\\\"],[14,1,\\\"vitalUpdate\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default pull-right\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetVitalPopupValue\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row modal-footer\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Diagnostic Filter popup html \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"diagnostic_filter_report\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Search Report\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,1,\\\"diagnostic_reasonerror\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"form\\\"],[24,1,\\\"diagnosticFilterForm\\\"],[4,[38,6],[[30,0],\\\"loadFilterReport\\\",[33,9],[33,14,[\\\"0\\\",\\\"patient_id\\\"]]],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"text-left text-label\\\"],[12],[1,\\\"From:\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control dtfilter\\\"],[14,1,\\\"frfromdate\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[36,70]]]],[14,5,\\\"margin-left:-38px;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"float: right; margin-right: 37px; margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"text-left text-label\\\"],[12],[1,\\\"To:\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control dtfilter\\\"],[14,1,\\\"frtodate\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[36,71]]]],[14,5,\\\"margin-left:-55px;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"float: right; margin-right: 54px; margin-top: -34px; top:0\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"getPopupFilterReport\\\",[33,9],[33,14,[\\\"0\\\",\\\"patient_id\\\"]]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Search Reports\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,1,\\\"filter-loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[12],[1,\\\"Please Wait ...\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group list-group-flush\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,73],[[33,74]],null],null,[[[42,[28,[37,73],[[30,1]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"list-group-item dritem\\\"],[12],[1,\\\"\\\\n                                                \\\"],[3,\\\" Default checked \\\"],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"custom-control custom-checkbox\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"custom-control-input\\\"],[15,1,[29,[[30,2]]]],[15,\\\"onchange\\\",[28,[37,6],[[30,0],[28,[37,6],[[30,0],\\\"selectFilterReport\\\",[30,2]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,2,[30,2]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"custom-control-label\\\"],[14,\\\"for\\\",\\\"check1\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null]],[1,2]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"save\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm pull-right\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Load Reports\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row modal-footer\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"markUrgent\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Mark Urgent\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"input\\\"],[14,1,\\\"urgent_status_check\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12 vital urgent_status_div\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent\\\"],[12],[1,\\\"Urgent :\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"urgent_status\\\"],[14,1,\\\"urgent_status\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row form-group urgent_note_div\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_note\\\"],[12],[1,\\\"Important Notes :\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"urgent_note\\\"],[14,1,\\\"urgent_note\\\"],[14,\\\"placeholder\\\",\\\"Important Notes...\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row form-group action-btns\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12 button-alignment\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info\\\"],[24,1,\\\"saveNote\\\"],[24,4,\\\"submit\\\"],[4,[38,6],[[30,0],\\\"saveUrgentNote\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n        \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,1,\\\"caseTakingPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearVariableData\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"casetaken_title\\\"],[12],[1,\\\"Add Case Taking \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"form\\\"],[14,1,\\\"addCaseTaking\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"modal-body casetaking-modal\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,1,\\\"case-taking-loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,34]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"case_taken_id\\\"],[14,1,\\\"case_taken_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"homeopathic\\\"],[14,1,\\\"homeopathic\\\"],[14,2,\\\"1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"non_homeopathic\\\"],[14,1,\\\"non_homeopathic\\\"],[14,2,\\\"2\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"max_order\\\"],[14,1,\\\"max_order\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-6 show-error\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"icddisease\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"ICD Disease:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control ctw-input clear_class\\\"],[14,\\\"data-ctw-ino\\\",\\\"1\\\"],[14,1,\\\"icd_name\\\"],[14,3,\\\"icd_name\\\"],[14,\\\"placeholder\\\",\\\"Type disease/code\\\"],[15,2,[29,[[33,75,[\\\"ICD_disease_name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"icdcode\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"ICD Code:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"icd_code\\\"],[14,3,\\\"icd_code\\\"],[14,\\\"placeholder\\\",\\\"ICD Code\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,\\\"data-icd_code\\\",[33,75,[\\\"ICD_code\\\"]]],[15,2,[29,[[33,75,[\\\"ICD_code\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"certificate_name\\\"],[14,3,\\\"certificate_name\\\"],[15,2,[29,[[33,75,[\\\"certificate_name\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-2 div-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"icdmajorcondition\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Major Condition:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"major_condition\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox\\\"],[14,3,\\\"major_condition\\\"],[14,1,\\\"icd_major_condition\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[52,[28,[37,15],[\\\"1\\\",[33,75,[\\\"major_condition\\\"]]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox\\\"],[14,3,\\\"major_condition\\\"],[14,1,\\\"icd_major_condition\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"clear_button\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[14,5,\\\"margin-left:34px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"ICD_disease_name\\\"]],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger icd_clear_class\\\"],[24,5,\\\"display: block;\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearICDDisease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-eraser\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger icd_clear_class\\\"],[24,5,\\\"display: none;\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearICDDisease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-eraser\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,1],[14,0,\\\"help-block text-error-message\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"At least one of the two fields above should have data\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"ctw-window\\\"],[14,1,\\\"icd_suggession_div\\\"],[14,\\\"data-ctw-ino\\\",\\\"1\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3 show-error\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dkbcdisease\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"DKBC Disease:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"DKBC_disease_id\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control disease_name_input\\\"],[14,1,\\\"disease_name\\\"],[14,3,\\\"disease_name\\\"],[14,\\\"placeholder\\\",\\\"Select/Type disease name\\\"],[15,2,[29,[[33,75,[\\\"disease\\\",\\\"name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"disease_id\\\"],[14,3,\\\"disease_id\\\"],[15,2,[29,[[33,75,[\\\"disease\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"disease_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"dkbc_d_others_text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"disease_results\\\"],[14,5,\\\"display: none;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control disease_name_input\\\"],[14,1,\\\"disease_name\\\"],[14,3,\\\"disease_name\\\"],[14,\\\"placeholder\\\",\\\"Select/Type disease name\\\"],[15,2,[29,[[33,75,[\\\"DKBC_disease_others\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"disease_id\\\"],[14,3,\\\"disease_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"disease_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"dkbc_d_others_text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"disease_results\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space show-error\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"system\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"System:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"DKBC_system_id\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control system_name_input\\\"],[14,1,\\\"system_name\\\"],[14,3,\\\"system_name\\\"],[14,\\\"placeholder\\\",\\\"System name\\\"],[15,2,[29,[[33,75,[\\\"system\\\",\\\"name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"system_id\\\"],[14,3,\\\"system_id\\\"],[15,2,[29,[[33,75,[\\\"system\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"system_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"system_results\\\"],[14,5,\\\"display: none;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control system_name_input\\\"],[14,1,\\\"system_name\\\"],[14,3,\\\"system_name\\\"],[14,\\\"placeholder\\\",\\\"System name\\\"],[15,2,[29,[[33,75,[\\\"DKBC_system_others\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"system_id\\\"],[14,3,\\\"system_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"system_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"system_results\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[10,1],[14,0,\\\"dkbc_s_others_text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3 show-error\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"organ\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Organ:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"DKBC_organ_id\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control organ_name_input\\\"],[14,1,\\\"organ_name\\\"],[14,3,\\\"organ_name\\\"],[14,\\\"placeholder\\\",\\\"Organ Name\\\"],[15,2,[29,[[33,75,[\\\"organ\\\",\\\"name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"organ_id\\\"],[14,3,\\\"organ_id\\\"],[15,2,[29,[[33,75,[\\\"organ\\\",\\\"id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"organ_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"organ_results\\\"],[14,5,\\\"display: none;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control organ_name_input\\\"],[14,1,\\\"organ_name\\\"],[14,3,\\\"organ_name\\\"],[14,\\\"placeholder\\\",\\\"Organ Name\\\"],[15,2,[29,[[33,75,[\\\"DKBC_organ_others\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"organ_id\\\"],[14,3,\\\"organ_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,1,\\\"organ_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,2],[14,1,\\\"organ_results\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[10,1],[14,0,\\\"dkbc_o_others_text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-2 div-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dkbcmajorcondition\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Major Condition:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"major_condition\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox\\\"],[14,3,\\\"major_condition\\\"],[14,1,\\\"dkbc_db_major_condition\\\"],[14,2,\\\"2\\\"],[15,\\\"checked\\\",[52,[28,[37,15],[\\\"2\\\",[33,75,[\\\"major_condition\\\"]]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"checkbox\\\"],[14,3,\\\"major_condition\\\"],[14,1,\\\"dkbc_db_major_condition\\\"],[14,2,\\\"2\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dkbcclearbutton\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[14,5,\\\"margin-left: 34px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"DKBC_disease_id\\\"]],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger dkbc_clear_class\\\"],[24,5,\\\"display: block;\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearDKBCDBDisease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-eraser\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[33,75,[\\\"DKBC_disease_others\\\"]],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger dkbc_clear_class\\\"],[24,5,\\\"display: block;\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearDKBCDBDisease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-eraser\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger dkbc_clear_class\\\"],[24,5,\\\"display: none;\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearDKBCDBDisease\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-eraser\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"]],[]]]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"patient_status\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Symptom Status \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"select\\\"],[14,3,\\\"patient_status\\\"],[14,1,\\\"patient_status\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"NA\\\"],[12],[1,\\\"Select Symptom Status\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"First Reported\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"First Reported\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"First Reported\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"First Reported\\\"],[12],[1,\\\"First Reported\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Slightly Better\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Slightly Better\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Slightly Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Slightly Better\\\"],[12],[1,\\\"Slightly Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Better\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Better\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Better\\\"],[12],[1,\\\"Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Much Better\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Much Better\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Much Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Much Better\\\"],[12],[1,\\\"Much Better\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Same\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Same\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Same\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Same\\\"],[12],[1,\\\"Same\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Slightly Worse\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Slightly Worse\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Slightly Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Slightly Worse\\\"],[12],[1,\\\"Slightly Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Worse\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Worse\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Worse\\\"],[12],[1,\\\"Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Much Worse\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Much Worse\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Much Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Much Worse\\\"],[12],[1,\\\"Much Worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Better then worse\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Better then worse\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Better then worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Better then worse\\\"],[12],[1,\\\"Better then worse\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[33,75,[\\\"patient_status\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Worse then better\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"Worse then better\\\",[33,75,[\\\"patient_status\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"Worse then better\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"Worse then better\\\"],[12],[1,\\\"Worse then better\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row clear\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-7\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"details\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Details:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"details_notes\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control form-control-sm mb-3\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,1,\\\"details_notes\\\"],[14,3,\\\"details_notes\\\"],[14,\\\"placeholder\\\",\\\"Details\\\"],[15,2,[29,[[28,[37,76],[[33,75,[\\\"details_notes\\\"]],\\\"ENT_HTML_QUOTE_SINGLE\\\"],null]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control form-control-sm mb-3\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,1,\\\"details_notes\\\"],[14,3,\\\"details_notes\\\"],[14,\\\"placeholder\\\",\\\"Details\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-4 div-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"sysmptom_duration\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Symptom Duration / Event:\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"dateDropdown\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,0,\\\"day d_sympton\\\"],[14,3,\\\"symptom_duration_day\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Days\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"1\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"2\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"3\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"3\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"4\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"4\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"4\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"5\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"5\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"5\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"6\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"6\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"6\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"7\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"7\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"7\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"8\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"8\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"8\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"9\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"9\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"9\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"10\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"11\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"12\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"13\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"13\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"13\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"14\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"14\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"14\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"15\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"15\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"15\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"16\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"16\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"16\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"17\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"17\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"17\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"18\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"18\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"18\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"19\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"19\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"19\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"20\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"20\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"20\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"21\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"21\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"21\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"22\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"22\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"22\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"23\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"23\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"23\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"24\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"24\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"24\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"25\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"25\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"25\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"26\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"26\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"26\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"27\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"27\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"27\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"28\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"28\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"28\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"29\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"29\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"29\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"30\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"30\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"30\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"31\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"31\\\",[33,75,[\\\"symptom_duration_day\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"31\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,0,\\\"month d_sympton ml-2\\\"],[14,3,\\\"symptom_duration_month\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Months\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"1\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"2\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"3\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"3\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"4\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"4\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"4\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"5\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"5\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"5\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"6\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"6\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"6\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"7\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"7\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"7\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"8\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"8\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"8\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"9\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"9\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"9\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"10\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"11\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"12\\\",[33,75,[\\\"symptom_duration_month\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,0,\\\"year d_sympton ml-2\\\"],[14,3,\\\"symptom_duration_year\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Year\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"1\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"2\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"3\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"3\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"4\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"4\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"4\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"5\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"5\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"5\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"6\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"6\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"6\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"7\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"7\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"7\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"8\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"8\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"8\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"9\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"9\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"9\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"10\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"11\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"12\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"13\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"13\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"13\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"14\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"14\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"14\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"15\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"15\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"15\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"16\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"16\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"16\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"17\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"17\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"17\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"18\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"18\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"18\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"19\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"19\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"19\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"20\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"20\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"20\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"21\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"21\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"21\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"22\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"22\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"22\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"23\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"23\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"23\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"24\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"24\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"24\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"25\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"25\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"25\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"26\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"26\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"26\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"27\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"27\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"27\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"28\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"28\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"28\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"29\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"29\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"29\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"30\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"30\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"30\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"31\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"31\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"31\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"32\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"32\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"32\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"33\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"33\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"33\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"34\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"34\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"34\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"35\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"35\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"35\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"36\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"36\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"36\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"37\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"37\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"37\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"38\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"38\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"38\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"39\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"39\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"39\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"40\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"40\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"40\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"41\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"41\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"41\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"42\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"42\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"42\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"43\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"43\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"43\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"44\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"44\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"44\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"45\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"45\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"45\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"46\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"46\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"46\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"47\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"47\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"47\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"48\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"48\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"48\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"49\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"49\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"49\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"50\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[\\\"50\\\",[33,75,[\\\"symptom_duration_year\\\"]]],null],\\\"true\\\"]],[12],[1,\\\"50\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"event_date\\\"],[14,5,\\\"clear:both;\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"event_date\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Event Date:\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"symptom_event_date\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control datepicker\\\"],[14,1,\\\"symptom_duration\\\"],[14,3,\\\"symptom_duration\\\"],[14,\\\"placeholder\\\",\\\"Event Date\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[33,75,[\\\"symptom_event_date\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"event_date_auto_cal\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control datepicker\\\"],[14,1,\\\"symptom_duration\\\"],[14,3,\\\"symptom_duration\\\"],[14,\\\"placeholder\\\",\\\"Event Date\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"event_date_auto_cal\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h5\\\"],[14,0,\\\"popup-sub-title\\\"],[12],[1,\\\"Drugs Being Taken: (Non Homeopathic)\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"nonhomeopathic_drugs_list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"nonhemeopatichdrug\\\"]],[[[42,[28,[37,77],[[28,[37,77],[[33,75,[\\\"nonhemeopatichdrug\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,0],[14,0,\\\"form-row clear non-homeo-label-hide\\\"],[15,1,[29,[\\\"non_homeopathic_drug_row\\\",[28,[37,78],[[30,6]],null]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"non_homeopathic_ordering\\\"],[15,2,[29,[[28,[37,78],[[30,6]],null]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control drugs\\\"],[15,1,[29,[\\\"non_homeopathic_drug_name\\\",[28,[37,78],[[30,6]],null]]]],[14,3,\\\"non_homeopathic_drug_name[]\\\"],[14,\\\"placeholder\\\",\\\"Drug Name\\\"],[15,2,[29,[[30,5,[\\\"drug_name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[15,1,[29,[\\\"non_drug_instruction\\\",[28,[37,78],[[30,6]],null]]]],[14,0,\\\"form-control nhdosage_instruction\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,61]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[[30,7,[\\\"instruction_name\\\"]],[30,5,[\\\"drug_intruction\\\"]]],null],\\\"true\\\"]],[15,2,[29,[[30,7,[\\\"instruction_name\\\"]]]]],[12],[1,[30,7,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"non_drug_instruction[]\\\"],[15,0,[29,[\\\"non_homeo_other nhotherOption\\\",[28,[37,78],[[30,6]],null]]]],[15,2,[29,[[30,5,[\\\"drug_intruction\\\"]]]]],[14,5,\\\"display:block;\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control non_homeopathic_start_date drugs\\\"],[15,1,[29,[\\\"non_homeopathic_start_date\\\",[28,[37,78],[[30,6]],null]]]],[14,3,\\\"non_homeopathic_start_date[]\\\"],[14,\\\"placeholder\\\",\\\"Start Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[28,[37,79],[[30,5,[\\\"start_date\\\"]]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -36px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[14,5,\\\"margin-left:53px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control non_homeopathic_stopped_date drugs\\\"],[15,1,[29,[\\\"non_homeopathic_stopped_date\\\",[28,[37,78],[[30,6]],null]]]],[14,3,\\\"non_homeopathic_stopped_date[]\\\"],[14,\\\"placeholder\\\",\\\"Stopped Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[28,[37,79],[[30,5,[\\\"stopped_date\\\"]]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[14,5,\\\"margin-left: 34px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger non_homeopathicRemoveRow\\\"],[15,\\\"data-row\\\",[29,[[28,[37,78],[[30,6]],null]]]],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null]],[]],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[14,1,\\\"non_homeopathic_drug_row1\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"non_homeopathic_ordering\\\"],[14,2,\\\"1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"non_homeopathic_drug_name1\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Drug Name & Dosage:\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control drugs\\\"],[14,1,\\\"non_homeopathic_drug_name1\\\"],[14,3,\\\"non_homeopathic_drug_name[]\\\"],[14,\\\"placeholder\\\",\\\"Drug Name & Dosage\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"non_drug_instruction1\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Dosage instruction:\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"select\\\"],[14,1,\\\"non_drug_instruction1\\\"],[14,0,\\\"form-control nhdosage_instruction\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,61]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[[30,8,[\\\"instruction_name\\\"]],[33,80,[\\\"drug_intruction\\\"]]],null],\\\"true\\\"]],[15,2,[29,[[30,8,[\\\"instruction_name\\\"]]]]],[12],[1,[30,8,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,3,\\\"non_drug_instruction[]\\\"],[14,0,\\\"non_homeo_other nhotherOption1\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"non_homeopathic_start_date\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Start Date:\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control non_homeopathic_start_date drugs\\\"],[14,1,\\\"non_homeopathic_start_date1\\\"],[14,3,\\\"non_homeopathic_start_date[]\\\"],[14,\\\"placeholder\\\",\\\"Start Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -36px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[14,5,\\\"margin-left:53px;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"non_homeopathic_stopped_date\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Stopped Date:\\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control non_homeopathic_stopped_date drugs\\\"],[14,1,\\\"non_homeopathic_stopped_date1\\\"],[14,3,\\\"non_homeopathic_stopped_date[]\\\"],[14,\\\"placeholder\\\",\\\"Stopped Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"hclear_button\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[14,5,\\\"margin-left: 34px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger non_homeopathicRemoveRow\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm button-margin\\\"],[24,\\\"title\\\",\\\"Add more non homeopathic drug name\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addMoreNonHomeopathicDrugRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Add\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h5\\\"],[14,0,\\\"popup-sub-title\\\"],[12],[1,\\\"Drugs Being Taken: (Homeopathic)\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"homeopathic_drugs_list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,75,[\\\"hemeopatichdrug\\\"]],[[[42,[28,[37,77],[[28,[37,77],[[33,75,[\\\"hemeopatichdrug\\\"]]],null]],null],null,[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"form-row clear homeo-label-hide\\\"],[15,1,[29,[\\\"homeopathic_drug_row\\\",[28,[37,78],[[30,10]],null]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"homeopathic_ordering\\\"],[15,2,[29,[[28,[37,78],[[30,10]],null]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control drugs\\\"],[15,1,[29,[\\\"homeopathic_drug_name\\\",[28,[37,78],[[30,10]],null]]]],[14,3,\\\"homeopathic_drug_name[]\\\"],[14,\\\"placeholder\\\",\\\"Drug Name\\\"],[15,2,[29,[[30,9,[\\\"drug_name\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[15,1,[29,[\\\"drug_instruction\\\",[28,[37,78],[[30,10]],null]]]],[14,0,\\\"form-control hdosage_instruction\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,61]],null]],null],null,[[[1,\\\"                                                        \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[[30,11,[\\\"instruction_name\\\"]],[30,9,[\\\"drug_intruction\\\"]]],null],\\\"true\\\"]],[15,2,[29,[[30,11,[\\\"instruction_name\\\"]]]]],[12],[1,[30,11,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,3,\\\"drug_instruction[]\\\"],[15,0,[29,[\\\"homeo_other hotherOption\\\",[28,[37,78],[[30,10]],null]]]],[15,2,[29,[[30,9,[\\\"drug_intruction\\\"]]]]],[14,5,\\\"display:block;\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control hdatepicker_start_date drugs\\\"],[15,1,[29,[\\\"homeopathic_start_date\\\",[28,[37,78],[[30,10]],null]]]],[14,3,\\\"homeopathic_start_date[]\\\"],[14,\\\"placeholder\\\",\\\"Start Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[28,[37,79],[[30,9,[\\\"start_date\\\"]]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -36px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[14,5,\\\"margin-left:53px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control hdatepicker_stopped_date drugs\\\"],[15,1,[29,[\\\"homeopathic_stopped_date\\\",[28,[37,78],[[30,10]],null]]]],[14,3,\\\"homeopathic_stopped_date[]\\\"],[14,\\\"placeholder\\\",\\\"Stopped Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[15,2,[29,[[28,[37,79],[[30,9,[\\\"stopped_date\\\"]]],null]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[14,5,\\\"margin-left: 34px;\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger homeopathicRemoveRow\\\"],[15,\\\"data-row\\\",[29,[[28,[37,78],[[30,10]],null]]]],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[9,10]],null]],[]],[[[1,\\\"                                    \\\"],[10,0],[14,0,\\\"form-row\\\"],[14,1,\\\"homeopathic_drug_row1\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"homeopathic_ordering\\\"],[14,2,\\\"1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"homeopathic_drug_name1\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Drug Name & Dosage:\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control drugs\\\"],[14,1,\\\"homeopathic_drug_name1\\\"],[14,3,\\\"homeopathic_drug_name[]\\\"],[14,\\\"placeholder\\\",\\\"Drug Name & Dosage\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-3 div-space\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"drug_instruction1\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Dosage Instruction:\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,1,\\\"drug_instruction1\\\"],[14,0,\\\"form-control hdosage_instruction\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"option\\\"],[12],[1,\\\"Select instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,61]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,\\\"selected\\\",[52,[28,[37,15],[[30,12,[\\\"instruction_name\\\"]],[33,81,[\\\"drug_intruction\\\"]]],null],\\\"true\\\"]],[15,2,[29,[[30,12,[\\\"instruction_name\\\"]]]]],[12],[1,[30,12,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,3,\\\"drug_instruction[]\\\"],[14,0,\\\"homeo_other hotherOption1\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"homeopathic_start_date\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Start Date:\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control hdatepicker_start_date drugs\\\"],[14,1,\\\"homeopathic_start_date1\\\"],[14,3,\\\"homeopathic_start_date[]\\\"],[14,\\\"placeholder\\\",\\\"Start Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -36px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-2\\\"],[14,5,\\\"margin-left:53px;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"homeopathic_stopped_date\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Stopped Date:\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control hdatepicker_stopped_date drugs\\\"],[14,1,\\\"homeopathic_stopped_date1\\\"],[14,3,\\\"homeopathic_stopped_date[]\\\"],[14,\\\"placeholder\\\",\\\"Stopped Dt\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default hcalender\\\"],[14,5,\\\"float: right; margin-right: -32px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group col-md-1\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"remove_homo_button\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group col-md-12\\\"],[14,5,\\\"margin-left: 34px;\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger homeopathicRemoveRow\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group col-md-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm button-margin\\\"],[24,\\\"title\\\",\\\"Add more homeopathic drug name\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addMoreHomeopathicDrugRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Add\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row modal-footer\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"height\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success case-pull-left\\\"],[24,1,\\\"caseTakenUpdate1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"saveCaseTaking\\\",\\\"addnew\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save & Add New\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary case-pull-left\\\"],[24,1,\\\"caseTakenUpdate\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"saveCaseTaking\\\",\\\"saveclose\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save & Close\\\"],[13],[1,\\\"\\\\n                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default pull-right\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearVariableData\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,1,\\\"caseHistoryDetailsPopup\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" Modal content\\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header case-model-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[14,1,\\\"case-modal-title\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"case-history-loader\\\"],[14,5,\\\"display: none; text-align: -webkit-center;\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"Please Wait...\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,82]],null]],null],null,[[[1,\\\"                        \\\"],[10,0],[15,1,[29,[\\\"main-div\\\",[28,[37,78],[[30,14]],null]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,13,[\\\"DKBC_disease_id\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"h5\\\"],[15,0,[29,[\\\"capitalize case-history-major_condition\\\",[30,13,[\\\"major_condition\\\"]],\\\" case-history-title\\\"]]],[12],[1,\\\" \\\"],[41,[30,13,[\\\"disease\\\",\\\"name\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"disease\\\",\\\"name\\\"]]],[1,\\\", \\\"]],[]],null],[1,\\\" \\\"],[41,[30,13,[\\\"organ\\\",\\\"name\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"organ\\\",\\\"name\\\"]]],[1,\\\", \\\"]],[]],null],[1,\\\" \\\"],[41,[30,13,[\\\"system\\\",\\\"name\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"system\\\",\\\"name\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,13,[\\\"DKBC_disease_others\\\"]],[[[1,\\\"                                    \\\"],[10,\\\"h5\\\"],[15,0,[29,[\\\"capitalize case-history-major_condition\\\",[30,13,[\\\"major_condition\\\"]],\\\" case-history-title\\\"]]],[12],[41,[30,13,[\\\"DKBC_disease_others\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"DKBC_disease_others\\\"]]],[1,\\\", \\\"]],[]],null],[1,\\\" \\\"],[41,[30,13,[\\\"DKBC_organ_others\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"DKBC_organ_others\\\"]]],[1,\\\", \\\"]],[]],null],[1,\\\" \\\"],[41,[30,13,[\\\"DKBC_system_others\\\"]],[[[1,\\\" \\\"],[1,[30,13,[\\\"DKBC_system_others\\\"]]],[1,\\\" \\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"h5\\\"],[15,0,[29,[\\\"capitalize case-history-major_condition\\\",[30,13,[\\\"major_condition\\\"]],\\\" case-history-title\\\"]]],[12],[1,\\\" \\\"],[1,[30,13,[\\\"ICD_disease_name\\\"]]],[13],[1,\\\"\\\\n                                \\\"]],[]]]],[]]],[1,\\\"                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered case-history-detail-popup-table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 15%;color: black;\\\"],[12],[1,\\\"Symptom Status\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 30%;color: black;\\\"],[12],[1,\\\"Symptom Duration / Event\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width:55%; color: black;\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,13,[\\\"patient_status\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[41,[28,[37,15],[\\\"1\\\",[30,13,[\\\"symptom_duration_day\\\"]]],null],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_day\\\"]]],[1,\\\" Day, \\\"]],[]],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_day\\\"]]],[1,\\\" Days \\\"]],[]]],[1,\\\" \\\"],[41,[28,[37,15],[\\\"1\\\",[30,13,[\\\"symptom_duration_month\\\"]]],null],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_month\\\"]]],[1,\\\" Month, \\\"]],[]],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_month\\\"]]],[1,\\\" Months,\\\"]],[]]],[1,\\\" \\\"],[41,[28,[37,15],[\\\"1\\\",[30,13,[\\\"symptom_duration_year\\\"]]],null],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_year\\\"]]],[1,\\\" Year \\\"]],[]],[[[1,\\\" \\\"],[1,[30,13,[\\\"symptom_duration_year\\\"]]],[1,\\\" Years \\\"]],[]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,76],[[30,13,[\\\"details_notes\\\"]],\\\"ENT_HTML_QUOTE_SINGLE\\\"],null]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"h6\\\"],[14,0,\\\"sub-case-history-title\\\"],[12],[1,\\\"Homeopathic Drugs\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered case-history-detail-popup-table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 35%;color: black;\\\"],[12],[1,\\\"Drug Name & Dosage\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width:35%;color: black;\\\"],[12],[1,\\\"Frequency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 15%;color: black;\\\"],[12],[1,\\\"Start Date\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 15%;color: black;\\\"],[12],[1,\\\"Stopped Date\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,13,[\\\"hemeopatichdrug\\\"]],[[[42,[28,[37,77],[[28,[37,77],[[30,13,[\\\"hemeopatichdrug\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,15,[\\\"drug_name\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,15,[\\\"drug_intruction\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,79],[[30,15,[\\\"start_date\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,79],[[30,15,[\\\"stopped_date\\\"]]],null]],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[15,16]],null]],[]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[14,0,\\\"norecord\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"No record found\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"h6\\\"],[14,0,\\\"sub-case-history-title\\\"],[12],[1,\\\"Allopathic Drugs\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered case-history-detail-popup-table\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 35%;color: black;\\\"],[12],[1,\\\"Drug Name & Dosage\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 35%;color: black;\\\"],[12],[1,\\\"Frequency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 15%;color: black;\\\"],[12],[1,\\\"Start Date\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 15%;color: black;\\\"],[12],[1,\\\"Stopped Date\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,13,[\\\"nonhemeopatichdrug\\\"]],[[[42,[28,[37,77],[[28,[37,77],[[30,13,[\\\"nonhemeopatichdrug\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,17,[\\\"drug_name\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,17,[\\\"drug_intruction\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,79],[[30,17,[\\\"start_date\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,79],[[30,17,[\\\"stopped_date\\\"]]],null]],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[17,18]],null]],[]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[14,0,\\\"norecord\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"No record found\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[13,14]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal modal-dialog-centered common_model\\\"],[14,1,\\\"cwComboInstruction\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,1,\\\"dosageerror\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"dosage_instructionForm\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,1,\\\"selecteddosage\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"Dosage\\\\n                                Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"select\\\"],[14,3,\\\"comboprescription\\\"],[14,0,\\\"form-control cwareinstruction comboprescription iother\\\"],[14,1,\\\"prescribe_dosage_instruction\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,77],[[28,[37,77],[[33,61]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"option\\\"],[14,0,\\\"othertable\\\"],[15,2,[29,[[30,19,[\\\"instruction_name\\\"]]]]],[12],[1,[30,19,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[19]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"otherOption\\\"],[14,5,\\\"display:none;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning btn-large\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"clearSelectedCheckbox\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"advisedReport\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetAdvisedReport\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Advised Reports\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-6 col-md-6 col-xs-6\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-md-11 no-margin-bottom\\\"],[14,\\\"for\\\",\\\"urgent\\\"],[12],[1,\\\"Report Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"advised_report_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"advised_report_name_o\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control advised_report_name\\\"],[14,3,\\\"advised_report_name\\\"],[14,1,\\\"advised_report_name\\\"],[14,\\\"placeholder\\\",\\\"Search report name\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,1,\\\"advised_report_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"reports_other\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,2],[14,1,\\\"report_results\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-6 col-md-6 col-xs-6\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-md-11 no-margin-bottom\\\"],[14,\\\"for\\\",\\\"urgent\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"advised_report_date\\\"],[14,3,\\\"advised_report_date\\\"],[15,2,[29,[[36,83]]]],[14,\\\"placeholder\\\",\\\"\\\"],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row form-group action-btns\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12 text-right\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,1,\\\"saveNote\\\"],[24,4,\\\"submit\\\"],[4,[38,6],[[30,0],\\\"saveReportName\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add\\\"],[13],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetAdvisedReport\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n        \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Visit History component popup html \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,84],null,[[\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"isLoadingHistory\\\",\\\"loadMoreHistory\\\",\\\"historyClearCheckbox\\\",\\\"clearSelectedCheckbox\\\"],[[33,85],[33,86],[33,87],[33,88],[28,[37,6],[[30,0],\\\"loadMoreHistory\\\"],null],[28,[37,6],[[30,0],\\\"historyClearCheckbox\\\"],null],[28,[37,6],[[30,0],\\\"clearSelectedCheckbox\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" Medicine Edit Reason popup html \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade modal-dialog-centered common_model\\\"],[14,1,\\\"MedicineEditReasonPopup\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Edit Reason\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,1,\\\"edit_reasonerror\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"editReasonForm\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"edit_reason\\\"],[12],[1,\\\"Reason: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,89],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"edit_reason\\\",\\\"form-control\\\",\\\"Enter edit reason\\\",\\\"off\\\"]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large resset_data\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /.modal \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Diagnostic Reports Popup html code\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"diagnosticReports\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetDignosticReport\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title dtitle\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"diagnostic_loader\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/loader.gif\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body modal-scroll\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"alert alert-danger print-error-msg\\\"],[14,5,\\\"display:none\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"derrormsg\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"form\\\"],[24,1,\\\"saveDiagnosticReport\\\"],[24,\\\"method\\\",\\\"POST\\\"],[24,\\\"enctype\\\",\\\"multipart/form-data\\\"],[4,[38,6],[[30,0],\\\"saveDiagnosticReport\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[33,90,[\\\"appointment_id\\\"]],[[[1,\\\"                            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[33,90,[\\\"appointment_id\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"input\\\"],[14,3,\\\"appointment_id\\\"],[15,2,[29,[[36,9]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[10,\\\"input\\\"],[14,3,\\\"patient_id\\\"],[15,2,[29,[[36,34]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"group_id\\\"],[14,1,\\\"group_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"parent_group_id\\\"],[14,1,\\\"parent_group_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"imaging\\\"],[14,1,\\\"imaging\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"report_id\\\"],[14,1,\\\"report_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,3,\\\"diagnostic_report_id\\\"],[14,1,\\\"diagnostic_report_id\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-first\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[14,1,\\\"grouppath\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-8\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,90,[\\\"group_name\\\"]],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-10 search-div\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,89],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"autocomplete\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control diagnostic_test_name\\\",\\\"diagnostic_test_name\\\",\\\"off\\\",\\\"diagnostic_test_name\\\",\\\"Test / Group Name\\\",[33,90,[\\\"group_name\\\"]]]]]],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"dsclear\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,1,\\\"dnorecod\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,1,\\\"diagnostic_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,2],[14,1,\\\"diagnostic_results\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-1 ml-2\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-folder-open\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-10 search-div\\\"],[12],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,89],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"autocomplete\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control diagnostic_test_name\\\",\\\"diagnostic_test_name\\\",\\\"off\\\",\\\"diagnostic_test_name\\\",\\\"Test / Group Name\\\",[33,91]]]]],[1,\\\"\\\\n                                            \\\"],[10,\\\"button\\\"],[14,0,\\\"dsclear\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,1,\\\"dnorecod\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,1,\\\"diagnostic_loader\\\"],[14,0,\\\"icon-container\\\"],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"i\\\"],[14,0,\\\"loader-spinner\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,2],[14,1,\\\"diagnostic_results\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"col-sm-1 ml-2\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[14,1,\\\"diagnostictree\\\"],[14,\\\"data-tree-value\\\",\\\"%%\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-folder-open\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,90,[\\\"diagnosticreport\\\",\\\"report_date\\\"]],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-11\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"diagnostic_test_date\\\"],[14,3,\\\"diagnostic_test_date\\\"],[14,\\\"placeholder\\\",\\\"Report Date\\\"],[15,2,[28,[37,79],[[33,90,[\\\"diagnosticreport\\\",\\\"report_date\\\"]]],null]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"float: right; margin-right: -16px; margin-top: -34px;\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,0],[14,0,\\\"col-sm-11\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control date\\\"],[14,1,\\\"diagnostic_test_date\\\"],[14,3,\\\"diagnostic_test_date\\\"],[14,\\\"placeholder\\\",\\\"Report Date\\\"],[15,2,[36,83]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,1],[14,0,\\\"btn btn-default calender\\\"],[14,5,\\\"float: right; margin-right: -16px; margin-top: -34px;\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-seven\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,1,\\\"group_tests_list\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-second\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,1,\\\"tests_list\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-third\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,92],[[[1,\\\"                                    \\\"],[1,[28,[35,93],null,[[\\\"onInit\\\",\\\"acceptedTypes\\\",\\\"maxFiles\\\",\\\"errors\\\",\\\"filequeue\\\",\\\"counter\\\",\\\"onChangeFile\\\",\\\"removeFile\\\",\\\"downloadDiagnosticReport\\\",\\\"viewPDFFileInPopup\\\",\\\"filecounter\\\",\\\"OldRegistrationNo\\\",\\\"first_name\\\",\\\"last_name\\\"],[\\\"uploaderInit\\\",\\\"image/png,image/jpeg,image/jpg,application/dicom,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/csv,text/csv,application/zip,application/octet-stream,application/x-zip-compressed, multipart/x-zip\\\",12,[33,94],[33,95],[33,96],\\\"onChangeFile\\\",\\\"removeFile\\\",\\\"downloadDiagnosticReport\\\",\\\"viewPDFFileInPopup\\\",[33,97],[33,14,[\\\"0\\\",\\\"OldRegistrationNo\\\"]],[33,14,[\\\"0\\\",\\\"first_name\\\"]],[33,14,[\\\"0\\\",\\\"last_name\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-fourth\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,90,[\\\"report_notes\\\"]],[[[1,\\\"                                            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"diagnostic_report_notes\\\"],[14,1,\\\"diagnostic_report_notes\\\"],[14,0,\\\"form-control diagnostic_report_notes\\\"],[14,\\\"placeholder\\\",\\\"Notes\\\"],[15,2,[29,[[33,90,[\\\"report_notes\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"diagnostic_report_notes\\\"],[14,1,\\\"diagnostic_report_notes\\\"],[14,0,\\\"form-control diagnostic_report_notes\\\"],[14,\\\"placeholder\\\",\\\"Notes\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row row-fourth\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-sm-12\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"imaging_report\\\"],[14,1,\\\"imaging_report\\\"],[15,\\\"checked\\\",[52,[28,[37,15],[\\\"1\\\",[33,90,[\\\"diagnosticreport\\\",\\\"imaging_report\\\"]]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[10,1],[14,0,\\\"dmargin\\\"],[12],[1,\\\"CD/image Saved Offline (For imaging report)\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row form-group action-btns\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-sm-12 text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,98],[[33,90,[\\\"created_at\\\"]],[33,43]],null],[[[1,\\\"                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-sm drdelete\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"deleteDignosticReport\\\",[33,90,[\\\"id\\\"]],[33,90,[\\\"appointment_id\\\"]],[33,90,[\\\"patient_id\\\"]],[33,90,[\\\"diagnostic_report_id\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[12],[13],[1,\\\" Delete\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success btn-sm\\\"],[14,1,\\\"saveReport\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-save icon-space\\\"],[12],[13],[1,\\\" Update Report \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-default btn-sm dcancel\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"ResetDignosticReport\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n        \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Diagnostic image Enlarge popup html \\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade modal-dialog-centered common_model\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"diagnostic_image_enlarge\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-dialog modal-lg\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h3\\\"],[14,0,\\\"diagnostic_test_title\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"\\\"],[14,0,\\\"diagnosticimagepreview\\\"],[14,5,\\\"width: 100%;\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" Diagnostic Reports notes Popup html code\\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,99],null,[[\\\"report_notes\\\"],[[33,100]]]]],[1,\\\"\\\\n    \\\"],[3,\\\" Show Test Note popup html \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,101],null,[[\\\"test_notes\\\"],[[33,102]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[1,[28,[35,103],null,[[\\\"previewUrl\\\",\\\"previewFileName\\\",\\\"closePDFReport\\\"],[[30,0,[\\\"previewUrl\\\"]],[30,0,[\\\"previewFileName\\\"]],[28,[37,6],[[30,0],\\\"closePDFReport\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[34,104]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"report_filter_array1\\\",\\\"key\\\",\\\"report_filter_array2\\\",\\\"key1\\\",\\\"non_homeo\\\",\\\"index\\\",\\\"instlist\\\",\\\"instlist\\\",\\\"homeo\\\",\\\"index\\\",\\\"instlist\\\",\\\"instlist\\\",\\\"history\\\",\\\"index\\\",\\\"history_homepatch\\\",\\\"index1\\\",\\\"history_allopath\\\",\\\"index2\\\",\\\"instlist\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"doctor-name-component\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"tablist\\\",\\\"action\\\",\\\"page\\\",\\\"logged_user\\\",\\\"appointment_id\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"PatientInfo\\\",\\\"eq\\\",\\\"patient-thin-info\\\",\\\"top_shiping_pickup\\\",\\\"top_prescription_email\\\",\\\"check-permission\\\",\\\"case_taken_history_list\\\",\\\"patient-information\\\",\\\"appointment_types\\\",\\\"appointment_type\\\",\\\"free_note_changes\\\",\\\"visit_logs\\\",\\\"visit-log-component\\\",\\\"vital-statistics-component\\\",\\\"patient_vital_list\\\",\\\"height_unit\\\",\\\"weight_unit\\\",\\\"body_temp_unit\\\",\\\"case-history\\\",\\\"page_no\\\",\\\"patient_id\\\",\\\"no_of_pages\\\",\\\"major_condition\\\",\\\"case-taking\\\",\\\"patient_case_taking_list\\\",\\\"reportedProxy\\\",\\\"diagnostic-reports\\\",\\\"patient_test_reports\\\",\\\"diagnostic_test_user\\\",\\\"current_date\\\",\\\"message-logs\\\",\\\"last_assigned_by\\\",\\\"assigntolist\\\",\\\"logged_id\\\",\\\"message_logs_list\\\",\\\"message_log_changes\\\",\\\"advised-reports\\\",\\\"advised_report_user\\\",\\\"advised_report\\\",\\\"previous_advised_report\\\",\\\"prescription\\\",\\\"temp_billpatient\\\",\\\"section_user\\\",\\\"prescription_billing_id\\\",\\\"read_message\\\",\\\"billpatient\\\",\\\"last_visit_history\\\",\\\"instruction\\\",\\\"current_doc_appointments\\\",\\\"pharmacy\\\",\\\"reason\\\",\\\"pharmacyHistory\\\",\\\"instruction_note\\\",\\\"doc_id\\\",\\\"previous_edit_page_visit_charges\\\",\\\"edit_tablist\\\",\\\"filter_fromdate\\\",\\\"filter_todate\\\",\\\"each\\\",\\\"-each-in\\\",\\\"icpdfilterlist\\\",\\\"caseDetail\\\",\\\"htmlspecialchars-decode\\\",\\\"-track-array\\\",\\\"increment\\\",\\\"common-date\\\",\\\"non_homeo\\\",\\\"homeo\\\",\\\"caseHistoryDetail\\\",\\\"todayDate\\\",\\\"visit-history-component-popup\\\",\\\"PatientHistory\\\",\\\"history_page\\\",\\\"filterParameter\\\",\\\"isLoadingHistory\\\",\\\"input\\\",\\\"editreportDetails\\\",\\\"diagnostic_test_name\\\",\\\"refresh\\\",\\\"file-upload\\\",\\\"errors\\\",\\\"filequeue\\\",\\\"counter\\\",\\\"filecounter\\\",\\\"check-equal-date\\\",\\\"report-notes-details\\\",\\\"report_notes\\\",\\\"show-test-notes\\\",\\\"test_notes\\\",\\\"file-preview-modal\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/icpattend.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/icpattend/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"KdNPZNhF\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Index\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/icpattend/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"PUpJ3Dag\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/doctor-dashboard/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"KZp3Txna\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"row doctor-page\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[3,\\\" <h2>{{currentUser}}</h2> \\\"],[1,\\\"\\\\n         \\\"],[3,\\\" flashes message showing due to flashes service \\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[1,[28,[35,5],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[14,1,\\\"patient-information\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row vital\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,6],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"newDoctorId\\\",\\\"tablist\\\",\\\"removePrescribeTab\\\",\\\"showTabPage\\\",\\\"page\\\",\\\"logged_user\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"doctorId\\\",\\\"ScrollToSection\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,7],[33,8],\\\"newDoctorId\\\",[33,9],[28,[37,10],[[30,0],\\\"removePrescribeTab\\\"],null],[28,[37,10],[[30,0],\\\"showTabPage\\\"],null],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[28,[37,10],[[30,0],\\\"doctorId\\\"],null],[28,[37,10],[[30,0],\\\"ScrollToSection\\\"],null]]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n             \\\"],[3,\\\" Tab panes \\\"],[1,\\\"\\\\n            \\\"],[10,0],[14,1,\\\"tab-content\\\"],[14,0,\\\"tab-content\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"tab-pane fade in active\\\"],[14,1,\\\"1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicPatientsList\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,18],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"icpVcPatients\\\",\\\"permission_arr\\\",\\\"patientCount\\\",\\\"remainingIcpVcPatients\\\",\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",\\\"user_id\\\",\\\"currentUser\\\",\\\"icptablist\\\",\\\"addPrescribeTab\\\",\\\"showCancelNote\\\",\\\"markCompleteC\\\",\\\"reAssignC\\\",\\\"button_status\\\",\\\"setShippingPreference\\\",\\\"isDisabled\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,19],[33,7],[33,20],[33,21],\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",[33,22],[33,23],[33,9],[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[28,[37,10],[[30,0],\\\"showCancelNote\\\"],null],[28,[37,10],[[30,0],\\\"markCompleteC\\\"],null],[28,[37,10],[[30,0],\\\"reAssignC\\\"],null],[33,24],[28,[37,10],[[30,0],\\\"setShippingPreference\\\"],null],[33,25]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicPhonePatients\\\",[33,7]],null],[[[1,\\\"                          \\\"],[10,0],[14,0,\\\"col-xs-6 p-l-r-10\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,26],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"phonePatients\\\",\\\"permission_arr\\\",\\\"patientCount\\\",\\\"remainingPhonePatients\\\",\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",\\\"user_id\\\",\\\"currentUser\\\",\\\"phonetablist\\\",\\\"addPrescribeTab\\\",\\\"showCancelNote\\\",\\\"markCompleteC\\\",\\\"reAssignC\\\",\\\"button_status\\\",\\\"setShippingPreference\\\",\\\"isDisabled\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,27],[33,7],[33,20],[33,28],\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",[33,22],[33,23],[33,9],[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[28,[37,10],[[30,0],\\\"showCancelNote\\\"],null],[28,[37,10],[[30,0],\\\"markCompleteC\\\"],null],[28,[37,10],[[30,0],\\\"reAssignC\\\"],null],[33,24],[28,[37,10],[[30,0],\\\"setShippingPreference\\\"],null],[33,25]]]]],[1,\\\"\\\\n\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicEmailPatients\\\",[33,7]],null],[[[1,\\\"                          \\\"],[10,0],[14,0,\\\"col-xs-6 p-l-r-10\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,29],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"emailPatients\\\",\\\"permission_arr\\\",\\\"patientCount\\\",\\\"remainingEmailPatients\\\",\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",\\\"user_id\\\",\\\"currentUser\\\",\\\"emailtablist\\\",\\\"addPrescribeTab\\\",\\\"showCancelNote\\\",\\\"markCompleteC\\\",\\\"reAssignC\\\",\\\"button_status\\\",\\\"setShippingPreference\\\",\\\"isDisabled\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,30],[33,7],[33,20],[33,31],\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",[33,22],[33,23],[33,9],[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[28,[37,10],[[30,0],\\\"showCancelNote\\\"],null],[28,[37,10],[[30,0],\\\"markCompleteC\\\"],null],[28,[37,10],[[30,0],\\\"reAssignC\\\"],null],[33,24],[28,[37,10],[[30,0],\\\"setShippingPreference\\\"],null],[33,25]]]]],[1,\\\"\\\\n\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicOcpPatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n\\\\n                          \\\"],[1,[28,[35,32],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"ocpPatients\\\",\\\"permission_arr\\\",\\\"patientCount\\\",\\\"remainingOcpPatients\\\",\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",\\\"user_id\\\",\\\"currentUser\\\",\\\"ocptablist\\\",\\\"addPrescribeTab\\\",\\\"showCancelNote\\\",\\\"markCompleteC\\\",\\\"reAssignC\\\",\\\"button_status\\\",\\\"setShippingPreference\\\",\\\"isDisabled\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,33],[33,7],[33,20],[33,34],\\\"reSchedulePatient\\\",\\\"reScheduleModal\\\",\\\"urgentModal\\\",\\\"notUrgentPatient\\\",\\\"markPatientAbsent\\\",\\\"cancelPatientId\\\",\\\"drreschedulepatient\\\",[33,22],[33,23],[33,9],[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[28,[37,10],[[30,0],\\\"showCancelNote\\\"],null],[28,[37,10],[[30,0],\\\"markCompleteC\\\"],null],[28,[37,10],[[30,0],\\\"reAssignC\\\"],null],[33,24],[28,[37,10],[[30,0],\\\"setShippingPreference\\\"],null],[33,25]]]]],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicCompletedIcpVcPatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,35],null,[[\\\"currentControllerBinding\\\",\\\"addPrescribeTab\\\",\\\"icptablist\\\",\\\"route\\\",\\\"completeIcpVcPatients\\\",\\\"login_user\\\",\\\"button_status\\\"],[\\\"doctor-dashboard\\\",[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[33,9],\\\"doctor-dashboard\\\",[33,36],[33,14],[33,24]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicCompletedPhonePatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,37],null,[[\\\"currentControllerBinding\\\",\\\"addPrescribeTab\\\",\\\"icptablist\\\",\\\"route\\\",\\\"completePhonePatients\\\",\\\"login_user\\\",\\\"button_status\\\"],[\\\"doctor-dashboard\\\",[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[33,9],\\\"doctor-dashboard\\\",[33,38],[33,14],[33,24]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicCompletedEmailPatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,39],null,[[\\\"currentControllerBinding\\\",\\\"addPrescribeTab\\\",\\\"icptablist\\\",\\\"route\\\",\\\"completeEmailPatients\\\",\\\"login_user\\\",\\\"button_status\\\"],[\\\"doctor-dashboard\\\",[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[33,9],\\\"doctor-dashboard\\\",[33,40],[33,14],[33,24]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicCompletedOcpPatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,41],null,[[\\\"currentControllerBinding\\\",\\\"addPrescribeTab\\\",\\\"icptablist\\\",\\\"route\\\",\\\"completeOcpPatients\\\",\\\"login_user\\\",\\\"button_status\\\"],[\\\"doctor-dashboard\\\",[28,[37,10],[[30,0],\\\"addPrescribeTab\\\"],null],[33,9],\\\"doctor-dashboard\\\",[33,42],[33,14],[33,24]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"InClinicAbsenteesPatients\\\",[33,7]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-xs-12 p-l-r-10\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,43],null,[[\\\"currentControllerBinding\\\",\\\"route\\\",\\\"absenteesPatients\\\"],[\\\"doctor-dashboard\\\",\\\"doctor-dashboard\\\",[33,44]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"reSchedule\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-sm\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Please select a doctor.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"reschedule_doc\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,45]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"doctor_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-warning\\\"],[24,3,\\\"reScheduleButton\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"reSchedule\\\"],null],[12],[1,\\\"Re Assign\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"markUrgent\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,1,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"closeReScheduleModal\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Mark Urgent\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"urgent_status_check\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-12 vital urgent_status_div\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent\\\"],[12],[1,\\\"Urgent :\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"urgent_status\\\"],[14,1,\\\"urgent_status\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group urgent_note_div\\\"],[12],[1,\\\"\\\\n                         \\\"],[10,0],[14,0,\\\"col-md-3\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"urgent_note\\\"],[12],[1,\\\"Important Notes :\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-8 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"urgent_note\\\"],[14,1,\\\"urgent_note\\\"],[14,\\\"placeholder\\\",\\\"Important Notes...\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row form-group action-btns\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-md-12 button-alignment\\\"],[12],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info\\\"],[24,1,\\\"saveNote\\\"],[24,4,\\\"submit\\\"],[4,[38,10],[[30,0],\\\"saveUrgentNote\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,1,\\\"notebox\\\"],[14,\\\"data-backdrop\\\",\\\"static\\\"],[14,\\\"data-keyboard\\\",\\\"false\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"closeNoteBox\\\"],null],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Reason for cancellation\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n\\\\n          \\\"],[3,\\\" <label class=\\\\\\\"control-label\\\\\\\"></label> \\\"],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"textarea\\\"],[14,3,\\\"note\\\"],[14,1,\\\"cancel_note\\\"],[14,0,\\\"form-control\\\"],[14,\\\"rows\\\",\\\"4\\\"],[14,\\\"placeholder\\\",\\\"Reason for cancellation.\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger\\\"],[24,3,\\\"cancelAppointment\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"cancelAppointment\\\"],null],[12],[1,\\\"Cancel Assignment\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n    \\\"],[3,\\\" Start Cancel Note Model \\\"],[1,\\\"\\\\n   \\\"],[10,0],[14,0,\\\"modal fade\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"cancelNote\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-dialog modal-md\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,1,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Cancelled by \\\"],[10,1],[14,1,\\\"cancelBy\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"row form-group\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-12 input-space\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"textarea\\\"],[14,\\\"rows\\\",\\\"5\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"cancel_note\\\"],[14,1,\\\"cancel_note\\\"],[14,\\\"readonly\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" End Cancel Note Model \\\"],[1,\\\"\\\\n  \\\"],[3,\\\" Start Shipping Preference Modal \\\"],[1,\\\"\\\\n    \\\"],[1,[28,[35,46],null,[[\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"refresh\\\",\\\"saveShippingPreference\\\"],[[33,47],[33,48],[33,49],[33,50],[33,51],[33,11],[33,52],[33,53],[33,54],[33,55],[33,56],[33,57],[28,[37,10],[[30,0],\\\"saveShippingPreference\\\"],null]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" End Shipping Preference Modal \\\"],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,58]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"doc\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"doctor-name-component\\\",\\\"permission_arr\\\",\\\"phoneEmailOcpRemaining\\\",\\\"tablist\\\",\\\"action\\\",\\\"page\\\",\\\"logged_user\\\",\\\"doctor\\\",\\\"doctor_id\\\",\\\"totalPrescribe\\\",\\\"totalCasetaken\\\",\\\"check-permission\\\",\\\"icp-vc-patients-component\\\",\\\"icpVcPatients\\\",\\\"patientCount\\\",\\\"remainingIcpVcPatients\\\",\\\"user_id\\\",\\\"currentUser\\\",\\\"casetaken_prescribing_status\\\",\\\"isDisabled\\\",\\\"phone-patients-component\\\",\\\"phonePatients\\\",\\\"remainingPhonePatients\\\",\\\"email-patients-component\\\",\\\"emailPatients\\\",\\\"remainingEmailPatients\\\",\\\"ocp-patients-component\\\",\\\"ocpPatients\\\",\\\"remainingOcpPatients\\\",\\\"icp-vc-completed-visit-component\\\",\\\"completeIcpVcPatients\\\",\\\"phone-completed-visit-component\\\",\\\"completePhonePatients\\\",\\\"email-completed-visit-component\\\",\\\"completeEmailPatients\\\",\\\"ocp-completed-visit-component\\\",\\\"completeOcpPatients\\\",\\\"absentees-patients-component\\\",\\\"absenteesPatients\\\",\\\"assigned\\\",\\\"shipping-preference-popup\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"patient_id\\\",\\\"appointment_id\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"prescription_email\\\",\\\"refresh\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/doctor-dashboard/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/forgot-password\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"OobCLMBk\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"account-container cw-account-container\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"content clearfix cw-forgotcontent\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"form\\\"],[14,\\\"action\\\",\\\"\\\"],[14,\\\"method\\\",\\\"post\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"h1\\\"],[12],[1,\\\"Forgot Password\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"login-fields\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"Please enter your username\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[12],[1,\\\"Username\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,0],null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"text\\\",\\\"mobile\\\",\\\"username\\\",[33,1],\\\"Username\\\",\\\"login username-field form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /field \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /login-fields \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"login-actions\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"button btn btn-success btn-large\\\"],[24,4,\\\"submit\\\"],[4,[38,2],[[30,0],\\\"forgotPassword\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" .actions \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /content \\\"],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"backlink text-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"password booked\\\",\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"Back\\\"]],[]]]]],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\" \\\"],[3,\\\" /account-container \\\"],[1,\\\"\\\\n\\\\n\\\\n\\\"]],[],false,[\\\"input\\\",\\\"username\\\",\\\"action\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/forgot-password.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/home\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"SPz1OTis\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main page-height\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/home.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ogy4Fx8Z\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/login\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"A7k3BorZ\",\n    \"block\": \"[[[1,[34,0]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"account-container\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"content clearfix\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"             \\\"],[1,[28,[35,4],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\"],[10,\\\"form\\\"],[14,\\\"action\\\",\\\"\\\"],[14,\\\"method\\\",\\\"post\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"h1\\\"],[12],[1,\\\"Login\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"login-fields\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,2],[12],[1,\\\"Please provide your details\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"location_id\\\"],[12],[1,\\\"Location\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,1,\\\"location_id\\\"],[14,3,\\\"location_id\\\"],[15,2,[36,5]],[14,0,\\\"login location-field form-control\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"--\\\"],[12],[1,\\\" Select a Location \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,6]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]],\\\"-\\\",[30,2,[\\\"title\\\"]],\\\"-\\\",[30,2,[\\\"branch_code\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,2,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /field \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shift_id\\\"],[12],[1,\\\"Shift\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,1,\\\"shift_id\\\"],[14,3,\\\"shift_id\\\"],[15,2,[36,7]],[14,0,\\\"login shift-field form-control\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"--\\\"],[12],[1,\\\" Select a Shift \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[12],[1,\\\"Morning\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"Evening\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /field \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[12],[1,\\\"Username\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,8],null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"text\\\",\\\"username\\\",\\\"username\\\",[33,9],\\\"Username\\\",\\\"login username-field form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /field \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"field\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[12],[1,\\\"Password:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,8],null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\"],[\\\"password\\\",\\\"password\\\",\\\"password\\\",[33,10],\\\"Password\\\",\\\"login password-field form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /password \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /login-fields \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"login-actions\\\"],[12],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"button btn btn-success btn-block\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"login\\\"],null],[12],[1,\\\"Sign In\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" .actions \\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[13],[1,\\\" \\\"],[3,\\\" /content \\\"],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\" \\\"],[3,\\\" /account-container \\\"],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"login-extra\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[6,[39,12],null,[[\\\"class\\\",\\\"route\\\"],[\\\"password booked\\\",\\\"forgot-password\\\"]],[[\\\"default\\\"],[[[[1,\\\"Forgot Password\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\" \\\"],[3,\\\" /login-extra \\\"],[1,\\\"\\\\n\\\"]],[\\\"flash\\\",\\\"branch\\\"],false,[\\\"component-permissions\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"location_id\\\",\\\"branches\\\",\\\"shift_id\\\",\\\"input\\\",\\\"username\\\",\\\"password\\\",\\\"action\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/login.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/manage-appointment/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"+A7SLix6\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"ManageAppointment\\\",[33,4]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Manage Transactions\\\",\\\"manage-transaction.list\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-6 twolistname\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\" Manage Transactions \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Re-schedule/Cancel Appointments\\\",\\\"cancel-appointment\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-6 twolistname\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\" Re-schedule/Cancel Appointments \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 mt-3\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Refund Dashboard\\\",\\\"refund-dashboard\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-6 twolistname\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-money\\\"],[12],[13],[1,\\\" Refund Dashboard \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,6]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/manage-appointment/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/manage-transaction/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ZnYxYPoB\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Index\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/manage-transaction/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/manage-transaction/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"A7SBGNTs\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,2]],[1,\\\"s\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,6],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"manage-transaction\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" This component is used for search appointment\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,7],null,[[\\\"doctors\\\",\\\"branches\\\",\\\"branch_id\\\",\\\"appointment_status\\\",\\\"doctor_id\\\",\\\"status_id\\\",\\\"transactionAppointmentSearch\\\"],[[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[28,[37,14],[[30,0],\\\"transactionAppointmentSearch\\\"],null]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\" This component is used for appointment list\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,15],null,[[\\\"permission_arr\\\",\\\"pending_patients\\\",\\\"openTransactionPopup\\\",\\\"page\\\",\\\"setupRescheduleAppointment\\\",\\\"showNoteDialog\\\",\\\"closeNoteBox\\\",\\\"cancelAppointment\\\",\\\"cancelSelectedAppointment\\\"],[[33,16],[33,17],[28,[37,14],[[30,0],\\\"openTransactionPopup\\\"],null],[33,2],[28,[37,14],[[30,0],\\\"setupRescheduleAppointment\\\"],null],[28,[37,14],[[30,0],\\\"showNoteDialog\\\"],null],[28,[37,14],[[30,0],\\\"closeNoteBox\\\"],null],[28,[37,14],[[30,0],\\\"cancelAppointment\\\"],null],[28,[37,14],[[30,0],\\\"cancelSelectedAppointment\\\"],null]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n   \\\"],[3,\\\" This model is used for pending refund popup\\\"],[1,\\\"\\\\n  \\\"],[3,\\\" {{pending-refund-popup Payment_mode=Payment_mode}} \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,18],null,[[\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",\\\"doctor_fees\\\",\\\"billpatientlist\\\",\\\"ResetPGAmount\\\",\\\"page\\\",\\\"getTotalTransaction\\\",\\\"getPatientTransactions\\\",\\\"advance_payment_type\\\",\\\"doctorcharges\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\"],[[33,19],[33,20],[33,21],[33,22],[33,23],[33,24],[33,25],[33,26],\\\"paymentsaved\\\",\\\"paymentcomplete\\\",\\\"updateList\\\",\\\"updateDkbList\\\",\\\"updateDoctorList\\\",[33,27],[33,28],\\\"ResetPGAmount\\\",[33,2],\\\"getTotalTransaction\\\",\\\"getPatientTransactions\\\",\\\"appointment_id\\\",[33,29],[33,30],[33,31],[33,32]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" Transaction Details List popup html \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,33],null,[[\\\"total_transction_details\\\",\\\"total_transction\\\",\\\"resetTransactionDetails\\\"],[[33,34],[33,35],[33,36]]]]],[1,\\\"\\\\n  \\\"],[3,\\\" {{online-payment-details-popup}} \\\"],[1,\\\"\\\\n  \\\"],[1,[28,[35,37],null,[[\\\"online_payment_details\\\",\\\"gateway_response_list\\\",\\\"disableRefundButton\\\",\\\"onRefund\\\",\\\"showBatchDetails\\\",\\\"currentBatch\\\",\\\"currentRefunds\\\",\\\"cancellationSuccessMessage\\\",\\\"onDismissSuccessMessage\\\",\\\"onCloseBatchDetails\\\",\\\"onRefreshBatchDetails\\\"],[[33,38],[33,39],[33,40],[28,[37,14],[[30,0],\\\"openCancellationRefundPopup\\\"],null],[33,41],[33,42],[33,43],[33,44],[28,[37,14],[[30,0],\\\"clearCancellationSuccessMessage\\\"],null],[28,[37,14],[[30,0],\\\"closeBatchDetails\\\"],null],[28,[37,14],[[30,0],\\\"refreshCurrentBatch\\\"],null]]]]],[1,\\\" \\\"],[3,\\\" This model is used for online payment details popup by shubh tiwari as on 14-05-2026\\\"],[1,\\\"\\\\n  \\\\n\\\"],[41,[33,45],[[[1,\\\"     \\\"],[1,[28,[35,46],null,[[\\\"appointmentRows\\\",\\\"customTitle\\\",\\\"disableRefundButton\\\",\\\"onConfirm\\\",\\\"onClose\\\"],[[33,47],[33,48],[33,40],[28,[37,14],[[30,0],\\\"confirmCancellationRefund\\\"],null],[28,[37,14],[[30,0],\\\"closeCancellationRefundPopup\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,49]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"transaction-search-appointment\\\",\\\"doctors\\\",\\\"branches\\\",\\\"branch_id\\\",\\\"appointment_status\\\",\\\"doctor_id\\\",\\\"status_id\\\",\\\"action\\\",\\\"transaction-appointment\\\",\\\"permission_arr\\\",\\\"pending_patients\\\",\\\"payment-details-component\\\",\\\"payment_value\\\",\\\"Payment_mode\\\",\\\"pending_list\\\",\\\"consultancy_print_code\\\",\\\"medicine_print_code\\\",\\\"selectedPaymentOptions\\\",\\\"selectedPaymentName\\\",\\\"PrescribePatient\\\",\\\"consultancy_fees\\\",\\\"billpatient\\\",\\\"doctorcharges\\\",\\\"totalduelabel_with_previous_pg\\\",\\\"totalduelabelwithBothPG\\\",\\\"totalduelabel_with_current_pg\\\",\\\"transaction-history-popup\\\",\\\"total_transction_details\\\",\\\"total_transction\\\",\\\"resetTransactionDetails\\\",\\\"online-payment-details-popup\\\",\\\"online_payment_details\\\",\\\"gateway_response_list\\\",\\\"disableRefundButton\\\",\\\"showBatchDetails\\\",\\\"currentBatch\\\",\\\"currentRefunds\\\",\\\"cancellationSuccessMessage\\\",\\\"cancellationRefundPopupOpen\\\",\\\"cancellation-refund-popup\\\",\\\"cancellationRefundAppointmentRows\\\",\\\"customCancellationTitle\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/manage-transaction/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/mfa-setup\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"d8hkl1/R\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Set up Multi-Factor Authentication\\\"],null]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"container full-height-center\\\"],[14,5,\\\"margin-top: 50px;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"col-sm-10\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-heading text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"panel-title\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Set up Multi-Factor Authentication\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n        \\\"],[1,[34,1]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[],false,[\\\"page-title\\\",\\\"mfa-setup\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/mfa-setup.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/otp-verification\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ZVBdu7N/\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Additional verification required\\\"],null]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"container full-height-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"col-sm-8\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-heading text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[14,0,\\\"panel-title\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Additional verification required\\\"],[13],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[1,[34,1]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,3],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"otp-verification\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/otp-verification.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/patient\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/ZyOF7p5\",\n    \"block\": \"[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/patient.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/patient/details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ZL3MzgfD\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[13],[1,\\\"\\\\n        \\\"],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"patient\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,6,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[1,[28,[35,7],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"manage-transaction\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Patient Information\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"PatientDetails\\\",[33,9]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Gender/Age\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Mobile No\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Address\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,10]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[52,[30,2,[\\\"OldRegistrationNo\\\"]],[30,2,[\\\"OldRegistrationNo\\\"]],\\\"NP\\\"]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,[28,[35,11],[[30,2,[\\\"first_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"middle_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"last_name\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"gender\\\"]]],[1,\\\" \\\"],[1,[28,[35,12],[[30,2,[\\\"date_of_birth\\\"]]],[[\\\"visit_date\\\",\\\"years\\\",\\\"months\\\",\\\"days\\\"],[[33,13],[30,2,[\\\"age_years\\\"]],[30,2,[\\\"age_months\\\"]],[30,2,[\\\"age_days\\\"]]]]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"phone_res\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,[28,[35,11],[[30,2,[\\\"full_address_per\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"full_address_res\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"city_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"state_name\\\"]]],null]],[1,\\\" \\\"],[1,[28,[35,11],[[30,2,[\\\"country_name\\\"]]],null]],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Appointment Details\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"PatientDetails\\\",[33,9]],null],[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[14,1,\\\"appointment_details\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading\\\"],[12],[1,\\\"Sr No\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Appointment Details\\\"],[13],[1,\\\" \\\"],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Shift / Location / Type \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Date/Time\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading\\\"],[12],[1,\\\"Booked For\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading\\\"],[12],[1,\\\"Booked By\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Advance Details\\\"],[13],[1,\\\" \\\"],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Amount / Entered By \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Date Paid\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Assigned\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Assigned By \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Date \\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Case Taking\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Doctor Name \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Completion Date \\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Prescribed\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Doctor Name \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Completed Date \\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Billing\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Total Visit Due / Bill Loc \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Last Billed By / Last Billed Date\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Payment\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Total AMT RCVD / Last RCVD By \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" AMT Due \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Last RCVD Date \\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Pharmacy\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Location / Prepared By\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Date \\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[10,1],[14,0,\\\"group_heading nowrap\\\"],[12],[1,\\\"Dispatch\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,1],[12],[1,\\\"Cour / Track ID \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\" Dispatch Date\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"dt-action\\\"],[12],[10,1],[14,0,\\\"group_heading\\\"],[12],[1,\\\"Action\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[34,14]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"data\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"patient_data\\\",\\\"capitalize\\\",\\\"checkout-date-format\\\",\\\"current_date\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/patient/details.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/patient/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Uc80K5ik\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/patient/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/patient/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"WG+5o6/Y\",\n    \"block\": \"[[[41,[33,1],[[[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\"Patient Database\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline \\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Patient \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Patient Name or ID\\\",[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,4],[[30,0],\\\"search_patient\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"RegisterPatientButton\\\",[33,6]],null],[[[1,\\\"            \\\"],[10,1],[14,5,\\\"padding: 0 20px\\\"],[12],[1,\\\" OR \\\"],[13],[1,\\\"\\\\n            \\\"],[6,[39,7],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"patient.register\\\"]],[[\\\"default\\\"],[[[[1,\\\"Register Patient\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,5,\\\"clear:both\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"text-center row marginTop10\\\"],[12],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label col-xs-4 text-right\\\"],[12],[1,\\\" Sort By: \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\" dropdown col-xs-3 text-left marginLeft10\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default dropdown-toggle\\\"],[14,1,\\\"sort\\\"],[14,\\\"data-toggle\\\",\\\"dropdown\\\"],[14,\\\"aria-haspopup\\\",\\\"true\\\"],[14,\\\"aria-expanded\\\",\\\"true\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[34,8]],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"caret\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"ul\\\"],[14,0,\\\"dropdown-menu \\\"],[14,\\\"aria-labelledby\\\",\\\"sort\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"first_name\\\",\\\"asc\\\",\\\"Name (Asc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes\\\"],[12],[13],[1,\\\" Name \\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"first_name\\\",\\\"desc\\\",\\\"Name (Desc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes-alt\\\"],[12],[13],[1,\\\" Name \\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"registration_number\\\",\\\"asc\\\",\\\"Registration number (Asc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes\\\"],[12],[13],[1,\\\" Registration Number\\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"registration_number\\\",\\\"desc\\\",\\\"Registration Number (Desc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes-alt\\\"],[12],[13],[1,\\\"Registration Number \\\"],[13],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"priority\\\",\\\"asc\\\",\\\"Priority (Asc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes\\\"],[12],[13],[1,\\\"Priority \\\"],[13],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"li\\\"],[12],[11,3],[24,6,\\\"#\\\"],[4,[38,4],[[30,0],\\\"redirect\\\",\\\"priority\\\",\\\"desc\\\",\\\"Priority (Desc)\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\" icon-sort-by-attributes-alt\\\"],[12],[13],[1,\\\" Priority\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n          \\\"],[3,\\\" <select class=\\\\\\\"form-control\\\\\\\" name=\\\\\\\"sort\\\\\\\">\\\\n            <option value=\\\\\\\"\\\\\\\">Sort By: </option>\\\\n            <option value=\\\\\\\"first_name.asc\\\\\\\" data-order=\\\\\\\"asc\\\\\\\">Name </option>\\\\n            <option value=\\\\\\\"first_name.desc\\\\\\\" data-order=\\\\\\\"desc\\\\\\\">Name </option>\\\\n            <option value=\\\\\\\"registration_number.asc\\\\\\\" data-order=\\\\\\\"asc\\\\\\\">Registration Number </option>\\\\n            <option value=\\\\\\\"registration_number.desc\\\\\\\" data-order=\\\\\\\"desc\\\\\\\">Registration Number <i class=\\\\\\\" icon-sort-by-attributes\\\\n\\\\\\\"></i> </option>\\\\n\\\\n\\\\n          </select> \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Patient Id\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Name\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Gender\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Phone\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Address\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Priority\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Category\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                      Amount\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Mode\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"EditPatientButton\\\",[33,6]],null],[[[1,\\\"                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n                      Edit\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,11]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,1,[\\\"priority\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n    \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n    \\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,1,[\\\"title_prefix\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,1,[\\\"gender\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                   \\\"],[41,[30,1,[\\\"mobile_res\\\"]],[[[1,\\\" \\\"],[1,[30,1,[\\\"mobile_res\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                   \\\"],[41,[30,1,[\\\"phone_res\\\"]],[[[1,\\\" \\\"],[1,[30,1,[\\\"phone_res\\\"]]],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,1,[\\\"full_address_per\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,1,[\\\"priority\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,1,[\\\"category\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"capitalize\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"balance_amount\\\"]],0],null],[[[1,\\\"                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,13],[[30,1,[\\\"balance_amount\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,14],[[30,1,[\\\"balance_amount\\\"]],0],null],[[[1,\\\"                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,13],[[30,1,[\\\"balance_amount\\\"]]],null]],[1,\\\"\\\\n                  \\\"]],[]],null]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],null,[[\\\"bookedFrom\\\"],[[30,1,[\\\"mode\\\"]]]]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"EditPatientButton\\\",[33,6]],null],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n                      \\\"],[6,[39,7],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-success btn-xs\\\",\\\"patient.edit\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"icon-edit patient-data-edit-button\\\"],[14,\\\"title\\\",\\\"Edit Patient\\\"],[12],[13]],[]]]]],[1,\\\"\\\\n                      \\\"],[6,[39,7],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-info btn-xs\\\",\\\"patient.details\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\" View \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"10\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                    Sorry, No patient found.\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[3,\\\" {{pagination-component stats=stats p=p}} \\\"],[1,\\\"\\\\n\\\\n\\\\n            \\\"],[10,\\\"nav\\\"],[14,0,\\\"span4\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination pull-left\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Previous\\\"],[4,[38,4],[[30,0],\\\"prev\\\",[33,16],[33,17],[33,18]],null],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"«\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"aria-label\\\",\\\"Next\\\"],[4,[38,4],[[30,0],\\\"next\\\",[33,16],[33,17],[33,18]],null],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"»\\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"nav\\\"],[14,0,\\\"span2 pull-right\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,2],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"enter\\\"],[\\\"text\\\",\\\"pagination_input\\\",[33,17],[28,[37,4],[[30,0],\\\"goto\\\"],null]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                   of \\\"],[1,[33,16,[\\\"total_pages\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"clearfix\\\"],[12],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,[34,19]],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[\\\"patient\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"input\\\",\\\"q\\\",\\\"action\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"sorted_by\\\",\\\"each\\\",\\\"-track-array\\\",\\\"patients\\\",\\\"gt\\\",\\\"due-advance-flag\\\",\\\"lt\\\",\\\"booked-from-badge\\\",\\\"stats\\\",\\\"p\\\",\\\"sort\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/patient/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/patient/register\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"of1LNaRg\",\n    \"block\": \"[[[41,[33,1],[[[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,[34,2]],[1,\\\" Patient\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"form\\\"],[14,0,\\\"register-patient\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"register_patient\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mode\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Mode of Registration \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,3,\\\"mode\\\"],[14,1,\\\"mode\\\"],[15,2,[36,3]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setMode\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"online\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"online\\\",[33,3]],null],\\\"true\\\"]],[12],[1,\\\"Online\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"email\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"email\\\",[33,3]],null],\\\"true\\\"]],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"phone\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"phone\\\",[33,3]],null],\\\"true\\\"]],[12],[1,\\\"Phone\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"clinic\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"clinic\\\",[33,3]],null],\\\"true\\\"]],[12],[1,\\\"Clinic\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"priority\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"VIP Priority\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t        \\\"],[10,\\\"select\\\"],[14,3,\\\"priority\\\"],[14,1,\\\"priority\\\"],[15,2,[36,6]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setPriority\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"normal\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"normal\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"medium\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"medium\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Medium\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"high\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"high\\\",[33,6]],null],\\\"true\\\"]],[12],[1,\\\"High\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"blood_type\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Blood Type\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t        \\\"],[10,\\\"select\\\"],[14,3,\\\"blood_type\\\"],[14,1,\\\"blood_type\\\"],[15,2,[36,7]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setBloodType\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"A+\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"A+\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"A+\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"A-\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"A-\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"B+\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"B+\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"B-\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"B-\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"O+\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"O+\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"O+\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"O-\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"O-\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"O-\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB+\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"AB+\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"AB+\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"AB\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"AB\\\",[33,7]],null],\\\"true\\\"]],[12],[1,\\\"AB\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"category\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Category\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,3,\\\"category\\\"],[14,1,\\\"category\\\"],[15,2,[36,8]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setCategory\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Serious Illness\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Serious Illness\\\\\\\"\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Serious Illness\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Family\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Family\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Family\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Friend\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Friend\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Friend\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"IRS\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"IRS\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"IRS\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"IAS\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"IAS\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"IAS\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Police\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Police\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Police\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Armed Forces\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Armed Forces\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Armed Forces\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Politician\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Politician\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Politician\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t        \\\"],[10,\\\"option\\\"],[14,2,\\\"media\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"media\\\",[33,8]],null],\\\"true\\\"]],[12],[1,\\\"Media\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Discount Category \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"discount_category\\\"],[15,2,[36,9]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateDiscountCategoty\\\"],null]],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Discount Category\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,12]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,1,[\\\"id\\\"]],[33,9]],null]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"title_prefix\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Title\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,3,\\\"title_prefix\\\"],[14,1,\\\"title_prefix\\\"],[15,2,[36,13]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setTitlePrefix\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Mr\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Mr\\\",[33,13]],null],\\\"true\\\"]],[12],[1,\\\"Mr.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Mrs\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Mrs\\\",[33,13]],null],\\\"true\\\"]],[12],[1,\\\"Mrs.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Ms\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Ms\\\",[33,13]],null],\\\"true\\\"]],[12],[1,\\\"Ms.\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"Dr\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Dr\\\",[33,13]],null],\\\"true\\\"]],[12],[1,\\\"Dr.\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t        \\\"],[10,\\\"option\\\"],[14,2,\\\"Master\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"Master\\\",[33,13]],null],\\\"true\\\"]],[12],[1,\\\"Master\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"first_name\\\"],[14,0,\\\"col-xs-4 text-right control-label capitalize\\\"],[12],[1,\\\"First Name \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"first_name\\\",\\\"first_name\\\",\\\"First Name\\\",[33,15]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"middle_name\\\"],[14,0,\\\"col-xs-4 text-right control-label capitalize\\\"],[12],[1,\\\"Middle Name\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"middle_name\\\",\\\"middle_name\\\",\\\"Middle Name\\\",[33,16]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"last_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Last Name\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"last_name\\\",\\\"last_name\\\",\\\"Last Name\\\",[33,17]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"gender\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Gender \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,3,\\\"gender\\\"],[14,1,\\\"gender\\\"],[15,2,[36,18]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setGender\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"M\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"M\\\",[33,18]],null],\\\"true\\\"]],[12],[1,\\\"Male\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"F\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"F\\\",[33,18]],null],\\\"true\\\"]],[12],[1,\\\"Female\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"O\\\"],[15,\\\"selected\\\",[52,[28,[37,5],[\\\"O\\\",[33,18]],null],\\\"true\\\"]],[12],[1,\\\"Other\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"date_of_birth\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Date of birth\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,19],null,[[\\\"locale\\\",\\\"name\\\",\\\"id\\\",\\\"yearRange\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\",\\\"placeholder\\\",\\\"action\\\"],[[33,20],\\\"date_of_birth\\\",\\\"date_of_birth\\\",\\\"1950,currentYear\\\",[33,21],\\\"MM/DD/YYYY\\\",\\\"form-control\\\",\\\"Date of birth\\\",\\\"setDateOfBirth\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"age\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Age \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control patient_age\\\",\\\"age_years\\\",\\\"age_years\\\",\\\"Years\\\",[33,22]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control patient_age\\\",\\\"age_months\\\",\\\"age_months\\\",\\\"Months\\\",[33,23]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control patient_age\\\",\\\"age_days\\\",\\\"age_days\\\",\\\"Days\\\",[33,24]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"\\\\n              Phone 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[3,\\\" Country Code \\\"],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[14,5,\\\"padding-right:5px;\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,2,[36,25]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"setPhoneCode\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,26]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"phonecode\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,2,[\\\"phonecode\\\"]],[33,25]],null]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"country_name\\\"]]],[1,\\\" (+\\\"],[1,[30,2,[\\\"phonecode\\\"]]],[1,\\\")\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[3,\\\" Phone number \\\"],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[14,5,\\\"padding-left:5px;\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"phone_1\\\",\\\"phone_1\\\",\\\"Phone number\\\",[33,27]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"phone_2\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Phone 2\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"phone_2\\\",\\\"phone_2\\\",\\\"Phone 2\\\",[33,28]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Email id \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t         \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email id\\\",[33,29]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_1\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"address_1\\\",\\\"address_1\\\",\\\"Address Line 1\\\",[33,30]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address_line_2\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"address_2\\\",\\\"address_2\\\",\\\"Address Line 2\\\",[33,31]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t         \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"country\\\"],[15,2,[36,32]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateCountry\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,33]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,3,[\\\"id\\\"]],[33,32]],null]],[12],[1,\\\" \\\"],[1,[30,3,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"state\\\"],[15,2,[36,34]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateState\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,35]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,4,[\\\"id\\\"]],[33,34]],null]],[12],[1,\\\" \\\"],[1,[30,4,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"other_state\\\",\\\"other_state\\\",\\\"Other State\\\",[33,36]]]]],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[3,\\\" {{input type=\\\\\\\"text\\\\\\\" class=\\\\\\\" form-control\\\\\\\" id=\\\\\\\"city\\\\\\\" name=\\\\\\\"city\\\\\\\" placeholder=\\\\\\\"City\\\\\\\" value=city}} \\\"],[1,\\\"\\\\n              \\\"],[3,\\\" {{selected_city}} \\\"],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"city\\\"],[15,2,[36,37]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateCity\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,38]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,5,[\\\"id\\\"]],[33,37]],null]],[12],[1,\\\" \\\"],[1,[30,5,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"other_city\\\",\\\"other_city\\\",\\\"Other City\\\",[33,39]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"zip\\\",\\\"zip\\\",\\\"Zip\\\",[33,40]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"My Shipping Address is same\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"as Billing Address\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[14,5,\\\"padding-top: 20px;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t          \\\"],[10,\\\"input\\\"],[14,1,\\\"same_to_ship\\\"],[14,3,\\\"same_to_ship\\\"],[14,2,\\\"1\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,1,\\\"shipping_address_box\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n           \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t          \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-12 text-center control-label\\\"],[12],[1,\\\"Shipping Address\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_1\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 1 \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t          \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"shipping_address_1\\\",\\\"shipping_address_1\\\",\\\"Shipping Address Line 1\\\",[33,41]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"shipping_address_2\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Address Line 2\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t          \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize\\\",\\\"shipping_address_2\\\",\\\"shipping_address_2\\\",\\\"Shipping Address Line 2\\\",[33,42]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"country\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Country \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t         \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"shipping_country\\\"],[14,3,\\\"shipping_country\\\"],[15,2,[36,43]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateShippingCountry\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Country\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,33]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,6,[\\\"id\\\"]],[33,43]],null]],[12],[1,\\\" \\\"],[1,[30,6,[\\\"country_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"state\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"State \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"shipping_state\\\"],[15,2,[36,44]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateShippingState\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select State\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,45]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,7,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,7,[\\\"id\\\"]],[33,44]],null]],[12],[1,\\\" \\\"],[1,[30,7,[\\\"state_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_state\\\",\\\"shipping_other_state\\\",\\\"Other State\\\",[33,46]]]]],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n             \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"city\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"City \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"shipping_city\\\"],[15,2,[36,47]],[15,\\\"onchange\\\",[28,[37,4],[[30,0],\\\"updateShippingCity\\\"],null]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select City\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,48]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,8,[\\\"id\\\"]],[33,47]],null]],[12],[1,\\\" \\\"],[1,[30,8,[\\\"city_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                \\\"],[10,\\\"option\\\"],[14,2,\\\"other\\\"],[12],[1,\\\" Other \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\"],[\\\"text\\\",\\\" form-control capitalize hidden\\\",\\\"shipping_other_city\\\",\\\"shipping_other_city\\\",\\\"Other City\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Zip \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_zip\\\",\\\"shipping_zip\\\",\\\"Zip\\\",[33,49]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"zip\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Mobile No. \\\"],[10,1],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t  \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\" form-control\\\",\\\"shipping_mob\\\",\\\"shipping_mob\\\",\\\"Mobile no\\\",[33,50]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,5,\\\"padding-top: 10px\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"note\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Note\\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"textarea\\\"],[14,0,\\\"form-control  capitalize\\\"],[14,1,\\\"note\\\"],[15,\\\"oninput\\\",[28,[37,4],[[30,0],\\\"setNote\\\"],null]],[12],[1,[34,51]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,52],[[33,53],[33,54]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"\\\\n                Notification Preferences\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[33,53],[[[1,\\\"                    \\\"],[3,\\\" WhatsApp \\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"margin-bottom:15px;\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-1 mt-3 text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[14,0,\\\"label label-success\\\"],[14,5,\\\"border-radius:50%;padding:8px;\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,1],[14,0,\\\"glyphicon glyphicon-phone\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"strong\\\"],[12],[1,\\\"WhatsApp Updates\\\"],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"small\\\"],[14,0,\\\"text-muted\\\"],[12],[1,\\\"Receive appointment updates on WhatsApp\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-2 text-right chekbox-left\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"big-checkbox\\\"],[15,\\\"checked\\\",[28,[37,5],[[33,53],1],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,54],[[[1,\\\"                    \\\"],[3,\\\" Email \\\"],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-1 mt-3 text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[14,0,\\\"label label-primary\\\"],[14,5,\\\"border-radius:50%;padding:10px;\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-envelope\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-9\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"strong\\\"],[12],[1,\\\"Email Notifications\\\"],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"small\\\"],[14,0,\\\"text-muted\\\"],[12],[1,\\\"\\\\n                          Get updates and reminders via email\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-2 text-right chekbox-left\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"input\\\"],[14,0,\\\"big-checkbox\\\"],[15,\\\"checked\\\",[28,[37,5],[[33,54],1],null]],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[6,[39,55],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"patient\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,2,\\\"master_update\\\"],[14,3,\\\"master_update\\\"],[14,1,\\\"master_update\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"submit\\\",[33,2]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,[34,56]],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[\\\"category\\\",\\\"item\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\",\\\"country\\\",\\\"state\\\",\\\"city\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"mode\\\",\\\"action\\\",\\\"eq\\\",\\\"priority\\\",\\\"blood_type\\\",\\\"category\\\",\\\"selected_discount_category\\\",\\\"each\\\",\\\"-track-array\\\",\\\"discount_categories\\\",\\\"title_prefix\\\",\\\"input\\\",\\\"first_name\\\",\\\"middle_name\\\",\\\"last_name\\\",\\\"gender\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"date_of_birth\\\",\\\"age_years\\\",\\\"age_months\\\",\\\"age_days\\\",\\\"selected_phonecode\\\",\\\"uniquePhoneCodes\\\",\\\"phone_1\\\",\\\"phone_2\\\",\\\"email_id\\\",\\\"address_1\\\",\\\"address_2\\\",\\\"selected_country\\\",\\\"countries\\\",\\\"selected_state\\\",\\\"states\\\",\\\"other_state\\\",\\\"selected_city\\\",\\\"cities\\\",\\\"other_city\\\",\\\"zip\\\",\\\"shipping_address_1\\\",\\\"shipping_address_2\\\",\\\"shipping_selected_country\\\",\\\"shipping_selected_state\\\",\\\"shipping_states\\\",\\\"shipping_other_state\\\",\\\"shipping_selected_city\\\",\\\"shipping_cities\\\",\\\"shipping_zip\\\",\\\"shipping_mob\\\",\\\"note\\\",\\\"or\\\",\\\"whatsapp_notification\\\",\\\"email_notification\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/patient/register.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"lO1WGPOf\",\n    \"block\": \"[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 pharmacy\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n     \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy/details\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"G2GpGv0L\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\\n\\\"],[1,[28,[35,1],null,[[\\\"appointment_id\\\",\\\"printAId\\\",\\\"reprintOptions\\\",\\\"getRePrints\\\",\\\"setprintType\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"PrescribePatient\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"normal_med_dis\\\",\\\"pharmacy_page_instruction\\\",\\\"pharmacyComplete\\\",\\\"user_permission\\\"],[[33,2],[33,3],[28,[37,4],[[30,0],\\\"reprintOptions\\\"],null],[28,[37,4],[[30,0],\\\"getRePrints\\\"],null],[28,[37,4],[[30,0],\\\"setprintType\\\"],null],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[33,18],[28,[37,4],[[30,0],\\\"pharmacyComplete\\\"],null],[33,19]]]]],[1,\\\"\\\\n\\\\n\\\"]],[],false,[\\\"page\\\",\\\"pharmacy-details-component\\\",\\\"appointment_id\\\",\\\"print_appointment_id\\\",\\\"action\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"PrescribePatient\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"pharmacy_page_instruction\\\",\\\"permission_arr\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy/details.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy/history\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"92HgriKx\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[33,3,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"     \\\"],[1,[28,[35,4],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body list patient-history\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                   \\\"],[6,[39,5],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-warning btn-sm pull-right marginbottom15\\\",\\\"Patient History\\\",\\\"pharmacy.list\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\"  Back \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\" table-responsive cware\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"h4\\\"],[12],[1,\\\" In Clinic Patients \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover history-patient \\\"],[14,1,\\\"pharmacy_history\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"100px;\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\"Prescribing Doctor\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\"Appointment Type\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"160px;\\\"],[12],[1,\\\"Appointment Date\\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"120px;\\\"],[12],[1,\\\"Prescribed Details\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"flash\\\"],false,[\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy/history.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fiGJUYIT\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cM1abCqM\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"     \\\"],[1,[28,[35,6],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"panel-body billing-dashboard list \\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PatientHistoryButton\\\",[33,8]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"row bill-margin\\\"],[12],[1,\\\"\\\\n                    \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right marginbottom15\\\",\\\"Patient History\\\",\\\"pharmacy.history\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[12],[13],[1,\\\"  Patient History  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,0],[14,0,\\\"tab\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"tablinks PendingPatients active\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"openBillingList\\\",\\\"PendingPatients\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Pending Patients\\\"],[13],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"tablinks BilledPatients\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"openBillingList\\\",\\\"BilledPatients\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Completed Patients\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"PendingPatients\\\"],[14,0,\\\"tabcontent\\\"],[14,5,\\\"display: block;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PInClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" In Clinic Patients \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doc\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PICPViewButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,11]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,2,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,2,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"60%\\\"],[12],[1,[30,2,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,2,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,2,[\\\"appointment_booked_branch\\\"]],[30,2,[\\\"appointment_billed_branch\\\"]],[30,2,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,2,[\\\"visit_status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"ml-2\\\"],[14,5,\\\"padding-right:10px;cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Bill Not Paid\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,2,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,2,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[41,[28,[37,12],[[30,2,[\\\"med_flag\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,5,\\\"cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Medicine Prepared\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/med-flag.jpg\\\"],[14,\\\"width\\\",\\\"23\\\"],[14,\\\"height\\\",\\\"23\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,2,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,2,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,2,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,2,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PICPViewButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-xs\\\"],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"pharmacyView\\\",[30,2,[\\\"appointment_id\\\"]],[30,2,[\\\"billing_id\\\"]],[30,2,[\\\"patient_id\\\"]]],null],[12],[1,\\\"View\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PRMPatientList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Repeat Medicine Patients \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"70%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Request Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PRMPatientViewButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,15]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,3,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,3,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"70%\\\"],[12],[1,[30,3,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,3,[\\\"appointment_booked_branch\\\"]],[30,3,[\\\"appointment_billed_branch\\\"]],[30,3,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,3,[\\\"visit_status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"ml-2\\\"],[14,5,\\\"padding-right:10px;cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Bill Not Paid\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,3,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,3,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,3,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,3,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[\\\"PRMPatientViewButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-xs\\\"],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"pharmacyView\\\",[30,3,[\\\"appointment_id\\\"]],[30,3,[\\\"billing_id\\\"]],[30,3,[\\\"patient_id\\\"]]],null],[12],[1,\\\"View\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PInClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" OCP Patients \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"45%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doctor\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Pres Date\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PICPViewButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,16]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,4,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,4,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,4,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"45%\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,4,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,4,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,4,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,4,[\\\"appointment_booked_branch\\\"]],[30,4,[\\\"appointment_billed_branch\\\"]],[30,4,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,4,[\\\"visit_status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"ml-2\\\"],[14,5,\\\"padding-right:10px;cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Bill Not Paid\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,4,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,4,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[41,[28,[37,12],[[30,4,[\\\"med_flag\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,5,\\\"cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Medicine Prepared\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/med-flag.jpg\\\"],[14,\\\"width\\\",\\\"23\\\"],[14,\\\"height\\\",\\\"23\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,4,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,4,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,4,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,4,[\\\"prescribe_datetime\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PICPViewButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"prescribe-button vertical-align-middle\\\"],[12],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-xs\\\"],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"pharmacyView\\\",[30,4,[\\\"appointment_id\\\"]],[30,4,[\\\"billing_id\\\"]],[30,4,[\\\"patient_id\\\"]]],null],[12],[1,\\\"View\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center full-width\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"InClinicPatientsList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Email RM Patients \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"65%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"REQUEST DATE/TIME\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"PRES DETAILS\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,17]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,5,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,5,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"65%\\\"],[12],[1,[30,5,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,5,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,5,[\\\"appointment_booked_branch\\\"]],[30,5,[\\\"appointment_billed_branch\\\"]],[30,5,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,5,[\\\"visit_status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"ml-2\\\"],[14,5,\\\"padding-right:10px;cursor:pointer;\\\"],[14,\\\"title\\\",\\\"Bill Not Paid\\\"],[12],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"./../img/blink.gif\\\"],[12],[13],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,5,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,5,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,5,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[\\\"PRMPatientViewButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-xs\\\"],[24,\\\"title\\\",\\\"Prescribe Details\\\"],[24,4,\\\"button\\\"],[4,[38,10],[[30,0],\\\"pharmacyView\\\",[30,5,[\\\"appointment_id\\\"]],[30,5,[\\\"billing_id\\\"]],[30,5,[\\\"patient_id\\\"]]],null],[12],[1,\\\"View\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                 \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,1,\\\"BilledPatients\\\"],[14,0,\\\"tabcontent\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPOList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Completed In Clinic Patient Orders \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doc\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Time\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Bill Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPODetailsButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,18]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,6,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,6,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,[30,6,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,6,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,6,[\\\"appointment_booked_branch\\\"]],[30,6,[\\\"appointment_billed_branch\\\"]],[30,6,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,6,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,6,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,6,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,6,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"prescribe_time\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,6,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPODetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"pharmacy.details\\\",[28,[37,19],[[30,6,[\\\"appointment_id\\\"]],[30,6,[\\\"billing_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CRMPOLIst\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive cware\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Completed Repeat Medicine Patient Orders \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Request Time\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Bill Time\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PRMDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,20]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,7,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,7,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"50%\\\"],[12],[1,[30,7,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,7,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,7,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,7,[\\\"appointment_booked_branch\\\"]],[30,7,[\\\"appointment_billed_branch\\\"]],[30,7,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,7,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,7,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,7,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,7,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,7,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PRMDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"pharmacy.details\\\",[28,[37,19],[[30,7,[\\\"appointment_id\\\"]],[30,7,[\\\"billing_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPOList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-12 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Completed OCP Patient Orders \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"30%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Pres Doc\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Pres Date\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"Bill Date\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPODetailsButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,21]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,9,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,9,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,9,[\\\"appointment_type\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"30%\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,9,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,9,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,9,[\\\"appointment_booked_branch\\\"]],[30,9,[\\\"appointment_billed_branch\\\"]],[30,9,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,9,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,9,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[1,[28,[35,14],null,[[\\\"bookedFrom\\\",\\\"pageName\\\"],[[30,9,[\\\"appointment_booked_from\\\"]],\\\"billing\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,9,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,9,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,9,[\\\"doc_label\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,9,[\\\"prescribe_datetime\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,9,[\\\"complete_datetime\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"CICPODetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[14,0,\\\"prescribe-button\\\"],[12],[1,\\\" \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"pharmacy.details\\\",[28,[37,19],[[30,9,[\\\"appointment_id\\\"]],[30,9,[\\\"billing_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[14,\\\"width\\\",\\\"100%\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledPatientList\\\",[33,8]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"col-lg-12 col-md-6 col-sm-12 table-responsive OCPpatients\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h4\\\"],[12],[1,\\\" Completed Email RM Patient Orders \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"55%\\\"],[12],[1,\\\"Patient Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Patient Id\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,\\\"REQUEST DATE/TIME\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"BILL TIME\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"BilledDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,22]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,0,[29,[[30,10,[\\\"priority\\\"]],\\\" \\\",[52,[28,[37,12],[[30,10,[\\\"absent\\\"]],\\\"1\\\"],null],\\\"absent\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"55%\\\"],[12],[1,[30,10,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,10,[\\\"middle_name\\\"]]],[1,\\\" \\\"],[1,[30,10,[\\\"last_name\\\"]]],[1,\\\"\\\\n\\\"],[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"highlight-text text-uppercase\\\"],[12],[1,[28,[35,13],[[30,10,[\\\"appointment_booked_branch\\\"]],[30,10,[\\\"appointment_billed_branch\\\"]],[30,10,[\\\"medicine_prepared_branch\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,10,[\\\"urgent_status\\\"]],\\\"1\\\"],null],[[[1,\\\"                                                        \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-circle fa-urgent dashboard-fa-font\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"data-placement\\\",\\\"top\\\"],[15,\\\"data-original-title\\\",[29,[\\\"Note : \\\",[30,10,[\\\"urgent_note\\\"]]]]],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"                                                        \\\"],[1,[30,10,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                        \\\"],[10,1],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"15%\\\"],[12],[1,[30,10,[\\\"appointment_time\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,[30,10,[\\\"complete_time\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"PRMDetailsButton\\\",[33,8]],null],[[[1,\\\"                                                    \\\"],[10,\\\"td\\\"],[14,0,\\\"prescribe-button\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\" \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"Details\\\",\\\"pharmacy.details\\\",[28,[37,19],[[30,10,[\\\"appointment_id\\\"]],[30,10,[\\\"billing_id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\" Details \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[10,11]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,23]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"patient\\\",\\\"index\\\",\\\"patient\\\",\\\"patient\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"action\\\",\\\"clinicPatients\\\",\\\"eq\\\",\\\"show-billing-pharmacy-name\\\",\\\"booked-from-badge\\\",\\\"RepeatMedicinePatients\\\",\\\"OCPPatients\\\",\\\"EmailRepeatMedicinePatients\\\",\\\"clinicPatientsBillComplete\\\",\\\"array\\\",\\\"RepeatMedicinePatientsBillComplete\\\",\\\"OCPPatientsBillComplete\\\",\\\"EmailRepeatMedicinePatientsBillComplete\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/pharmacy/view\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"onMS6+BZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\" Import prescribe-details-component\\\"],[1,\\\"\\\\n\\\\n\\\"],[1,[28,[35,1],null,[[\\\"appointment_id\\\",\\\"reprintOptions\\\",\\\"getRePrints\\\",\\\"setprintType\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"PrescribePatient\\\",\\\"billpatientlist\\\",\\\"doctor_fees\\\",\\\"charge_master_list\\\",\\\"consult_dicount\\\",\\\"medd_discount\\\",\\\"med_amount\\\",\\\"billing_id\\\",\\\"visiting_id\\\",\\\"normal_consultancy_dis\\\",\\\"normal_med_dis\\\",\\\"pharmacy_page_instruction\\\",\\\"pharmacyComplete\\\",\\\"user_permission\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"page\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"prepared_flag\\\",\\\"prescription_email\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"medicinePrepared\\\",\\\"isDisabled\\\"],[[33,2],[28,[37,3],[[30,0],\\\"reprintOptions\\\"],null],[28,[37,3],[[30,0],\\\"getRePrints\\\"],null],[28,[37,3],[[30,0],\\\"setprintType\\\"],null],[33,4],[33,5],[33,6],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14],[33,15],[33,16],[33,17],[28,[37,3],[[30,0],\\\"pharmacyComplete\\\"],null],[33,18],[33,19],[33,20],[33,21],[33,22],[33,23],[33,0],[33,24],[33,25],[33,26],[33,27],[33,28],[33,29],[28,[37,3],[[30,0],\\\"medicinePrepared\\\"],null],[33,30]]]]],[1,\\\"\\\\n\\\\n\\\"]],[],false,[\\\"page\\\",\\\"pharmacy-view-component\\\",\\\"appointment_id\\\",\\\"action\\\",\\\"print_domestic\\\",\\\"print_international\\\",\\\"PrescribePatient\\\",\\\"billpatient\\\",\\\"consultancy_fees\\\",\\\"charge_list\\\",\\\"consultancy_discount\\\",\\\"medicine_discount\\\",\\\"medicine_amount\\\",\\\"bill_id\\\",\\\"visit_id\\\",\\\"consultancy_normal_discount\\\",\\\"medicine_normal_discount\\\",\\\"pharmacy_page_instruction\\\",\\\"permission_arr\\\",\\\"shipping_states\\\",\\\"shipping_cities\\\",\\\"shipp\\\",\\\"address\\\",\\\"shiping_pickup\\\",\\\"billing_listing_id\\\",\\\"pharmacy_listing_id\\\",\\\"medicine_flag\\\",\\\"prescription_email\\\",\\\"shipping_pharmacy_location\\\",\\\"shipping_billing_location\\\",\\\"isDisabled\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/pharmacy/view.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/refund-dashboard\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"eXECGa4j\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main refund-dash-wrap\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\" Refund Dashboard (Online Appointments)\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"manage-transaction\\\"],[12],[1,\\\"\\\\n              \\\"],[3,\\\" Header \\\"],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"rd-header\\\"],[12],[1,\\\"\\\\n                \\\"],[11,1],[24,0,\\\"rd-count-pill dcursor ml-2\\\"],[24,\\\"title\\\",\\\"Reload batches\\\"],[4,[38,2],[[30,0],\\\"reloadBatches\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"glyphicon glyphicon-refresh\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,1],[24,0,\\\"rd-count-pill dcursor ml-2\\\"],[4,[38,2],[[30,0],\\\"onBack\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\"\\\\n                  Back to Manage Appointments\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[3,\\\" Tabs \\\"],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"rd-tab-switcher\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,6,\\\"#\\\"],[16,0,[29,[\\\"rd-tab-btn \\\",[52,[28,[37,3],[[33,4],\\\"batches\\\"],null],\\\"rd-tab-active\\\",\\\"\\\"]]]],[4,[38,2],[[30,0],\\\"setRefundTab\\\",\\\"batches\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-list-alt\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"rd-tab-label\\\"],[12],[1,\\\"Cancellation Refund Batches\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,5,[\\\"length\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"rd-tab-count\\\"],[12],[1,[33,5,[\\\"length\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,3],[24,6,\\\"#\\\"],[16,0,[29,[\\\"rd-tab-btn rd-tab-btn-danger \\\",[52,[28,[37,3],[[33,4],\\\"auto\\\"],null],\\\"rd-tab-active-danger\\\",\\\"\\\"]]]],[4,[38,2],[[30,0],\\\"setRefundTab\\\",\\\"auto\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bolt\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"rd-tab-label\\\"],[12],[1,\\\"Auto refund for failed bookings\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[3,\\\" TAB: Cancellation Refund Batches \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[33,4],\\\"batches\\\"],null],[[[1,\\\"\\\\n              \\\"],[3,\\\" Filter Toolbar \\\"],[1,\\\"\\\\n              \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Search Batches\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Search by batch ID or patient \\\"],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",[33,7],\\\"form-control\\\",\\\"Search by batch ID or patient...\\\"]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Status \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,8],[[33,9]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"All Statuses\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"processing\\\"],[12],[1,\\\"Processing\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"completed\\\"],[12],[1,\\\"Completed\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"completed_with_errors\\\"],[12],[1,\\\"Completed with Errors\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-3 smml-2 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Source\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,8],[[33,10]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"All Sources\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"single\\\"],[12],[1,\\\"Single\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"bulk\\\"],[12],[1,\\\"Bulk\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"Refund Batches (\\\"],[10,\\\"i\\\"],[12],[1,\\\"Only records from the last 30 days are displayed\\\"],[13],[1,\\\")\\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"table-data\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[14,1,\\\"manage_refund_batches\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Batch ID\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Source\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Initiated By\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Created At\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,5,[\\\"length\\\"]],[[[42,[28,[37,12],[[28,[37,12],[[33,5]],null]],null],null,[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[1,[30,1,[\\\"batch_id\\\"]]],[13],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"source\\\"]]],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"initiated_by\\\"]]],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"created_at\\\"]]],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1,[\\\"status\\\"]],\\\"processing\\\"],null],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"label label-primary\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[12],[13],[1,\\\" Processing\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,1,[\\\"status\\\"]],\\\"completed\\\"],null],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"label label-success\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[12],[13],[1,\\\" Completed\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,1,[\\\"status\\\"]],\\\"completed_with_errors\\\"],null],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"label label-warning\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-triangle\\\"],[12],[13],[1,\\\" Completed with Errors\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,1,[\\\"status\\\"]],\\\"failed\\\"],null],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"label label-danger\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle\\\"],[12],[13],[1,\\\" Failed\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"label label-default\\\"],[12],[1,[30,1,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                            \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-primary btn-xs\\\",\\\"refund-dashboard.batch\\\",[30,1,[\\\"batch_id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-eye\\\"],[12],[13],[1,\\\" View\\\\n\\\"]],[]]]]],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center text-muted\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[12],[13],[1,\\\" No refund batches found.\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 10px;\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,5,\\\"color: #6e7588; font-size: 12px; font-family: 'Open Sans';\\\"],[12],[1,[34,14]],[13],[1,\\\"\\\\n\\\"],[41,[33,15],[[[1,\\\"                        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation\\\"],[14,0,\\\"pagination_cware\\\"],[14,5,\\\"flex-shrink: 0;\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-end\\\"],[14,5,\\\"margin: 0; display: inline-flex;\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,15,[\\\"current_page\\\"]],1],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,2],[[30,0],\\\"showPagination\\\",[33,15,[\\\"current_page\\\"]],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[28,[37,16],[[33,15,[\\\"current_page\\\"]],[33,15,[\\\"last_page\\\"]]],null]],null]],null],null,[[[41,[28,[37,3],[[30,2],\\\"...\\\"],null],[[[1,\\\"                            \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,15,[\\\"current_page\\\"]],[30,2]],null],\\\"current\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,2],[[30,0],\\\"showPagination\\\",[30,2],\\\"self\\\"],null],[12],[1,[30,2]],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]],null],[1,\\\"                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,15,[\\\"current_page\\\"]],[33,15,[\\\"last_page\\\"]]],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,2],[[30,0],\\\"showPagination\\\",[33,15,[\\\"current_page\\\"]],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[3,\\\" TAB: Auto Refunds \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[33,4],\\\"auto\\\"],null],[[[1,\\\"\\\\n              \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"legend\\\"],[14,0,\\\"scheduler-border\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bolt\\\"],[14,5,\\\"color:#e74c3c;\\\"],[12],[13],[1,\\\"\\\\n                  Automatic Refunds — Successful Payments with Failed Appointment Bookings (\\\"],[10,\\\"i\\\"],[12],[1,\\\"Only records from the last 30 days are displayed\\\"],[13],[1,\\\")\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[3,\\\" Summary Pills \\\"],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap;\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"rd-count-pill\\\"],[14,5,\\\"background:#27ae60;color:#fff;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-check\\\"],[12],[13],[1,\\\" Processed: \\\"],[1,[34,17]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"rd-count-pill\\\"],[14,5,\\\"background:#e67e22;color:#fff;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-clock-o\\\"],[12],[13],[1,\\\" Pending: \\\"],[1,[34,18]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"rd-count-pill\\\"],[14,5,\\\"background:#e74c3c;color:#fff;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[12],[13],[1,\\\" Failed: \\\"],[1,[34,19]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,1],[24,0,\\\"rd-count-pill dcursor\\\"],[24,\\\"title\\\",\\\"Reload\\\"],[4,[38,2],[[30,0],\\\"reloadAutoRefunds\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"glyphicon glyphicon-refresh\\\"],[12],[13],[1,\\\" Reload\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[3,\\\" Filters \\\"],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-sm-12 form-group\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-3 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Search patient / order ID\\\"],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",[33,20],\\\"form-control\\\",\\\"Patient name or order ID...\\\"]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-2 smml-2 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,8],[[33,21]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"All\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"processed\\\"],[12],[1,\\\"Processed\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"pending\\\"],[12],[1,\\\"Pending\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"failed\\\"],[12],[1,\\\"Failed\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-sm-2 smml-2 m-b-10 rmw\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"label\\\"],[14,0,\\\"mtl\\\"],[12],[1,\\\"Gateway\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,8],[[33,22]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"All\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"hdfc\\\"],[12],[1,\\\"HDFC\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"option\\\"],[14,2,\\\"razorpay\\\"],[12],[1,\\\"Razorpay\\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-12 table-responsive\\\"],[14,5,\\\"clear:both;\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered table-hover\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"#\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Patient\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Order ID / Txn ID\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Gateway\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Reason\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Refund ID\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"th\\\"],[12],[1,\\\"Initiated At\\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,23,[\\\"length\\\"]],[[[42,[28,[37,12],[[28,[37,12],[[33,23]],null]],null],null,[[[1,\\\"                      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,24],[[30,4]],null]],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"strong\\\"],[12],[1,[30,3,[\\\"patient_name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"patient_id\\\"]],[[[1,\\\"                          \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"small\\\"],[14,0,\\\"text-muted\\\"],[12],[1,\\\"Case ID: \\\"],[1,[30,3,[\\\"patient_id\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"code\\\"],[14,5,\\\"font-size:11px;\\\"],[12],[1,[30,3,[\\\"order_id\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"original_txn_id\\\"]],[[[1,\\\"                          \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"small\\\"],[14,0,\\\"text-muted\\\"],[12],[1,\\\"Txn: \\\"],[1,[30,3,[\\\"original_txn_id\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"gateway\\\"]],\\\"hdfc\\\"],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-info\\\"],[12],[1,\\\"HDFC\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-primary\\\"],[12],[1,\\\"Razorpay\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"₹\\\"],[1,[30,3,[\\\"amount\\\"]]],[13],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"small\\\"],[12],[1,[30,3,[\\\"reason\\\"]]],[13],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"gateway_refund_id\\\"]],[[[1,\\\"                          \\\"],[10,\\\"code\\\"],[14,5,\\\"font-size:11px;\\\"],[12],[1,[30,3,[\\\"gateway_refund_id\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"text-muted\\\"],[12],[1,\\\"—\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"status\\\"]],\\\"processed\\\"],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-success\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-check\\\"],[12],[13],[1,\\\" Processed\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,3,[\\\"status\\\"]],\\\"pending\\\"],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-warning\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-clock-o\\\"],[12],[13],[1,\\\" Pending\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,3,[\\\"status\\\"]],\\\"failed\\\"],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-danger\\\"],[15,\\\"title\\\",[29,[[30,3,[\\\"failure_reason\\\"]]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-times\\\"],[12],[13],[1,\\\" Failed\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"label label-default\\\"],[12],[1,[30,3,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                          \\\"]],[]]]],[]]]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[12],[10,\\\"small\\\"],[12],[1,[30,3,[\\\"created_at\\\"]]],[13],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null]],[]],[[[1,\\\"                      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"11\\\"],[14,0,\\\"text-center text-muted\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-info-circle\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,25],[[[1,\\\"                          Loading...\\\\n\\\"]],[]],[[[1,\\\"                          No auto refunds found.\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[3,\\\" Auto Refund Pagination \\\"],[1,\\\"\\\\n\\\"],[41,[33,26],[[[1,\\\"                  \\\"],[10,0],[14,5,\\\"display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 10px;\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,5,\\\"color: #6e7588; font-size: 12px;\\\"],[12],[1,\\\"\\\\n                      Showing \\\"],[1,[34,27]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"nav\\\"],[14,0,\\\"pagination_cware\\\"],[14,5,\\\"flex-shrink: 0;\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination\\\"],[14,5,\\\"margin: 0; display: inline-flex;\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,26,[\\\"current_page\\\"]],1],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,2],[[30,0],\\\"autoRefundPrevPage\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[28,[37,16],[[33,26,[\\\"current_page\\\"]],[33,26,[\\\"last_page\\\"]]],null]],null]],null],null,[[[41,[28,[37,3],[[30,5],\\\"...\\\"],null],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,26,[\\\"current_page\\\"]],[30,5]],null],\\\"current\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,2],[[30,0],\\\"autoRefundGoToPage\\\",[30,5]],null],[12],[1,[30,5]],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[5]],null],[1,\\\"                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,3],[[33,26,[\\\"current_page\\\"]],[33,26,[\\\"last_page\\\"]]],null],\\\"disabled\\\",\\\"\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,2],[[30,0],\\\"autoRefundNextPage\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,[34,28]],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[\\\"batch\\\",\\\"page\\\",\\\"refund\\\",\\\"index\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"action\\\",\\\"eq\\\",\\\"activeRefundTab\\\",\\\"filteredBatches\\\",\\\"input\\\",\\\"searchQuery\\\",\\\"mut\\\",\\\"statusFilter\\\",\\\"sourceFilter\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"batchPaginationInfo\\\",\\\"pagination\\\",\\\"pagination-pages\\\",\\\"autoRefundProcessedCount\\\",\\\"autoRefundPendingCount\\\",\\\"autoRefundFailedCount\\\",\\\"autoRefundSearch\\\",\\\"autoRefundStatusFilter\\\",\\\"autoRefundGatewayFilter\\\",\\\"filteredAutoRefunds\\\",\\\"increment\\\",\\\"autoRefundLoading\\\",\\\"autoRefundPagination\\\",\\\"autoRefundPaginationInfo\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/refund-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/refund-dashboard/batch\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jc3nZe1H\",\n    \"block\": \"[[[41,[33,1],[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"main refund-detail-wrap\\\"],[12],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"container cware1 billing\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[1,[28,[35,2],null,[[\\\"batch\\\",\\\"refunds\\\",\\\"mode\\\",\\\"onBack\\\",\\\"onRetry\\\",\\\"onRefresh\\\"],[[33,3],[33,4],\\\"full\\\",[28,[37,5],[[30,0],\\\"goBack\\\"],null],[28,[37,5],[[30,0],\\\"retryRefund\\\"],null],[28,[37,5],[[30,0],\\\"refreshCurrentBatch\\\"],null]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,[34,6]],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"batch-refund-details\\\",\\\"currentBatch\\\",\\\"currentRefunds\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/refund-dashboard/batch.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/reports-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"YE0VYQSy\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"Reports\\\",[33,4]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Appointment History\\\",\\\"appointment-detail\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-3 listname\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tAppointment History \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Transactional Report\\\",\\\"transactional-report\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-3 listname\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tTransactional Report \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Shift Report\\\",\\\"shift-report\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-3 listname\\\"],[12],[1,\\\" Shift Report \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[41,[28,[37,3],[\\\"CaseReport\\\",[33,4]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Case Report\\\",\\\"case-report.list\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-3 listname\\\"],[12],[1,\\\" Case Report\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[\\\"SameDaycancellationandbookings\\\",[33,4]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 mt-25\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Same Day Cancellation and Bookings\\\",\\\"cancel-report\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-6 twolistname\\\"],[12],[1,\\\" Same Day\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tCancellation and Bookings \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[41,[28,[37,3],[\\\"DoctorActivityReport\\\",[33,4]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,5],null,[[\\\"title\\\",\\\"route\\\"],[\\\"Doctor Activity Report\\\",\\\"doctor-activity-report\\\"]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"col-xs-6 twolistname\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tDoctor Activity Report \\\"],[13]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,6]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/reports-list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/reports\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"jJiyeTX8\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"Search\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,4],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,5],\\\"date_of_appointment\\\",\\\"currentYear\\\",\\\"date_of_appointment\\\",\\\"Select date\\\",[33,6],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,1,\\\"location_id\\\"],[14,3,\\\"location_id\\\"],[14,\\\"yearRange\\\",\\\"currentYear\\\"],[15,2,[36,7]],[14,0,\\\"login location-field form-control\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select a Location \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"<div class=\\\\\\\"col-xs-2\\\\\\\">\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<select id=\\\\\\\"shift_id\\\\\\\" name=\\\\\\\"shift_id\\\\\\\" class=\\\\\\\"login shift-field form-control\\\\\\\">\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"\\\\\\\"> Select a Shift </option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"1\\\\\\\">Morning</option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<option value=\\\\\\\"2\\\\\\\">Evening</option>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t</select>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t</div>\\\"],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"OldReportsButton\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"pull-left btn btn-secondary show\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"refreshAssignPatientModule\\\",\\\"old\\\"],null],[12],[1,\\\"Old Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,2],[\\\"NewReportsButton\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"pull-left btn btn-success show\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"refreshAssignPatientModule\\\",\\\"new\\\"],null],[12],[1,\\\"New Report\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"ExportButton\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2 pull-right text-right\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,3],[14,6,\\\"javascript:void(0);\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,1,\\\"exportAppointments\\\"],[14,0,\\\"export btn btn-primary\\\"],[15,\\\"rel\\\",[29,[[36,12]]]],[15,\\\"relb\\\",[29,[[36,13]]]],[12],[1,\\\"Export\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"CompletedVisits\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"completedAppointments\\\",\\\"completeReportsTypes\\\"],[[33,15],[33,16]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"MedicineCompletedVisits\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,17],null,[[\\\"completedMedicineAppointments\\\",\\\"medComReportType\\\"],[[33,18],[33,19]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"Patients\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,20],null,[[\\\"branchAppointments\\\"],[[33,21]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,22],null,[[\\\"branchAppointments\\\"],[[33,21]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"DoctorsList\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t   \\\"],[1,[28,[35,23],null,[[\\\"assigned\\\"],[[33,24]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"branch\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"date_of_appointment\\\",\\\"location_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"branches\\\",\\\"action\\\",\\\"user_shift_id\\\",\\\"user_branch_id\\\",\\\"completed-visits\\\",\\\"completed\\\",\\\"com_report_type\\\",\\\"completed-medicine-visits\\\",\\\"medicinecompleted\\\",\\\"med_com_report_type\\\",\\\"not-completed-appointment-daily\\\",\\\"branchAppointments\\\",\\\"not-completed-onspot-daily\\\",\\\"assigned-patient-daily\\\",\\\"assigned\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/schedule\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cNJAV0ZY\",\n    \"block\": \"[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/schedule.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/schedule/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"KEieW+fP\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-bottom:15px;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h2\\\"],[14,0,\\\"title pull-left\\\"],[12],[1,\\\"Doctor Schedules Management\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[6,[39,2],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary pull-right\\\",\\\"schedule.max-slots\\\"]],[[\\\"default\\\"],[[[[1,\\\"Online Appointment Limit\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"doctor-grid\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5]],null]],null],null,[[[1,\\\"  \\\"],[1,[54,[[30,1]]]],[1,\\\"\\\\n\\\"],[6,[39,2],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"doctor-box elevated-box\\\",\\\"schedule.upload\\\",[30,1,[\\\"user_id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"  \\\"],[10,0],[14,0,\\\"doctor-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"doctor_image\\\"]],[[[1,\\\"    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[28,[37,7],[[33,8],[30,1,[\\\"doctor_image\\\"]]],null]]]],[14,0,\\\"doctor-avatar\\\"],[15,\\\"alt\\\",[29,[[30,1,[\\\"Name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/default-profile.jpg\\\"],[14,0,\\\"doctor-avatar\\\"],[15,\\\"alt\\\",[29,[[30,1,[\\\"Name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[10,0],[14,0,\\\"doctor-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"doctor-name\\\"],[15,5,[29,[\\\"color:\\\",[30,1,[\\\"color\\\"]]]]],[12],[1,[30,1,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"doctor-specialization\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,1,[\\\"designation\\\"]],[30,1,[\\\"designation\\\"]],[30,1,[\\\"employee_code\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[1]],[[[1,\\\"  \\\"],[10,0],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,9]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"doctor\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"link-to\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"log\\\",\\\"concat\\\",\\\"avatarUrl\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/schedule/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/schedule/max-slots-edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"PgsF7T6V\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"vc-edit-page main\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container ware1\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[10,0],[14,0,\\\"vc-page-header\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-page-header__left\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"h2\\\"],[14,0,\\\"vc-page-title\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-cog\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"VC Configuration\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,2],[[[1,\\\"                            \\\"],[10,1],[14,0,\\\"vc-page-title__sep\\\"],[12],[1,\\\"—\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"vc-page-title__doctor\\\"],[15,5,[29,[\\\"color:\\\",[33,2,[\\\"color\\\"]]]]],[12],[1,[33,2,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-page-header__right\\\"],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"backToListing\\\"],null],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Back to Listing\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[10,0],[14,0,\\\"vc-card\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user-md\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Select Doctor\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"vc-field\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-field__label\\\"],[14,\\\"for\\\",\\\"vc-doctor-select\\\"],[12],[1,\\\"Doctor\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"vc-field__control\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"select\\\"],[14,1,\\\"vc-doctor-select\\\"],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,3],[[30,0],\\\"changeDoctor\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,6]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"user_id\\\"]]],[15,\\\"selected\\\",[28,[37,7],[[30,1,[\\\"user_id\\\"]],[33,2,[\\\"user_id\\\"]]],null]],[12],[1,[30,1,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,1],[14,0,\\\"vc-field__help\\\"],[12],[1,\\\"Switch doctors to edit another doctor's VC configuration.\\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[10,0],[14,0,\\\"vc-card\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-calendar\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Per-day VC enable / disable\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__body\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,2],[14,0,\\\"vc-card__hint\\\"],[12],[1,\\\"Toggle ON to allow online VC bookings on that weekday. OFF disables the day entirely for online appointments.\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"vc-day-grid\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[33,8]],null]],null],null,[[[1,\\\"                            \\\"],[10,0],[15,0,[29,[\\\"vc-day-cell \\\",[52,[30,2,[\\\"is_vc_enabled\\\"]],\\\"vc-day-cell--on\\\",\\\"vc-day-cell--off\\\"]]]],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"vc-day-cell__name\\\"],[12],[1,[30,2,[\\\"week_day\\\"]]],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-switch\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[30,2,[\\\"is_vc_enabled\\\"]]],[15,\\\"onchange\\\",[28,[37,3],[[30,0],\\\"toggleVcDay\\\",[30,2]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[14,0,\\\"vc-switch__slider\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"vc-day-cell__status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"is_vc_enabled\\\"]],[[[1,\\\"                                        \\\"],[10,1],[14,0,\\\"vc-tag vc-tag--on\\\"],[12],[1,\\\"ON\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                        \\\"],[10,1],[14,0,\\\"vc-tag vc-tag--off\\\"],[12],[1,\\\"OFF\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[10,0],[14,0,\\\"vc-card\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__header\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-sliders\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"VC Slot Settings\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"vc-card__body\\\"],[12],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"vc-settings-grid\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"vc-field\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-field__label\\\"],[14,\\\"for\\\",\\\"vc-gap-input\\\"],[12],[1,\\\"VC Gap (minutes)\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"vc-field__control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"vc-gap-input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,0,\\\"form-control\\\"],[15,2,[33,2,[\\\"vc_gap_minutes\\\"]]],[15,\\\"oninput\\\",[28,[37,3],[[30,0],\\\"markVcConfigDirty\\\",\\\"vc_gap_minutes\\\"],[[\\\"bubbles\\\"],[false]]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"vc-field__help\\\"],[12],[1,\\\"Minimum minutes between two VCs for the same patient. Default 30.\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"vc-field\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-field__label\\\"],[14,\\\"for\\\",\\\"vc-daily-slots-input\\\"],[12],[1,\\\"Daily Slots\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"vc-field__control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"vc-daily-slots-input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,0,\\\"form-control\\\"],[15,2,[33,2,[\\\"max_slot\\\"]]],[15,\\\"disabled\\\",true],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"vc-field__help\\\"],[12],[1,\\\"Total daily slot limit. Max VC Slots cannot exceed this value. Edit on the Overview table.\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"vc-field\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-field__label\\\"],[14,\\\"for\\\",\\\"vc-max-slots-input\\\"],[12],[1,\\\"Max VC Slots\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"vc-field__control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"vc-max-slots-input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,0,\\\"form-control\\\"],[15,2,[33,2,[\\\"max_vc_slot\\\"]]],[15,\\\"oninput\\\",[28,[37,3],[[30,0],\\\"markVcConfigDirty\\\",\\\"max_vc_slot\\\"],[[\\\"bubbles\\\"],[false]]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"vc-field__help\\\"],[12],[1,\\\"Maximum VC slots the doctor accepts per day (online). Must be ≤ Daily Slots (\\\"],[1,[33,2,[\\\"max_slot\\\"]]],[1,\\\").\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                        \\\"],[10,0],[14,0,\\\"vc-field\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-field__label\\\"],[12],[1,\\\"Prevent Consecutive VCs\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"vc-field__control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"vc-toggle-row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"vc-switch\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[33,2,[\\\"prevent_consecutive_vc\\\"]]],[15,\\\"onchange\\\",[28,[37,3],[[30,0],\\\"togglePreventConsecutive\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"vc-switch__slider\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,1],[14,0,\\\"vc-toggle-row__label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"prevent_consecutive_vc\\\"]],[[[1,\\\"                                            \\\"],[10,1],[14,0,\\\"vc-tag vc-tag--on\\\"],[12],[1,\\\"Enabled\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,1],[14,0,\\\"vc-tag vc-tag--off\\\"],[12],[1,\\\"Disabled\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"vc-field__help\\\"],[12],[1,\\\"When enabled, the gap rule above is enforced between consecutive VCs.\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                    \\\"],[10,0],[14,0,\\\"vc-card__footer\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success vc-save-btn\\\"],[16,\\\"disabled\\\",[36,9]],[4,[38,3],[[30,0],\\\"saveVcConfig\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[33,9],[[[1,\\\"                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[12],[13],[1,\\\" Saving...\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-save\\\"],[12],[13],[1,\\\" Save VC Configuration\\\\n\\\"]],[]]],[1,\\\"                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,10]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,\\\"style\\\"],[12],[1,\\\"\\\\n.vc-edit-page {\\\\n    padding: 20px 0 40px;\\\\n}\\\\n\\\\n.vc-page-header {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: space-between;\\\\n    flex-wrap: wrap;\\\\n    gap: 12px;\\\\n    margin: 0 0 20px;\\\\n    padding: 0 4px;\\\\n}\\\\n.vc-page-header__left { flex: 1 1 auto; min-width: 0; }\\\\n.vc-page-header__right { flex: 0 0 auto; }\\\\n.vc-page-title {\\\\n    margin: 0;\\\\n    font-size: 22px;\\\\n    font-weight: 600;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: 10px;\\\\n    flex-wrap: wrap;\\\\n}\\\\n.vc-page-title > i.fa { color: #337ab7; }\\\\n.vc-page-title__sep { color: #999; font-weight: 400; }\\\\n.vc-page-title__doctor { font-weight: 600; }\\\\n\\\\n.vc-card {\\\\n    background: #fff;\\\\n    border: 1px solid #e1e6ef;\\\\n    border-radius: 6px;\\\\n    box-shadow: 0 1px 3px rgba(0,0,0,0.04);\\\\n    margin: 0 4px 20px;\\\\n    overflow: hidden;\\\\n}\\\\n.vc-card__header {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: 10px;\\\\n    padding: 14px 20px;\\\\n    background: #f7f9fc;\\\\n    border-bottom: 1px solid #e1e6ef;\\\\n}\\\\n.vc-card__header > i.fa { color: #337ab7; }\\\\n.vc-card__header h3 {\\\\n    margin: 0;\\\\n    font-size: 16px;\\\\n    font-weight: 600;\\\\n    color: #2c3e50;\\\\n}\\\\n.vc-card__body { padding: 22px 24px; }\\\\n.vc-card__hint {\\\\n    margin: 0 0 18px;\\\\n    color: #6c757d;\\\\n    font-size: 13px;\\\\n}\\\\n.vc-card__footer {\\\\n    margin-top: 20px;\\\\n    padding-top: 18px;\\\\n    border-top: 1px solid #eee;\\\\n    display: flex;\\\\n    justify-content: flex-end;\\\\n}\\\\n\\\\n/* ---------- Field ---------- */\\\\n.vc-field { margin-bottom: 18px; }\\\\n.vc-field:last-child { margin-bottom: 0; }\\\\n.vc-field__label {\\\\n    display: block;\\\\n    margin-bottom: 6px;\\\\n    font-weight: 600;\\\\n    color: #34495e;\\\\n    font-size: 13px;\\\\n    letter-spacing: 0.2px;\\\\n}\\\\n.vc-field__control { width: 100%; }\\\\n.vc-field__help {\\\\n    display: block;\\\\n    margin-top: 6px;\\\\n    color: #888;\\\\n    font-size: 12px;\\\\n    line-height: 1.4;\\\\n}\\\\n.vc-field .form-control {\\\\n    max-width: 220px;\\\\n    border-radius: 4px;\\\\n}\\\\n\\\\n/* ---------- Day grid ---------- */\\\\n.vc-day-grid {\\\\n    display: grid;\\\\n    grid-template-columns: repeat(7, minmax(0, 1fr));\\\\n    gap: 12px;\\\\n    margin: 0;\\\\n}\\\\n.vc-day-cell {\\\\n    border: 1px solid #e1e6ef;\\\\n    border-radius: 6px;\\\\n    padding: 16px 8px 12px;\\\\n    text-align: center;\\\\n    background: #fafbfc;\\\\n    transition: border-color 0.15s, background 0.15s;\\\\n}\\\\n.vc-day-cell--on {\\\\n    border-color: #c3e6cb;\\\\n    background: #f1f9f3;\\\\n}\\\\n.vc-day-cell--off {\\\\n    border-color: #e1e6ef;\\\\n    background: #fafbfc;\\\\n}\\\\n.vc-day-cell__name {\\\\n    font-weight: 600;\\\\n    color: #2c3e50;\\\\n    margin-bottom: 10px;\\\\n    font-size: 13px;\\\\n    text-transform: uppercase;\\\\n    letter-spacing: 0.5px;\\\\n}\\\\n.vc-day-cell__status { margin-top: 10px; }\\\\n\\\\n/* ---------- Switch (consistent across both switches) ---------- */\\\\n.vc-switch {\\\\n    position: relative;\\\\n    display: inline-block;\\\\n    width: 44px;\\\\n    height: 24px;\\\\n    margin: 0;\\\\n    vertical-align: middle;\\\\n}\\\\n.vc-switch input { display: none; }\\\\n.vc-switch__slider {\\\\n    position: absolute;\\\\n    cursor: pointer;\\\\n    top: 0; left: 0; right: 0; bottom: 0;\\\\n    background-color: #ccc;\\\\n    transition: 0.2s;\\\\n    border-radius: 24px;\\\\n}\\\\n.vc-switch__slider:before {\\\\n    position: absolute;\\\\n    content: \\\\\\\"\\\\\\\";\\\\n    height: 18px;\\\\n    width: 18px;\\\\n    left: 3px;\\\\n    bottom: 3px;\\\\n    background-color: #fff;\\\\n    transition: 0.2s;\\\\n    border-radius: 50%;\\\\n    box-shadow: 0 1px 3px rgba(0,0,0,0.2);\\\\n}\\\\n.vc-switch input:checked + .vc-switch__slider { background-color: #5cb85c; }\\\\n.vc-switch input:checked + .vc-switch__slider:before { transform: translateX(20px); }\\\\n\\\\n/* ---------- Status tag ---------- */\\\\n.vc-tag {\\\\n    display: inline-block;\\\\n    padding: 2px 10px;\\\\n    font-size: 11px;\\\\n    font-weight: 600;\\\\n    border-radius: 12px;\\\\n    letter-spacing: 0.4px;\\\\n    line-height: 1.6;\\\\n}\\\\n.vc-tag--on  { background: #dff0d8; color: #3c763d; }\\\\n.vc-tag--off { background: #e4e4e4; color: #6c6c6c; }\\\\n\\\\n/* ---------- Settings grid (3 columns desktop, stacks on mobile) ---------- */\\\\n.vc-settings-grid {\\\\n    display: grid;\\\\n    grid-template-columns: repeat(3, minmax(0, 1fr));\\\\n    gap: 24px;\\\\n    margin: 0;\\\\n}\\\\n@media (max-width: 900px) {\\\\n    .vc-settings-grid { grid-template-columns: 1fr; gap: 18px; }\\\\n    .vc-day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }\\\\n}\\\\n@media (max-width: 520px) {\\\\n    .vc-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }\\\\n}\\\\n\\\\n/* ---------- Toggle row (switch + label inline) ---------- */\\\\n.vc-toggle-row {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: 12px;\\\\n    min-height: 34px;\\\\n    padding-top: 4px;\\\\n}\\\\n.vc-toggle-row__label { line-height: 1; }\\\\n\\\\n/* ---------- Save button ---------- */\\\\n.vc-save-btn {\\\\n    padding: 8px 22px;\\\\n    font-weight: 600;\\\\n    border-radius: 4px;\\\\n}\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"d\\\",\\\"day\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"vcConfig\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctorList\\\",\\\"eq\\\",\\\"vcConfigDays\\\",\\\"isSavingVcConfig\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/schedule/max-slots-edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/schedule/max-slots\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"apJxRdrm\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clearfix\\\"],[14,5,\\\"margin-bottom:15px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"title pull-left\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-clock\\\"],[12],[13],[1,\\\" VC Configuration\\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[6,[39,2],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary pull-right\\\",\\\"schedule\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Go Back\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"Edit Daily Slots and VC Slots directly here, or click \\\"],[10,\\\"strong\\\"],[12],[1,\\\"Configure VC\\\"],[13],[1,\\\" to manage per-day enable/disable, gap, and prevent-consecutive rules.\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"panel-group\\\"],[14,5,\\\"margin-bottom: 10px;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,\\\"placeholder\\\",\\\"Search doctor...\\\"],[15,\\\"oninput\\\",[28,[37,3],[[30,0],\\\"filterVcConfigurations\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,4,[\\\"length\\\"]],[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered table-striped table-hover align-middle shadow-sm rounded\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-info\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Doctor\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"Daily Slots\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"VC Slots\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,4,[\\\"0\\\",\\\"days\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[30,1,[\\\"week_day\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"Gap (min)\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"Prevent Consecutive\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"Action\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,4]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,0,\\\"form-control form-control-sm\\\"],[14,5,\\\"width: 70px; display: inline-block;\\\"],[15,2,[30,2,[\\\"max_slot\\\"]]],[15,\\\"oninput\\\",[28,[37,3],[[30,0],\\\"markVcOverviewDirty\\\",[30,2],\\\"max_slot\\\"],null]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,0,\\\"form-control form-control-sm\\\"],[14,5,\\\"width: 70px; display: inline-block;\\\"],[15,2,[30,2,[\\\"max_vc_slot\\\"]]],[15,\\\"oninput\\\",[28,[37,3],[[30,0],\\\"markVcOverviewDirty\\\",[30,2],\\\"max_vc_slot\\\"],null]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,2,[\\\"days\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"is_vc_enabled\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge badge-success badge-xs\\\"],[12],[1,\\\"ON\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge badge-secondary badge-xs\\\"],[12],[1,\\\"OFF\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,[30,2,[\\\"vc_gap_minutes\\\"]]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"prevent_consecutive_vc\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge badge-success badge-xs\\\"],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge badge-secondary badge-xs\\\"],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"VCConfiguration\\\",[33,8]],null],[[[6,[39,2],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-sm btn-primary\\\",\\\"schedule.max-slots.edit\\\",[30,2,[\\\"user_id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"                        \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-cog\\\"],[12],[13],[1,\\\" Configure VC\\\\n\\\"]],[]]]]]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"text-end mt-3 pull-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSavingAll\\\"]]],[4,[38,3],[[30,0],\\\"saveAllVcOverviewSlots\\\"],null],[12],[1,\\\"💾 Save All Changes\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"No VC configuration data available.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,[34,9]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"day\\\",\\\"vc\\\",\\\"day\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"link-to\\\",\\\"action\\\",\\\"filteredVcConfigurations\\\",\\\"each\\\",\\\"-track-array\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/schedule/max-slots.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/schedule/upload\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Vxy1hNLn\",\n    \"block\": \"[[[10,0],[14,0,\\\"row mb-8\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary pull-right\\\"],[4,[38,0],[[30,0],\\\"goBack\\\"],null],[12],[1,\\\"\\\\n    \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-left\\\"],[12],[13],[1,\\\" Go Back\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"panel panel-default\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"panel-heading\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"doctor-detail-content row mb-8\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row doctor-detail-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-8 col-sm-9 doctor-detail-info text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"doctor_image\\\"]],[[[1,\\\"              \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[28,[37,3],[[33,4],[33,2,[\\\"doctor_image\\\"]]],null]]]],[14,0,\\\"doctor-detail-avatar\\\"],[15,\\\"alt\\\",[29,[[33,2,[\\\"Name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/default-profile.jpg\\\"],[14,0,\\\"doctor-detail-avatar\\\"],[15,\\\"alt\\\",[29,[[33,2,[\\\"Name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[10,0],[14,0,\\\"doctor-detail-text\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"doctor-detail-name\\\"],[15,5,[29,[\\\"color:\\\",[33,2,[\\\"color\\\"]]]]],[12],[1,[33,2,[\\\"Name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"doctor-detail-specialization\\\"],[12],[1,[52,[33,2,[\\\"designation\\\"]],[33,2,[\\\"designation\\\"]],[33,2,[\\\"employee_code\\\"]]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isScheduleListVisible\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"col-xs-4 col-sm-3 text-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-primary\\\"],[24,\\\"title\\\",\\\"Add OCP Schedule\\\"],[4,[38,0],[[30,0],\\\"addOCPForm\\\",[33,2,[\\\"user_id\\\"]],\\\"ocp\\\",\\\"add\\\"],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add OCP Schedule\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,\\\"title\\\",\\\"Add Schedule\\\"],[4,[38,0],[[30,0],\\\"toggleForm\\\",[33,2,[\\\"user_id\\\"]],\\\"\\\",\\\"add\\\"],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Schedule\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isScheduleListVisible\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-pills\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[15,0,[52,[28,[37,5],[[30,0,[\\\"activeTab\\\"]],\\\"non-ocp\\\"],null],\\\"non-ocp-active\\\",\\\"inactive-tab\\\"]],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"title\\\",\\\"Regular/Adjustment Schedule\\\"],[4,[38,0],[[30,0],\\\"scheduleActiveTab\\\",\\\"non-ocp\\\"],null],[12],[1,\\\"Regular/Adjustment Schedule\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[15,0,[52,[28,[37,5],[[30,0,[\\\"activeTab\\\"]],\\\"ocp\\\"],null],\\\"ocp-active\\\",\\\"inactive-tab\\\"]],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,6,\\\"#\\\"],[24,\\\"title\\\",\\\"OCP Visit Schedule\\\"],[4,[38,0],[[30,0],\\\"scheduleActiveTab\\\",\\\"ocp\\\"],null],[12],[1,\\\"OCP Visit Schedule\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tab-content\\\"],[14,5,\\\"margin-top: 10px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"activeTab\\\"]],\\\"non-ocp\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,6,[\\\"length\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[33,6]],null]],null],null,[[[1,\\\"                \\\"],[1,[28,[35,9],null,[[\\\"schedule\\\",\\\"editDoctorSchedule\\\"],[[30,1],[28,[37,0],[[30,0],\\\"editDoctorSchedule\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[1,2]],null]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],null,[[\\\"doctorId\\\",\\\"toggleForm\\\"],[[33,2,[\\\"user_id\\\"]],[28,[37,0],[[30,0],\\\"toggleForm\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"activeTab\\\"]],\\\"ocp\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,11,[\\\"length\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[33,11]],null]],null],null,[[[1,\\\"                  \\\"],[1,[28,[35,12],null,[[\\\"schedule\\\",\\\"editOCPDoctorSchedule\\\"],[[30,3],[28,[37,0],[[30,0],\\\"editOCPDoctorSchedule\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[3,4]],null]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,13],null,[[\\\"doctorId\\\",\\\"addOCPForm\\\"],[[33,2,[\\\"user_id\\\"]],[28,[37,0],[[30,0],\\\"addOCPForm\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isFormVisible\\\"]],[[[10,0],[14,0,\\\"well elevated-box\\\"],[14,5,\\\"margin-top: 20px;\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[41,[30,0,[\\\"formData\\\",\\\"add\\\"]],[[[1,\\\" Add New \\\"]],[]],[[[1,\\\" Edit \\\"]],[]]],[1,\\\" Schedule\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,15],[[33,16],\\\"ocp\\\"],null],[28,[37,5],[[33,16],\\\"ocp\\\"],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row wstm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"radio-option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"doctorSchedule\\\"],[14,1,\\\"regular\\\"],[14,2,\\\"regular\\\"],[15,\\\"checked\\\",[28,[37,5],[[33,17],\\\"regular\\\"],null]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"setScheduleType\\\",\\\"regular\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"regular\\\"],[12],[1,\\\"Regular Schedule\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"radio-option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"input\\\"],[14,3,\\\"doctorSchedule\\\"],[14,1,\\\"schedule\\\"],[14,2,\\\"adjustment\\\"],[15,\\\"checked\\\",[28,[37,5],[[33,17],\\\"adjustment\\\"],null]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"setScheduleType\\\",\\\"adjustment\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"schedule\\\"],[12],[1,\\\"Schedule Adjustment\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"row wstm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor-select\\\"],[12],[1,\\\"Doctor \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,1,\\\"doctor-select\\\"],[14,0,\\\"form-control\\\"],[15,2,[30,0,[\\\"formData\\\",\\\"doctorId\\\"]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],[28,[37,18],[[30,0,[\\\"formData\\\",\\\"doctorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"option\\\"],[15,2,[29,[[33,2,[\\\"user_id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[33,2,[\\\"user_id\\\"]],[30,0,[\\\"formData\\\",\\\"doctorId\\\"]]],null]],[12],[1,[33,2,[\\\"Name\\\"]]],[1,\\\"\\\\n              (\\\"],[1,[33,2,[\\\"employee_code\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"doctorId\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"doctorId\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"location-select\\\"],[12],[1,\\\"Location \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"select\\\"],[14,1,\\\"location-select\\\"],[15,0,[29,[\\\"form-control \\\",[52,[28,[37,19],[[30,0,[\\\"formValidator\\\",\\\"errors\\\"]],\\\"locationId\\\"],null],\\\"has-error\\\"]]]],[15,2,[30,0,[\\\"formData\\\",\\\"locationId\\\"]]],[15,\\\"onchange\\\",[28,[37,0],[[30,0],\\\"handleLocationChange\\\",\\\"locationId\\\"],null]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"locations\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,5],[[30,5,[\\\"id\\\"]],[30,0,[\\\"formData\\\",\\\"locationId\\\"]]],null]],[12],[1,[30,5,[\\\"title\\\"]]],[1,\\\" - \\\"],[1,[30,5,[\\\"fullname\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"            \\\"],[10,\\\"option\\\"],[14,2,\\\"ocp\\\"],[15,\\\"selected\\\",[28,[37,5],[\\\"ocp\\\",[33,16]],null]],[12],[1,\\\"OCP Visit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"locationId\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"locationId\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[33,17],\\\"adjustment\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row\\\"],[14,5,\\\"margin-top:10px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-6 pr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"start-date\\\"],[12],[1,\\\"Start Date \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,1,\\\"start-date\\\"],[15,0,[29,[\\\"form-control \\\",[52,[28,[37,19],[[30,0,[\\\"formValidator\\\",\\\"errors\\\"]],\\\"startDate\\\"],null],\\\"has-error\\\"]]]],[15,2,[30,0,[\\\"formData\\\",\\\"startDate\\\"]]],[15,\\\"oninput\\\",[28,[37,0],[[30,0],\\\"setStartDate\\\",\\\"startDate\\\"],null]],[14,4,\\\"date\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"startDate\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"startDate\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-6 pl\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"end-date\\\"],[12],[1,\\\"End Date\\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"input\\\"],[14,1,\\\"end-date\\\"],[15,0,[29,[\\\"form-control \\\",[52,[28,[37,19],[[30,0,[\\\"formValidator\\\",\\\"errors\\\"]],\\\"endDate\\\"],null],\\\"has-error\\\"]]]],[14,\\\"placeholder\\\",\\\"dd-mm-yyyy\\\"],[15,2,[30,0,[\\\"formData\\\",\\\"endDate\\\"]]],[15,\\\"oninput\\\",[28,[37,0],[[30,0],\\\"setEndDate\\\",\\\"endDate\\\"],null]],[14,4,\\\"date\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"endDate\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-danger\\\"],[12],[1,[30,0,[\\\"formValidator\\\",\\\"errors\\\",\\\"endDate\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,15],[[33,16],\\\"ocp\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row wstm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"checkbox-large\\\"],[14,\\\"for\\\",\\\"doctor-on-leave\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,1,\\\"doctor-on-leave\\\"],[16,\\\"checked\\\",[30,0,[\\\"isDoctorOnLeave\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,20],[\\\"change\\\",[28,[37,21],[[28,[37,18],[[30,0,[\\\"isDoctorOnLeave\\\"]]],null],[28,[37,22],[[30,0,[\\\"isDoctorOnLeave\\\"]]],null]],null]],null],[12],[13],[1,\\\"\\\\n        Doctor on leave for this entire period\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isDoctorOnLeave\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"row wstm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Weekly Schedule\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[33,16],\\\"ocp\\\"],null],[[[42,[28,[37,8],[[28,[37,8],[[33,24]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,25],null,[[\\\"day\\\",\\\"requiredShifts\\\",\\\"ocpSlotAvailability\\\",\\\"formValidator\\\",\\\"shiftKeyMap\\\",\\\"shiftLabels\\\",\\\"selectedScheduleType\\\",\\\"setOcpSlotAvailability\\\"],[[30,6],[33,26],[33,27],[30,0,[\\\"formValidator\\\"]],[33,28],[33,29],[33,17],[28,[37,0],[[30,0],\\\"setOcpSlotAvailability\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[6,7]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"row week-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,24]],null]],null],null,[[[1,\\\"          \\\"],[1,[28,[35,30],null,[[\\\"day\\\",\\\"selectedSchedule\\\",\\\"formValidator\\\",\\\"selectedScheduleType\\\",\\\"removeDayAvailability\\\",\\\"setDayAvailability\\\",\\\"editSchedule\\\"],[[30,8],[33,31],[30,0,[\\\"formValidator\\\"]],[33,17],[28,[37,0],[[30,0],\\\"removeDayAvailability\\\"],null],[28,[37,0],[[30,0],\\\"setDayAvailability\\\"],null],[28,[37,0],[[30,0],\\\"editSchedule\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[8,9]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"row wstm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-sm-6 text-left\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"createSchedule\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-save\\\"],[12],[13],[1,\\\" \\\"],[41,[30,0,[\\\"formData\\\",\\\"add\\\"]],[[[1,\\\" Create\\\\n          Schedule \\\"]],[]],[[[1,\\\" Update Schedule \\\"]],[]]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-default text-danger\\\"],[24,\\\"title\\\",\\\"Cancel\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"cancelForm\\\"],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times text-danger\\\"],[12],[13],[1,\\\" Cancel\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formData\\\",\\\"update\\\"]],[[[1,\\\"      \\\"],[10,\\\"input\\\"],[14,1,\\\"mode\\\"],[15,2,[30,0,[\\\"formData\\\",\\\"update\\\"]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-sm-6 text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-sm btn-danger\\\"],[24,\\\"title\\\",\\\"Delete Schedule\\\"],[24,4,\\\"button\\\"],[4,[38,0],[[30,0],\\\"deleteSchedule\\\",[30,0,[\\\"block_key\\\"]],[30,0,[\\\"formData\\\",\\\"doctorId\\\"]],[30,0,[\\\"formData\\\",\\\"locationId\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[12],[13],[1,\\\" Delete Schedule\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showModal\\\"]],[[[1,[28,[35,32],null,[[\\\"selectedDay\\\",\\\"morningFromTimeError\\\",\\\"morningToTimeError\\\",\\\"eveningFromTimeError\\\",\\\"eveningToTimeError\\\",\\\"isLoading\\\",\\\"dayID\\\",\\\"callGetWeekdayList\\\",\\\"setDayAvailability\\\",\\\"closeModal\\\",\\\"fromTime\\\",\\\"toTime\\\",\\\"scheduleId\\\",\\\"shiftType\\\"],[[33,33],[33,34],[33,35],[33,36],[33,37],[33,38],[33,39],[28,[37,0],[[30,0],\\\"callGetWeekdayList\\\"],null],[28,[37,0],[[30,0],\\\"setDayAvailability\\\"],null],[28,[37,0],[[30,0],\\\"closeModal\\\"],null],[33,40],[33,41],[33,42],[33,43]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"nonOCP\\\",\\\"index\\\",\\\"OCP\\\",\\\"index\\\",\\\"loc\\\",\\\"day\\\",\\\"index\\\",\\\"day\\\",\\\"index\\\"],false,[\\\"action\\\",\\\"if\\\",\\\"model\\\",\\\"concat\\\",\\\"avatarUrl\\\",\\\"eq\\\",\\\"nonOcpSchedules\\\",\\\"each\\\",\\\"-track-array\\\",\\\"schedule-card\\\",\\\"empty-schedule-message\\\",\\\"ocpSchedules\\\",\\\"ocp-schedule-card\\\",\\\"ocp-empty-schedule-message\\\",\\\"or\\\",\\\"not-eq\\\",\\\"ocp_layout\\\",\\\"selectedScheduleType\\\",\\\"mut\\\",\\\"get\\\",\\\"on\\\",\\\"fn\\\",\\\"not\\\",\\\"unless\\\",\\\"weekDays\\\",\\\"ocp-schedule-form\\\",\\\"requiredShifts\\\",\\\"ocpSlotAvailability\\\",\\\"shiftKeyMap\\\",\\\"shiftLabels\\\",\\\"nonocp-schedule-form\\\",\\\"selectedSchedule\\\",\\\"custom-hours-modal\\\",\\\"selectedDay\\\",\\\"morningFromTimeError\\\",\\\"morningToTimeError\\\",\\\"eveningFromTimeError\\\",\\\"eveningToTimeError\\\",\\\"isLoading\\\",\\\"dayID\\\",\\\"fromTime\\\",\\\"toTime\\\",\\\"scheduleId\\\",\\\"shiftType\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/schedule/upload.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"4+autTsI\",\n    \"block\": \"[[[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/branch/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"2OCHPQWn\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-cubes\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"branch_add\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"branch_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_name\\\",\\\"branch_name\\\",\\\"Branch Name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"branch_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"branch_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"branch_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_code\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_code\\\",\\\"branch_code\\\",\\\"Branch Code\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"branch_code\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"branch_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_full_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Full\\\\n                              Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_full_name\\\",\\\"branch_full_name\\\",\\\"Branch Full Name\\\",[33,12]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning_shift\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Morning Shift\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"time\\\",\\\"form-control capitalize shift_1 \\\",\\\"morning_shift_start\\\",\\\"morning_shift_start\\\",\\\"Start Time\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"morning_shift_start\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"morning_shift_start\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"time\\\",\\\"form-control capitalize shift_1\\\",\\\"morning_shift_end\\\",\\\"morning_shift_end\\\",\\\"End Time\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"morning_shift_end\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"morning_shift_end\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"morning_charity_status\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"morning_charity_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Charitable \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,1],[14,0,\\\"btn btn-warning\\\"],[14,\\\"title\\\",\\\"Clear Shift Timing\\\"],[15,\\\"onclick\\\",[28,[37,15],[[30,0],\\\"clearBranch\\\",1],null]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening_shift\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Evening Shift\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 \\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"time\\\",\\\"form-control capitalize shift_2\\\",\\\"evening_shift_start\\\",\\\"evening_shift_start\\\",\\\"Start Time\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"evening_shift_start\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"evening_shift_start\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"time\\\",\\\"form-control capitalize shift_2\\\",\\\"evening_shift_end\\\",\\\"evening_shift_end\\\",\\\"End Time\\\",[33,17]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"evening_shift_end\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"evening_shift_end\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"evening_charity_status\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"evening_charity_status\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Charitable \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,1],[14,0,\\\"btn btn-warning \\\"],[14,\\\"title\\\",\\\"Clear Shift Timing\\\"],[15,\\\"onclick\\\",[28,[37,15],[[30,0],\\\"clearBranch\\\",2],null]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" clear\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"latitude\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Latitude\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 \\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize shift_2\\\",\\\"latitude\\\",\\\"latitude\\\",\\\"Latitude\\\",[33,18]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"latitude\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"latitude\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 paddingleft5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize shift_2\\\",\\\"longitude\\\",\\\"longitude\\\",\\\"Longitude\\\",[33,19]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"longitude\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"longitude\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"branch_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"branch_status\\\",[33,20],\\\"checked\\\"]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"branch_status\\\"]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"branch_status\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"branch_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,21]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,22],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.branch.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,23]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"branch_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"branch_code\\\",\\\"branch_full_name\\\",\\\"morning_shift_start\\\",\\\"morning_shift_end\\\",\\\"action\\\",\\\"evening_shift_start\\\",\\\"evening_shift_end\\\",\\\"latitude\\\",\\\"longitude\\\",\\\"branch_status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/branch/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/branch/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/NSij1al\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-3 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-9 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h5\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-object-ungroup\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"branch_add\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Name\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,2],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_name\\\",\\\"branch_name\\\",\\\"Branch Name\\\",[33,3]]]]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_code\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Code\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,2],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_code\\\",\\\"branch_code\\\",\\\"Branch Code\\\",[33,4]]]]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_full_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Branch Full Name\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,2],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"branch_full_name\\\",\\\"branch_full_name\\\",\\\"Branch Full Name\\\",[33,5]]]]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"branch_status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                               \\\"],[10,\\\"input\\\"],[15,\\\"onclick\\\",[28,[37,6],[[30,0],\\\"clicky\\\",1],null]],[14,1,\\\"Active\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"branch_status\\\"],[14,\\\"checked\\\",\\\"checked\\\"],[15,2,[36,7]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                              \\\"],[10,\\\"input\\\"],[15,\\\"onclick\\\",[28,[37,6],[[30,0],\\\"clicky\\\",2],null]],[14,1,\\\"Inactive\\\"],[14,0,\\\"high_low\\\"],[14,3,\\\"branch_status\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n                                         \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,8],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.branch.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"submit\\\",[33,1]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"master-menu\\\",\\\"page\\\",\\\"input\\\",\\\"branch_name\\\",\\\"branch_code\\\",\\\"branch_full_name\\\",\\\"action\\\",\\\"branch_status\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/branch/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/branch/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zxq2t+eU\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-cubes\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Branch \\\"],[13],[1,\\\"\\\\n                                            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Branch Name\\\",[33,10]]]]],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search_branch\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddBranch\\\",[33,3]],null],[[[1,\\\"                                          \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.branch.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Branch\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,5,\\\"clear:both\\\"],[12],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                      \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Branch Name\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Branch Code\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Added Date\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Updated Date\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Status\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                    Actions\\\\n                                                  \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[1,[30,2,[\\\"title\\\"]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[30,2,[\\\"branch_code\\\"]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[1,[28,[35,15],[[30,2,[\\\"creation_date_on\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[1,[28,[35,15],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                  \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                 \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"EditBranch\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Branch\\\",\\\"settings.branch.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemoveBranch\\\",[33,3]],null],[[[1,\\\"                                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Remove Branch\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"branch_delete\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"title\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No branch found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,17],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[8,[39,18],null,[[\\\"@times\\\"],[[36,19]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,20],[30,3]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,[30,3]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                                        \\\"]],[3]]]]],[1,\\\"\\\\n                                                        \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                                <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,19],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,22]],[1,\\\" - \\\"],[1,[34,23]],[1,\\\" of \\\"],[1,[34,24]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"branch\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"branches\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/branch/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/doctors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"MIqESF5c\",\n    \"block\": \"[[[41,[33,1],[[[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" Doctors list on Kiosk \\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[12],[1,\\\"Select to enable/disable a doctor on kiosk.\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"widget\\\"],[12],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4 content\\\"],[14,5,\\\"border-right:1px solid #ccc;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[14,0,\\\"text-center underline\\\"],[12],[1,\\\"Branch: \\\"],[10,\\\"strong\\\"],[12],[1,\\\"CRP1\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Morning\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"CRP1\\\",\\\"morning\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,1,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,1,[\\\"available\\\"]],\\\" \\\",[30,1,[\\\"label\\\"]],\\\"-1-1\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,1,[\\\"user_id\\\"]],[30,1,[\\\"available\\\"]],1,1,[30,1,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,1,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[1]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Evening\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"CRP1\\\",\\\"evening\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,2,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,2,[\\\"available\\\"]],\\\" \\\",[30,2,[\\\"label\\\"]],\\\"-1-2\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,2,[\\\"user_id\\\"]],[30,2,[\\\"available\\\"]],2,1,[30,2,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,2,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4 content\\\"],[14,5,\\\"border-right:1px solid #ccc;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[14,0,\\\"text-center underline\\\"],[12],[1,\\\"Branch: \\\"],[10,\\\"strong\\\"],[12],[1,\\\"CRP2\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Morning\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"CRP2\\\",\\\"morning\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,3,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,3,[\\\"available\\\"]],\\\" \\\",[30,3,[\\\"label\\\"]],\\\"-1-1\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,3,[\\\"user_id\\\"]],[30,3,[\\\"available\\\"]],1,3,[30,3,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,3,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[3]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Evening\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"CRP2\\\",\\\"evening\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,4,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,4,[\\\"available\\\"]],\\\" \\\",[30,4,[\\\"label\\\"]],\\\"-1-2\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,4,[\\\"user_id\\\"]],[30,4,[\\\"available\\\"]],2,3,[30,4,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,4,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[4]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4 content\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[14,0,\\\"text-center underline\\\"],[12],[1,\\\"Branch: \\\"],[10,\\\"strong\\\"],[12],[1,\\\"GGN\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Morning\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"GGN\\\",\\\"morning\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,5,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,5,[\\\"available\\\"]],\\\" \\\",[30,5,[\\\"label\\\"]],\\\"-2-1\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,5,[\\\"user_id\\\"]],[30,5,[\\\"available\\\"]],1,2,[30,5,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,5,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[5]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[14,5,\\\"min-height:250px;overflow: auto\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t  \\\\t\\\"],[10,\\\"li\\\"],[12],[10,\\\"label\\\"],[12],[1,\\\"Shift: Evening\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"GGN\\\",\\\"evening\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t    \\\\t\\\\n\\\\t\\\\t    \\\\t\\\"],[10,\\\"li\\\"],[14,5,\\\"margin:5px\\\"],[15,\\\"data-avail\\\",[29,[[30,6,[\\\"available\\\"]]]]],[15,0,[29,[\\\"kiosk-\\\",[30,6,[\\\"available\\\"]],\\\" \\\",[30,6,[\\\"label\\\"]],\\\"-2-2\\\"]]],[12],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"toggleDoctorStatus\\\",[30,6,[\\\"user_id\\\"]],[30,6,[\\\"available\\\"]],2,2,[30,6,[\\\"label\\\"]]],null],[12],[10,1],[14,0,\\\"\\\"],[12],[1,[30,6,[\\\"Name\\\"]]],[13],[13],[13],[1,\\\"\\\\n\\\\t\\\\t  \\\\n\\\"]],[6]],[[[1,\\\"\\\\t\\\\t    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,6]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"doctor\\\",\\\"doctor\\\",\\\"doctor\\\",\\\"doctor\\\",\\\"doctor\\\",\\\"doctor\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/doctors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"I1CmAvzw\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/charges/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"J6ul3iZg\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-life-ring\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"charge_type\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_type\\\"],[12],[1,\\\"Charge Type \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"charge_type\\\",\\\"Enter Charge Type\\\",\\\"charge_type\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"charge_type\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"charge_type\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"charge_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_code\\\"],[12],[1,\\\" Charge Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"charge_code\\\",\\\"Enter Charge Code\\\",\\\"charge_code\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"charge_code\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"charge_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"print_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"print_code\\\"],[12],[1,\\\" Print Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"print_code\\\",\\\"Enter Print Code\\\",\\\"print_code\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"print_code\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"print_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"charge_cost\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"charge_cost\\\"],[12],[1,\\\"Cost(Rs) \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"charge_cost\\\",\\\"Enter Cost(Rs)\\\",\\\"charge_cost\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"charge_cost\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"charge_cost\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"description\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"description\\\"],[12],[1,\\\"Description  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,14],null,[[\\\"value\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"cols\\\",\\\"rows\\\"],[[33,15],\\\"form-control\\\",\\\"description\\\",\\\"description\\\",\\\"Enter Charge Description\\\",\\\"80\\\",\\\"4\\\"]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"description\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"description\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,16],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,16],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"doctor_related\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[3,\\\"<label for=\\\\\\\"status\\\\\\\" class=\\\\\\\"col-xs-4 text-right control-label\\\\\\\">Status: <span class=\\\\\\\"required\\\\\\\">*</span>  </label>\\\"],[1,\\\"\\\\n                                          \\\"],[3,\\\"onclick={{action \\\\\\\"doctorHasChanged\\\\\\\"}} \\\"],[1,\\\" \\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4 col-xs-offset-4\\\"],[12],[1,\\\"\\\\n                                               \\\"],[10,\\\"input\\\"],[14,3,\\\"doctor_related\\\"],[14,1,\\\"doctor_related\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,16],[[30,0],\\\"doctorHasChanged\\\"],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Check checkbox if this charge related to doctors?\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"doctor_related\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"doctor_related\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                              \\\"],[3,\\\"  {{input click=(action \\\\\\\"clicky\\\\\\\" 1) type=\\\\\\\"radio\\\\\\\" id=\\\\\\\"Active\\\\\\\" class=\\\\\\\"high_priority\\\\\\\" name=\\\\\\\"status\\\\\\\" value=status }}\\\\n                                                <label for=\\\\\\\"Active\\\\\\\">Active</label>\\\\n                                                \\\\n                                                {{input click=(action \\\\\\\"clicky\\\\\\\" 2)  type=\\\\\\\"radio\\\\\\\" id=\\\\\\\"Inactive\\\\\\\" class=\\\\\\\"high_low\\\\\\\" name=\\\\\\\"status\\\\\\\" value=status }}\\\\n                                                <label for=\\\\\\\"Inactive\\\\\\\">Inactive</label>\\\\n{{#each errors.status as |error| }}\\\\n                                                  <span class=\\\\\\\"help-block\\\\\\\">{{error.message}} </span>\\\\n                                                  {{/each}}                                                  <span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.status}} </span>\\\"],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                          \\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,0],[14,0,\\\"col-xs-4 col-xs-offset-4\\\"],[12],[1,\\\"\\\\n                                               \\\"],[10,\\\"input\\\"],[14,3,\\\"shipping_related\\\"],[14,1,\\\"shipping_related\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,16],[[30,0],\\\"shippingHasChanged\\\"],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" Check checkbox if this charge related to shipping?\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,18]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,19],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.charges.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,16],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,20]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"charge_type\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"charge_code\\\",\\\"print_code\\\",\\\"charge_cost\\\",\\\"textarea\\\",\\\"description\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/charges/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/charges/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"4JGPqPDd\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/charges/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/charges/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ftPoCytK\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/charges/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/charges/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"1UYFvV/v\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-life-ring\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Charge\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Charge\\\",[33,10]]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddCharge\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info ml-2\\\",\\\"settings.masters.charges.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Charge \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"openVisitDefaultChargePopUp\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Visit Default Charges\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-md-12 text-center\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Note:\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"doctor-charges-message\\\"],[12],[1,\\\"Charge amounts are set in \\\"],[6,[39,13],null,[[\\\"route\\\"],[\\\"settings.masters.doctor-level.list\\\"]],[[\\\"default\\\"],[[[[1,\\\" Doctor Level screen \\\"]],[]]]]],[1,\\\" . Amounts set here do not have any impact on the billing system\\\"],[13],[13],[1,\\\"\\\\n                                   \\\"],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\" Charge Type \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\" Cost(Rs) \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\" Status  \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150px;\\\"],[12],[1,\\\" Actions \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"charge_type\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"charge_cost\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,15],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,15],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"EditCharge\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.charges.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemoveCharge\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Form\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"charge_type\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,16],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,16],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,16],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[8,[39,17],null,[[\\\"@times\\\"],[[36,18]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                               \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,15],[[33,19],[30,3]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,[30,3]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                            \\\"]],[3]]]]],[1,\\\"\\\\n                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,20],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,20],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,20],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,18],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,21]],[1,\\\" - \\\"],[1,[34,22]],[1,\\\" of \\\"],[1,[34,23]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" default charge model \\\"],[1,\\\"\\\\n\\\"],[1,[28,[35,24],null,[[\\\"appointment_types\\\",\\\"mapping_code\\\",\\\"refresh\\\",\\\"default_charges\\\",\\\"mapping_code\\\",\\\"saveVisitTypeCharge\\\",\\\"changeCharge\\\",\\\"cancelVisitDefaultCharge\\\"],[[33,25],[33,26],[33,27],[33,28],[33,26],[28,[37,11],[[30,0],\\\"saveVisitTypeCharge\\\"],null],[28,[37,11],[[30,0],\\\"changeCharge\\\"],null],[28,[37,11],[[30,0],\\\"cancelVisitDefaultCharge\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,29]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"charge\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"charges\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"visit-default-charge-popup\\\",\\\"appointment_types\\\",\\\"mapping_code\\\",\\\"refresh\\\",\\\"default_charges\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/charges/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/dgt/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"B1NCeS5n\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"List\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/dgt/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/diagnostic/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"6+gCOmZR\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-medical-alt\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"taxonomy\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,\\\"for\\\",\\\"taxonomy\\\"],[12],[1,\\\"Taxonomy \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,1,\\\"taxonomy\\\"],[14,\\\"multiple\\\",\\\"true\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"selectedGroupOption\\\"],null]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,9]],null]],null],null,[[[1,\\\"                                  \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"taxonomy\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"taxonomy\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"imaging\\\"],[14,0,\\\"col-xs-1 text-left ml-2\\\"],[12],[1,\\\"Imaging?:\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,3,\\\"imaging\\\"],[14,1,\\\"imaging\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"hideUnitBinaryAndUpperLower\\\"],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,\\\"checked\\\",[52,[28,[37,11],[\\\"1\\\",[33,12]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"col-xs-1 text-right control-label \\\",[52,[33,5,[\\\"test_name\\\"]],\\\"has-error\\\"]]]],[14,\\\"for\\\",\\\"test_name\\\"],[12],[1,\\\"Test Name\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 test_name \\\",[52,[28,[37,11],[\\\"1\\\",[33,12]],null],\\\"test_name_enlarge\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"test_name\\\",\\\"test_name\\\",\\\"Test Name\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"imagingshowhide \\\",[52,[28,[37,11],[\\\"1\\\",[33,12]],null],\\\"imagingblock\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"col-xs-1 text-right control-label \\\",[52,[33,5,[\\\"unit_name\\\"]],\\\"has-error\\\"]]]],[14,\\\"for\\\",\\\"unit_name\\\"],[12],[1,\\\"Unit Name\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                                \\\"],[10,\\\"select\\\"],[14,1,\\\"unit_name\\\"],[15,2,[29,[[36,15]]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"selectedUnitOption\\\"],null]],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Unit\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,16]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,11],[[30,4,[\\\"id\\\"]],[33,15]],null],\\\"true\\\"]],[12],[1,\\\"\\\\n                                      \\\"],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"unit_name\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"unit_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-12 \\\",[52,[33,5,[\\\"range_type\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right minwidth120px marginleft15\\\"],[14,\\\"for\\\",\\\"type\\\"],[12],[1,\\\"Threshold\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1 control-label ml-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"click\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\",\\\"class\\\",\\\"checked\\\"],[\\\"radio\\\",[28,[37,6],[[30,0],\\\"getRangeValue\\\",\\\"th\\\"],null],\\\"range_type\\\",\\\"th\\\",[33,17],\\\"variable_type choose_from_list range_type\\\",\\\"{{if (eq range_type 'th')}}\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right minwidth100px\\\"],[14,\\\"for\\\",\\\"variable_type\\\"],[12],[1,\\\" Binary\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1 control-label ml-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"click\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[\\\"radio\\\",[28,[37,6],[[30,0],\\\"getRangeValue\\\",\\\"bnr\\\"],null],\\\"variable_type choose_from_list range_type\\\",\\\"bnr\\\",\\\"range_type\\\",[33,17],\\\"{{if (eq range_type 'bnr')}}\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 minwidth100px text-right\\\"],[14,\\\"for\\\",\\\"choose_from_list\\\"],[12],[1,\\\"\\\\n                                Choose from List\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1 control-label ml-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"click\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[\\\"radio\\\",[28,[37,6],[[30,0],\\\"getRangeValue\\\",\\\"cfl\\\"],null],\\\"variable_type range_type\\\",\\\"cfl\\\",\\\"range_type\\\",[33,17],\\\"{{if (eq range_type 'cfl')}}\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"range_type\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"range_type\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row thbnr \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-12 \\\",[52,[33,5,[\\\"range\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-4 row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label lower\\\"],[14,\\\"for\\\",\\\"lower\\\"],[12],[1,\\\"\\\\n                                  Lower\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\" col-xs-8\\\"],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control lower_range lower decimalvalue\\\",\\\"lower\\\",\\\"Lower\\\",\\\"off\\\",\\\"lower_range\\\",[33,18]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-4 row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label upper\\\"],[14,\\\"for\\\",\\\"upper\\\"],[12],[1,\\\"\\\\n                                  Upper\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\" col-xs-8\\\"],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control upper_range upper decimalvalue\\\",\\\"upper\\\",\\\"Upper\\\",\\\"off\\\",\\\"upper_range\\\",[33,19]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"range\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block marginleft50px text-center\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block marginleft50px\\\"],[12],[1,[33,10,[\\\"range\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-12 cflist\\\"],[15,5,[36,20]],[12],[1,\\\"\\\\n                              \\\"],[1,[54,[[33,22]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[33,22,[\\\"length\\\"]],0],null],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,1,\\\"cflAdd1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"col-xs-1 text-right control-label \\\",[52,[33,5,[\\\"test_name\\\"]],\\\"has-error\\\"]]]],[14,\\\"for\\\",\\\"cfl_label\\\"],[12],[1,\\\"Label \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control labelOrder\\\"],[14,3,\\\"cfl_label[]\\\"],[14,1,\\\"cfl_label1\\\"],[14,\\\"data-field\\\",\\\"1\\\"],[14,2,\\\"\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                  \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control cfl_color\\\"],[14,3,\\\"cfl_color[]\\\"],[14,1,\\\"cfl_color1\\\"],[14,2,\\\"\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-1 ml-2\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-1 ml-2\\\"],[12],[1,\\\"\\\\n                                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addMoreCFL\\\"],null],[12],[1,\\\"Add More\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,8],[[28,[37,8],[[33,22]],null]],null],null,[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"form-group row\\\"],[15,1,[29,[\\\"cflAdd\\\",[30,9]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[15,\\\"for\\\",[29,[\\\"cfl_label\\\",[30,9]]]],[12],[1,\\\"Label \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control labelOrder\\\"],[15,\\\"data-field\\\",[29,[[30,9]]]],[14,3,\\\"cfl_label[]\\\"],[15,1,[29,[\\\"cfl_label\\\",[30,9]]]],[15,2,[29,[[30,8,[\\\"label_name\\\"]]]]],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,4,\\\"text\\\"],[12],[13],[10,1],[15,0,[29,[\\\"mix-hightlight\\\",[30,9]]]],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[10,\\\"input\\\"],[14,0,\\\"form-control cfl_color\\\"],[14,3,\\\"cfl_color[]\\\"],[15,1,[29,[\\\"cfl_color\\\",[30,9]]]],[15,2,[29,[[30,8,[\\\"color\\\"]]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-2 ml-2\\\"],[12],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger btn-sm\\\"],[15,\\\"data-row\\\",[29,[[30,9]]]],[14,1,\\\"mixMedicineRow\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[15,\\\"title\\\",[29,[\\\"Remove Label \\\",[30,9]]]],[12],[13],[1,\\\" Delete \\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[8,9]],null],[1,\\\"                                \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-1 ml-2\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-1 ml-2\\\"],[12],[1,\\\"\\\\n                                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addMoreCFL\\\"],null],[12],[1,\\\"Add More\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[12],[1,\\\"Notes:\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"textarea\\\"],[14,\\\"cols\\\",\\\"80\\\"],[14,\\\"rows\\\",\\\"2\\\"],[14,3,\\\"test_notes\\\"],[14,1,\\\"test_notes\\\"],[15,2,[29,[[36,23]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,6],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,24]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,6],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,24]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,10,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,25]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,26],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.diagnostic.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[34,27]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"group\\\",\\\"error\\\",\\\"error\\\",\\\"unit\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"listitem\\\",\\\"index\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"groupList\\\",\\\"vali_errors\\\",\\\"eq\\\",\\\"imaging\\\",\\\"input\\\",\\\"test_name\\\",\\\"unit_name\\\",\\\"units_list\\\",\\\"range_type\\\",\\\"lower_range\\\",\\\"upper_range\\\",\\\"cfl\\\",\\\"log\\\",\\\"cfl_list\\\",\\\"test_notes\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/diagnostic/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/diagnostic/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gtj6dday\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/diagnostic/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/diagnostic/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"S2pab24f\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-medical-alt\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-12  table-responsivea\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\" Groups\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"selectedgroup\\\"],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectGroup\\\",[33,10,[\\\"id\\\"]],[33,10,[\\\"name\\\"]]],null]],null]],[14,0,\\\"form-control diagnosticlist\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select Group--\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,12],[[30,2,[\\\"id\\\"]],[33,13]],null],\\\"true\\\"]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"test_name\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"Test Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"query_string\\\",\\\"Search Test Name\\\",[33,15]]]]],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"help-block marginleft50px\\\"],[12],[1,[33,16,[\\\"query_string\\\"]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,9],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"AddDiagnostic\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\" \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.diagnostic.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Diagnostic Test \\\"]],[]]]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[14,1,\\\"diagnosticlist\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Test Name\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Unit\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Range Type\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Lower Threshold\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Upper Threshold\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Groups\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"250px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,19]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,1,[29,[\\\"diagnosticreport_\\\",[30,3,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"outcomes_uom\\\",\\\"0\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"range_type\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,12],[[30,3,[\\\"range_type\\\"]],\\\"bnr\\\"],null],\\\"green\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[1,[30,3,[\\\"lower_range\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,12],[[30,3,[\\\"range_type\\\"]],\\\"bnr\\\"],null],\\\"red\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[1,[30,3,[\\\"upper_range\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,0,\\\"first_pipe\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,3,[\\\"diagnostic_test_outcomes_uom\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[1,[28,[35,20],[\\\" | \\\",[30,4,[\\\"dtg\\\",\\\"0\\\",\\\"name\\\"]]],null]],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"EditDiagnostic\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn\\\\r\\\\n                                                    btn-warning btn-xs\\\",\\\"settings.masters.diagnostic.edit\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"title\\\",\\\"Edit Diagnostic Tests / Outcomes\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\"\\\\n                                                        Edit\\\"],[13]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"RemoveDiagnostic\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Diagnostic Tests / Outcomes\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"deleteRecords\\\",[30,3,[\\\"id\\\"]],[30,3,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,21],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,22],[[33,23],[33,24]],null]],null]],null],null,[[[41,[28,[37,12],[[30,6],\\\"...\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,12],[[33,23],[30,6]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[30,6],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                            \\\"],[1,[30,6]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[6]],null],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,25],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,25],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,25],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,24],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,26]],[1,\\\" - \\\"],[1,[34,27]],[1,\\\" of \\\"],[1,[34,28]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,29]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"group\\\",\\\"report\\\",\\\"group\\\",\\\"index\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"action\\\",\\\"group\\\",\\\"groupList\\\",\\\"eq\\\",\\\"selectedgroup\\\",\\\"input\\\",\\\"query_string\\\",\\\"vali_errors\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"diagnosticreports\\\",\\\"concat\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/diagnostic/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/disease/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"GreEXaC+\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-disease\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"system\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"system\\\"],[12],[1,\\\"Systems \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-6 col-md-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,8]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"col-md-6 itemdisplaystatus\\\",[30,1,[\\\"status\\\"]],\\\" system\\\",[30,1,[\\\"status\\\"]],[30,1,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"system\\\",[30,1,[\\\"id\\\"]]]]],[14,3,\\\"system\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectSystem\\\",[30,1,[\\\"id\\\"]],[30,1,[\\\"name\\\"]]],null]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[\\\"system\\\",[30,1,[\\\"id\\\"]]]]],[12],[1,\\\"   \\\"],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,5,[\\\"system\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"system\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"form-group row systemlist \\\",[52,[33,5,[\\\"organ\\\"]],\\\"has-error\\\"]]]],[14,5,\\\"display:none;\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"organ\\\"],[12],[1,\\\"Organs (\\\"],[1,[34,11]],[1,\\\") \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,12]],null]],null],null,[[[41,[28,[37,13],[[30,4,[\\\"organ\\\"]],null],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"col-md-6 itemdisplaystatus\\\",[30,4,[\\\"organ\\\",\\\"status\\\"]],\\\" organ\\\",[30,4,[\\\"organ\\\",\\\"status\\\"]],[30,4,[\\\"organ\\\",\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"organ\\\",[30,4,[\\\"organ_id\\\"]]]]],[14,3,\\\"organ\\\"],[15,2,[29,[[30,4,[\\\"organ_id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectOrganSystem\\\",[30,4,[\\\"organ_id\\\"]]],null]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                             \\\"],[13],[1,\\\"\\\\n                             \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[\\\"organ\\\",[30,4,[\\\"organ_id\\\"]]]]],[12],[1,\\\"   \\\"],[1,[30,4,[\\\"organ\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4,5]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,5,[\\\"organ\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"organ\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\" Disease Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row col-xs-8 diseaselist\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row disease1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,2,\\\"1\\\"],[14,0,\\\"ordering\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\"],[\\\"text\\\",\\\"form-control diseasename\\\",\\\"name\\\",\\\"Enter Disease Name\\\",\\\"name\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[3,\\\"\\\\t<div class=\\\\\\\"col-xs-4 marginleft5\\\\\\\">\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t<button class=\\\\\\\"btn btn-success\\\\\\\" data-row=\\\\\\\"1\\\\\\\" type=\\\\\\\"button\\\\\\\" {{ action 'addMoreRows' on=\\\\\\\"click\\\\\\\" }}> <i class=\\\\\\\"fa fa-plus-circle\\\\\\\" aria-hidden=\\\\\\\"true\\\\\\\"></i></button>\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t</div> \\\"],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[33,16],\\\"\\\"],null],[[[1,\\\"                          \\\"],[10,0],[14,0,\\\"col-xs-4 marginleft5\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger removeDiseaseRow\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-minus-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[33,16],\\\"\\\"],null],[[[1,\\\"                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[24,\\\"data-row\\\",\\\"1\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"addMoreRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"  Add More\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,10]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                       \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,14],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,9],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[1,[28,[35,14],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,9],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,5,\\\"display:flex; align-items:center;\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"isSerious\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"\\\\n                                          Is Serious?:\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                          \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"isSerious\\\",\\\"isSerious\\\",\\\"isSerious\\\",[33,18]]]]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,16]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,19],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.disease.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,20]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"system\\\",\\\"index\\\",\\\"error\\\",\\\"organ\\\",\\\"index\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"each\\\",\\\"-track-array\\\",\\\"systems\\\",\\\"action\\\",\\\"vali_errors\\\",\\\"organname\\\",\\\"organs\\\",\\\"ifnoteq\\\",\\\"input\\\",\\\"eq\\\",\\\"id\\\",\\\"status\\\",\\\"isSerious\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/disease/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/disease/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"kix/tTNx\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/disease/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/disease/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"DYS5f8Em\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-disease\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-12  table-responsivea\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[12],[1,\\\" \\\"],[3,\\\" class=\\\\\\\"text-center\\\\\\\" \\\"],[1,\\\"\\\\n                                        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"system\\\"],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectSystem\\\",[33,10,[\\\"id\\\"]],[33,10,[\\\"name\\\"]]],null]],null]],[14,0,\\\"form-control select180 systemlist\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select System--\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[14,5,\\\"margin-left: 11px;\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"organ\\\"],[14,0,\\\"form-control select180 organlist\\\"],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectOrganSystem\\\",[33,12,[\\\"id\\\"]],[33,12,[\\\"name\\\"]]],null]],null]],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select organ--\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,13]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"organ_id\\\"]]]]],[12],[1,[30,3,[\\\"organ\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Disease\\\",[33,15]]]]],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,16,[\\\"query_string\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,9],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"AddOrgan\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\" \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.disease.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Disease \\\"]],[]]]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Disease Name\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"organ\\\"],[12],[1,\\\"Organ Name\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"system\\\"],[12],[1,\\\"System\\\\n                                                    Name\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[12],[1,\\\"Added\\\\n                                                    Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[12],[1,\\\"\\\\n                                                    Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[12],[1,\\\"Status\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,19]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"organ\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"system\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,20],[[30,4,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,20],[[30,4,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,21],[[30,4,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,21],[[30,4,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"EditDisease\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn\\\\r\\\\n                                                    btn-warning btn-xs\\\",\\\"settings.masters.disease.edit\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit\\\\n\\\"]],[]]]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"RemoveDisease\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Disease\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"deleteRecords\\\",[30,4,[\\\"id\\\"]],[30,4,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                    Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,23]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,23]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,23],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,24],[[33,25],[33,26]],null]],null]],null],null,[[[41,[28,[37,21],[[30,5],\\\"...\\\"],null],[[[1,\\\"                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,21],[[33,25],[30,5]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[30,5],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                    \\\"],[1,[30,5]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[5]],null],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,27],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,27],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,27],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,26],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,28]],[1,\\\" - \\\"],[1,[34,29]],[1,\\\" of \\\"],[1,[34,30]],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,31]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"system\\\",\\\"organ\\\",\\\"disease\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"action\\\",\\\"system\\\",\\\"systems\\\",\\\"organ\\\",\\\"organs\\\",\\\"input\\\",\\\"query_string\\\",\\\"vali_errors\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"diseases\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/disease/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-level/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"h/tCwljT\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Level Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Level Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-xs-4 seniority_level\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"seniority_level\\\"],[12],[1,\\\"\\\\n                                    Seniority Level \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\\n                                  \\\"],[10,\\\"input\\\"],[14,1,\\\"Junior\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"seniority_level\\\"],[14,2,\\\"junior\\\"],[15,\\\"checked\\\",[52,[28,[37,11],[[33,12],\\\"junior\\\"],null],\\\"checked\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Junior\\\"],[12],[1,\\\"Junior\\\"],[13],[1,\\\"\\\\n\\\\n                                  \\\"],[10,\\\"input\\\"],[14,1,\\\"Senior\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"seniority_level\\\"],[14,2,\\\"senior\\\"],[15,\\\"checked\\\",[52,[28,[37,11],[[33,12],\\\"senior\\\"],null],\\\"checked\\\"]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Senior\\\"],[12],[1,\\\"Senior\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"seniority_level\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"seniority_level\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"h5\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" Default charges: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,13]],null]],null],null,[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"col-md-4 height95\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"charges\\\"],[14,0,\\\"no-margin-bottom status-label\\\"],[12],[1,[30,3,[\\\"charge_type\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control charges\\\"],[15,\\\"data-printcode\\\",[29,[[30,3,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,3,[\\\"charge_type\\\"]]]]],[15,1,[29,[\\\"charge_\\\",[30,3,[\\\"id\\\"]]]]],[15,3,[29,[[30,3,[\\\"id\\\"]]]]],[15,\\\"title\\\",[29,[[30,3,[\\\"charge_code\\\"]]]]],[15,\\\"placeholder\\\",[30,3,[\\\"charge_type\\\"]]],[15,2,[30,3,[\\\"charge_cost\\\"]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row mt-25\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"override_charges\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[12],[1,\\\"Override charges:\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"select\\\"],[14,3,\\\"location\\\"],[14,1,\\\"location\\\"],[14,0,\\\"form-control\\\"],[15,2,[36,14]],[15,\\\"onchange\\\",[28,[37,15],[[30,0],\\\"setBranch\\\"],null]],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,16]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[12],[1,[30,4,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"addlocation\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add\\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,17],[[[42,[28,[37,9],[[28,[37,9],[[33,17]],null]],null],null,[[[1,\\\"                             \\\"],[10,0],[14,0,\\\"row mt-25\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h4\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-sm-8\\\"],[12],[1,\\\"\\\\n                                   \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"removeLocationCharge\\\",[30,5,[\\\"id\\\"]],[33,18]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Remove\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                             \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,13]],null]],null],null,[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"col-md-4 height95\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"location_charges\\\"],[14,0,\\\"no-margin-bottom status-label\\\"],[12],[1,[30,6,[\\\"charge_type\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                      \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control checkbox_charge location_charges\\\"],[15,\\\"data-printcode\\\",[29,[[30,6,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,1,[29,[\\\"charge_\\\",[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,3,[29,[[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,\\\"placeholder\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,2,[29,[[30,6,[\\\"charge_cost\\\"]]]]],[15,\\\"data-chargeid\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-branchid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-2 location_checkbox\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"charge_checkbox_\\\",[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[14,0,\\\"location_checkbox_size charge_enable\\\"],[15,2,[30,6,[\\\"charge_cost\\\"]]],[15,\\\"data-printcode\\\",[29,[[30,6,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,\\\"data-chargeid\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-branchid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,15],[[30,0],[28,[37,15],[[30,0],\\\"chargeHasChanged\\\",[30,6,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[1,\\\"                            \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"],\\\" mt-25\\\"]]],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-1 control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Active\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"status\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,15],[[30,0],[28,[37,19],[[33,20]],null],\\\"1\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Inactive\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"status\\\"],[14,2,\\\"0\\\"],[15,\\\"onclick\\\",[28,[37,15],[[30,0],[28,[37,19],[[33,20]],null],\\\"0\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,18]]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                              \\\"],[6,[39,21],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.doctor-level.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                              \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[34,22]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"charge\\\",\\\"location\\\",\\\"list\\\",\\\"charge\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"eq\\\",\\\"seniority_level\\\",\\\"charges\\\",\\\"branch\\\",\\\"action\\\",\\\"locations\\\",\\\"charge_name_list\\\",\\\"id\\\",\\\"mut\\\",\\\"status\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-level/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-level/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0zcqsfqX\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Level Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Level Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-xs-4 seniority_level\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"\\\\n                                                  Seniority Level \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Junior\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"seniority_level\\\"],[14,2,\\\"junior\\\"],[15,\\\"checked\\\",[28,[37,11],[[33,12],\\\"junior\\\"],null]],[15,\\\"onclick\\\",[28,[37,13],[[30,0],[28,[37,14],[[33,12]],null],\\\"junior\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Junior\\\"],[12],[1,\\\"Junior\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Senior\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"seniority_level\\\"],[14,2,\\\"senior\\\"],[15,\\\"checked\\\",[28,[37,11],[[33,12],\\\"senior\\\"],null]],[15,\\\"onclick\\\",[28,[37,13],[[30,0],[28,[37,14],[[33,12]],null],\\\"senior\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Senior\\\"],[12],[1,\\\"Senior\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"seniority_level\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"seniority_level\\\"]]],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,15]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"col-md-4 height95\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"charges\\\"],[14,0,\\\"no-margin-bottom status-label\\\"],[12],[1,[30,3,[\\\"charge_type\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control charges\\\"],[15,\\\"data-printcode\\\",[29,[[30,3,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,3,[\\\"charge_type\\\"]]]]],[15,1,[29,[\\\"charge_\\\",[30,3,[\\\"id\\\"]]]]],[15,3,[29,[[30,3,[\\\"id\\\"]]]]],[15,\\\"title\\\",[29,[[30,3,[\\\"charge_code\\\"]]]]],[15,\\\"placeholder\\\",[30,3,[\\\"charge_type\\\"]]],[15,2,[30,3,[\\\"charge_cost\\\"]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"form-group row mt-25\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"override_charges\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[12],[1,\\\"Override charges:\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"select\\\"],[14,3,\\\"location\\\"],[14,1,\\\"location\\\"],[14,0,\\\"form-control\\\"],[15,2,[36,16]],[15,\\\"onchange\\\",[28,[37,13],[[30,0],\\\"setBranch\\\"],null]],[12],[1,\\\"\\\\n                                              \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Location\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,17]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,4,[\\\"id\\\"]]]]],[12],[1,[30,4,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success ml-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addlocation\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Add\\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,18],[[[42,[28,[37,9],[[28,[37,9],[[33,18]],null]],null],null,[[[1,\\\"                                            \\\"],[10,0],[14,0,\\\"row mt-25\\\"],[12],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-sm-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"h4\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-sm-8\\\"],[12],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger pull-right\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"removeLocationCharge\\\",[30,5,[\\\"id\\\"]],[33,19]],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Remove\\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,5,[\\\"location_charge\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,0],[15,0,[29,[\\\"col-md-4 height95\\\",[30,7]]]],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-xs-7\\\"],[12],[1,\\\"\\\\n                                                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"location_charges\\\"],[14,0,\\\"no-margin-bottom status-label\\\"],[12],[1,[30,6,[\\\"charge_type\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[1,[30,6,[\\\"amount_override\\\"]]],null],[[[1,\\\"                                                      \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control checkbox_charge location_charges\\\"],[15,\\\"data-printcode\\\",[29,[[30,6,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,1,[29,[\\\"charge_\\\",[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,3,[29,[[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,\\\"placeholder\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,2,[29,[[30,6,[\\\"charge_cost\\\"]]]]],[15,\\\"data-chargeid\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-branchid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                       \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control checkbox_charge location_charges\\\"],[15,\\\"data-printcode\\\",[29,[[30,6,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,1,[29,[\\\"charge_\\\",[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,3,[29,[[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,\\\"placeholder\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,2,[29,[[30,6,[\\\"charge_cost\\\"]]]]],[15,\\\"data-chargeid\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-branchid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[14,\\\"readonly\\\",\\\"readonly\\\"],[14,4,\\\"number\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-xs-2 location_checkbox\\\"],[12],[1,\\\"\\\\n                                                      \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"charge_checkbox_\\\",[30,5,[\\\"id\\\"]],\\\"_\\\",[30,6,[\\\"id\\\"]]]]],[14,0,\\\"location_checkbox_size charge_enable\\\"],[15,2,[30,6,[\\\"charge_cost\\\"]]],[15,\\\"data-printcode\\\",[29,[[30,6,[\\\"print_code\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,6,[\\\"charge_type\\\"]]]]],[15,\\\"title\\\",[29,[[30,6,[\\\"charge_code\\\"]]]]],[15,\\\"data-chargeid\\\",[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"data-branchid\\\",[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,13],[[30,0],[28,[37,13],[[30,0],\\\"chargeHasChanged\\\",[30,6,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,\\\"checked\\\",[52,[28,[37,11],[1,[30,6,[\\\"amount_override\\\"]]],null],\\\"true\\\"]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[1,\\\"                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"],\\\" mt-25\\\"]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-1 control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Active\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"status\\\"],[14,2,\\\"1\\\"],[15,\\\"checked\\\",[28,[37,11],[[33,20],\\\"1\\\"],null]],[15,\\\"onclick\\\",[28,[37,13],[[30,0],[28,[37,14],[[33,20]],null],\\\"1\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[10,\\\"input\\\"],[14,1,\\\"Inactive\\\"],[14,0,\\\"high_priority\\\"],[14,3,\\\"status\\\"],[14,2,\\\"0\\\"],[15,\\\"checked\\\",[28,[37,11],[[33,20],\\\"0\\\"],null]],[15,\\\"onclick\\\",[28,[37,13],[[30,0],[28,[37,14],[[33,20]],null],\\\"0\\\"],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"  \\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,19]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,21],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.doctor-level.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,22]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"charge\\\",\\\"location\\\",\\\"list\\\",\\\"charge\\\",\\\"index\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"eq\\\",\\\"seniority_level\\\",\\\"action\\\",\\\"mut\\\",\\\"default_charges\\\",\\\"branch\\\",\\\"locations\\\",\\\"charge_name_list\\\",\\\"id\\\",\\\"status\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-level/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-level/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"y70IzM9Z\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-notes-medical\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline row\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,9,[\\\"query_string\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Doctor Level\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search doctor level\\\",[33,11]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[14,5,\\\"margin-left: 30px\\\"],[12],[1,[33,9,[\\\"query_string\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-5 text-left\\\"],[12],[1,\\\"\\\\n\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"AddSystem\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.doctor-level.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Doctor Level \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                     \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"seniority_level\\\"],[12],[1,\\\"Seniority Level\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[14,\\\"width\\\",\\\"200\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[14,\\\"width\\\",\\\"200\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"200\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,[30,2,[\\\"seniority_level\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[10,3],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"EditDoctorLevel\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.doctor-level.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"RemoveDoctorLevel\\\",[33,3]],null],[[[1,\\\"                                                     \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Doctor Level\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"deleteDoctorLevelRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash-alt\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,18],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[8,[39,19],null,[[\\\"@times\\\"],[[36,20]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                               \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,21],[30,3]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,[30,3]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                            \\\"]],[3]]]]],[1,\\\"\\\\n                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,22],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,20],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,23]],[1,\\\" - \\\"],[1,[34,24]],[1,\\\" of \\\"],[1,[34,25]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,26]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"level\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"doctor-level\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-level/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-management/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"AkdWkdzQ\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"user_add\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_name\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\" Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_name\\\",\\\"user_name\\\",\\\"Name\\\",[33,8]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Username \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"username\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"username\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"username\\\",\\\"username\\\",\\\"Username\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"username\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"username\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Email Id \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"email_id\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"email_id\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"email_id\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"email_id\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mobile_no\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Mobile No \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"mobile_no\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",\\\"Mobile No\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"mobile_no\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"password\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"password\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"password\\\",\\\"password\\\",\\\"Password\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"password\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm_password\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Confirm Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"confirm_password\\\",\\\"confirm_password\\\",\\\"Confirm Password\\\",[33,15]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"confirm_password\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"confirm_password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"employee_code\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Employee Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"employee_code\\\",\\\"employee_code\\\",\\\"Employee Code\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"employee_code\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"employee_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"showInTimeslot\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Show in Timeslot \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"showInTimeslot\\\"],[14,1,\\\"showInTimeslot\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"showInTimeslot\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[3,\\\" for Doctor profile image & designation \\\"],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,5,[\\\"doctor_image\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_image\\\"]],\\\"has-error\\\"],\\\" row\\\"]]],[12],[1,\\\"\\\\n                              \\\"],[3,\\\" Doctor Image \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[12],[1,\\\"Profile Image\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"profile-wrapper\\\"],[15,\\\"onmouseenter\\\",[28,[37,17],[[30,0],\\\"showHover\\\"],null]],[15,\\\"onmouseleave\\\",[28,[37,17],[[30,0],\\\"hideHover\\\"],null]],[12],[1,\\\"\\\\n\\\\n                                  \\\"],[3,\\\" Main Circle Image \\\"],[1,\\\"\\\\n                                  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[52,[33,18],[33,18],\\\"/img/default-profile.jpg\\\"]]]],[14,0,\\\"profile-pic\\\"],[12],[13],[1,\\\"\\\\n\\\\n                                  \\\"],[3,\\\" Hover Overlay \\\"],[1,\\\"\\\\n\\\"],[41,[33,19],[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"overlay\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[33,18]],null],[[[1,\\\"                                    \\\"],[11,\\\"i\\\"],[24,0,\\\"glyphicon glyphicon-camera overlay-icon\\\"],[4,[38,17],[[30,0],\\\"triggerFileInput\\\"],null],[12],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[11,\\\"i\\\"],[24,0,\\\"glyphicon glyphicon-trash overlay-icon remove\\\"],[4,[38,17],[[30,0],\\\"removeImage\\\"],null],[12],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                                  \\\"],[3,\\\" Hidden File Input \\\"],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"accept\\\",\\\"change\\\"],[\\\"file\\\",\\\"doctor_image\\\",\\\"hidden-file-input\\\",\\\"image/*\\\",[28,[37,17],[[30,0],\\\"previewDoctorImage\\\"],null]]]]],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"remove_image\\\",\\\"remove_image\\\",[33,21]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Website Designation \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"designation\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[12],[1,\\\"Website Designation\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"value\\\",\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",[33,22],\\\"designation\\\",\\\"designation\\\",\\\"form-control\\\",\\\"Designation\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Branch \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_branch\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_branch\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,23]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_branch\\\"],[15,1,[29,[[30,8,[\\\"id\\\"]]]]],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"branchHasChanged\\\",[30,8,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"branch\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,8,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_branch\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_branch\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Roles \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_role\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_role\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,24]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_role[]\\\"],[15,1,[29,[[30,10,[\\\"id\\\"]]]]],[15,2,[29,[[30,10,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"roleHasChanged\\\",[30,10,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"roles\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,10,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_role\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,11,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_role\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_type\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Related to Doctor \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"user_type\\\"],[14,1,\\\"user_type\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"doctorHasChanged\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"doctor_show col-xs-8\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_label\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Label \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_label\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_label\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_label\\\",\\\"user_label\\\",\\\"Doctor Label\\\",[33,25]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_label\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_label\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_order\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Order \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_order\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_order\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"user_order\\\",\\\"user_order\\\",\\\"Doctor Ordering\\\",[33,26]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_order\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,13,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_order\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\"  Added color code html as on  14 Aug Shubh Tiwari \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_color\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Color Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_order\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_color\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_color\\\",\\\"user_color\\\",\\\"Doctor Color Code\\\",[33,27]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_color\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,14,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_color\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pres_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Prescription Format \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"pres_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"pres_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"pres_print\\\"],[15,2,[36,28]],[14,0,\\\"form-control\\\"],[14,1,\\\"pres_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changePrescriptionFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Prescription format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,29]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,30],[[33,28],[30,15,[\\\"id\\\"]]],null]],[15,2,[29,[[30,15,[\\\"id\\\"]]]]],[12],[1,[30,15,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"pres_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,16,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"pres_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"rcp_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Receipt Format \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"rcp_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"rcp_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"rcp_print\\\"],[15,2,[36,31]],[14,0,\\\"form-control\\\"],[14,1,\\\"rcp_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeReceiptFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Receipt format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,32]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,30],[[33,31],[30,17,[\\\"id\\\"]]],null]],[15,2,[29,[[30,17,[\\\"id\\\"]]]]],[12],[1,[30,17,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[17]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"rcp_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,18,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"rcp_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor_level\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Doctor Level \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"doctor_level\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_level\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor_level\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"doctor_level\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeDoctorCharges\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor Level\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,33]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,19,[\\\"id\\\"]]]]],[12],[1,[30,19,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[19]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"doctor_level\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,20,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[20]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"doctor_level\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"row\\\"],[14,1,\\\"doctor-charges-message\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"Note: \\\"],[10,1],[14,0,\\\"doctor-charges-message\\\"],[12],[1,\\\" Only default charges for selected doctor level are shown here. For location specific charges, please visit the doctor level master\\\"],[13],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[14,1,\\\"doctor-charges\\\"],[14,5,\\\"display: none\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" <div class=\\\\\\\"row doctor-charges\\\\\\\">\\\\n{{#each doc_charges as |charge index|}}\\\\n                                  <div class=\\\\\\\"col-md-4\\\\\\\">\\\\n                                    <label for=\\\\\\\"charges\\\\\\\" class=\\\\\\\"col-xs-5 text-right status-label\\\\\\\">{{charge.charge_type}}</label>\\\\n                                    <div class=\\\\\\\"col-xs-7\\\\\\\">\\\\n                                      <input type=\\\\\\\"number\\\\\\\" class=\\\\\\\"form-control charges\\\\\\\" data-printcode =\\\\\\\"{{charge.print_code}}\\\\\\\" id=\\\\\\\"charge_{{charge.id}}\\\\\\\" name=\\\\\\\"{{charge.id}}\\\\\\\" title=\\\\\\\"{{charge.charge_code}}\\\\\\\"  placeholder={{charge.charge_type}} value={{charge.charge_cost}}>\\\\n                                     {{#each errors.user_label as |error| }}\\\\n                                      <span class=\\\\\\\"help-block\\\\\\\">{{error.message}} </span>\\\\n                                      {{/each}}\\\\n                                      <span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.user_label}} </span>\\\\n                                    </div>\\\\n                                  </div>\\\\n                                {{/each}}                              </div> \\\"],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" for consultancy fees \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[3,\\\"<div class=\\\\\\\"row\\\\\\\">\\\\n                            <h5 for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</h5>\\\\n                          </div>\\\"],[1,\\\"\\\\n                          \\\"],[3,\\\"<div class=\\\\\\\"form-group row\\\\\\\">\\\\n                          <label for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</label>\\\\n                            <div class=\\\\\\\"col-xs-offset-2 col-xs-8\\\\\\\">\\\\n{{#each-in permissions as |category products|}}\\\\n                                    {{#each-in products as |key product|}}\\\\n                                      <li class=\\\\\\\"userpercate\\\\\\\">\\\\n                                         <b>{{key}}</b> &nbsp;&nbsp;\\\\n                                         <input id=\\\\\\\"on{{product.cat_id}}\\\\\\\" data-routename={{product.action_name}} data-permission={{product.permission_name}} onchange={{ action (action \\\\\\\"permissionAllow\\\\\\\" product.cat_id) }} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name={{product.cat_id}}  type=\\\\\\\"radio\\\\\\\"  value=\\\\\\\"Allow\\\\\\\" > <label> Allow </label>\\\\n                                         &nbsp;&nbsp;\\\\n                                         <input id=\\\\\\\"off{{product.cat_id}}\\\\\\\" data-routename={{product.action_name}} data-permission={{product.permission_name}} onchange={{ action (action \\\\\\\"permissionDeny\\\\\\\" product.cat_id) }} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name=\\\\\\\"{{product.cat_id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Deny\\\\\\\"><label> Deny </label>\\\\n                                        <ul class=\\\\\\\"userpername\\\\\\\">\\\\n                                        {{#each-in product as |key permission|}}\\\\n                                        {{#if permission.id }}\\\\n                                        <li class=\\\\\\\"peralign\\\\\\\">\\\\n                                          <input type=\\\\\\\"checkbox\\\\\\\"   id={{permission.id}} onchange={{action (action \\\\\\\"permissionHasChanged\\\\\\\" permission.id) value=\\\\\\\"target.checked\\\\\\\"}}>\\\\n                                           <div style=\\\\\\\"float:left; width: 320px;\\\\\\\" class=\\\\\\\"label-title\\\\\\\"> {{permission.full_name}} </div>\\\\n                                        <div class=\\\\\\\"switch-toggle switch-3 switch-candy\\\\\\\">\\\\n\\\\n                                            <input id=\\\\\\\"on{{permission.id}}\\\\\\\" data-routename={{permission.action_name}} data-permission={{permission.permissionName}} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio allow_{{permission.parent_id}}\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\"  type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Allow\\\\\\\">\\\\n                                            <label> Allow </label>\\\\n\\\\n                                            <input id=\\\\\\\"off{{permission.id}}\\\\\\\" data-routename={{permission.action_name}} data-permission={{permission.permissionName}} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio deny_{{permission.parent_id}}\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Deny\\\\\\\">\\\\n                                                <label> Deny </label>\\\\n\\\\n                                            <input id=\\\\\\\"na{{permission.id}}\\\\\\\" role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Not Set\\\\\\\">\\\\n                                            <label> Not Set </label>\\\\n                                        </div>\\\\n                                        </li>\\\\n                                        {{/if}}\\\\n                                        {{/each-in}}\\\\n                                        </ul>\\\\n                                      </li>\\\\n                                    {{/each-in}}\\\\n                              {{/each-in}}                              </div>\\\\n                          </div>\\\"],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,34]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"user_status\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"user_status\\\",[33,35]]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"user_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,21,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[21]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[1,[34,36]],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,37],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.doctor-management.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,38]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"branch\\\",\\\"error\\\",\\\"role\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"level\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"user_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"username\\\",\\\"email_id\\\",\\\"mobile_no\\\",\\\"password\\\",\\\"confirm_password\\\",\\\"employee_code\\\",\\\"action\\\",\\\"imagePreview\\\",\\\"hoverActive\\\",\\\"not\\\",\\\"remove_image\\\",\\\"designation\\\",\\\"branches\\\",\\\"roles\\\",\\\"user_label\\\",\\\"user_order\\\",\\\"user_color\\\",\\\"pres_print\\\",\\\"prescriptionformats\\\",\\\"eq\\\",\\\"rcp_print\\\",\\\"receiptformats\\\",\\\"doctor-level\\\",\\\"id\\\",\\\"user_status\\\",\\\"radioarray\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-management/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-management/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0rwaKjgE\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"user_add\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_name\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\" Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_name\\\",\\\"user_name\\\",\\\"Name\\\",[33,8]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Username \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"username\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"username\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"username\\\",\\\"username\\\",\\\"Username\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"username\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"username\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Email Id \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3  \\\",[52,[33,5,[\\\"email_id\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"email_id\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"email_id\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"email_id\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mobile_no\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Mobile No \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"mobile_no\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",\\\"Mobile No\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"mobile_no\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"employee_code\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Employee Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3  \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"employee_code\\\",\\\"employee_code\\\",\\\"Employee Code\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"employee_code\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"employee_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"showInTimeslot\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Show in Timeslot \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"showInTimeslot\\\"],[14,1,\\\"showInTimeslot\\\"],[15,2,[29,[[36,15]]]],[15,\\\"checked\\\",[52,[28,[37,16],[\\\"1\\\",[33,15]],null],\\\"true\\\"]],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"showInTimeslot\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[3,\\\" for Doctor profile image & designation \\\"],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,5,[\\\"doctor_image\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_image\\\"]],\\\"has-error\\\"],\\\" row\\\"]]],[12],[1,\\\"\\\\n                              \\\"],[3,\\\" Doctor Image \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[14,\\\"for\\\",\\\"doctor_image\\\"],[12],[1,\\\"Profile Image\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"profile-wrapper\\\"],[15,\\\"onmouseenter\\\",[28,[37,17],[[30,0],\\\"showHover\\\"],null]],[15,\\\"onmouseleave\\\",[28,[37,17],[[30,0],\\\"hideHover\\\"],null]],[12],[1,\\\"\\\\n\\\\n                                  \\\"],[3,\\\" Main Circle Image \\\"],[1,\\\"\\\\n\\\"],[41,[33,18],[[[1,\\\"                                    \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[36,18]],[14,0,\\\"profile-pic\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/img/default-profile.jpg\\\"],[14,0,\\\"profile-pic\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                  \\\"],[3,\\\" Hover Overlay \\\"],[1,\\\"\\\\n\\\"],[41,[33,19],[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"overlay\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[33,18]],null],[[[1,\\\"                                    \\\"],[11,\\\"i\\\"],[24,0,\\\"glyphicon glyphicon-camera overlay-icon\\\"],[4,[38,17],[[30,0],\\\"triggerFileInput\\\"],null],[12],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[11,\\\"i\\\"],[24,0,\\\"glyphicon glyphicon-trash overlay-icon remove\\\"],[4,[38,17],[[30,0],\\\"removeImage\\\"],null],[12],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                                  \\\"],[3,\\\" Hidden File Input \\\"],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"accept\\\",\\\"change\\\"],[\\\"file\\\",\\\"doctor_image\\\",\\\"hidden-file-input\\\",\\\"image/*\\\",[28,[37,17],[[30,0],\\\"previewDoctorImage\\\"],null]]]]],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"remove_image\\\",\\\"remove_image\\\",[33,21]]]]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\" Website Designation \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"designation\\\"],[14,0,\\\"col-xs-2 control-label text-right\\\"],[12],[1,\\\"Website Designation\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"value\\\",\\\"id\\\",\\\"name\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"text\\\",[33,22],\\\"designation\\\",\\\"designation\\\",\\\"form-control\\\",\\\"Designation\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Branch \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_branch\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_branch\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,23]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[15,1,[30,6,[\\\"id\\\"]]],[14,3,\\\"user_branch\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"branchHasChanged\\\",[30,6,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"branch\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,6,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_branch\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_branch\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Roles \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_role\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_role\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,24]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_role[]\\\"],[15,1,[29,[[30,8,[\\\"id\\\"]]]]],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"roleHasChanged\\\",[30,8,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_role\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_role\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_type\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Related to Doctor \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"user_type\\\"],[14,1,\\\"user_type\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"doctorHasChanged\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"doctor_show col-xs-8\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_label\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Label\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_label\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_label\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_label\\\",\\\"user_label\\\",\\\"Doctor Label\\\",[33,25]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_label\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,10,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_label\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_order\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Order\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_order\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_order\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"user_order\\\",\\\"user_order\\\",\\\"Doctor Ordering\\\",[33,26]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_order\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,11,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_order\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\"  Added color code html as on  14 Aug Shubh Tiwari \\\"],[1,\\\"\\\\n\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_color\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Color Code\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_color\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_color\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_color\\\",\\\"user_color\\\",\\\"Doctor Color Code\\\",[33,27]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_color\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_color\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pres_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Prescription Format \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"pres_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"pres_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"pres_print\\\"],[15,2,[36,28]],[14,0,\\\"form-control\\\"],[14,1,\\\"pres_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changePrescriptionFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Prescription format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,29]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[52,[28,[37,16],[[30,13,[\\\"id\\\"]],[33,28]],null],\\\"true\\\"]],[15,2,[29,[[30,13,[\\\"id\\\"]]]]],[12],[1,[30,13,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"pres_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,14,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"pres_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"rcp_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Receipt Format\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"rcp_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"rcp_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"rcp_print\\\"],[15,2,[36,30]],[14,0,\\\"form-control\\\"],[14,1,\\\"rcp_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeReceiptFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Receipt format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,31]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[52,[28,[37,16],[[30,15,[\\\"id\\\"]],[33,30]],null],\\\"true\\\"]],[15,2,[29,[[30,15,[\\\"id\\\"]]]]],[12],[1,[30,15,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"rcp_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,16,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"rcp_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor_level\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Doctor Level \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"doctor_level\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_level\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor_level\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"doctor_level\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeDoctorCharges\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor Level\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,32]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,17,[\\\"id\\\"]]]]],[12],[1,[30,17,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[17]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"doctor_level\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,18,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"doctor_level\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[14,1,\\\"doctor-charges-message\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"Note: \\\"],[10,1],[14,0,\\\"doctor-charges-message\\\"],[12],[1,\\\" Only default charges for selected doctor level are shown here. For location specific charges, please visit the doctor level master\\\"],[13],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[14,1,\\\"doctor-charges\\\"],[14,5,\\\"display: none\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" for consultancy fees \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[3,\\\" <div class=\\\\\\\"row\\\\\\\">\\\\n                            <h5 for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</h5>\\\\n                          </div>\\\"],[1,\\\"\\\\n                          \\\"],[3,\\\"<div class=\\\\\\\"form-group row\\\\\\\">\\\\n                          <label for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</label>\\\\n                            <div class=\\\\\\\"col-xs-offset-2  col-xs-8\\\\\\\">\\\\n{{#each-in permissions as |category products|}}\\\\n                                    {{#each-in products as |key product|}}\\\\n                                      <li class=\\\\\\\"userpercate\\\\\\\">\\\\n                                         <input type=\\\\\\\"checkbox\\\\\\\"  name={{product.cat_id}}  onchange={{action (action \\\\\\\"permissionHasChanged\\\\\\\" product.cat_id) value=\\\\\\\"target.checked\\\\\\\"}}> <b>{{key}}</b>\\\\n                                        <b>{{key}}</b> &nbsp;&nbsp;\\\\n                                         <input id=\\\\\\\"on{{product.cat_id}}\\\\\\\"  data-routename={{product.action_name}} data-permission={{product.permission_name}} onchange={{ action (action \\\\\\\"permissionAllow\\\\\\\" product.cat_id) }} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name={{product.cat_id}}  type=\\\\\\\"radio\\\\\\\"  value=\\\\\\\"Allow\\\\\\\" > <label> Allow </label>\\\\n                                         &nbsp;&nbsp;\\\\n                                         <input id=\\\\\\\"off{{product.cat_id}}\\\\\\\" data-routename={{product.action_name}} data-permission={{product.permission_name}} onchange={{ action (action \\\\\\\"permissionDeny\\\\\\\" product.cat_id) }} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name=\\\\\\\"{{product.cat_id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Deny\\\\\\\"><label> Deny </label>\\\\n                                        <ul class=\\\\\\\"userpername\\\\\\\">\\\\n                                        {{#each-in product as |key permission|}}\\\\n                                        {{#if permission.id }}\\\\n                                        <li class=\\\\\\\"peralign\\\\\\\">\\\\n                                          <input type=\\\\\\\"checkbox\\\\\\\"   id={{permission.id}} onchange={{action (action \\\\\\\"permissionHasChanged\\\\\\\" permission.id) value=\\\\\\\"target.checked\\\\\\\"}}>\\\\n                                           <div style=\\\\\\\"float:left; width: 320px;\\\\\\\" class=\\\\\\\"label-title\\\\\\\"> {{permission.full_name}} </div>\\\\n                                        <div class=\\\\\\\"switch-toggle switch-3 switch-candy\\\\\\\">\\\\n\\\\n                                            <input id=\\\\\\\"on{{permission.id}}\\\\\\\" data-routename={{permission.action_name}} data-permission={{permission.permissionName}} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio allow_{{permission.parent_id}}\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\"  type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Allow\\\\\\\">\\\\n                                            <label> Allow </label>\\\\n\\\\n                                            <input id=\\\\\\\"off{{permission.id}}\\\\\\\" data-routename={{permission.action_name}} data-permission={{permission.permissionName}} role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio deny_{{permission.parent_id}}\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Deny\\\\\\\">\\\\n                                                <label> Deny </label>\\\\n\\\\n                                             <input id=\\\\\\\"na{{permission.id}}\\\\\\\" role-data =\\\\\\\"\\\\\\\" class=\\\\\\\"permission_radio\\\\\\\" name=\\\\\\\"{{permission.id}}\\\\\\\" type=\\\\\\\"radio\\\\\\\" value=\\\\\\\"Not Set\\\\\\\">\\\\n                                            <label> Not Set </label>\\\\n                                        </div>\\\\n                                        </li>\\\\n                                        {{/if}}\\\\n                                        {{/each-in}}\\\\n                                        </ul>\\\\n                                      </li>\\\\n                                    {{/each-in}}\\\\n                              {{/each-in}}                              </div>\\\\n                          </div> \\\"],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,33]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"user_status\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"user_status\\\",[33,34]]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"user_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,19,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[19]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[1,[34,35]],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,36],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.doctor-management.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,37]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"branch\\\",\\\"error\\\",\\\"role\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"level\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"user_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"username\\\",\\\"email_id\\\",\\\"mobile_no\\\",\\\"employee_code\\\",\\\"showInTimeslot\\\",\\\"eq\\\",\\\"action\\\",\\\"imagePreview\\\",\\\"hoverActive\\\",\\\"not\\\",\\\"remove_image\\\",\\\"designation\\\",\\\"branches\\\",\\\"roles\\\",\\\"user_label\\\",\\\"user_order\\\",\\\"user_color\\\",\\\"pres_print\\\",\\\"prescriptionformats\\\",\\\"rcp_print\\\",\\\"receiptformats\\\",\\\"doctor-level\\\",\\\"id\\\",\\\"user_status\\\",\\\"radioarray\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-management/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/doctor-management/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"udMa1m2q\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-user-md\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Doctor Level \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor_level\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"doctor_level\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"All Doctors\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9]],null]],null],null,[[[1,\\\"                                                            \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group margin-left-20\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search User \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter User Name\\\",[33,11]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"search_user\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"AddDoctorManagement\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info pull-right\\\",\\\"settings.masters.doctor-management.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\"\\\\n                                                Add User\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Email Id\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"100\\\"],[12],[1,\\\"Mobile No\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140\\\"],[12],[1,\\\"Doctor Level\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"150\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"80\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"Name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"email\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-capitalize\\\"],[12],[1,\\\" \\\"],[1,[30,3,[\\\"dr_level\\\",\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[28,[35,16],[[30,3,[\\\"creation_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\" \\\"],[1,[28,[35,16],[[30,3,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                 \\\"],[41,[28,[37,17],[[30,3,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                                 \\\"],[41,[28,[37,17],[[30,3,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"EditDoctorManagement\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit User\\\",\\\"settings.masters.doctor-management.edit\\\",[30,3,[\\\"user_id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[12],[13],[1,\\\" Edit\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[\\\"RemoveDoctorManagement\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"user_delete\\\",[30,3,[\\\"user_id\\\"]],[30,3,[\\\"Name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash-alt\\\"],[14,\\\"title\\\",\\\"Delete User\\\"],[12],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                                Sorry, No User found.\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,18],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[8,[39,19],null,[[\\\"@times\\\"],[[36,20]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,21],[30,4]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[30,4],\\\"self\\\"],null],[12],[1,[30,4]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                                        \\\"]],[4]]]]],[1,\\\"\\\\n                                                        \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                        <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,22],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,20],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,23]],[1,\\\" - \\\"],[1,[34,24]],[1,\\\" of \\\"],[1,[34,25]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,26]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"level\\\",\\\"user\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"doctor-level\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"users\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/doctor-management/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/dtg/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"DP7KA3hx\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-heartbeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"testgroup\\\"],[14,1,\\\"add_test_group_form\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"parent_group\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"pgroup\\\"],[12],[1,\\\"Parent Group \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"parent_group\\\"],[14,1,\\\"parent_group\\\"],[15,2,[29,[[36,6]]]],[14,0,\\\"form-control\\\"],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"changesParentGroup\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[52,[28,[37,8],[0,[33,9]],null],\\\"true\\\"]],[12],[1,\\\"None (Main Group)\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,12]],null]],null],null,[[[1,\\\"                                                                        \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,8],[[30,1,[\\\"id\\\"]],[33,6]],null],\\\"true\\\"]],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                                \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"group_color\\\"]],\\\"has-error\\\"]]]],[15,5,[29,[\\\"display:\\\",[36,13],\\\";\\\"]]],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"group_color\\\"],[12],[1,\\\"Group Color \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"color\\\",\\\"group_color color_code\\\",\\\"group_color\\\",\\\"Group Color\\\",\\\"group_color\\\",[33,15]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,5,[\\\"group_color\\\"]]],null]],null],null,[[[1,\\\"                                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,16,[\\\"group_color\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"groups_list\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,1,\\\"group_row1\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"group_name\\\"],[12],[1,\\\"Group Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                                                \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"ordering\\\"],[14,1,\\\"ordering1\\\"],[14,2,\\\"1\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                                                    \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control group_name\\\",\\\"groupname1\\\",\\\"Group Name\\\",\\\"group_name[]\\\",[33,17]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,5,[\\\"group_name\\\"]]],null]],null],null,[[[1,\\\"                                                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,16,[\\\"group_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[33,18],0],null],[[[1,\\\"                                                                    \\\"],[10,0],[14,0,\\\"col-xs-1 maxwidth50px\\\"],[12],[1,\\\"\\\\n                                                                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger marginleft5 removeGroupRow sminus\\\"],[14,1,\\\"removeGroupRow1\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-minus-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n                                                                        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-success marginleft5 addMoreRows splus\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[1,[28,[35,14],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,7],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,19]]]]],[1,\\\"\\\\n                                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                            \\\"],[1,[28,[35,14],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,7],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,19]]]]],[1,\\\"\\\\n                                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                            \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,16,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,18]]]]],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"page_on\\\",\\\"page_on\\\",[33,20]]]]],[1,\\\"\\\\n                                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[6,[39,21],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.dtg.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[34,22]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"list\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"parent_id\\\",\\\"action\\\",\\\"eq\\\",\\\"parent_group\\\",\\\"each\\\",\\\"-track-array\\\",\\\"groupList\\\",\\\"showColor\\\",\\\"input\\\",\\\"group_color\\\",\\\"vali_errors\\\",\\\"group_name\\\",\\\"id\\\",\\\"status\\\",\\\"current_page\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/dtg/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/dtg/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vDwiutRN\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Edit\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/dtg/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/dtg/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5Xm3BWah\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-heartbeat\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                    \\\"],[10,0],[14,0,\\\"col-md-12 table-responsivea\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,9,[\\\"query_string\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search DTG\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search DTG\\\",[33,11]]]]],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,9,[\\\"query_string\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-md-1 text-left\\\"],[12],[1,\\\"\\\\n                                                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-md-5 text-left\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"AddDTG\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.dtg.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" Add DTG \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Group Name\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"250px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,\\\"tr\\\"],[15,1,[29,[\\\"group_\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                            \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"EditDTG\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\",\\\"models\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.dtg.edit\\\",[28,[37,18],[[30,2,[\\\"id\\\"]],[33,19]],null]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[14,\\\"title\\\",\\\"Edit DTG\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[12],[1,\\\" Edit\\\"],[13]],[]]]]],[1,\\\"\\\\n                                                                \\\"],[10,\\\"input\\\"],[14,3,\\\"page_on\\\"],[15,2,[29,[[36,19]]]],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"RemoveDTG\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete DTG\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]],[33,19]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                            Sorry, No Record found.\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,20],[[33,21]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,20],[[33,21]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,21],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,22],[[33,19],[33,23]],null]],null]],null],null,[[[41,[28,[37,17],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                                \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,19],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                        \\\"],[1,[30,3]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,24],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,24],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,24],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,23],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,25]],[1,\\\" - \\\"],[1,[34,26]],[1,\\\" of \\\"],[1,[34,27]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[34,28]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"list\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"dtg_lists\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"array\\\",\\\"current_page\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/dtg/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/form/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5uFzy/UT\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-life-ring\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Form Name\\\",\\\"name\\\",[33,5]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,3,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,8,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"form_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"form_code\\\"],[12],[1,\\\"Form Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"form_code\\\",\\\"Enter Form Code\\\",\\\"form_code\\\",[33,9]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,3,[\\\"form_code\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,8,[\\\"form_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"description\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"description\\\"],[12],[1,\\\"Description  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"value\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"cols\\\",\\\"rows\\\"],[[33,11],\\\"form-control\\\",\\\"description\\\",\\\"description\\\",\\\"Enter Form Description\\\",\\\"80\\\",\\\"4\\\"]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,3,[\\\"description\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,8,[\\\"description\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,4],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,13]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,4],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,13]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,3,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,8,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,14]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,15],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.form.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"submit\\\",[33,1]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"if\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"form_code\\\",\\\"textarea\\\",\\\"description\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/form/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/form/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aoyhUMPY\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/form/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/form/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"J9gorOEH\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/form/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/form/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7sC+38gu\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-life-ring\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,5],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Form\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Form\\\",[33,7]]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,8]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"creation_date_on\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"modification_date\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,10],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,10],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[6,[39,11],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.system.edit\\\",[33,12,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Form\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\" \\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,14],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,13],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,14],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,13],[[30,0],\\\"showPagination\\\",[33,14],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[8,[39,15],null,[[\\\"@times\\\"],[[36,16]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                               \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,10],[[33,17],[30,3]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,13],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,[30,3]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                            \\\"]],[3]]]]],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,13],[[30,0],\\\"showPagination\\\",[33,18],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,13],[[30,0],\\\"showPagination\\\",[33,16],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,19]],[1,\\\" - \\\"],[1,[34,20]],[1,\\\" of \\\"],[1,[34,21]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"flash\\\",\\\"system\\\",\\\"time\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"forms\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"form\\\",\\\"action\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/form/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"J1fxOwv3\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    Masters\\\\n                    \\\"],[46,[28,[37,1],[[33,2]],null],null,null,null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"component\\\",\\\"-outlet\\\",\\\"masters\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"z78KoWDh\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/instruction/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ec0BA8jL\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                           \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                 \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"instruction_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"instruction_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"instruction_name\\\"],[12],[1,\\\"Instruction \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"instruction_name\\\",\\\"Enter medicine instruction\\\",\\\"instruction_name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"instruction_name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"instruction_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                              \\\"],[13],[1,\\\"\\\\n                                           \\\"],[13],[1,\\\"\\\\n\\\\n                                       \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,13],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,14]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,13],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,14]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,15]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,16],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.instruction.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,17]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"instruction_name\\\",\\\"vali_errors\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/instruction/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/instruction/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"TMxGkdPA\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-info\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"AddDosage\\\",[33,3]],null],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"medicine_btn\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.medicines.instruction.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Instructions \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,1,\\\"instructions\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"ADDED DATE\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"UPDATED DATE\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,12],[[30,2,[\\\"creation_date_on\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,12],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,13],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,13],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"EditDosage\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Instruction\\\",\\\"settings.masters.medicines.instruction.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"RemoveDosage\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[15,\\\"onClick\\\",[28,[37,14],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"instruction_name\\\"]]],null]],[14,0,\\\"btn btn-danger btn-xs\\\"],[14,\\\"title\\\",\\\"Delete Instruction\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,15]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"medicine\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"medicine_instruction\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/instruction/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/medicine/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vUvkCY4T\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                 \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Medicine Name\\\",\\\"name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"pricegroup\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pricegroup\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Price Groups \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,13]],null]],null],null,[[[1,\\\"                                                \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"pricegroup\\\",[30,3,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[28,[37,14],[[30,0],\\\"setPricegroup\\\",[30,3,[\\\"id\\\"]],[30,3,[\\\"name\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\\n                                                    \\\\n\\\"]],[3]],null],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"pricegroup\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"pricegroup\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"pricegroup1\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[3,\\\"<label for=\\\\\\\"pricegroup\\\\\\\" class=\\\\\\\"col-xs-4 text-right control-label\\\\\\\">Potency and Dilution  <span class=\\\\\\\"required\\\\\\\">*</span> </label>\\\"],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-4 col-xs-6 pricegroup-section\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[41,[30,5,[\\\"0\\\",\\\"potency\\\"]],[[[1,\\\"                                                \\\"],[10,0],[14,0,\\\"col-xs-5 pricegroup-potency\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"card\\\"],[15,\\\"data-group\\\",[29,[[30,5,[\\\"group_id\\\"]]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"header\\\"],[12],[1,[30,5,[\\\"group_name\\\"]]],[13],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[30,5,[\\\"0\\\",\\\"potency\\\"]]],null],null,[[[42,[28,[37,6],[[28,[37,6],[[30,6]],null]],null],null,[[[1,\\\"                                                            \\\"],[10,0],[15,0,[29,[\\\"row samepotency cw-potency\\\",[30,8,[\\\"id\\\"]],\\\" cw-group\\\",[30,5,[\\\"group_id\\\"]]]]],[15,1,[29,[[30,8,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n\\\\n                                                                \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[3,\\\" This is removed from below line id=\\\\\\\"{{potencypp.id}}\\\\\\\"\\\"],[1,\\\"\\\\n                                                                    \\\"],[10,\\\"input\\\"],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"data-groupid\\\",[29,[[30,5,[\\\"group_id\\\"]]]]],[14,3,\\\"potency_name\\\"],[15,0,[29,[\\\"potency\\\",[30,8,[\\\"id\\\"]],\\\"_group\\\",[30,5,[\\\"group_id\\\"]],\\\" potency\\\",[30,8,[\\\"id\\\"]],\\\"_group_potency\\\",[30,5,[\\\"group_id\\\"]],\\\" group\\\",[30,5,[\\\"group_id\\\"]],\\\" potency\\\",[30,8,[\\\"id\\\"]],\\\" groupcheck\\\",[30,5,[\\\"group_id\\\"]],\\\" unselected-potency\\\"]]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[28,[37,14],[[30,0],\\\"getClearPotency\\\",[30,8,[\\\"id\\\"]],[30,5,[\\\"group_id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\" \\\"],[10,1],[14,0,\\\"text-uppercase\\\"],[14,\\\"title\\\",\\\"Dilution\\\"],[12],[1,\\\" (\\\"],[1,[30,8,[\\\"dilution\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n                                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                                                \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[30,5,[\\\"0\\\",\\\"form\\\"]]],null],null,[[[42,[28,[37,6],[[28,[37,6],[[30,9]],null]],null],null,[[[1,\\\"                                                                   \\\\n                                                                    \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n                                                                      \\\"],[10,\\\"input\\\"],[15,\\\"data-gid\\\",[29,[[30,5,[\\\"group_id\\\"]]]]],[15,\\\"data-fcode\\\",[29,[[30,11,[\\\"form_code\\\"]]]]],[15,\\\"data-id\\\",[29,[[30,11,[\\\"id\\\"]]]]],[14,3,\\\"form_name\\\"],[15,2,[29,[[30,11,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[28,[37,14],[[30,0],\\\"getClearFormCheckbox\\\",[30,5,[\\\"group_id\\\"]],[30,8,[\\\"id\\\"]],[30,11,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[15,0,[29,[\\\"potency\\\",[30,8,[\\\"id\\\"]],\\\"_group\\\",[30,5,[\\\"group_id\\\"]],\\\" potencyform\\\",[30,8,[\\\"id\\\"]],\\\" \\\",[30,8,[\\\"id\\\"]],[30,11,[\\\"id\\\"]],\\\" potency\\\",[30,8,[\\\"id\\\"]],\\\"_group\\\",[30,5,[\\\"group_id\\\"]],\\\"_form\\\",[30,11,[\\\"id\\\"]],\\\" potency\\\",[30,8,[\\\"id\\\"]],\\\"_group_form\\\",[30,5,[\\\"group_id\\\"]],\\\" groupcheck\\\",[30,5,[\\\"group_id\\\"]]]]],[14,\\\"checked\\\",\\\"checked\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null]],[9,10]],null],[1,\\\"                                                                  \\\\n                                                                \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null]],[6,7]],null],[1,\\\"                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\\n\\\"]],[]],null]],[5]],null],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"pricegroup1\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"pricegroup1\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                       \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,14],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,14],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,17]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,13,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,18]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,19],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.medicine.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,20]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"pricegroup\\\",\\\"error\\\",\\\"item\\\",\\\"potency\\\",\\\"key\\\",\\\"potencypp\\\",\\\"from\\\",\\\"key\\\",\\\"from_value\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"vali_errors\\\",\\\"pricegroups\\\",\\\"action\\\",\\\"selectedPotency\\\",\\\"-each-in\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/medicine/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/medicine/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/SZ/9VWH\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-3 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-9 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h5\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\" Medicine Masters \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12 paddingright40 table-responsive\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,1],[14,0,\\\"btn btn-primary btn-xs float-right\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-plus-sign\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\" \\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-hover\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Ounce\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Globule\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Powder\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Liquid\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"125px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Common Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                 \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                           \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Common Meds/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"M/T\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"master-menu\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/medicine/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/medicine/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"oDeHrR5G\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                           \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"AddMedicine\\\",[33,3]],null],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"medicine_btn\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.medicines.medicine.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Medicine \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,1,\\\"singlemedicine\\\"],[14,0,\\\"table table-striped table-bordered dt-responsive\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Group\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"200px\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"MedicineViewDetails\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-xs\\\"],[15,\\\"data-medicine\\\",[29,[[30,2,[\\\"id\\\"]]]]],[14,1,\\\"medicineDetails\\\"],[14,\\\"title\\\",\\\"Medicine Details\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" View Details \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"EditMedicine\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Medicine\\\",\\\"settings.masters.medicines.medicine.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"RemoveMedicine\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[15,\\\"onClick\\\",[28,[37,13],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null]],[14,0,\\\"btn btn-danger btn-xs\\\"],[14,\\\"title\\\",\\\"Delete Medicine\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,14]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"medicine\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"single_medicine\\\",\\\"eq\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/medicine/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/mix/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"itHQtG8k\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n           \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-briefcase-medical\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"mix_medicine_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"mix_medicine_name\\\"],[12],[1,\\\"Mix Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mix_medicine_name\\\",\\\"off\\\",\\\"Enter mix medicine name\\\",\\\"mix_medicine_name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"mix_medicine_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"mix_medicine_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"Medicines\\\"],[12],[1,\\\" Medicines \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 text-center\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Potency \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 text-center\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Dilution \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,1,\\\"mixmedicineAdd1\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"medicine_mixture1\\\"],[12],[1,\\\"Med \\\"],[10,1],[14,0,\\\"srnoItem\\\"],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 search-box\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[3,\\\" In this below line we have added the medicine_status  attribute to avoid entering unnessary\\\\n                             text in input box , Rahul Khan, 09 Aug 2019  \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control textinput\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,1,\\\"medicine_mixture-1\\\"],[14,\\\"medicine_status\\\",\\\"notset\\\"],[14,\\\"placeholder\\\",\\\"Search Med 1\\\"],[14,3,\\\"medicine_mixture[]\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,2],[14,1,\\\"results1\\\"],[12],[13],[1,\\\"\\\\n                               \\\"],[10,1],[14,0,\\\"mix-hightlight1\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"medicine_mixture-1\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                             \\\"],[3,\\\" <select name='mix_medicine_mixture_form[]' id=\\\\\\\"mix_medicine_mixture_form-1\\\\\\\"\\\\n                                class=\\\\\\\"form-control\\\\\\\">\\\\n                                <option value=\\\\\\\"\\\\\\\">Select Form</option>\\\\n                              </select>\\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_potency[]\\\"],[14,1,\\\"mix_medicine_mixture_potency-1\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_dilution[]\\\"],[14,1,\\\"mix_medicine_mixture_dilution-1\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[3,\\\"Rahul Khan \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"margin-right:12px;\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,1,\\\"mixMedicineRowClear\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\"<button class=\\\\\\\"btn btn-danger\\\\\\\" type=\\\\\\\"button\\\\\\\"><i\\\\n                                  class=\\\\\\\"fa fa-trash\\\\\\\"></i> Delete</button> \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,1,\\\"mixMedicineRow\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[14,\\\"title\\\",\\\"Remove Med 1\\\"],[12],[13],[1,\\\" Delete \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\"This text in removed from the above button element\\\\n                             onclick={{action \\\\\\\"removeRow\\\\\\\" '1' }}\\\\n                             \\\"],[1,\\\"\\\\n\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"form-group row\\\"],[14,1,\\\"mixmedicineAdd2\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"medicine_mixture1\\\"],[12],[1,\\\"Med \\\"],[10,1],[14,0,\\\"srnoItem\\\"],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 search-box\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control textinput\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[14,1,\\\"medicine_mixture-2\\\"],[14,\\\"medicine_status\\\",\\\"notset\\\"],[14,\\\"placeholder\\\",\\\"Search Med 2\\\"],[14,3,\\\"medicine_mixture[]\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,2],[14,1,\\\"results2\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,1],[14,0,\\\"mix-hightlight2\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"medicine_mixture-2\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[3,\\\"<select name='mix_medicine_mixture_form[]' id=\\\\\\\"mix_medicine_mixture_form-2\\\\\\\"\\\\n                                class=\\\\\\\"form-control\\\\\\\">\\\\n                                <option value=\\\\\\\"\\\\\\\">Select Form</option>\\\\n                              </select>\\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_potency[]\\\"],[14,1,\\\"mix_medicine_mixture_potency-2\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_dilution[]\\\"],[14,1,\\\"mix_medicine_mixture_dilution-2\\\"],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"margin-right:12px;\\\"],[14,\\\"data-row\\\",\\\"2\\\"],[14,1,\\\"mixMedicineRowClear\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\"<button class=\\\\\\\"btn btn-danger\\\\\\\" type=\\\\\\\"button\\\\\\\"><i\\\\n                                  class=\\\\\\\"fa fa-trash\\\\\\\"></i> Delete</button>\\\"],[1,\\\"\\\\n                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-row\\\",\\\"2\\\"],[14,1,\\\"mixMedicineRow\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[14,\\\"title\\\",\\\"Remove Med 2\\\"],[12],[13],[1,\\\" Delete \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\"This text in removed from the above button element\\\\n                              onclick={{action \\\\\\\"removeRow\\\\\\\" '2' }}\\\\n                             \\\"],[1,\\\"\\\\n\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 text-right\\\"],[12],[1,\\\"\\\\n                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"addMoreRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-square-o\\\"],[12],[13],[1,\\\" Add Medicine\\\"],[13],[3,\\\" Rahul Khan \\\"],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row  \\\",[52,[33,9,[\\\"mix_forms\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 text-right\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" Forms \\\"],[13],[1,\\\" \\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-offset-xs-1 col-xs-7 \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"mixforms\\\"],[14,1,\\\"mixforms\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"mix_forms\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                            \\\"],[13],[1,\\\"                     \\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 cw-margintop7\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,13],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,14]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,13],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,14]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,15]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,16],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.mix.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,17]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"mix_medicine_name\\\",\\\"vali_errors\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/mix/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/mix/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Kn5PA65f\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-briefcase-medical\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"mix_medicine_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"mix_medicine_name\\\"],[12],[1,\\\"Mix Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mix_medicine_name\\\",\\\"Enter mix medicine name\\\",\\\"mix_medicine_name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"mix_medicine_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"mix_medicine_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"Medicines\\\"],[12],[1,\\\" Medicines \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 text-center\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Potency \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 text-center\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Dilution \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\" \\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,13]],null]],null],null,[[[1,\\\"                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[15,1,[29,[\\\"mixmedicineAdd\\\",[28,[37,14],[[30,4]],null]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[15,\\\"for\\\",[29,[\\\"medicine_mixture\\\",[28,[37,14],[[30,4]],null]]]],[12],[1,\\\"Med \\\"],[10,1],[14,0,\\\"srnoItem\\\"],[12],[1,[28,[35,14],[[30,4]],null]],[13],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 search-box\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[15,\\\"data-med\\\",[29,[[30,3,[\\\"mId\\\"]]]]],[15,\\\"data-poten\\\",[29,[[30,3,[\\\"pId\\\"]]]]],[14,0,\\\"form-control textinput\\\"],[15,\\\"data-medicine\\\",[29,[[30,3,[\\\"mixName\\\"]],\\\", \\\",[30,3,[\\\"potencyname\\\"]],\\\" (\\\",[30,3,[\\\"dilution\\\"]],\\\")\\\"]]],[15,\\\"data-potencyname\\\",[29,[[30,3,[\\\"potencyname\\\"]]]]],[15,\\\"data-dilution\\\",[29,[[30,3,[\\\"dilution\\\"]]]]],[14,\\\"autocomplete\\\",\\\"off\\\"],[15,1,[29,[\\\"medicine_mixture-\\\",[28,[37,14],[[30,4]],null]]]],[15,\\\"placeholder\\\",[29,[\\\"Search Med \\\",[28,[37,14],[[30,4]],null]]]],[14,3,\\\"medicine_mixture[]\\\"],[15,2,[29,[[30,3,[\\\"mixName\\\"]]]]],[14,\\\"medicine_status\\\",\\\"set\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,2],[15,1,[29,[\\\"results\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                               \\\"],[10,1],[15,0,[29,[\\\"mix-hightlight\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_potency[]\\\"],[15,2,[29,[[30,3,[\\\"potencyname\\\"]]]]],[15,1,[29,[\\\"mix_medicine_mixture_potency-\\\",[28,[37,14],[[30,4]],null]]]],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"mix_medicine_mixture_dilution[]\\\"],[15,2,[29,[[30,3,[\\\"dilution\\\"]]]]],[15,1,[29,[\\\"mix_medicine_mixture_dilution-\\\",[28,[37,14],[[30,4]],null]]]],[14,\\\"disabled\\\",\\\"disabled\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"margin-right:12px;\\\"],[15,\\\"data-row\\\",[29,[[28,[37,14],[[30,4]],null]]]],[14,1,\\\"mixMedicineRowClear\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,1,\\\"mixMedicineRow\\\"],[15,\\\"data-row\\\",[29,[[28,[37,14],[[30,4]],null]]]],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Delete\\\"],[13],[1,\\\"\\\\n                                  \\\"],[3,\\\"this below code in removed form the abve line\\\\n                                  onclick={{action \\\\\\\"removeRow\\\\\\\" increment index }}\\\\n                                   \\\"],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"                          \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 text-right\\\"],[12],[1,\\\"\\\\n                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"addMoreRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-square-o\\\"],[12],[13],[1,\\\" Add Medicine\\\"],[13],[3,\\\" Rahul Khan \\\"],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row  \\\",[52,[33,9,[\\\"mix_forms\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 text-right\\\"],[12],[1,\\\"\\\\n                             \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\" Forms \\\"],[13],[1,\\\" \\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-offset-xs-1 col-xs-7 \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"mixforms\\\"],[14,1,\\\"mixforms\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"mix_forms\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                            \\\"],[13],[1,\\\"                     \\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 cw-margintop7\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,16]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,16]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,17]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.mix.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-warning displaynone\\\"],[24,1,\\\"getformbuttom\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"getmixForms\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,19]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"medicine\\\",\\\"index\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"mix_medicine_name\\\",\\\"vali_errors\\\",\\\"mixture_list\\\",\\\"increment\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/mix/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/mix/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"qTADsoIe\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-3 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-9 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h5\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-medkit\\\"],[12],[13],[1,\\\" Mix Masters \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12 paddingright40 table-responsive\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,1],[14,0,\\\"btn btn-primary btn-xs float-right\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-plus-sign\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\" \\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-hover\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Ounce\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Globule\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Powder\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Liquid\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"125px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Common Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                               \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                           \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Common Meds/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"M/T\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"master-menu\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/mix/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/mix/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"pl/lLErU\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                           \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-briefcase-medical\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"AddMix\\\",[33,3]],null],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"medicine_btn\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.medicines.mix.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Mix Medicine \\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,1,\\\"mixmedicine\\\"],[14,0,\\\"table table-striped table-bordered dt-responsive\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Mix Medicine Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Mixture Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Potency\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                           \\\"],[3,\\\" <th>Rate</th>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"240px\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"medicineMixName\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[3,\\\"<td>{{medicine.name}}</td>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"MixViewDetails\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-xs\\\"],[15,\\\"data-medicine\\\",[29,[[30,2,[\\\"id\\\"]]]]],[14,\\\"`\\\",\\\"\\\"],[14,1,\\\"mixmedicineDetails\\\"],[14,\\\"title\\\",\\\"Mix Medicine Details\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" View Details \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"EditMix\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Medicine\\\",\\\"settings.masters.medicines.mix.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"RemoveMix\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[15,\\\"onClick\\\",[28,[37,13],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"medicineMixName\\\"]]],null]],[14,0,\\\"btn btn-danger btn-xs\\\"],[14,\\\"title\\\",\\\"Delete Medicine\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,14]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"medicine\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"mix_medicine\\\",\\\"eq\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/mix/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/template/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"j3TsfHxY\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n             \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"message\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"template_form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"template_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_name\\\"],[12],[1,\\\"Template Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"off\\\",\\\"template_name\\\",\\\"Enter template name\\\",\\\"template_name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                               \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[41,[33,12,[\\\"medicineTempName\\\"]],[[[1,\\\" The template name has already been taken.\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"Medicines\\\"],[12],[1,\\\" Medicine/Mix \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Form \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Instruction \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"template_mixture_no\\\"]],\\\"has-error\\\"]]]],[14,1,\\\"templateAdd1\\\"],[12],[1,\\\"\\\\n                              \\\"],[3,\\\" checkboax start \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_checkbox-1\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"width:auto; margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"input\\\"],[14,0,\\\"check\\\"],[14,1,\\\"template_checkbox-1\\\"],[14,\\\"data-id\\\",\\\"1\\\"],[14,3,\\\"template_checkbox\\\"],[14,2,\\\"1\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" checkboax end\\\"],[1,\\\"\\\\n                              \\\"],[3,\\\" serial no start \\\"],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,5,\\\"width:auto\\\"],[14,\\\"for\\\",\\\"medicine_mixture1\\\"],[12],[1,\\\"Med \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1 search-box\\\"],[14,5,\\\"margin-right:12px; width:50px\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"style\\\",\\\"autocomplete\\\",\\\"name\\\",\\\"id\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control srnoItem\\\",\\\"width: 74px;\\\",\\\"off\\\",\\\"template_mixture_no[]\\\",\\\"template_mixture_no-1\\\",\\\"1\\\"]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_mixture_no\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"template_mixture_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,1],[14,0,\\\"serial-hightlight1\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" serial no end \\\"],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine name start \\\"],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-2 search-box\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"autocomplete\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control textinput\\\",\\\"off\\\",\\\"template_mixture-1\\\",\\\"Search Med 1\\\",\\\"template_mixture[]\\\",[33,13]]]]],[1,\\\"\\\\n                                \\\"],[10,2],[14,1,\\\"results1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_mixture\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"template_mixture\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,1],[14,0,\\\"medicine-hightlight1\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine name end \\\"],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine form start \\\"],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"select\\\"],[14,3,\\\"template_mixture_form[]\\\"],[14,1,\\\"template_mixture_form-1\\\"],[14,0,\\\"form-control medicine_form\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Form\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,1],[14,0,\\\"form-hightlight1\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                               \\\"],[3,\\\" medicine form end \\\"],[1,\\\"\\\\n                               \\\"],[3,\\\" medicine instruction start \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"template_medicine_instruction[]\\\"],[14,1,\\\"template_medicine_instruction-1\\\"],[14,0,\\\"form-control cwareinstruction-1 cware_other iother-1\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[12],[1,[30,5,[\\\"instruction_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_medicine_instruction\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"template_medicine_instruction\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                               \\\"],[10,1],[14,0,\\\"instruction-hightlight1\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine instruction end \\\"],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine clear and delete button start \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"margin-right:12px;\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,1,\\\"templateMedicineRowClear\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[14,\\\"data-row\\\",\\\"1\\\"],[14,1,\\\"tempMedicineRow\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Delete\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[3,\\\"This text in removed from the above button element\\\\n                             onclick={{action \\\\\\\"removeRow\\\\\\\" '1' }}\\\\n                             \\\"],[1,\\\"\\\\n                            \\\"],[3,\\\" medicine clear and delete button end \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3 text-right\\\"],[12],[1,\\\"\\\\n                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"addMoreRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-square-o\\\"],[12],[13],[1,\\\" Add Medicine\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"template_pharmacy_instruction\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_pharmacy_instruction\\\"],[12],[1,\\\"\\\\n                              Pharmacy Instruction  \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,16],null,[[\\\"cols\\\",\\\"rows\\\",\\\"name\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"6\\\",\\\"template_pharmacy_instruction\\\",\\\"template_pharmacy_instruction\\\",\\\"form-control\\\",\\\"Enter Pharmacy Instruction\\\",[33,17]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_pharmacy_instruction\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"template_pharmacy_instruction\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 cw-margintop7\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,18]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,15],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,18]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-lg-9\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\" Combo Prescription\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,19]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,20],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.template.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"addInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"close\\\"],[24,\\\"data-dismiss\\\",\\\"modal\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"closeBigScreenModal\\\"],null],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Add Instruction\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"instruction_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"instruction_name\\\"],[12],[1,\\\"Instruction \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"instruction_name\\\",\\\"off\\\",\\\"Enter medicine instruction\\\",\\\"instruction_name\\\",[33,21]]]]],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n\\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwTemplateComboInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"tempdosageerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"template_dosage_instructionForm\\\"],[4,[38,15],[[30,0],\\\"templateInstructionSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"selectedtemplatedosage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_dosage_instruction\\\"],[12],[1,\\\"Dosage Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,16],null,[[\\\"cols\\\",\\\"rows\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"80\\\",\\\"3\\\",\\\"template_dosage_instruction\\\",\\\"off\\\",\\\"form-control\\\",\\\"Enter Pharmacy Instruction\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Other Instruction popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"OtherInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Other Instruction\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"othererror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"other_instructionForm\\\"],[4,[38,15],[[30,0],\\\"OtherInstructionSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"otherinstructionid\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"other_instruction\\\"],[12],[1,\\\"Other Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"other_instruction\\\",\\\"form-control\\\",\\\"Enter Other Instruction\\\",\\\"off\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,22]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"instruction\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"template_name\\\",\\\"vali_errors\\\",\\\"medicine_mixture-1\\\",\\\"instruction_list\\\",\\\"action\\\",\\\"textarea\\\",\\\"template_pharmacy_instruction\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"instruction_name\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/template/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/template/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"lid3OwVy\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"message\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"template_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_name\\\"],[12],[1,\\\"Template Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"template_name\\\",\\\"Enter template name\\\",\\\"template_name\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[41,[33,12,[\\\"medicineTempName\\\"]],[[[1,\\\" The template name has already been taken.\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"Medicines\\\"],[12],[1,\\\" Medicine/Mix \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Form \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,\\\"for\\\",\\\"Form\\\"],[12],[1,\\\" Instruction \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,13]],null]],null],null,[[[1,\\\"                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[15,1,[29,[\\\"templateAdd\\\",[28,[37,14],[[30,4]],null]]]],[12],[1,\\\"\\\\n                             \\\"],[3,\\\" checkboax start \\\"],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[15,\\\"for\\\",[29,[\\\"template_checkbox-\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"width:auto; margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,0,\\\"check\\\"],[15,1,[29,[\\\"template_checkbox-\\\",[28,[37,14],[[30,4]],null]]]],[15,\\\"data-id\\\",[29,[[28,[37,14],[[30,4]],null]]]],[14,3,\\\"template_checkbox\\\"],[15,2,[29,[[28,[37,14],[[30,4]],null]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                             \\\"],[3,\\\" checkboax end\\\"],[1,\\\"\\\\n                             \\\"],[3,\\\" serial no start \\\"],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-1 text-right control-label\\\"],[14,5,\\\"width:auto\\\"],[14,\\\"for\\\",\\\"template_mixture_no1\\\"],[12],[1,\\\"Med \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1 search-box\\\"],[14,5,\\\"margin-right:12px; width:50px\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[14,3,\\\"template_mixture_no[]\\\"],[14,0,\\\"form-control srnoItem\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[15,1,[29,[\\\"template_mixture_no-\\\",[28,[37,14],[[30,4]],null]]]],[15,2,[29,[[30,3,[\\\"mNumber\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                 \\\"],[10,1],[15,0,[29,[\\\"serial-hightlight\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                             \\\"],[3,\\\" serial no end \\\"],[1,\\\"\\\\n                             \\\"],[3,\\\" medicine name start \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2 search-box\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"input\\\"],[15,\\\"data-type\\\",[29,[[30,3,[\\\"datatype\\\"]]]]],[15,\\\"data-med\\\",[29,[[30,3,[\\\"mId\\\"]]]]],[15,\\\"data-poten\\\",[29,[[30,3,[\\\"pId\\\"]]]]],[14,\\\"required\\\",\\\"required\\\"],[14,0,\\\"form-control textinput\\\"],[14,\\\"autocomplete\\\",\\\"off\\\"],[15,1,[29,[\\\"template_mixture-\\\",[28,[37,14],[[30,4]],null]]]],[15,\\\"placeholder\\\",[29,[\\\"Search Med \\\",[28,[37,14],[[30,4]],null]]]],[14,3,\\\"template_mixture[]\\\"],[15,2,[29,[[30,3,[\\\"mixName\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[10,2],[15,1,[29,[\\\"results\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                               \\\"],[10,1],[15,0,[29,[\\\"medicine-hightlight\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                             \\\"],[3,\\\" medicine name end \\\"],[1,\\\"\\\\n                              \\\"],[3,\\\" medicine form start \\\"],[1,\\\"\\\\n                        \\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,3,[\\\"datatype\\\"]],\\\"mix\\\"],null],[[[1,\\\"                              \\\"],[10,\\\"select\\\"],[14,3,\\\"template_mixture_form[]\\\"],[15,1,[29,[\\\"template_mixture_form-\\\",[28,[37,14],[[30,4]],null]]]],[15,0,[29,[\\\"form-control mix_medicine_\\\",[30,3,[\\\"mId\\\"]],\\\" medicine_form\\\"]]],[14,\\\"required\\\",\\\"required\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"gId\\\"]],\\\"-\\\",[30,3,[\\\"fcode\\\"]],\\\"-\\\",[30,3,[\\\"fname\\\"]]]]],[12],[1,\\\"Select Form\\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                               \\\\n\\\"],[41,[28,[37,15],[[30,3,[\\\"datatype\\\"]],\\\"single\\\"],null],[[[1,\\\"                              \\\"],[10,\\\"select\\\"],[14,3,\\\"template_mixture_form[]\\\"],[15,1,[29,[\\\"template_mixture_form-\\\",[28,[37,14],[[30,4]],null]]]],[15,0,[29,[\\\"form-control single_medicine_\\\",[30,3,[\\\"mId\\\"]],\\\"_\\\",[30,3,[\\\"pId\\\"]],\\\" medicine_form\\\"]]],[14,\\\"required\\\",\\\"required\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"gId\\\"]],\\\"-\\\",[30,3,[\\\"fcode\\\"]],\\\"-\\\",[30,3,[\\\"fname\\\"]]]]],[12],[1,\\\"Select Form\\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                               \\\"],[10,1],[15,0,[29,[\\\"form-hightlight\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                           \\\\n                           \\\\n                            \\\"],[3,\\\" medicine form end \\\"],[1,\\\"\\\\n                            \\\"],[3,\\\" medicine instruction start \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[14,5,\\\"margin-right:12px;\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"template_medicine_instruction[]\\\"],[15,1,[29,[\\\"template_medicine_instruction-\\\",[28,[37,14],[[30,4]],null]]]],[15,0,[29,[\\\"form-control cwareinstruction-\\\",[28,[37,14],[[30,4]],null],\\\" cware_other iother-\\\",[28,[37,14],[[30,4]],null]]]],[14,\\\"required\\\",\\\"required\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Instruction\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,16]],null]],null],null,[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,5,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,17],[[30,5,[\\\"id\\\"]],[30,3,[\\\"insId\\\"]]],null]],[12],[1,\\\"\\\\n                                  \\\"],[1,[30,5,[\\\"instruction_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[41,[30,3,[\\\"oName\\\"]],[[[1,\\\"                                \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,3,[\\\"oName\\\"]]]]],[15,\\\"selected\\\",[28,[37,15],[[30,3,[\\\"oName\\\"]],[30,3,[\\\"oName\\\"]]],null]],[12],[1,[30,3,[\\\"oName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                               \\\"],[10,1],[15,0,[29,[\\\"instruction-hightlight\\\",[28,[37,14],[[30,4]],null]]]],[12],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                             \\\"],[3,\\\" medicine instruction end \\\"],[1,\\\"\\\\n                            \\\"],[3,\\\" medicine clear and delete button start \\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-default\\\"],[14,5,\\\"margin-right:12px;\\\"],[15,\\\"data-row\\\",[29,[[28,[37,14],[[30,4]],null]]]],[14,1,\\\"templateMedicineRowClear\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-eraser\\\"],[12],[13],[1,\\\" Clear\\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[15,\\\"title\\\",[29,[\\\"Remove Med \\\",[28,[37,14],[[30,4]],null]]]],[14,1,\\\"tempMedicineRow\\\"],[15,\\\"data-row\\\",[29,[[28,[37,14],[[30,4]],null]]]],[15,\\\"onclick\\\",[28,[37,18],[[30,0],\\\"removeRow\\\",[33,14],[30,4]],null]],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-trash\\\"],[12],[13],[1,\\\" Delete\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                             \\\"],[3,\\\" medicine clear and delete button end \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"                          \\\"],[10,0],[14,1,\\\"addedRows\\\"],[12],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3 text-right\\\"],[12],[1,\\\"\\\\n                              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,18],[[30,0],\\\"addMoreRows\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Medicine\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"template_pharmacy_instruction\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_pharmacy_instruction\\\"],[12],[1,\\\"\\\\n                              Pharmacy Instruction \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,19],null,[[\\\"cols\\\",\\\"rows\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"80\\\",\\\"6\\\",\\\"template_pharmacy_instruction\\\",\\\"form-control\\\",\\\"Enter Pharmacy Instruction\\\",[33,20]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"template_pharmacy_instruction\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"template_pharmacy_instruction\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4 cw-margintop7\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,18],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,21]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,10],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,18],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,21]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-lg-9\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-dark btn-sm combo-prescription\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-comments\\\"],[12],[13],[1,\\\" Combo Prescription\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,22]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,23],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.medicines.template.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,18],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" Combo Prescription popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"cwTemplateComboInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Combo Prescription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"tempdosageerror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"template_dosage_instructionForm\\\"],[4,[38,18],[[30,0],\\\"templateInstructionSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"selectedtemplatedosage\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"template_dosage_instruction\\\"],[12],[1,\\\"Dosage Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],null,[[\\\"cols\\\",\\\"rows\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"class\\\",\\\"placeholder\\\"],[\\\"80\\\",\\\"3\\\",\\\"template_dosage_instruction\\\",\\\"off\\\",\\\"form-control\\\",\\\"Enter Pharmacy Instruction\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,1,\\\"addInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"×\\\"],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Add Instruction\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,9,[\\\"instruction_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"instruction_name\\\"],[12],[1,\\\"Instruction \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"instruction_name\\\",\\\"off\\\",\\\"Enter medicine instruction\\\",\\\"instruction_name\\\",[33,24]]]]],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,18],[[30,0],\\\"addinstruction\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[3,\\\" /.modal-content \\\"],[1,\\\"\\\\n  \\\"],[13],[3,\\\" /.modal-dialog \\\"],[1,\\\"\\\\n\\\"],[13],[3,\\\" /.modal \\\"],[1,\\\"\\\\n\\\"],[3,\\\" Other Instruction popup html \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"modal modal-dialog-centered\\\"],[14,1,\\\"OtherInstruction\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-dialog\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[14,4,\\\"button\\\"],[12],[10,1],[14,0,\\\"glyphicon glyphicon-remove\\\"],[12],[13],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"Other Instruction\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,1,\\\"othererror\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[11,\\\"form\\\"],[24,0,\\\"common\\\"],[24,\\\"role\\\",\\\"form\\\"],[24,1,\\\"other_instructionForm\\\"],[4,[38,18],[[30,0],\\\"OtherInstructionSubmit\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,1,\\\"otherinstructionid\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"other_instruction\\\"],[12],[1,\\\"Other Instruction: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"autocomplete\\\"],[\\\"text\\\",\\\"other_instruction\\\",\\\"form-control\\\",\\\"Enter Other Instruction\\\",\\\"off\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-warning btn-large\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"Close\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\" btn btn-success btn-large\\\"],[14,3,\\\"submit\\\"],[14,4,\\\"submit\\\"],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"error\\\",\\\"medicine\\\",\\\"index\\\",\\\"inslist\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"errors\\\",\\\"input\\\",\\\"template_name\\\",\\\"vali_errors\\\",\\\"mixture_list\\\",\\\"increment\\\",\\\"ifeg\\\",\\\"instruction_list\\\",\\\"eq\\\",\\\"action\\\",\\\"textarea\\\",\\\"template_pharmacy_instruction\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"instruction_name\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/template/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/medicines/template/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"kZDLo9ue\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"AddTemplate\\\",[33,3]],null],[[[1,\\\"                                \\\"],[10,1],[14,0,\\\"medicine_btn\\\"],[12],[6,[39,10],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.medicines.template.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Template\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"table\\\"],[14,1,\\\"mixmedicinetemplate\\\"],[14,0,\\\"table table-bordered dt-responsive\\\"],[14,5,\\\"width:100%\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Template Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Mixture Name\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Form\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Group\\\"],[13],[1,\\\"\\\\n                                             \\\"],[10,\\\"th\\\"],[12],[1,\\\"Rate\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Pharmacy Instruction\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"240px\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"medicineTempName\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"pharmacy_instruction\\\"]]],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"TemplateViewDetail\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-info btn-xs\\\"],[15,\\\"data-medicine\\\",[29,[[30,2,[\\\"id\\\"]]]]],[14,1,\\\"mixmedicineDetails\\\"],[14,\\\"title\\\",\\\"Medicine Template Details\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" View Details \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"EditTemplate\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Template\\\",\\\"settings.masters.medicines.template.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,9],[\\\"RemoveTemplate\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,\\\"button\\\"],[15,\\\"onClick\\\",[28,[37,13],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"medicineTempName\\\"]]],null]],[14,0,\\\"btn btn-danger btn-xs\\\"],[14,\\\"title\\\",\\\"Delete Template\\\"],[14,4,\\\"button\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,14]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"medicine\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"template_medicine\\\",\\\"eq\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/medicines/template/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/menu/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"a5zFi4vl\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[34,0]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row row paddingright40\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"menu_add\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_category\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_category\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Category\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[34,4]],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"menu_category\\\"],[15,2,[36,5]],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"setMenuCategory\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,1,\\\"menu_category\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\" \\\"],[12],[1,\\\"Select Menu Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[0,[33,5]],null],\\\"true\\\"]],[12],[1,\\\"Main\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,7],[[30,1,[\\\"id\\\"]],[33,5]],null]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_category\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_category\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_name\\\",\\\"menu_name\\\",\\\"Menu Name\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_alias\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_alias\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu alias \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_alias\\\",\\\"menu_alias\\\",\\\"Menu Name\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_alias\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_alias\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_icon\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_icon\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Icon \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_icon\\\",\\\"menu_icon\\\",\\\"Menu Icon\\\",[33,15]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_icon\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_icon\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_view\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_view\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Views\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_view\\\",\\\"menu_view\\\",\\\"Menu Views\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_view\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_view\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_ishome\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_ishome\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Is Home \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"menu_ishome\\\"],[14,1,\\\"menu_ishome\\\"],[15,2,[36,17]],[15,\\\"onchange\\\",[28,[37,6],[[30,0],\\\"setMenuHome\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\" \\\"],[12],[1,\\\"Select Option\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[1,[33,17]],null],\\\"true\\\"]],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[15,\\\"selected\\\",[52,[28,[37,7],[2,[33,17]],null],\\\"true\\\"]],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_ishome\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_ishome\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_ordering\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_ordering\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Ordering\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"menu_ordering\\\",\\\"menu_ordering\\\",\\\"Menu Ordering\\\",[33,18]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_ordering\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_ordering\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"menu_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,12],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[[28,[37,6],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"menu_status\\\",[33,19],\\\"checked\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,12],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,6],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"menu_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,3,[\\\"menu_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,11,[\\\"menu_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,12],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,20]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,21],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.menu.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"submit\\\",[33,1]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"category\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"if\\\",\\\"errors\\\",\\\"selectmenu_category\\\",\\\"menu_category\\\",\\\"action\\\",\\\"eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"menucategories\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"menu_name\\\",\\\"menu_alias\\\",\\\"menu_icon\\\",\\\"menu_view\\\",\\\"menu_ishome\\\",\\\"menu_ordering\\\",\\\"menu_status\\\",\\\"id\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/menu/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/menu/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"HoSdZ9m8\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/menu/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/menu/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"XuLbcDEq\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/menu/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/menu/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"NGnSRzkv\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,5],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\\n                            \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Menu\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Menu\\\",[33,7]]]]],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"search_menu\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n                                                    \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.menu.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\"\\\\n                                                    Add Menu\\\"]],[]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Menu Name\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Route Name\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                View Name\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Added Date\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Updated Date\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                             \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Status\\\\n                                                             \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Actions\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,10]],null]],null],null,[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"title\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"alias\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"view\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"creation_date\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"modification_date\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                            \\\"],[41,[28,[37,12],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n                                                                \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning\\\\r\\\\n                                                                btn-xs\\\",\\\"Edit Menu\\\",\\\"settings.masters.menu.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\"\\\\n                                                                Edit\\\\n\\\"]],[]]]]],[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Remove Menu\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"menu_delete\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"title\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\"\\\\n                                                                    Remove\\\"],[13],[1,\\\"\\\\n\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                                Sorry, No menu found.\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,13],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,13],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,13],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[8,[39,14],null,[[\\\"@times\\\"],[[36,15]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,12],[[33,16],[30,4]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[30,4],\\\"self\\\"],null],[12],[1,[30,4]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                                        \\\"]],[4]]]]],[1,\\\"\\\\n                                                        \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                                <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,17],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,15],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,18]],[1,\\\" - \\\"],[1,[34,19]],[1,\\\" of \\\"],[1,[34,20]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"flash\\\",\\\"menu\\\",\\\"index\\\",\\\"time\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"link-to\\\",\\\"menus\\\",\\\"if\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/menu/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/organ/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"HEe9DhY+\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lungs\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Organ Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"system\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"system\\\"],[12],[1,\\\"Systems \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,11]],null]],null],null,[[[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[15,0,[29,[\\\"col-md-6 itemdisplaystatus\\\",[30,2,[\\\"status\\\"]],\\\" system\\\",[30,2,[\\\"status\\\"]],[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-md-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"system\\\",[30,2,[\\\"id\\\"]]]]],[14,3,\\\"system[]\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[28,[37,12],[[30,0],\\\"selectSystem\\\",[30,2,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-md-11\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[\\\"system\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"   \\\"],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"system\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"system\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,13]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,13]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,14]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,15],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.organ.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,16]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"system\\\",\\\"index\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"systems\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/organ/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/organ/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ssPQha+X\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/organ/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/organ/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"lAeq0v+k\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lungs\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[12],[1,\\\" \\\"],[3,\\\" class=\\\\\\\"text-center\\\\\\\" \\\"],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,3,\\\"selectedsystem\\\"],[15,\\\"onchange\\\",[28,[37,9],[[30,0],[28,[37,9],[[30,0],\\\"selectSystem\\\",[33,10,[\\\"id\\\"]],[33,10,[\\\"name\\\"]]],null]],null]],[14,0,\\\"form-control select180 systemlist\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"--Select System--\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,11]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[52,[28,[37,12],[[30,2,[\\\"id\\\"]],[33,13]],null],\\\"true\\\"]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,14],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Organ\\\",[33,15]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,16,[\\\"query_string\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,9],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                   \\\"],[3,\\\" <div class=\\\\\\\"form-group\\\\\\\">\\\\n                                                        <label for=\\\\\\\"query_string\\\\\\\" class=\\\\\\\"control-label\\\\\\\">Search Organ</label>\\\\n                                                        {{input type=\\\\\\\"text\\\\\\\" class=\\\\\\\"form-control querybox\\\\\\\" name=\\\\\\\"query_string\\\\\\\" placeholder=\\\\\\\"Search Charge\\\\\\\" value=query_string}}\\\\n                                                    </div>\\\"],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n                                              \\\"],[10,0],[14,0,\\\"col-xs-4 text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"AddOrgan\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.organ.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Organ \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                     \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"th\\\"],[12],[1,\\\"system\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,19]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,3,[\\\"organsystems\\\"]]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,4,[\\\"systems\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,3,[\\\"organsystems\\\",\\\"length\\\"]],[30,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t ,\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,21],[[30,3,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,21],[[30,3,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"EditOrgan\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,18],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.organ.edit\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"RemoveOrgan\\\",[33,3]],null],[[[1,\\\"                                                     \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Organ\\\"],[24,4,\\\"button\\\"],[4,[38,9],[[30,0],\\\"deleteRecords\\\",[30,3,[\\\"id\\\"]],[30,3,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,23]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,23]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,23],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,24],[[33,25],[33,26]],null]],null]],null],null,[[[41,[28,[37,12],[[30,6],\\\"...\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,12],[[33,25],[30,6]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[30,6],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                            \\\"],[1,[30,6]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[6]],null],[1,\\\"                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,27]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,27],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,22],[[33,27]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,9],[[30,0],\\\"showPagination\\\",[33,26],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,28]],[1,\\\" - \\\"],[1,[34,29]],[1,\\\" of \\\"],[1,[34,30]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,31]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"system\\\",\\\"organ\\\",\\\"system\\\",\\\"index\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"action\\\",\\\"system\\\",\\\"systems\\\",\\\"eq\\\",\\\"selectedsystem\\\",\\\"input\\\",\\\"query_string\\\",\\\"vali_errors\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"organs\\\",\\\"implode-array\\\",\\\"format-datetime\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/organ/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/outcomesuom/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fRrNjPyg\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-balance-scale\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Unit Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Unit Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,11],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,12]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,11],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,12]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,13]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.outcomesuom.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,15]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/outcomesuom/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/outcomesuom/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"BCQV8nlv\",\n    \"block\": \"[[[1,[28,[35,0],[\\\"Edit\\\"],null]],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],false,[\\\"page-title\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/outcomesuom/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/outcomesuom/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"nQkgSw9o\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-balance-scale\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline row\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,9,[\\\"query_string\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Unit\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Unit\\\",[33,11]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,9,[\\\"query_string\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"col-md-1 text-left\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-5 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"AddUnit\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info btn-sm\\\",\\\"settings.masters.outcomesuom.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Unit \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                     \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"EditUnit\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.outcomesuom.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-edit\\\"],[14,\\\"data-toggle\\\",\\\"tooltip\\\"],[14,\\\"title\\\",\\\"Edit Unit\\\"],[12],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"RemoveUnit\\\",[33,3]],null],[[[1,\\\"                                                     \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Unit\\\"],[24,\\\"data-toggle\\\",\\\"tooltip\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,18],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,19],[[33,20],[33,21]],null]],null]],null],null,[[[41,[28,[37,17],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,20],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                            \\\"],[1,[30,3]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,22],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,22],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,21],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,23]],[1,\\\" - \\\"],[1,[34,24]],[1,\\\" of \\\"],[1,[34,25]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,26]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"unit\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"units\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/outcomesuom/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"cxoPg3YX\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row row paddingright40\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"permission_add\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"permission_category\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"permission_category\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Permission Category\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"permission_category\\\"],[15,2,[36,6]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setPermissionCategory\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,1,\\\"permission_category\\\"],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\" \\\"],[12],[1,\\\"Select Permission Category\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"0\\\"],[15,\\\"selected\\\",[52,[28,[37,8],[0,[33,6]],null],\\\"true\\\"]],[12],[1,\\\"Main\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,11]],null]],null],null,[[[1,\\\"                                    \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,8],[[30,1,[\\\"id\\\"]],[33,6]],null]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"full_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"permission_category\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"permission_category\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"permission_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"permission_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Permission Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"permission_name\\\",\\\"permission_name\\\",\\\"Permission Name\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"permission_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"permission_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"full_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"full_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Permission Full Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"full_name\\\",\\\"full_name\\\",\\\"Permission Full Name\\\",[33,15]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"full_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"full_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"menu_alias\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_alias\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Route \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_alias\\\",\\\"menu_alias\\\",\\\"Menu Name\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"menu_alias\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"menu_alias\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"menu_icon\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_icon\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Icon \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"menu_icon\\\",\\\"menu_icon\\\",\\\"Menu Icon\\\",[33,17]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"menu_icon\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"menu_icon\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"menu_ishome\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_ishome\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Is Home \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"select\\\"],[14,3,\\\"menu_ishome\\\"],[14,1,\\\"menu_ishome\\\"],[15,2,[36,18]],[15,\\\"onchange\\\",[28,[37,7],[[30,0],\\\"setMenuHome\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\" \\\"],[12],[1,\\\"Select Option\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[15,\\\"selected\\\",[52,[28,[37,8],[1,[33,18]],null],\\\"true\\\"]],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[15,\\\"selected\\\",[52,[28,[37,8],[2,[33,18]],null],\\\"true\\\"]],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"menu_ishome\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"menu_ishome\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"menu_ordering\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"menu_ordering\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Menu Ordering\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"menu_ordering\\\",\\\"menu_ordering\\\",\\\"Menu Ordering\\\",[33,19]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"menu_ordering\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"menu_ordering\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"permission_description\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[1,[28,[35,20],null,[[\\\"type\\\",\\\"name\\\",\\\"placeholder\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"permission_description\\\",\\\"Description\\\",\\\"form-control\\\",[33,21]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"permission_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"permission_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,13],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[[28,[37,7],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"permission_status\\\",[33,22],\\\"checked\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,13],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,7],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"permission_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"permission_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,12,[\\\"permission_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,13],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,23]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,24],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.permissions.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"category\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"permission_category\\\",\\\"action\\\",\\\"eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"categories\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"permission_name\\\",\\\"full_name\\\",\\\"menu_alias\\\",\\\"menu_icon\\\",\\\"menu_ishome\\\",\\\"menu_ordering\\\",\\\"textarea\\\",\\\"permission_description\\\",\\\"permission_status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/category/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3nn+6AAM\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h4\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row row paddingright40\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"permission_category_add\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,3,[\\\"category_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"category_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Category Name\\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control capitalize\\\",\\\"category_name\\\",\\\"category_name\\\",\\\"Category Name\\\",[33,5]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,3,[\\\"category_name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,8,[\\\"category_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,9]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,10],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.permissions.category.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"submit\\\",[33,1]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"error\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"if\\\",\\\"errors\\\",\\\"input\\\",\\\"category_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"id\\\",\\\"link-to\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/category/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/category/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"E9caSrq0\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/category/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/category/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gYwUDuWx\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/category/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/category/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"+b+MPeeV\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[34,0]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,1]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,4,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,5],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Category Permission \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Permission Category\\\",[33,7]]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"search_permission\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-success\\\",\\\"settings.masters.permissions.category.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus-square-o\\\"],[12],[13],[1,\\\"\\\\n                          Add Permission Category\\\"]],[]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Sr. No\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Category Name\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Status\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Added Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Updated Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Actions\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[33,10]],null]],null],null,[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,11],[[30,3]],null]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"category_name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,12],[[30,2,[\\\"status\\\"]],1,\\\"Active\\\",\\\"Inactive\\\"],null]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"creation_date\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"modification_date\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n                                \\\"],[6,[39,9],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn\\\\r\\\\n                                btn-warning btn-xs\\\",\\\"Edit Permission Category\\\",\\\"settings.masters.permissions.category.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\"\\\\n                                Edit \\\"]],[]]]]],[1,\\\"\\\\n                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Permission Category\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"permission_category_delete\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"category_name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                Sorry, No permission category found.\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,14],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,14],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,14],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[8,[39,15],null,[[\\\"@times\\\"],[[36,16]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,12],[[33,17],[30,4]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[30,4],\\\"self\\\"],null],[12],[1,[30,4]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                            \\\"]],[4]]]]],[1,\\\"\\\\n                            \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                        <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,18],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,18],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,8],[[30,0],\\\"showPagination\\\",[33,16],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,19]],[1,\\\" - \\\"],[1,[34,20]],[1,\\\" of \\\"],[1,[34,21]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"flash\\\",\\\"category\\\",\\\"index\\\",\\\"time\\\"],false,[\\\"master-menu\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"q\\\",\\\"action\\\",\\\"link-to\\\",\\\"categories\\\",\\\"increment\\\",\\\"eq\\\",\\\"if\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/category/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"tsACwZbG\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"8cP/mQPw\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/permissions/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"qXs0FpAa\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Permission \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Permission\\\",[33,10]]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search_permission\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                          \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[6,[39,12],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.permissions.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\"\\\\n                          Add Permission\\\"]],[]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Permission Name\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Description\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Added Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Updated Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Status\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Actions\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,13]],null]],null],null,[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"full_name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,14],[[30,2,[\\\"creation_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,14],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[41,[28,[37,15],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                \\\"],[41,[28,[37,15],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\n                                \\\"],[6,[39,12],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning\\\\r\\\\n                                btn-xs\\\",\\\"Edit Permission\\\",\\\"settings.masters.permissions.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit\\\\n\\\"]],[]]]]],[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Remove Permission\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"permission_delete\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"full_name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                Sorry, No permission found.\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,17]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,17]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,17],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,18],[[33,19],[33,20]],null]],null]],null],null,[[[41,[28,[37,15],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,15],[[33,19],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                            \\\"],[1,[30,3]],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,21]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,21]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,20],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,22]],[1,\\\" - \\\"],[1,[34,23]],[1,\\\" of \\\"],[1,[34,24]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"permission\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"link-to\\\",\\\"permissions\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/permissions/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/potency/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"TyodDxPM\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-fill\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Potency Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"dilution\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"dilution\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Dilution \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"select\\\"],[14,3,\\\"dilution\\\"],[14,1,\\\"dilution\\\"],[15,2,[36,11]],[15,\\\"onchange\\\",[28,[37,12],[[30,0],\\\"updateValue\\\"],[[\\\"value\\\"],[\\\"target\\\"]]]],[14,0,\\\"form-control\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[14,2,\\\" \\\"],[12],[1,\\\"Select Dilution\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,13],[[33,11],\\\"c\\\"],null]],[14,2,\\\"c\\\"],[12],[1,\\\"C\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,13],[[33,11],\\\"x\\\"],null]],[14,2,\\\"x\\\"],[12],[1,\\\"X\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,13],[[33,11],\\\"m\\\"],null]],[14,2,\\\"m\\\"],[12],[1,\\\"M\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"dilution\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"dilution\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"pricegroup\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pricegroup\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Price Groups \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,14]],null]],null],null,[[[1,\\\"                                                \\\"],[10,0],[14,0,\\\"col-xs-6\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"pricegroup\\\",[30,3,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,12],[[30,0],[28,[37,12],[[30,0],\\\"setPricegroup\\\",[30,3,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\" \\\\n                                                    \\\\n\\\"]],[3]],null],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"pricegroup\\\"]]],null]],null],null,[[[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"pricegroup\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\\n                                        \\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,15]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,12],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,15]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,16]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,17],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.potency.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,18]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"pricegroup\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"dilution\\\",\\\"action\\\",\\\"eq\\\",\\\"pricegroups\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/potency/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/potency/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"XR4khjgZ\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/potency/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/potency/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fwTkVgnc\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-3 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-9 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h5\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bitbucket\\\"],[12],[13],[1,\\\" Potency Masters \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12 paddingright40 table-responsive\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,1],[14,0,\\\"btn btn-primary btn-xs float-right\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-plus-sign\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\" \\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-hover\\\"],[12],[1,\\\"s\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Ounce\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Globule\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Powder\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Liquid\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"125px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Common Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                               \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                           \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Common Meds/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"M/T\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"master-menu\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/potency/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/potency/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"1e+P7QR6\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-fill\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Potency\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Potency\\\",[33,10]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddPotency\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.potency.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Potency \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Dilution\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"30%\\\"],[12],[1,\\\"Price Group\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"250px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[15,1,[29,[\\\"potency_\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-uppercase\\\"],[12],[1,[30,2,[\\\"dilution\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],[[30,2,[\\\"creation_date_on\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"PotencyViewDetails\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-info btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"viewRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-eye\\\"],[12],[13],[1,\\\" View Details \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"EditPotency\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.potency.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemovePotency\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[14,\\\"title\\\",\\\"Delete Potency Group\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,18]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,18]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,18],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,19],[[33,20],[33,21]],null]],null]],null],null,[[[41,[28,[37,16],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,20],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                            \\\"],[1,[30,3]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,22]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,22],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,22]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,23]],[1,\\\" - \\\"],[1,[34,24]],[1,\\\" of \\\"],[1,[34,25]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,26]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"potency\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"potencys\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/potency/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/pricegroup/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"t5KNkg8A\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"add_pricegroup\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter Pricing Group Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[3,\\\"<span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.name}} </span>\\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"ounce\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,10,[\\\"ounce\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"ounce\\\"],[12],[1,\\\" Ounce \\\"],[13],[1,\\\" \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"ounce_check\\\",[33,11]]]]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"ounce\\\",\\\"Enter Pricing For Ounce\\\",\\\"ounce\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"ounce_check\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"ounce\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                                \\\"],[3,\\\" <span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.ounce}} </span>\\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10,[\\\"ounce\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"globule\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,10,[\\\"globule\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\" control-label\\\"],[14,\\\"for\\\",\\\"globule\\\"],[12],[1,\\\" Globule \\\"],[13],[1,\\\"    \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"globule_check\\\",[33,13]]]]],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"globule\\\",\\\"Enter Pricing For Globule\\\",\\\"globule\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"globule_check\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"globule\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                                \\\"],[3,\\\" <span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.globule}} </span>\\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10,[\\\"globule\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"powder\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,10,[\\\"powder\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                             \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"powder\\\"],[12],[1,\\\" Powder \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"powder_check\\\",[33,15]]]]],[1,\\\"\\\\n                                             \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"powder\\\",\\\"Enter Pricing For Powder\\\",\\\"powder\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"powder_check\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"powder\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,10,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                                 \\\"],[3,\\\"<span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.powder}} </span>\\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10,[\\\"powder\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,11]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"liquid\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,10,[\\\"liquid\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,0,\\\"control-label\\\"],[14,\\\"for\\\",\\\"liquid\\\"],[12],[1,\\\" Liquid \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"name\\\",\\\"checked\\\"],[\\\"checkbox\\\",\\\"liquid_check\\\",[33,17]]]]],[1,\\\"\\\\n\\\"],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"liquid\\\",\\\"Enter Pricing For Liquid\\\",\\\"liquid\\\",[33,18]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"liquid_check\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"liquid\\\"]]],null]],null],null,[[[1,\\\"                                                   \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,13,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                                \\\"],[3,\\\" <span class=\\\\\\\"help-block\\\\\\\">{{vali_errors.liquid}} </span>\\\"],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,10,[\\\"liquid\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,14]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"description\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"description\\\"],[12],[1,\\\"Description  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,19],null,[[\\\"value\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"cols\\\",\\\"rows\\\"],[[33,20],\\\"form-control\\\",\\\"description\\\",\\\"description\\\",\\\"Enter Form Description\\\",\\\"80\\\",\\\"4\\\"]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"description\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,15,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"description\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-offset-3 col-xs-1\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,21],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,22]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                                                \\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,21],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,22]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,16,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,23]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,24],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.pricegroup.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,21],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"ounce_check\\\",\\\"ounce\\\",\\\"globule_check\\\",\\\"globule\\\",\\\"powder_check\\\",\\\"powder\\\",\\\"liquid_check\\\",\\\"liquid\\\",\\\"textarea\\\",\\\"description\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/pricegroup/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/pricegroup/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"5FBgxGTZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-3 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[34,0]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-9 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h5\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\" Pricing Group Master ss \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12 paddingright40 table-responsive\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,1],[14,0,\\\"btn btn-primary btn-xs float-right\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"icon-plus-sign\\\"],[12],[13],[1,\\\" Add \\\"],[13],[1,\\\" \\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-hover\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Ounce\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Globule\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Powder\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Liquid\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Common Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                 \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                         \\\\n                                           \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Proprietary/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                          \\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"Common Meds/Rare Potency\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"M/T\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"100\\\"],[13],[1,\\\"\\\\n                                                  \\\"],[10,\\\"td\\\"],[12],[10,1],[14,0,\\\"btn btn-warning btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-edit-sign\\\"],[12],[13],[1,\\\" Edit\\\"],[13],[1,\\\" \\\"],[10,1],[14,0,\\\"btn btn-danger btn-xs\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"icon-remove-sign\\\"],[12],[13],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n    \\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"master-menu\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/pricegroup/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/pricegroup/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"aiD48LCp\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                           \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-rupee-sign\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                               \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Price Group\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search Price Group\\\",[33,10]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddPriceGroup\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.pricegroup.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add Price Group \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                   \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n                                                 \\\"],[10,\\\"th\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"description\\\"]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],[[30,2,[\\\"creation_date_on\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,15],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"EditPriceGroup\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.pricegroup.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemovePriceGroup\\\",[33,3]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete Price Group\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  Sorry, No Record found.\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,17],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[8,[39,18],null,[[\\\"@times\\\"],[[36,19]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                                               \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,20],[30,3]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,[30,3]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                                            \\\"]],[3]]]]],[1,\\\"\\\\n                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,19],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,22]],[1,\\\" - \\\"],[1,[34,23]],[1,\\\" of \\\"],[1,[34,24]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"pricegroup\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"pricegroups\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/pricegroup/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/role/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xeuocXct\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"role_add\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"role_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"role_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"role_name\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Role Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"role_name\\\",\\\"role_name\\\",\\\"Role Name\\\",[33,8]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"role_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"role_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"role_description\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,11],null,[[\\\"type\\\",\\\"name\\\",\\\"placeholder\\\",\\\"class\\\",\\\"value\\\"],[\\\"text\\\",\\\"role_description\\\",\\\"Description\\\",\\\"form-control\\\",[33,12]]]]],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"role_description\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Permissions \\\"],[1,[33,13,[\\\"action_name\\\"]]],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[33,15]],null],null,[[[42,[28,[37,14],[[30,2]],null],null,[[[1,\\\"                                      \\\"],[10,\\\"li\\\"],[14,0,\\\"percate\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"input\\\"],[14,3,\\\"permission_name\\\"],[15,1,[30,4,[\\\"cat_id\\\"]]],[15,\\\"data-routename\\\",[30,4,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,4,[\\\"permission_name\\\"]]],[15,\\\"onchange\\\",[28,[37,16],[[30,0],[28,[37,16],[[30,0],\\\"valueHasChanged\\\",[30,4,[\\\"cat_id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"b\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pername\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[30,4]],null],null,[[[41,[30,6,[\\\"id\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"li\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"permission_name\\\"],[15,1,[30,6,[\\\"id\\\"]]],[15,\\\"data-routename\\\",[30,6,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,6,[\\\"permissionName\\\"]]],[15,\\\"onchange\\\",[28,[37,16],[[30,0],[28,[37,16],[[30,0],\\\"valueHasChanged\\\",[30,6,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\" \\\"],[1,[30,6,[\\\"full_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                       \\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null]],[2,3]],null],[1,\\\"                              \\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"permission_name\\\"]]],null]],null],null,[[[1,\\\"                                          \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,8,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"role_status\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"role_status\\\"]],\\\"has-error\\\"],\\\" \\\"]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"role_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-5\\\"],[12],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\",\\\"checked\\\"],[[28,[37,16],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"role_status\\\",[33,17],\\\"checked\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n                            \\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,16],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"role_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"role_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"role_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,18]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,19],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.role.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,16],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,20]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"products\\\",\\\"category\\\",\\\"product\\\",\\\"key\\\",\\\"permission\\\",\\\"key\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"role_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"textarea\\\",\\\"role_description\\\",\\\"product\\\",\\\"-each-in\\\",\\\"permissions\\\",\\\"action\\\",\\\"role_status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/role/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/role/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0ucXWm04\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/role/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/role/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"+DrO0F6Y\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/role/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/role/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"gZP/ylkH\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"              \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search Role \\\"],[13],[1,\\\"\\\\n                          \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter Role\\\",[33,10]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search_role\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                        \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddRole\\\",[33,3]],null],[[[1,\\\"                        \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.role.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\"\\\\n                        Add Role\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Role Name\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Description\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Added Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Updated Date\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Status\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                Actions\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,15],[[30,2,[\\\"creation_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,15],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"EditRole\\\",[33,3]],null],[[[1,\\\"                                \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit Role\\\",\\\"settings.masters.role.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil\\\"],[12],[13],[1,\\\" Edit\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemoveRole\\\",[33,3]],null],[[[1,\\\"                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"role_delete\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[14,\\\"title\\\",\\\"Delete Role\\\"],[12],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],[[[1,\\\"                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                Sorry, No Role found.\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,17],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[8,[39,18],null,[[\\\"@times\\\"],[[36,19]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,20],[30,4]],null],\\\"current\\\"]]]],[12],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,4],\\\"self\\\"],null],[12],[1,[30,4]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n                            \\\"]],[4]]]]],[1,\\\"\\\\n                            \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                        <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,19],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,22]],[1,\\\" - \\\"],[1,[34,23]],[1,\\\" of \\\"],[1,[34,24]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"role\\\",\\\"index\\\",\\\"time\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"roles\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"increment-for\\\",\\\"last_page\\\",\\\"current_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/role/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/show\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"al+vld0v\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/show.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/system/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3XqNjCKv\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                         \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-heart\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"system\\\"],[14,1,\\\"add_form\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[1,\\\"System Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"name\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"name\\\",\\\"Enter System Name\\\",\\\"name\\\",[33,7]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"name\\\"]]],null]],null],null,[[[1,\\\"                                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                                 \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"status\\\"],[14,0,\\\"col-xs-4 text-right control-label\\\"],[12],[1,\\\"Status: \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,11],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"status\\\",[33,12]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[1,[28,[35,6],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,11],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"status\\\",[33,12]]]]],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[33,5,[\\\"status\\\"]]],null]],null],null,[[[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,10,[\\\"status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                         \\\"],[1,[28,[35,6],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,13]]]]],[1,\\\"\\\\n                                        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                          \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.system.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                                          \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                     \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n             \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,15]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"input\\\",\\\"name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"vali_errors\\\",\\\"action\\\",\\\"status\\\",\\\"id\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/system/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/system/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"7As2x4wV\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/system/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/system/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"U38COQMf\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                   \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n                       \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                           \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-heart\\\"],[12],[13],[1,\\\"  \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                           \\\"],[10,0],[14,0,\\\"row panel-body\\\"],[12],[1,\\\"\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-12  table-responsive\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline row\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-5\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[15,0,[29,[\\\"form-group \\\",[52,[33,9,[\\\"query_string\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search System\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[1,[28,[35,10],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Search System\\\",[33,11]]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,9,[\\\"query_string\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"name\\\"],[14,3,\\\"name\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"sorttype\\\"],[14,3,\\\"sorttype\\\"],[14,4,\\\"hidden\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-md-5 text-left\\\"],[12],[1,\\\"\\\\n\\\\n                                                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary search_button\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"search\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"AddSystem\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[10,1],[14,5,\\\"margin: 0px 84px;\\\"],[12],[1,\\\"  \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.system.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\" Add System \\\"]],[]]]]],[1,\\\"   \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                     \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-striped table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"created_at\\\"],[12],[1,\\\"Added Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"updated_at\\\"],[12],[1,\\\"Updated Date\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,0,\\\"sortable-column sorting-desc\\\"],[14,\\\"data-column\\\",\\\"status\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"140px;\\\"],[12],[1,\\\"Actions\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,15]],null]],null],null,[[[1,\\\"                                            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"created_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,2,[\\\"updated_at\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                    \\\"],[41,[28,[37,17],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"EditSystem\\\",[33,3]],null],[[[1,\\\"                                                    \\\"],[6,[39,14],null,[[\\\"class\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"settings.masters.system.edit\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil-square-o\\\"],[12],[13],[1,\\\" Edit \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[\\\"RemoveSystem\\\",[33,3]],null],[[[1,\\\"                                                     \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,\\\"title\\\",\\\"Delete System\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"deleteRecords\\\",[30,2,[\\\"id\\\"]],[30,2,[\\\"name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[12],[13],[1,\\\" Remove \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                  Sorry, No Record found.\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,18],[[33,19]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,18],[[33,19]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,19],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,20],[[33,21],[33,22]],null]],null]],null],null,[[[41,[28,[37,17],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                    \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,17],[[33,21],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                        \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                            \\\"],[1,[30,3]],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                                           \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                                            <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,18],[[33,23]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,23],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,18],[[33,22]],null],\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,12],[[30,0],\\\"showPagination\\\",[33,22],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,24]],[1,\\\" - \\\"],[1,[34,25]],[1,\\\" of \\\"],[1,[34,26]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                               \\\"],[13],[1,\\\"\\\\n                           \\\"],[13],[1,\\\"\\\\n                       \\\"],[13],[1,\\\"\\\\n\\\\n                   \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,27]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"system\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"systems\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"not\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/system/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/token/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"xZY7LC6i\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/token/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/token/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"O2lPK/K1\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                                \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"title text-center\\\"],[12],[1,\\\" Maximum Token \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Define maximum tokens for each doctor\\\\n                                                                on kiosk.\\\"],[13],[1,\\\"\\\\n\\\\n                                                            \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,9]],null]],null],null,[[[1,\\\"                                                                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                                                    \\\"],[10,0],[14,0,\\\"col-xs-5 text-right\\\"],[12],[1,\\\"\\\\n                                                                        \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label\\\"],[12],[1,[30,2,[\\\"Name\\\"]]],[1,\\\"    \\\\n                                                                        \\\"],[13],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n                                                                    \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                                                        \\\"],[10,\\\"input\\\"],[14,0,\\\"max-token form-control\\\"],[15,\\\"data-id\\\",[29,[[30,2,[\\\"map_id\\\"]]]]],[14,3,\\\"max_token\\\"],[14,\\\"placeholder\\\",\\\"\\\"],[15,2,[30,2,[\\\"maximum_token_number\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n                                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                                                \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                                    \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                                                        \\\"],[10,0],[14,0,\\\"col-xs-5 text-right\\\"],[12],[1,\\\"\\\\n                                                                        \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label\\\"],[12],[1,\\\"  \\\"],[13],[1,\\\"\\\\n                                                                        \\\"],[13],[1,\\\"\\\\n                                                                        \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"TokenSubmitButton\\\",[33,3]],null],[[[1,\\\"                                                                        \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"submit\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                                        \\\"],[13],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,12]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"doctor\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"doctors\\\",\\\"check-permission\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/token/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/users/add\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vh0f4ed0\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"user_add\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_name\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\" Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_name\\\",\\\"user_name\\\",\\\"Name\\\",[33,8]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Username \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"username\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"username\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"username\\\",\\\"username\\\",\\\"Username\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"username\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"username\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row \\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Email Id \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"email_id\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"email_id\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"email_id\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"email_id\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mobile_no\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Mobile No \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"mobile_no\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",\\\"Mobile No\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"mobile_no\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"password\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"password\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"password\\\",\\\"password\\\",\\\"Password\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"password\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm_password\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Confirm Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"confirm_password\\\",\\\"confirm_password\\\",\\\"Confirm Password\\\",[33,15]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"confirm_password\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"confirm_password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"employee_code\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Employee Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-3\\\"],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"employee_code\\\",\\\"employee_code\\\",\\\"Employee Code\\\",[33,16]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"employee_code\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"employee_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"showInTimeslot\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Show in Timeslot \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"showInTimeslot\\\"],[14,1,\\\"showInTimeslot\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"showInTimeslot\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Branch \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_branch\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_branch\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,18]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_branch\\\"],[15,1,[29,[[30,8,[\\\"id\\\"]]]]],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"branchHasChanged\\\",[30,8,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"branch\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,8,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_branch\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_branch\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Roles \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_role\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_role\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                          \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,19]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_role[]\\\"],[15,1,[29,[[30,10,[\\\"id\\\"]]]]],[15,2,[29,[[30,10,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"roleHasChanged\\\",[30,10,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"roles\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,10,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                          \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_role\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,11,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_role\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_type\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Related to Doctor \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"user_type\\\"],[14,1,\\\"user_type\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"doctorHasChanged\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"doctor_show col-xs-8\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_label\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Label \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_label\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_label\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_label\\\",\\\"user_label\\\",\\\"Doctor Label\\\",[33,20]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_label\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_label\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_order\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Order \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_order\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_order\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"user_order\\\",\\\"user_order\\\",\\\"Doctor Ordering\\\",[33,21]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_order\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,13,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_order\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\"  Added color code html as on  14 Aug Shubh Tiwari \\\"],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_color\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Color Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"color\\\",\\\"#ff0000\\\",\\\"color_code\\\",\\\"user_color\\\",\\\"user_color\\\",[33,22]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_color\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,14,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_color\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pres_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Prescription Format \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"pres_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"pres_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"pres_print\\\"],[15,2,[36,23]],[14,0,\\\"form-control\\\"],[14,1,\\\"pres_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changePrescriptionFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Prescription format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,24]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,25],[[33,23],[30,15,[\\\"id\\\"]]],null]],[15,2,[29,[[30,15,[\\\"id\\\"]]]]],[12],[1,[30,15,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"pres_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,16,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"pres_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"rcp_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Receipt Format \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"rcp_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"rcp_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"rcp_print\\\"],[15,2,[36,26]],[14,0,\\\"form-control\\\"],[14,1,\\\"rcp_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeReceiptFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Receipt format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,27]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,25],[[33,26],[30,17,[\\\"id\\\"]]],null]],[15,2,[29,[[30,17,[\\\"id\\\"]]]]],[12],[1,[30,17,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[17]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"rcp_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,18,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"rcp_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor_level\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Doctor Level \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"doctor_level\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_level\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor_level\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"doctor_level\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeDoctorCharges\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor Level\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,28]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,19,[\\\"id\\\"]]]]],[12],[1,[30,19,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[19]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"doctor_level\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,20,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[20]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"doctor_level\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[14,1,\\\"doctor-charges\\\"],[14,5,\\\"display: none\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" for consultancy fees \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[14,0,\\\"row hidden\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h5\\\"],[14,\\\"for\\\",\\\"role_description\\\"],[14,0,\\\"col-xs-2 text-right status-label\\\"],[12],[1,\\\"Permissions\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row hidden\\\"],[12],[1,\\\"\\\\n                         \\\"],[3,\\\" <label for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</label>\\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-offset-2 col-xs-8\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,29],[[33,30]],null],null,[[[42,[28,[37,29],[[30,21]],null],null,[[[1,\\\"                                      \\\"],[10,\\\"li\\\"],[14,0,\\\"userpercate\\\"],[12],[1,\\\"\\\\n                                         \\\"],[10,\\\"b\\\"],[12],[1,[30,24]],[13],[1,\\\"   \\\\n                                         \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"on\\\",[30,23,[\\\"cat_id\\\"]]]]],[15,\\\"data-routename\\\",[30,23,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,23,[\\\"permission_name\\\"]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"permissionAllow\\\",[30,23,[\\\"cat_id\\\"]]],null]],null]],[14,\\\"role-data\\\",\\\"\\\"],[14,0,\\\"permission_radio\\\"],[15,3,[30,23,[\\\"cat_id\\\"]]],[14,2,\\\"Allow\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[12],[1,\\\" Allow \\\"],[13],[1,\\\"\\\\n                                           \\\\n                                         \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"off\\\",[30,23,[\\\"cat_id\\\"]]]]],[15,\\\"data-routename\\\",[30,23,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,23,[\\\"permission_name\\\"]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"permissionDeny\\\",[30,23,[\\\"cat_id\\\"]]],null]],null]],[14,\\\"role-data\\\",\\\"\\\"],[14,0,\\\"permission_radio\\\"],[15,3,[29,[[30,23,[\\\"cat_id\\\"]]]]],[14,2,\\\"Deny\\\"],[14,4,\\\"radio\\\"],[12],[13],[10,\\\"label\\\"],[12],[1,\\\" Deny \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"userpername\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,29],[[30,23]],null],null,[[[41,[30,25,[\\\"id\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"peralign\\\"],[12],[1,\\\"\\\\n                                          \\\"],[3,\\\" <input type=\\\\\\\"checkbox\\\\\\\"   id={{permission.id}} onchange={{action (action \\\\\\\"permissionHasChanged\\\\\\\" permission.id) value=\\\\\\\"target.checked\\\\\\\"}}> \\\"],[1,\\\"\\\\n                                           \\\"],[10,0],[14,5,\\\"float:left; width: 320px;\\\"],[14,0,\\\"label-title\\\"],[12],[1,\\\" \\\"],[1,[30,25,[\\\"full_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"switch-toggle switch-3 switch-candy\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"on\\\",[30,25,[\\\"id\\\"]]]]],[15,\\\"data-routename\\\",[30,25,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,25,[\\\"permissionName\\\"]]],[14,\\\"role-data\\\",\\\"\\\"],[15,0,[29,[\\\"permission_radio allow_\\\",[30,25,[\\\"parent_id\\\"]]]]],[15,3,[29,[[30,25,[\\\"id\\\"]]]]],[14,2,\\\"Allow\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\" Allow \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"off\\\",[30,25,[\\\"id\\\"]]]]],[15,\\\"data-routename\\\",[30,25,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,25,[\\\"permissionName\\\"]]],[14,\\\"role-data\\\",\\\"\\\"],[15,0,[29,[\\\"permission_radio deny_\\\",[30,25,[\\\"parent_id\\\"]]]]],[15,3,[29,[[30,25,[\\\"id\\\"]]]]],[14,2,\\\"Deny\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\" Deny \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[25,26]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"]],[23,24]],null]],[21,22]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,31]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"user_status\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"user_status\\\",[33,32]]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"user_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,27,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[27]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[1,[34,33]],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,34],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.users.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,35]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"branch\\\",\\\"error\\\",\\\"role\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"level\\\",\\\"error\\\",\\\"products\\\",\\\"category\\\",\\\"product\\\",\\\"key\\\",\\\"permission\\\",\\\"key\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"user_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"username\\\",\\\"email_id\\\",\\\"mobile_no\\\",\\\"password\\\",\\\"confirm_password\\\",\\\"employee_code\\\",\\\"action\\\",\\\"branches\\\",\\\"roles\\\",\\\"user_label\\\",\\\"user_order\\\",\\\"user_color\\\",\\\"pres_print\\\",\\\"prescriptionformats\\\",\\\"eq\\\",\\\"rcp_print\\\",\\\"receiptformats\\\",\\\"doctor-level\\\",\\\"-each-in\\\",\\\"permissions\\\",\\\"id\\\",\\\"user_status\\\",\\\"radioarray\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/users/add.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/users/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"68mrAXPk\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container-fluid\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,\\\"form\\\"],[14,0,\\\"common\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"user_add\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_name\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\" Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_name\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_name\\\",\\\"user_name\\\",\\\"Name\\\",[33,8]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_name\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Username \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"username\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"username\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"username\\\",\\\"username\\\",\\\"Username\\\",[33,11]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"username\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"username\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Email Id \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3  \\\",[52,[33,5,[\\\"email_id\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"email_id\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"email_id\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"email_id\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                           \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mobile_no\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Mobile No \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,5,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"mobile_no\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",\\\"Mobile No\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"mobile_no\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                           \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"employee_code\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Employee Code \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[15,0,[29,[\\\"col-xs-3  \\\",[52,[33,5,[\\\"employee_code\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"employee_code\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                              \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"employee_code\\\",\\\"employee_code\\\",\\\"Employee Code\\\",[33,14]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"employee_code\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                              \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"employee_code\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"showInTimeslot\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Show in Timeslot \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"showInTimeslot\\\"],[14,1,\\\"showInTimeslot\\\"],[15,2,[29,[[36,15]]]],[15,\\\"checked\\\",[52,[28,[37,16],[\\\"1\\\",[33,15]],null],\\\"true\\\"]],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"showInTimeslot\\\"],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Branch \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_branch\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_branch\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,18]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[15,1,[30,6,[\\\"id\\\"]]],[14,3,\\\"user_branch\\\"],[15,2,[29,[[30,6,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"branchHasChanged\\\",[30,6,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,\\\"data-parsley-multiple\\\",\\\"branch\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,6,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_branch\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,7,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_branch\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,0,\\\"col-xs-2 text-right role-label\\\"],[12],[1,\\\"Roles \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_role\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_role\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"tr\\\"],[14,5,\\\"background-color: rgb(239, 239, 239);\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,19]],null]],null],null,[[[1,\\\"                                                \\\"],[10,\\\"td\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"user_role[]\\\"],[15,1,[29,[[30,8,[\\\"id\\\"]]]]],[15,2,[29,[[30,8,[\\\"id\\\"]]]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"roleHasChanged\\\",[30,8,[\\\"id\\\"]]],null]],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_role\\\"]]],null]],null],null,[[[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,9,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                                      \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_role\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_type\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Related to Doctor \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"input\\\"],[14,3,\\\"user_type\\\"],[14,1,\\\"user_type\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,17],[[30,0],\\\"doctorHasChanged\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[10,0],[14,0,\\\"doctor_show col-xs-8\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_label\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Label\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_label\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_label\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_label\\\",\\\"user_label\\\",\\\"Doctor Label\\\",[33,20]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_label\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,10,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_label\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_order\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Order\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_order\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_order\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"number\\\",\\\"form-control\\\",\\\"user_order\\\",\\\"user_order\\\",\\\"Doctor Ordering\\\",[33,21]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_order\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,11,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_order\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[3,\\\"  Added color code html as on  14 Aug Shubh Tiwari \\\"],[1,\\\"\\\\n\\\\n                               \\\"],[10,0],[14,0,\\\"col-md-4\\\"],[12],[1,\\\"\\\\n                                 \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_color\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Color Code\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"user_color\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_color\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"onchange\\\",\\\"value\\\",\\\"name\\\",\\\"value\\\"],[\\\"color\\\",\\\"color_code\\\",\\\"user_color\\\",\\\"changedColorName\\\",\\\"target.value\\\",\\\"user_color\\\",[33,22]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_color\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,12,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_color\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pres_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Prescription Format \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"pres_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"pres_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"pres_print\\\"],[15,2,[36,23]],[14,0,\\\"form-control\\\"],[14,1,\\\"pres_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changePrescriptionFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Prescription format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,24]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[52,[28,[37,16],[[30,13,[\\\"id\\\"]],[33,23]],null],\\\"true\\\"]],[15,2,[29,[[30,13,[\\\"id\\\"]]]]],[12],[1,[30,13,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"pres_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,14,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"pres_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"rcp_print\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Receipt Format\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"rcp_print\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"rcp_print\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"rcp_print\\\"],[15,2,[36,25]],[14,0,\\\"form-control\\\"],[14,1,\\\"rcp_print\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeReceiptFormat\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Receipt format\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,26]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[52,[28,[37,16],[[30,15,[\\\"id\\\"]],[33,25]],null],\\\"true\\\"]],[15,2,[29,[[30,15,[\\\"id\\\"]]]]],[12],[1,[30,15,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"rcp_print\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,16,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"rcp_print\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,0],[14,0,\\\"col-md-6\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"doctor_level\\\"],[14,0,\\\"col-md-4 text-right status-label\\\"],[12],[1,\\\"Doctor Level \\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"col-xs-8 \\\",[52,[33,5,[\\\"doctor_level\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"doctor_level\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n\\\\n                                    \\\"],[10,\\\"select\\\"],[14,3,\\\"doctor_level\\\"],[14,0,\\\"form-control\\\"],[14,1,\\\"doctor_level\\\"],[15,\\\"onchange\\\",[28,[37,17],[[30,0],\\\"changeDoctorCharges\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Select Doctor Level\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,27]],null]],null],null,[[[1,\\\"                                          \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,17,[\\\"id\\\"]]]]],[12],[1,[30,17,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[17]],null],[1,\\\"                                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"doctor_level\\\"]]],null]],null],null,[[[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,18,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"                                    \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"doctor_level\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row doctor-charges\\\"],[14,1,\\\"doctor-charges\\\"],[14,5,\\\"display: none\\\"],[12],[1,\\\"\\\\n\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" for consultancy fees \\\"],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"row hidden\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h5\\\"],[14,\\\"for\\\",\\\"role_description\\\"],[14,0,\\\"col-xs-2 text-right status-label\\\"],[12],[1,\\\"Permissions\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"form-group row hidden\\\"],[12],[1,\\\"\\\\n                         \\\"],[3,\\\" <label for=\\\\\\\"role_description\\\\\\\" class=\\\\\\\"col-xs-2 text-right status-label\\\\\\\">Permissions</label>\\\"],[1,\\\"\\\\n                            \\\"],[10,0],[14,0,\\\"col-xs-offset-2  col-xs-8\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[33,29]],null],null,[[[42,[28,[37,28],[[30,19]],null],null,[[[1,\\\"                                      \\\"],[10,\\\"li\\\"],[14,0,\\\"userpercate\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                                        \\\"],[10,\\\"b\\\"],[12],[1,[30,22]],[13],[1,\\\"   \\\\n                                         \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"on\\\",[30,21,[\\\"cat_id\\\"]]]]],[15,\\\"data-routename\\\",[30,21,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,21,[\\\"permission_name\\\"]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"permissionAllow\\\",[30,21,[\\\"cat_id\\\"]]],null]],null]],[14,\\\"role-data\\\",\\\"\\\"],[14,0,\\\"permission_radio\\\"],[15,3,[30,21,[\\\"cat_id\\\"]]],[14,2,\\\"Allow\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\" \\\"],[10,\\\"label\\\"],[12],[1,\\\" Allow \\\"],[13],[1,\\\"\\\\n                                           \\\\n                                         \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"off\\\",[30,21,[\\\"cat_id\\\"]]]]],[15,\\\"data-routename\\\",[30,21,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,21,[\\\"permission_name\\\"]]],[15,\\\"onchange\\\",[28,[37,17],[[30,0],[28,[37,17],[[30,0],\\\"permissionDeny\\\",[30,21,[\\\"cat_id\\\"]]],null]],null]],[14,\\\"role-data\\\",\\\"\\\"],[14,0,\\\"permission_radio\\\"],[15,3,[29,[[30,21,[\\\"cat_id\\\"]]]]],[14,2,\\\"Deny\\\"],[14,4,\\\"radio\\\"],[12],[13],[10,\\\"label\\\"],[12],[1,\\\" Deny \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"userpername\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[30,21]],null],null,[[[41,[30,23,[\\\"id\\\"]],[[[1,\\\"                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"peralign\\\"],[12],[1,\\\"\\\\n                                          \\\"],[3,\\\" <input type=\\\\\\\"checkbox\\\\\\\"   id={{permission.id}} onchange={{action (action \\\\\\\"permissionHasChanged\\\\\\\" permission.id) value=\\\\\\\"target.checked\\\\\\\"}}> \\\"],[1,\\\"\\\\n                                           \\\"],[10,0],[14,5,\\\"float:left; width: 320px;\\\"],[14,0,\\\"label-title\\\"],[12],[1,\\\" \\\"],[1,[30,23,[\\\"full_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"switch-toggle switch-3 switch-candy\\\"],[12],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"on\\\",[30,23,[\\\"id\\\"]]]]],[15,\\\"data-routename\\\",[30,23,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,23,[\\\"permissionName\\\"]]],[14,\\\"role-data\\\",\\\"\\\"],[15,0,[29,[\\\"permission_radio allow_\\\",[30,23,[\\\"parent_id\\\"]]]]],[15,3,[29,[[30,23,[\\\"id\\\"]]]]],[14,2,\\\"Allow\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"label\\\"],[12],[1,\\\" Allow \\\"],[13],[1,\\\"\\\\n\\\\n                                            \\\"],[10,\\\"input\\\"],[15,1,[29,[\\\"off\\\",[30,23,[\\\"id\\\"]]]]],[15,\\\"data-routename\\\",[30,23,[\\\"action_name\\\"]]],[15,\\\"data-permission\\\",[30,23,[\\\"permissionName\\\"]]],[14,\\\"role-data\\\",\\\"\\\"],[15,0,[29,[\\\"permission_radio deny_\\\",[30,23,[\\\"parent_id\\\"]]]]],[15,3,[29,[[30,23,[\\\"id\\\"]]]]],[14,2,\\\"Deny\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"label\\\"],[12],[1,\\\" Deny \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[23,24]],null],[1,\\\"                                        \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n\\\"]],[21,22]],null]],[19,20]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,30]]]]],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                        \\\"],[10,0],[15,0,[29,[\\\"form-group row \\\",[52,[33,5,[\\\"user_status\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,6,[\\\"user_status\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_status\\\"],[14,0,\\\"col-xs-4 text-right status-label\\\"],[12],[1,\\\"Status \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\",\\\"value\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",1],null],\\\"radio\\\",\\\"Active\\\",\\\"high_priority\\\",\\\"user_status\\\",[33,31]]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Active\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n\\\\n                            \\\"],[1,[28,[35,7],null,[[\\\"click\\\",\\\"type\\\",\\\"id\\\",\\\"class\\\",\\\"name\\\"],[[28,[37,17],[[30,0],\\\"clicky\\\",2],null],\\\"radio\\\",\\\"Inactive\\\",\\\"high_low\\\",\\\"user_status\\\"]]]],[1,\\\"\\\\n                            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"Inactive\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[33,5,[\\\"user_status\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,25,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[25]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,6,[\\\"user_status\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                          \\\"],[1,[34,32]],[1,\\\"\\\\n                          \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                            \\\"],[6,[39,33],null,[[\\\"class\\\",\\\"route\\\"],[\\\" btn btn-warning btn-large\\\",\\\"settings.masters.users.list\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cancel\\\"]],[]]]]],[1,\\\"\\\\n                            \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,17],[[30,0],\\\"submit\\\",[33,4]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,34]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"branch\\\",\\\"error\\\",\\\"role\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"format\\\",\\\"error\\\",\\\"level\\\",\\\"error\\\",\\\"products\\\",\\\"category\\\",\\\"product\\\",\\\"key\\\",\\\"permission\\\",\\\"key\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"user_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"username\\\",\\\"email_id\\\",\\\"mobile_no\\\",\\\"employee_code\\\",\\\"showInTimeslot\\\",\\\"eq\\\",\\\"action\\\",\\\"branches\\\",\\\"roles\\\",\\\"user_label\\\",\\\"user_order\\\",\\\"user_color\\\",\\\"pres_print\\\",\\\"prescriptionformats\\\",\\\"rcp_print\\\",\\\"receiptformats\\\",\\\"doctor-level\\\",\\\"-each-in\\\",\\\"permissions\\\",\\\"id\\\",\\\"user_status\\\",\\\"radioarray\\\",\\\"link-to\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/users/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/users/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"74dVcI1E\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/users/list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"EFISW2GW\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[33,1],[[[10,0],[14,0,\\\"main masters\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"container-fluid cware\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-2 menubar\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,2],null,[[\\\"perDetial\\\"],[[33,3]]]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"col-md-10 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"h2\\\"],[14,0,\\\"masters-title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" \\\"],[1,[34,4]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                            \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,7,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[1,[28,[35,8],null,[[\\\"flash\\\"],[[30,1]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                            \\\"],[10,0],[14,0,\\\"row paddingright40\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                                        \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-inline\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"query_string\\\"],[14,0,\\\"control-label\\\"],[12],[1,\\\"Search User \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[1,[28,[35,9],null,[[\\\"type\\\",\\\"class\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control querybox\\\",\\\"query_string\\\",\\\"Enter User Name\\\",[33,10]]]]],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"submit\\\"],[4,[38,11],[[30,0],\\\"search_user\\\"],null],[12],[1,\\\"Search\\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,1],[14,5,\\\"padding: 0 84px\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"AddUser\\\",[33,3]],null],[[[1,\\\"                                                \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-info\\\",\\\"settings.masters.users.add\\\"]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"fa fa-plus\\\"],[12],[13],[1,\\\"\\\\n                                                Add User\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                                            \\\"],[10,0],[14,0,\\\"listing\\\"],[12],[1,\\\"\\\\n                                                \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                              Name\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Email Id\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Mobile No\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Added Date\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Updated Date\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"2FA Status\\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Status\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n                                                                Actions\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[33,14]],null]],null],null,[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"Name\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"email\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[30,2,[\\\"mobile_no\\\"]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[28,[35,15],[[30,2,[\\\"creation_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                \\\"],[1,[28,[35,15],[[30,2,[\\\"modification_date\\\"]]],[[\\\"format\\\"],[\\\"DD-MM-YYYY hh:mm A\\\"]]]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,1],[15,0,[29,[\\\"label label-\\\",[52,[30,2,[\\\"mfa_enabled\\\"]],\\\"success\\\",\\\"default\\\"]]]],[12],[1,\\\"\\\\n                                                                \\\"],[1,[52,[30,2,[\\\"mfa_enabled\\\"]],\\\"Enabled\\\",\\\"Disabled\\\"]],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                                                                 \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-success\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                                 \\\"],[41,[28,[37,16],[[30,2,[\\\"status\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"badge badge-danger\\\"],[12],[1,\\\"Inactive\\\"],[13],[1,\\\" \\\"]],[]],null],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[\\\"EditUser\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[6,[39,13],null,[[\\\"class\\\",\\\"title\\\",\\\"route\\\",\\\"model\\\"],[\\\"btn btn-warning btn-xs\\\",\\\"Edit User\\\",\\\"settings.masters.users.edit\\\",[30,2,[\\\"user_id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pencil\\\"],[12],[13],[1,\\\" Edit\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[\\\"RemoveUser\\\",[33,3]],null],[[[1,\\\"                                                                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"user_delete\\\",[30,2,[\\\"user_id\\\"]],[30,2,[\\\"Name\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-times-circle-o\\\"],[14,\\\"title\\\",\\\"Delete User\\\"],[12],[1,\\\" Remove\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                                                                 \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger btn-xs\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"reset2FA\\\",[30,2,[\\\"user_id\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[14,\\\"title\\\",\\\"Reset 2FA\\\"],[12],[1,\\\" Reset 2FA\\\"],[13],[13],[1,\\\"\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"                                                        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                                                            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                                                                Sorry, No User found.\\\\n                                                            \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                                                    \\\"],[13],[1,\\\"\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                                \\\"],[10,\\\"nav\\\"],[14,\\\"aria-label\\\",\\\"Page navigation pagination_cware\\\"],[14,0,\\\"pagination_cware\\\"],[12],[1,\\\"\\\\n                                                    \\\"],[10,\\\"ul\\\"],[14,0,\\\"pagination justify-content-center\\\"],[12],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",\\\"1\\\",\\\"self\\\"],null],[12],[1,\\\"First\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,17],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,17],\\\"prev\\\"],null],[12],[1,\\\"Previous\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[28,[37,18],[[33,19],[33,20]],null]],null]],null],null,[[[41,[28,[37,16],[[30,3],\\\"...\\\"],null],[[[1,\\\"                                                                \\\"],[10,\\\"li\\\"],[14,0,\\\"page-item disabled\\\"],[12],[1,\\\"\\\\n                                                                    \\\"],[10,1],[14,0,\\\"page-link\\\"],[12],[1,\\\"...\\\"],[13],[1,\\\"\\\\n                                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                                                \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[28,[37,16],[[33,19],[30,3]],null],\\\"current\\\"]]]],[12],[1,\\\"\\\\n                                                                    \\\"],[11,3],[24,0,\\\"page-link\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[30,3],\\\"self\\\"],null],[12],[1,\\\"\\\\n                                                                        \\\"],[1,[30,3]],[1,\\\"\\\\n                                                                    \\\"],[13],[1,\\\"\\\\n                                                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null],[1,\\\"                                                        \\\"],[3,\\\" <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">2</a></li>\\\\n                        <li class=\\\\\\\"page-item\\\\\\\"><a class=\\\\\\\"page-link\\\\\\\" href=\\\\\\\"#\\\\\\\">3</a></li>\\\"],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,21],\\\"next\\\"],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"page-item \\\",[52,[33,21],\\\"null\\\",\\\"disabled\\\"]]]],[12],[1,\\\"\\\\n                                                            \\\"],[11,3],[24,0,\\\"page-link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[[30,0],\\\"showPagination\\\",[33,20],\\\"self\\\"],null],[12],[1,\\\"Last\\\"],[13],[1,\\\"\\\\n                                                        \\\"],[13],[1,\\\"\\\\n                                                        \\\"],[10,\\\"li\\\"],[14,0,\\\"pull-right\\\"],[12],[1,[34,22]],[1,\\\" - \\\"],[1,[34,23]],[1,\\\" of \\\"],[1,[34,24]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                                    \\\"],[13],[1,\\\"\\\\n\\\\n                                                \\\"],[13],[1,\\\"\\\\n                                            \\\"],[13],[1,\\\"\\\\n\\\\n                                        \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,[34,25]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"flash\\\",\\\"user\\\",\\\"page\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"master-menu\\\",\\\"permission_arr\\\",\\\"page\\\",\\\"each\\\",\\\"-track-array\\\",\\\"flashes\\\",\\\"flash-message\\\",\\\"input\\\",\\\"query_string\\\",\\\"action\\\",\\\"check-permission\\\",\\\"link-to\\\",\\\"users\\\",\\\"format-datetime\\\",\\\"eq\\\",\\\"prev_page_url\\\",\\\"pagination-pages\\\",\\\"current_page\\\",\\\"last_page\\\",\\\"next_page_url\\\",\\\"from\\\",\\\"to\\\",\\\"total_item\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/users/list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/masters/users/profile\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"8322UlL6\",\n    \"block\": \"[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main profile-page\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"row \\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-md-12 paddingleft2 contentdiv\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"profile-title\\\"],[12],[1,\\\" \\\"],[1,[34,0]],[1,\\\" \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n                        \\\"],[3,\\\" Tabs Navigation \\\"],[1,\\\"\\\\n                        \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-tabs\\\"],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"li\\\"],[14,0,\\\"active\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"tab\\\"],[14,6,\\\"#profile-info\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Profile Info\\\"],[13],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[10,\\\"li\\\"],[12],[10,3],[14,\\\"data-toggle\\\",\\\"tab\\\"],[14,6,\\\"#two-fa\\\"],[12],[10,\\\"strong\\\"],[12],[1,\\\"Two-Factor Authentication\\\"],[13],[13],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n                        \\\"],[10,0],[14,0,\\\"tab-content\\\"],[12],[1,\\\"\\\\n                          \\\"],[3,\\\" Profile Info Tab \\\"],[1,\\\"\\\\n                          \\\"],[10,0],[14,1,\\\"profile-info\\\"],[14,0,\\\"tab-pane fade in active\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"form\\\"],[14,0,\\\"common mt-25\\\"],[14,\\\"role\\\",\\\"form\\\"],[14,1,\\\"user_add\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_name\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\" Name \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,2,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,3,[\\\"user_name\\\"]],\\\"has-error\\\"],\\\" cware-disabled\\\"]]],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"user_name\\\",\\\"user_name\\\",\\\"Name\\\",[33,5]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"user_name\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,1,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"user_name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"username\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Username \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,2,[\\\"username\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,3,[\\\"username\\\"]],\\\"has-error\\\"],\\\" cware-disabled\\\"]]],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"username\\\",\\\"username\\\",\\\"Username\\\",[33,8],\\\"disabled\\\"]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"username\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,2,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"username\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email_id\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Email Id \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[15,0,[29,[\\\"col-xs-3  \\\",[52,[33,2,[\\\"email_id\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,3,[\\\"email_id\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"email_id\\\",\\\"email_id\\\",\\\"Email Id\\\",[33,9]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"email_id\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"email_id\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n                                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"mobile_no\\\"],[14,0,\\\"col-xs-2 text-right control-label\\\"],[12],[1,\\\"Mobile No \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[15,0,[29,[\\\"col-xs-3 \\\",[52,[33,2,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,3,[\\\"mobile_no\\\"]],\\\"has-error\\\"],\\\" \\\"]]],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"text\\\",\\\"form-control\\\",\\\"mobile_no\\\",\\\"mobile_no\\\",\\\"Mobile No\\\",[33,10]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"mobile_no\\\"]]],null]],null],null,[[[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"                                  \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"mobile_no\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\"This below section is used for reset password \\\"],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"user_type\\\"],[14,0,\\\"col-xs-11 text-right status-label\\\"],[12],[1,\\\"Reset password\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"input\\\"],[14,3,\\\"change_pass\\\"],[14,1,\\\"change_pass\\\"],[14,2,\\\"1\\\"],[15,\\\"onclick\\\",[28,[37,11],[[30,0],\\\"ChangePassword\\\"],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"password_show row\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[15,0,[29,[\\\"password-section col-sm-offset-2 col-xs-8 \\\",[52,[33,2,[\\\"password\\\"]],\\\"has-error\\\"],\\\" \\\",[52,[33,3,[\\\"password\\\"]],\\\"has-error\\\"]]]],[12],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-10 row\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"password\\\",\\\"off\\\",\\\"password\\\",\\\"Password\\\",[33,12]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"password\\\"]]],null]],null],null,[[[1,\\\"                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,5,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-10 row\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm_password\\\"],[14,0,\\\"col-xs-3 text-right control-label\\\"],[12],[1,\\\"Confirm\\\\n                                        Password \\\"],[10,1],[14,0,\\\"required\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                      \\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[1,\\\"\\\\n                                        \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"autocomplete\\\",\\\"name\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"password\\\",\\\"form-control\\\",\\\"confirm_password\\\",\\\"off\\\",\\\"confirm_password\\\",\\\"Confirm Password\\\",[33,13]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[33,2,[\\\"confirm_password\\\"]]],null]],null],null,[[[1,\\\"                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[30,6,[\\\"message\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"                                        \\\"],[10,1],[14,0,\\\"help-block\\\"],[12],[1,[33,3,[\\\"confirm_password\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                    \\\"],[10,0],[14,0,\\\"col-xs-10 row\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,2],[14,0,\\\"text-danger col-sm-offset-3\\\"],[12],[1,\\\"* \\\"],[10,\\\"i\\\"],[12],[1,\\\" If you change you password, your\\\\n                                          session will be reset and you\\\\n                                          will be redirected to login page then you have to login again with new\\\\n                                          password to continue.\\\"],[13],[1,\\\".\\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                              \\\"],[3,\\\" for consultancy fees \\\"],[1,\\\"\\\\n                              \\\"],[1,[28,[35,4],null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"name\\\",\\\"value\\\"],[\\\"hidden\\\",\\\"form-control\\\",\\\"id\\\",\\\"id\\\",[33,14]]]]],[1,\\\"\\\\n                              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                              \\\"],[1,[34,15]],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"row margin-bottom\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"col-sm-2 col-sm-offset-8\\\"],[12],[1,\\\"\\\\n                                  \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-block btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"saveprofile\\\",[33,0]],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[3,\\\" end Profile Info Tab \\\"],[1,\\\"\\\\n                          \\\"],[3,\\\" Two-Factor Authentication Tab \\\"],[1,\\\"\\\\n                          \\\"],[10,0],[14,1,\\\"two-fa\\\"],[14,0,\\\"tab-pane fade\\\"],[12],[1,\\\"\\\\n                            \\\"],[10,\\\"form\\\"],[14,0,\\\"form-horizontal\\\"],[14,1,\\\"2FAEnabled\\\"],[14,\\\"role\\\",\\\"form\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"panel-body\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,\\\"label\\\"],[14,0,\\\"col-sm-3 control-label\\\"],[12],[1,\\\"2FA Status:\\\"],[13],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-sm-9\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,2],[14,0,\\\"form-control-static\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,1],[15,0,[29,[\\\"label label-\\\",[52,[33,16],\\\"success\\\",\\\"default\\\"]]]],[12],[1,\\\"\\\\n                                        \\\"],[1,[52,[33,16],\\\"Enabled\\\",\\\"Disabled\\\"]],[1,\\\"\\\\n                                      \\\"],[13],[1,\\\"\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[33,16],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n                                  \\\"],[10,0],[14,0,\\\"col-sm-offset-3 col-sm-9\\\"],[12],[1,\\\"\\\\n                                    \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger\\\"],[15,\\\"onclick\\\",[28,[37,11],[[30,0],\\\"reset2FA\\\",[33,14]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                                      \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-lock\\\"],[12],[13],[1,\\\" Reset 2FA\\\\n                                    \\\"],[13],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,17],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[12],[1,\\\"\\\\n                                  Two-Factor Authentication has been \\\"],[10,\\\"strong\\\"],[12],[1,\\\"reset\\\"],[13],[1,\\\". Please ensure your\\\\n                                  account is still secure.\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n                            \\\"],[13],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                          \\\"],[3,\\\" end Two-Factor Authentication Tab \\\"],[1,\\\"\\\\n                        \\\"],[13],[1,\\\" \\\"],[3,\\\" end tab-content \\\"],[1,\\\"\\\\n                      \\\"],[13],[1,\\\" \\\"],[3,\\\" end panel-body \\\"],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\" \\\"],[3,\\\" end col-md-12 \\\"],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"page\\\",\\\"if\\\",\\\"errors\\\",\\\"vali_errors\\\",\\\"input\\\",\\\"user_name\\\",\\\"each\\\",\\\"-track-array\\\",\\\"username\\\",\\\"email_id\\\",\\\"mobile_no\\\",\\\"action\\\",\\\"password\\\",\\\"confirm_password\\\",\\\"id\\\",\\\"radioarray\\\",\\\"is2FAEnabled\\\",\\\"show2FAResetMessage\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/masters/users/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/maximum-token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"R6+c3gy4\",\n    \"block\": \"[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"title text-center\\\"],[12],[1,\\\" Maximum Token \\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Define maximum tokens for each doctor on kiosk.\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-unstyled doctor-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"    \\\\n    \\\\t\\\\n    \\\\t\\\\t\\\\n    \\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n    \\\\t\\\"],[10,0],[14,0,\\\"col-xs-5 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label\\\"],[12],[1,[30,1,[\\\"Name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n         \\\"],[13],[1,\\\"\\\\n         \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,0,\\\"max-token form-control\\\"],[15,\\\"data-id\\\",[29,[[30,1,[\\\"map_id\\\"]]]]],[14,3,\\\"max_token\\\"],[14,\\\"placeholder\\\",\\\"\\\"],[15,2,[30,1,[\\\"maximum_token_number\\\"]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n    \\\\n  \\\\n\\\"]],[1]],[[[1,\\\"    \\\"],[10,\\\"li\\\"],[12],[1,\\\"No data found.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[10,\\\"li\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\" btn btn-success btn-large\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"submit\\\"],null],[12],[1,\\\"Submit\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"doctor\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"doctors\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/maximum-token.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/settings/print-token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"QblF7oNG\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"panel panel-info\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"panel-body \\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[10,\\\"h2\\\"],[14,0,\\\"title text-center\\\"],[12],[1,\\\" Print Tokens \\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-tabs text-center\\\"],[14,\\\"role\\\",\\\"tablist\\\"],[14,1,\\\"assign-tab-list\\\"],[14,5,\\\"margin:0 auto;background:#FFF;border-radius:5px 5px 0px 0px;border-bottom:none;width:60%;border-bottom:1px solid #ccc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"active\\\"],[12],[11,3],[24,\\\"data-tab\\\",\\\"patient\\\"],[4,[38,2],[[30,0],\\\"showTab\\\",\\\"patient\\\"],null],[12],[1,\\\"Patient Queue\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"\\\"],[12],[11,3],[24,\\\"data-tab\\\",\\\"medicine\\\"],[4,[38,2],[[30,0],\\\"showTab\\\",\\\"medicine\\\"],null],[12],[1,\\\"Medicine Queue\\\"],[13],[13],[1,\\\"\\\\n          \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"\\\"],[12],[11,3],[24,\\\"data-tab\\\",\\\"appointments\\\"],[4,[38,2],[[30,0],\\\"showTab\\\",\\\"appointments\\\"],null],[12],[1,\\\"Appointments\\\"],[13],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"tab-content print-token\\\"],[14,5,\\\"margin-top:50px;width:60%;margin:0 auto;min-height:300px;padding-top:30px;text-align:left\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[14,0,\\\"tab-pane active\\\"],[14,1,\\\"patient\\\"],[12],[1,\\\" \\\\n          \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"queue\\\"]]],null]],null],null,[[[1,\\\"            \\\\t \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n              \\\\n                    \\\"],[1,[30,2]],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label capitalize\\\"],[12],[41,[30,1,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                  \\\\n                  \\\"],[1,[30,1,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n                  \\\\n\\\"]],[]],[[[1,\\\"                  \\\\n                    \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                  \\\\n                  \\\"]],[]]],[1,\\\": \\\"],[1,[30,1,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,1,[\\\"last_name\\\"]]],[1,\\\" : PQ-\\\"],[1,[30,1,[\\\"queue_number\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[11,\\\"i\\\"],[24,0,\\\"icon-print \\\"],[24,5,\\\" \\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[4,[38,2],[[30,0],\\\"print\\\",\\\"PQ\\\",[30,1,[\\\"queue_number\\\"]],[30,1,[\\\"appointment_time\\\"]],[30,1,[\\\"shift_id\\\"]],[30,1,[\\\"branch_id\\\"]],[30,1,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"                No data found.\\\\n\\\"]],[]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[14,0,\\\"tab-pane \\\"],[14,1,\\\"medicine\\\"],[12],[1,\\\" \\\\n          \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"medicine_queue\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n              \\\\n                    \\\"],[1,[30,2]],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label capitalize\\\"],[12],[41,[30,3,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                  \\\\n                  \\\"],[1,[30,3,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n                  \\\\n\\\"]],[]],[[[1,\\\"                  \\\\n                    \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                  \\\\n                  \\\"]],[]]],[1,\\\": \\\"],[1,[30,3,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,3,[\\\"last_name\\\"]]],[1,\\\" : MQ-\\\"],[1,[30,3,[\\\"medicine_queue_number\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[11,\\\"i\\\"],[24,0,\\\"icon-print\\\"],[24,5,\\\" \\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[4,[38,2],[[30,0],\\\"print\\\",\\\"MQ\\\",[30,3,[\\\"medicine_queue_number\\\"]],[30,3,[\\\"appointment_time\\\"]],[30,3,[\\\"shift_id\\\"]],[30,3,[\\\"branch_id\\\"]],\\\"\\\"],null],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n  \\\\n\\\"]],[3]],[[[1,\\\"                No data found.\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,\\\"role\\\",\\\"tabpanel\\\"],[14,0,\\\"tab-pane \\\"],[14,1,\\\"appointments\\\"],[12],[1,\\\" \\\\n          \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[33,5,[\\\"appointment\\\"]]],null]],null],null,[[[1,\\\"             \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n              \\\\n                    \\\"],[1,[30,2]],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\" text-right control-label capitalize\\\"],[12],[41,[30,4,[\\\"OldRegistrationNo\\\"]],[[[1,\\\"\\\\n                  \\\\n                  \\\"],[1,[30,4,[\\\"OldRegistrationNo\\\"]]],[1,\\\"\\\\n                  \\\\n\\\"]],[]],[[[1,\\\"                  \\\\n                    \\\"],[10,1],[14,5,\\\"color:#740000\\\"],[12],[1,\\\"NP\\\"],[13],[1,\\\"\\\\n                  \\\\n                  \\\"]],[]]],[1,\\\": \\\"],[1,[30,4,[\\\"first_name\\\"]]],[1,\\\" \\\"],[1,[30,4,[\\\"last_name\\\"]]],[1,\\\" : PA-\\\"],[1,[30,4,[\\\"appointment_queue_number\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[11,\\\"i\\\"],[24,0,\\\" icon-print\\\"],[24,5,\\\" \\\"],[24,\\\"title\\\",\\\"Print Token\\\"],[4,[38,2],[[30,0],\\\"print\\\",\\\"PA\\\",[30,4,[\\\"appointment_queue_number\\\"]],[30,4,[\\\"appointment_time\\\"]],[30,4,[\\\"shift_id\\\"]],[30,4,[\\\"branch_id\\\"]],[30,4,[\\\"label\\\"]]],null],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n      \\\\n  \\\\n\\\"]],[4]],[[[1,\\\"                No data found.\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\\n     \\\"],[13],[1,\\\"\\\\t\\\\n  \\\\t\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,6]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"token\\\",\\\"@index\\\",\\\"token\\\",\\\"token\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"all_tokens\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/settings/print-token.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/shift-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"pditXn00\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ShiftReport\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_from\\\",\\\"currentYear\\\",\\\"transaction_from\\\",\\\"Select From date\\\",[33,8],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_to\\\",\\\"currentYear\\\",\\\"transaction_to\\\",\\\"Select To date\\\",[33,9],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"select\\\"],[14,1,\\\"location_id\\\"],[14,3,\\\"location_id\\\"],[14,\\\"yearRange\\\",\\\"currentYear\\\"],[15,2,[36,10]],[14,0,\\\"login location-field form-control\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\" Select a Location \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[33,13]],null]],null],null,[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,\\\" \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ExportButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,3],[24,1,\\\"downloadShiftSummaryReport\\\"],[24,0,\\\"btn btn-success\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,14],[[30,0],\\\"downloadShiftSummary\\\"],[[\\\"on\\\"],[\\\"click\\\"]]],[12],[1,\\\"Download Report\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,15]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"branch\\\"],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"transaction_from\\\",\\\"transaction_to\\\",\\\"location_id\\\",\\\"each\\\",\\\"-track-array\\\",\\\"branches\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/shift-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/transactional-report\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"z2Ab9oSA\",\n    \"block\": \"[[[41,[33,1],[[[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"main reports-list\\\"],[12],[1,\\\"\\\\n\\\\t\\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[10,\\\"h2\\\"],[14,0,\\\"title\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-file\\\"],[12],[13],[1,\\\" \\\"],[1,[34,2]],[1,\\\" \\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-8\\\"],[12],[6,[39,3],null,[[\\\"class\\\",\\\"route\\\"],[\\\"btn btn-primary btn-sm pull-right\\\",\\\"reports\\\"]],[[\\\"default\\\"],[[[[1,\\\"Go Back\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"TransactionalReoprt\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12 search-bar\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-1\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[12],[1,\\\"Search:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_from\\\",\\\"currentYear\\\",\\\"transaction_from\\\",\\\"Select From date\\\",[33,8],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,[35,6],null,[[\\\"locale\\\",\\\"name\\\",\\\"yearRange\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"format\\\",\\\"class\\\"],[[33,7],\\\"transaction_to\\\",\\\"currentYear\\\",\\\"transaction_to\\\",\\\"Select To date\\\",[33,9],\\\"MM/DD/YYYY\\\",\\\"form-control\\\"]]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"ExportButton\\\",[33,5]],null],[[[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success\\\"],[4,[38,10],[[30,0],\\\"downloadTransactionalReports\\\"],null],[12],[1,\\\"Download Report\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[34,11]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"route_access\\\",\\\"page\\\",\\\"link-to\\\",\\\"check-permission\\\",\\\"permission_arr\\\",\\\"pikaday-input\\\",\\\"en\\\",\\\"transaction_from\\\",\\\"transaction_to\\\",\\\"action\\\",\\\"route-message\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/transactional-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/users\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vCs5RjU2\",\n    \"block\": \"[[[10,0],[14,0,\\\"main\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"main-inner\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"span12\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[3,\\\" /widget \\\"],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[3,\\\" /span12 \\\"],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[3,\\\" /row \\\"],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[3,\\\" /container \\\"],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/users/edit\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"801r06Cq\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/users/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/users/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0L9cB6r6\",\n    \"block\": \"[[[1,\\\"hello\\\\n\\\"]],[],false,[]]\",\n    \"moduleName\": \"clinic-dev/templates/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/users/new\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"U8hxGBrq\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/users/new.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/templates/users/profile\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0fxT6kFp\",\n    \"block\": \"[[[10,\\\"form\\\"],[14,3,\\\"user_detail\\\"],[14,1,\\\"user_detail\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[33,2]],null]],null],null,[[[1,\\\"\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Name:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"Name\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Username:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,1,[\\\"username\\\"]]],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,3,\\\"user_id\\\"],[14,1,\\\"user_id\\\"],[15,2,[29,[[30,1,[\\\"user_id\\\"]]]]],[14,5,\\\"display: none;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Password:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t*******\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row update_detail\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"form-group col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"New Password:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"new_password\\\"],[14,1,\\\"new_password\\\"],[14,2,\\\"\\\"],[14,4,\\\"password\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Confirm Password:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,0,\\\"form-control\\\"],[14,3,\\\"confirm_password\\\"],[14,1,\\\"confirm_password\\\"],[14,2,\\\"\\\"],[14,4,\\\"password\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Email:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"edit_detail\\\"],[12],[1,[30,1,[\\\"email\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,3,\\\"user_email\\\"],[14,1,\\\"user_email\\\"],[14,0,\\\"update_detail form-control\\\"],[15,2,[29,[[30,1,[\\\"email\\\"]]]]],[14,5,\\\"display: none;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[14,5,\\\"margin-left:20px\\\"],[12],[1,\\\"Mobile No:\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-2\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,1],[14,0,\\\"edit_detail\\\"],[12],[1,[30,1,[\\\"mobile_no\\\"]]],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"input\\\"],[14,3,\\\"mobile_no\\\"],[14,1,\\\"mobile_no\\\"],[14,0,\\\"update_detail form-control\\\"],[15,2,[29,[[30,1,[\\\"mobile_no\\\"]]]]],[14,5,\\\"display: none;\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[10,0],[14,0,\\\"form-group row\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-12\\\"],[12],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,0],[14,0,\\\"col-xs-4\\\"],[12],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-large btn-warning pull-right edit_detail\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"editDetail\\\"],null],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-large btn-success pull-right update_detail marginLeft10\\\"],[24,5,\\\"display: none;\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"updateDetail\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-large btn-danger pull-right update_detail\\\"],[24,5,\\\"display: none;\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"cancelUpdate\\\"],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\\t\\\"],[13],[1,\\\"\\\\n\\\\t\\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13]],[\\\"userData\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"userDetails\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"clinic-dev/templates/users/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"clinic-dev/transforms/boolean\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.BooleanTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/transforms/date\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.DateTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/transforms/number\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.NumberTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/transforms/string\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.StringTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/utils/ajax-error-handler\", [\"exports\", \"clinic-dev/utils/display-alert\"], function (_exports, _displayAlert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.handleAjaxError = handleAjaxError;\n  0; //eaimeta@70e063a35619d71f0,\"clinic-dev/utils/display-alert\"eaimeta@70e063a35619d71f\n  function handleAjaxError(jqXHR, textStatus, errorThrown, sectionId) {\n    let message;\n    if (jqXHR.status === 0) {\n      message = 'Network error: Please check your internet connection.';\n    } else if (jqXHR.status === 404) {\n      message = 'Error 404: The requested resource could not be found.';\n    } else if (jqXHR.status === 500) {\n      message = 'Error 500: Internal server error. Please try again later.';\n    } else {\n      message = `Unexpected error (${jqXHR.status}): ${errorThrown}`;\n    }\n    $('#loader').hide();\n    (0, _displayAlert.displayAlertMessage)(sectionId, message);\n  }\n});","define(\"clinic-dev/utils/display-alert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.displayAlertMessage = displayAlertMessage;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // utils/display-alert.js\n  function displayAlertMessage(sectionId, message) {\n    const sectionElement = document.getElementById(sectionId);\n    if (sectionElement) {\n      const alertDiv = document.createElement('div');\n      alertDiv.className = 'alert-message';\n      alertDiv.innerText = message;\n      // Style the alert div (optional)\n      alertDiv.style.position = 'absolute';\n      alertDiv.style.top = '0';\n      alertDiv.style.left = '0';\n      alertDiv.style.backgroundColor = 'red';\n      alertDiv.style.color = 'white';\n      alertDiv.style.padding = '10px';\n      alertDiv.style.zIndex = '1000';\n      sectionElement.prepend(alertDiv);\n\n      // Remove the alert after a few seconds (optional)\n      setTimeout(() => {\n        alertDiv.remove();\n      }, 5000); // Remove after 5 seconds\n    } else {\n      console.warn(`Section with ID ${sectionId} not found.`);\n    }\n  }\n});","define(\"clinic-dev/utils/i18n/compile-template\", [\"exports\", \"ember-i18n/utils/i18n/compile-template\"], function (_exports, _compileTemplate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _compileTemplate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-i18n/utils/i18n/compile-template\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/utils/i18n/missing-message\", [\"exports\", \"ember-i18n/utils/i18n/missing-message\"], function (_exports, _missingMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _missingMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-i18n/utils/i18n/missing-message\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/utils/slot-realtime-handler\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // Slot Realtime Handler for Ember + jQuery\n  class SlotRealtimeHandler {\n    constructor(echo, currentUserId, currentBranchId) {\n      this.echo = echo;\n      this.currentUserId = currentUserId;\n      this.currentBranchId = currentBranchId;\n      this.channel = null;\n      this.init();\n    }\n    init() {\n      // Subscribe to branch-specific channel\n      this.channel = this.echo.channel(`appointments.branch.${this.currentBranchId}`);\n\n      // Listen for slot locked events\n      this.channel.listen('SlotLocked', data => {\n        this.handleSlotLocked(data);\n      });\n\n      // Listen for slot unlocked events\n      this.channel.listen('SlotUnlocked', data => {\n        this.handleSlotUnlocked(data);\n      });\n    }\n    handleSlotLocked(data) {\n      const {\n        branch_id,\n        doctor_id,\n        appointment_date,\n        slot,\n        locked_by,\n        user_id\n      } = data;\n\n      // Find the slot element\n      const $slot = this.findSlotElement(branch_id, doctor_id, appointment_date, slot);\n      if ($slot.length) {\n        // Remove available classes\n        $slot.removeClass('available available_slot doctorlockedcheck');\n\n        // Add locked class\n        $slot.addClass('locked');\n\n        // Update content with lock icon\n        $slot.html('🔒');\n\n        // Set tooltip\n        const tooltipText = user_id === this.currentUserId ? 'Locked by YOU' : `Locked by ${locked_by}`;\n        $slot.attr('title', tooltipText);\n\n        // Store reservation data\n        $slot.data('reservation-id', data.reservation_id);\n        $slot.data('locked-by-user', user_id);\n      }\n    }\n    handleSlotUnlocked(data) {\n      const {\n        branch_id,\n        doctor_id,\n        appointment_date,\n        slot\n      } = data;\n\n      // Find the slot element\n      const $slot = this.findSlotElement(branch_id, doctor_id, appointment_date, slot);\n      if ($slot.length) {\n        // Remove locked class\n        $slot.removeClass('locked');\n\n        // Add available classes back\n        $slot.addClass('available available_slot doctorlockedcheck');\n\n        // Restore original branch title (assuming it's stored in data attribute)\n        const originalText = $slot.data('original-text') || $slot.data('branch-title') || 'Available';\n        $slot.html(originalText);\n\n        // Remove tooltip\n        $slot.removeAttr('title');\n\n        // Clear reservation data\n        $slot.removeData('reservation-id');\n        $slot.removeData('locked-by-user');\n      }\n    }\n    findSlotElement(branchId, doctorId, appointmentDate, slot) {\n      // Find slot using data attributes\n      return $(`td[data-branchid=\"${branchId}\"][data-doctorid=\"${doctorId}\"][data-date=\"${appointmentDate}\"][data-slot=\"${slot}\"]`);\n    }\n\n    // Method to handle slot click with conflict prevention\n    handleSlotClick($slot, callback) {\n      // Check if slot is already locked\n      if ($slot.hasClass('locked')) {\n        const lockedByUser = $slot.data('locked-by-user');\n        const lockedBy = $slot.attr('title');\n        if (lockedByUser === this.currentUserId) {\n          // User's own lock - allow unlock\n          if (callback) callback('unlock', $slot);\n        } else {\n          // Show conflict message\n          this.showConflictMessage(`⚠ Slot already locked by another user`);\n        }\n        return false;\n      }\n\n      // Slot is available - allow lock\n      if (callback) callback('lock', $slot);\n      return true;\n    }\n    showConflictMessage(message) {\n      // Show conflict notification (customize based on your UI framework)\n      if (window.toastr) {\n        toastr.warning(message);\n      } else if (window.Swal) {\n        Swal.fire('Conflict', message, 'warning');\n      } else {\n        alert(message);\n      }\n    }\n\n    // Cleanup method\n    destroy() {\n      if (this.channel) {\n        this.echo.leaveChannel(`appointments.branch.${this.currentBranchId}`);\n      }\n    }\n  }\n\n  // Usage in Ember Route/Controller\n  var _default = _exports.default = SlotRealtimeHandler;\n});","define(\"clinic-dev/utils/time-format\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertTo12Hour = convertTo12Hour;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function convertTo12Hour(time24) {\n    if (!time24) return '';\n    let [hours, minutes] = time24.split(':');\n    hours = parseInt(hours, 10);\n    const ampm = hours >= 12 ? 'PM' : 'AM';\n    hours = hours % 12;\n    if (hours === 0) hours = 12;\n    minutes = minutes.padStart(2, '0');\n    return `${hours}:${minutes} ${ampm}`;\n  }\n});","define(\"clinic-dev/utils/uuid-generator\", [\"exports\", \"ember-uuid/utils/uuid-generator\"], function (_exports, _uuidGenerator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _uuidGenerator.default;\n    }\n  });\n  Object.defineProperty(_exports, \"parse\", {\n    enumerable: true,\n    get: function () {\n      return _uuidGenerator.parse;\n    }\n  });\n  Object.defineProperty(_exports, \"unparse\", {\n    enumerable: true,\n    get: function () {\n      return _uuidGenerator.unparse;\n    }\n  });\n  Object.defineProperty(_exports, \"v1\", {\n    enumerable: true,\n    get: function () {\n      return _uuidGenerator.v1;\n    }\n  });\n  Object.defineProperty(_exports, \"v4\", {\n    enumerable: true,\n    get: function () {\n      return _uuidGenerator.v4;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-uuid/utils/uuid-generator\",0,\"ember-uuid/utils/uuid-generator\"eaimeta@70e063a35619d71f\n});","define(\"clinic-dev/views/settings/maximum-token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.View.extend({});\n});","define(\"clinic-dev/views/settings/print-token\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.View.extend({});\n});","\n","define('clinic-dev/config/environment', [], function() {\n  var prefix = 'clinic-dev';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"clinic-dev/app\")[\"default\"].create({\"api_url\":\"https://clinic.drkbanerjee.com:4333/\",\"doctor_url\":\"https://clinic.drkbanerjee.com:4633/\",\"lumen_api_url\":\"https://clinic.drkbanerjee.com:4633/api/\",\"report_url\":\"https://dkbcfiles-mumbai.s3.ap-south-1.amazonaws.com/\",\"refresh_interval\":300000,\"patient_in_tab_interval\":1000,\"dkb_id\":\"0b4ce8f5-e51e-11e5-9307-06de367cbccd\",\"PUSHER_APP_KEY\":\"app-key\",\"PUSHER_APP_CLUSTER\":\"ap2\",\"PUSHER_HOST\":\"ws-ap2.pusher.com\",\"PUSHER_PORT\":443,\"PUSHER_SCHEME\":\"https\",\"name\":\"clinic-dev\",\"version\":\"3.0.9+6c590fce\"});\n          }\n        \n"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;;AC/BA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;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;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;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;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;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;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;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;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;;AC/TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjLA;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpiBA;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;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;;ACtEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;AACA;AACA;AACA;;AC5CA;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;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;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;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;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;;ACzMA;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;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;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;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;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;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;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;;ACzRA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;;ACpXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;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;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;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;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;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;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;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC7lBA;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;AC7BA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACngBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;AACA;AACA;;AC5CA;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;;ACnSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;;ACxvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACzgDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;;AC5EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;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;AACA;AACA;AACA;AACA;;AC7CA;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;;AC7ZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5QA;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;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;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;;ACpHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;AC3PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;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;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;;ACvUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;;AC7GA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACppCA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;ACp/GA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACvmRA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrOA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACloBA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC/vHA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC3zGA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxkBA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC5hCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACt5IA;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;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;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;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;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC5sCA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3QA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC50BA;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;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;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;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;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;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;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;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;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;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;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;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;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;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;;AClWA;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvdA;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;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;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;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;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;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;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;;AC7RA;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvdA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACrnCA;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;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;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;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;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;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;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;;AClRA;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;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;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;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;AACA;AACA;AACA;;ACvKA;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;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;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;AACA;;AC5HA;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;ACjfA;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;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;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;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;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;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;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;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;;ACzTA;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtVA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtQA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjOA;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;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;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;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;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;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;;ACjPA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;AC3PA;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;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;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;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;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;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;;AC5OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACv6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;;AC/BA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;AClNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;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;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;AACA;AACA;AACA;AACA;;ACtFA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;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;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;;AC7EA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClLA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;;AC1PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;AACA;AACA;AACA;AACA;AACA;;ACvFA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;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;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;;AChFA;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;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;;AC3EA;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;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;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;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;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;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;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;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;AC/BA;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;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;;AC5EA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;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;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;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;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;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;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;;ACtPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;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;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;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;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;;ACrPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;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;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;AC5BA;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;;AChCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1NA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;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;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;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;;AC5GA;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;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;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;;AC5GA;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;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;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;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;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;AACA;AACA;AACA;;AChNA;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;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;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;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;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;;AC7MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;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;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;;AC1HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;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;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;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;;AClCA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;AC7BA;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;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;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;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;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;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;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;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;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;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;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;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;;AC1eA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;AACA;AACA;;AC1UA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AChmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;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;;AC7EA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC51BA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzQA;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;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;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;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;;ACvHA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACniHA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;;ACnxHA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/oKA;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;;AC9BA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;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;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;AACA;AACA;AACA;;ACrFA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AClwBA;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;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;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC1qBA;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5hBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;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;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;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;;ACjHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;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;;ACjFA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACjjBA;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;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;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;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;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;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;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;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;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;AACA;AACA;;ACnXA;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnVA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;ACluPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;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;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;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;AACA;AACA;AACA;;AC7CA;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;;AC1BA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1QA;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;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;;AC7EA;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;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;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;;ACxHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;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;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;AACA;;AC5HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;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;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;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;;ACpHA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;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;;ACjCA;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;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;;ACjFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;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;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;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;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;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;AACA;AACA;;AC/MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;;AC7CA;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;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;AACA;AACA;AACA;;ACrFA;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;;ACzCA;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;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;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;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;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;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;AACA;;AC1CA;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;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;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;;AC1CA;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;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;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;;AC9GA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;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;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;;ACjFA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;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;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;;ACzEA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;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;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;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;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;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;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;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;;AC7RA;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;;ACxCA;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;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;AACA;AACA;AACA;AACA;;ACtFA;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;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;AACA;AACA;;ACpFA;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;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;;AChFA;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;;AC7BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACpCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;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;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;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;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;;ACrJA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;;AChMA;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;;AC5UA;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtNA;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpaA;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;;ACzhBA;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;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;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;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;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;;ACtMA;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;AACA;AACA;AACA;AACA;;AC7CA;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;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;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;AC/BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;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;;ACpCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;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;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;;ACtEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;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;;AClCA;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;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;AC1BA;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;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;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACxCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACzCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;AACA;AACA;;AC5CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;ACpCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;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;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;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/IA;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;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;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;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;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;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;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;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;;ACxCA;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;;AC7BA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3KA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;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;;AC/BA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;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;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;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;AACA;AACA;AACA;AACA;;AC/HA;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;;AC3EA;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;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrgDA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;;AC3nCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;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;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;;AC7EA;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;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;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;;AClHA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;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;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;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;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"clinic-dev.js"}