File "operationsReport.749de1eac0662f2a10ec.js"

Full path: /home/satitravel/public_html/wp-content/plugins/citynet/public/mobile/js/operationsReport.749de1eac0662f2a10ec.js
File size: 44.35 B
MIME-type: text/plain
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["operationsReport"],{1666:function(t,e,a){},3056:function(t,e,a){"use strict";a.r(e);var i=a("8336"),s=a("a609"),r=a("b0af"),n=a("99d9"),o=a("cc20"),l=a("62ad"),c=a("a523"),u=a("8fea"),d=a("ce7e"),h=a("132d"),f=a("adda"),p=a("8860"),g=a("da13"),m=a("1baa"),v=a("e449"),b=a("8e36"),C=a("0fd9"),y=a("b974"),x=a("8654"),w=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"mt-12"},[e("div",{staticClass:"dir-ltr px-4 d-flex flex-column",attrs:{id:"operations-report"}},[t.newContracts.length&&!t.$vuetify.theme.dark?e(r["a"],{staticClass:"px-6 pt-6 pb-2 dir-ltr moreRadius button shadowAndRadius new-contracts-notifs",attrs:{width:"400",flat:"",color:t.$vuetify.theme.dark?"#353535":"#fff"}},[e("div",{staticClass:"d-flex align-center justify-space-between"},[e("div",[e(n["d"],{staticClass:"white-space-nowrap px-0 pt-0 pb-2"},[e("div",{staticClass:"unseenMassagesChip pa-1 mr-4 rounded white--text d-flex align-center justify-center font-size-16",staticStyle:{width:"30px",height:"30px","box-shadow":"0px 15px 30px rgba(239, 35, 60, 0.5)"}},[t._v(" "+t._s(t.newContracts.length)+" ")]),t._v(" New Contracts "),e(o["a"],{staticClass:"mx-2 py-1",attrs:{small:""}},[t._v("Arrival")])],1),e(n["b"],{staticClass:"white-space-nowrap grey--text px-0 mt-0"},[t._v("Please check and update list")])],1),e(n["c"],{staticClass:"w-fit-content pa-0 mb-8"},[e(h["a"],{staticClass:"icon-remove icon-18 theme-element-bg pa-1 rounded",on:{click:t.getData}})],1)],1),e("div",{staticClass:"custom-scroll",staticStyle:{"max-height":"200px","overflow-y":"auto","overflow-x":"hidden"}},t._l(t.newContracts,(function(a,i){return e(C["a"],{key:"newContracts"+i,on:{click:function(e){return t.openManifest(a)}}},[e(l["a"],{staticClass:"pb-0 text-start",attrs:{cols:"6"}},[t._v("Airline:"),e("span",{staticClass:"mx-1 font-weight-500"},[t._v(t._s(a.airline))])]),e(l["a"],{staticClass:"pb-0 text-end",attrs:{cols:"6"}},[e("i",{staticClass:"icon-export-3 icon-16 px-1"})]),e(l["a"],{staticClass:"pt-0 text-start",attrs:{cols:"6"}},[t._v("Flight Number:"),e("span",{staticClass:"mx-1 font-weight-500"},[t._v(t._s(a.flightNumber))])]),e(l["a"],{staticClass:"pt-0 text-end",attrs:{cols:"6"}},[t._v("Flight Time:"),e("span",{staticClass:"mx-1 font-weight-500"},[t._v(t._s(a.actDateTime.split(" ")[1]))])])],1)})),1),e(n["a"],{staticClass:"justify-end w-100 pt-2"},[e(i["a"],{staticClass:"moreRadius button",attrs:{"x-large":"",color:"blue",dark:"",width:"120",height:"48",depressed:""},on:{click:t.getData}},[t._v(" Update List ")])],1)],1):t._e(),e(r["a"],{staticClass:"pt-4 px-1 order-0",attrs:{flat:"",color:"transparent",tile:""}},[e(C["a"],{attrs:{justify:"space-between"}},[t.$vuetify.theme.dark?t._e():e(l["a"],{attrs:{cols:"1"}},[e(r["a"],{staticClass:"d-flex align-center justify-center",staticStyle:{height:"70px"},attrs:{color:"transparent",flat:""}},[e(i["a"],{staticClass:"w-100 h-100 moreRadius button",attrs:{depressed:"",color:t.$vuetify.theme.dark?"#353535":"#fff"},on:{click:t.reqFullscreen}},[e("div",{staticClass:"d-flex flex-column"},[e("i",{staticClass:"icon-monitor icon-20 pr-1"}),e("div",{staticClass:"mt-1"},[t._v("Fullscreen")])])])],1)],1),e(l["a"],{staticClass:"position-relative py-0 px-2 d-flex align-center",attrs:{cols:t.isUserVisitor?11:5}},[e(r["a"],{staticClass:"w-100 d-flex align-center justify-center moreRadius button",staticStyle:{height:"70px"},attrs:{color:t.$vuetify.theme.dark?"#353535":"#fff",flat:""}},[e(i["a"],{staticClass:"my-0 mx-2 moreRadius button col",class:t.defaultDate?t.$vuetify.theme.dark?"blue":"lightButtons":t.$vuetify.theme.dark?"white":"",style:t.defaultDate?{}:t.$vuetify.theme.dark?{backgroundColor:"#353535 !important"}:{},attrs:{width:"200","min-width":"100",dense:"",text:"",height:"42",dark:t.$vuetify.theme.dark,depressed:""},on:{click:t.setDefaultDate}},[t._v("Default ")]),e(d["a"],{staticClass:"mx-2 my-4",staticStyle:{height:"40px","min-height":"40px","max-height":"40px","border-color":"#f2f2f2"},style:t.$vuetify.theme.dark?{"border-color":"rgb(71 71 71)"}:{"border-color":"#f2f2f2"},attrs:{vertical:""}}),e(s["a"],{staticClass:"row mx-0",class:t.$vuetify.theme.dark?"theme-dark":"theme-light",attrs:{group:"",dark:t.$vuetify.theme.dark,light:!t.$vuetify.theme.dark},on:{change:t.changeShift},model:{value:t.shift,callback:function(e){t.shift=e},expression:"shift"}},[e(i["a"],{staticClass:"my-0 moreRadius button col",attrs:{value:0,dense:"","max-width":"120",height:"42"}},[t._v(" Previous Shift ")]),e(i["a"],{staticClass:"my-0 moreRadius button col",attrs:{value:1,dense:"",height:"42","max-width":"120"}},[t._v(" Current Shift ")]),e(i["a"],{staticClass:"my-0 moreRadius button col",attrs:{value:2,dense:"","max-width":"120",height:"42"}},[t._v(" Next Shift ")])],1)],1)],1),t.isUserVisitor?t._e():e(l["a"],{staticClass:"position-relative py-0 px-2 d-flex align-center",attrs:{cols:"6"}},[e(r["a"],{staticClass:"d-flex align-center justify-center moreRadius button w-100 px-4",staticStyle:{height:"70px"},attrs:{color:t.$vuetify.theme.dark?"#353535":"#fff",flat:""}},[e("date-picker",{staticClass:"mr-2 w-100",attrs:{label:"From",startLabel:"From",dark:t.$vuetify.theme.dark,dense:"",type:"datetime","locale-config":{fa:{inputFormat:"jYYYY/jMM/jDD HH:mm"},en:{inputFormat:"YYYY/MM/DD HH:mm"}},mode:"single",modal:""},on:{focus:function(e){t.shift=null,t.defaultDate=!1}},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}}),e("date-picker",{staticClass:"mr-2 w-100",attrs:{label:"To",startLabel:"To",dark:t.$vuetify.theme.dark,dense:"",type:"datetime","locale-config":{fa:{inputFormat:"jYYYY/jMM/jDD HH:mm"},en:{inputFormat:"YYYY/MM/DD HH:mm"}},mode:"single",modal:""},on:{focus:function(e){t.shift=null,t.defaultDate=!1}},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}}),e(y["a"],{staticClass:"moreRadius input",attrs:{dense:"","item-text":"text","item-value":"value","menu-props":{"offset-y":!0,closeOnClick:!0,contentClass:"moreRadius button custom-scroll menu-shadow"},"hide-details":"",disabled:!t.isChangeStatusEnabled,items:t.statusOptions,outlined:"",label:"status"},model:{value:t.status,callback:function(e){t.status=e},expression:"status"}}),e(h["a"],{staticClass:"icon-Search moreRadius button ml-2",class:t.$vuetify.theme.dark?"theme-dark":"theme-light lightButtons",attrs:{size:"20"},on:{click:t.getData}})],1)],1)],1)],1),e(C["a"],{class:t.$vuetify.theme.dark?"order-2 mb-2":"order-1",staticStyle:{"max-height":"128px"}},[e(l["a"],{staticClass:"h-fit-content",attrs:{cols:"2"}},[e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4`},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("Total")]),e("span",{staticClass:"orange--text text--darken-1 font-weight-400"},[t._v(t._s((t.totalStatistics.Total.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"orange darken-1",value:t.totalStatistics.Total.percentage||0}}),e("div",{staticClass:"d-flex align-center justify-space-between"},[e("span",[e("span",{staticClass:"orange--text text--darken-1 font-size-20"},[t._v(t._s(t.totalStatistics.Total.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.Total.all))])]),t.$vuetify.theme.dark?t._e():e(i["a"],{attrs:{text:"",width:"32","min-width":"32","max-width":"32",height:"32","min-height":"32","max-height":"32"},on:{click:t.getTotalReport}},[e("i",{staticClass:"icon-printer"})])],1)],1)]),e(l["a"],{staticClass:"d-flex h-fit-content"},[e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 leftButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("ARR")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.ARR.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.ARR.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.ARR.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.ARR.all))])],1),e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 rightButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("DEP")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.DEP.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.DEP.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.DEP.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.DEP.all))])],1)]),e(l["a"],{staticClass:"d-flex h-fit-content"},[e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 leftButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("CIP")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.CIP.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.CIP.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.CIP.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.CIP.all))])],1),e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 rightButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("BC")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.BC.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.BC.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.BC.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.BC.all))])],1)]),e(l["a"],{staticClass:"d-flex h-fit-content"},[e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 leftButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("ATT.ARR")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.ATT.ARR.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.ATT.ARR.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.ATT.ARR.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.ATT.ARR.all))])],1),e("div",{class:`total-statistics__box ${t.$vuetify.theme.dark?"dark-theme":"light-theme"} moreRadius button pa-4 rightButton`,staticStyle:{width:"50%"}},[e("div",{staticClass:"d-flex justify-space-between align-center"},[e("span",{staticClass:"font-weight-500"},[t._v("ATT.DEP")]),e("span",{staticClass:"green--text font-weight-400"},[t._v(t._s((t.totalStatistics.ATT.DEP.percentage||0)+"%"))])]),e(b["a"],{staticClass:"my-2",attrs:{rounded:"","background-color":t.$vuetify.theme.dark?"#52575C":"#CACCCF",color:"green",value:t.totalStatistics.ATT.DEP.percentage||0}}),e("span",{staticClass:"green--text font-size-20"},[t._v(t._s(t.totalStatistics.ATT.DEP.shown)+" ")]),e("span",[t._v("/ "+t._s(t.totalStatistics.ATT.DEP.all))])],1)])],1),e(C["a"],{staticClass:"mx-0",class:t.$vuetify.theme.dark?"order-1":"order-2"},[e(l["a"],{attrs:{cols:"6 pt-0"}},[e(c["a"],[e(C["a"],[e(l["a"],{staticClass:"d-flex align-end",attrs:{cols:"2"}},[e("span",{staticClass:"headline font-weight-800 orange--text text--darken-1"},[t._v("Arrival")])]),e(l["a"],[e(x["a"],{staticClass:"ml-2",attrs:{label:"Airline",height:32,dense:"","hide-details":"auto"},model:{value:t.airlineIata.arrival,callback:function(e){t.$set(t.airlineIata,"arrival",e)},expression:"airlineIata.arrival"}})],1),e(l["a"],[e("number-field",{staticClass:"ml-2",attrs:{label:"Flight No",height:32,dense:"",noDot:!0,outlined:!1},model:{value:t.fightNumber.arrival,callback:function(e){t.$set(t.fightNumber,"arrival",e)},expression:"fightNumber.arrival"}})],1),e(l["a"],[e(x["a"],{staticClass:"ml-2",attrs:{label:"From",height:32,dense:"","hide-details":"auto"},model:{value:t.airportCode.arrival,callback:function(e){t.$set(t.airportCode,"arrival",e)},expression:"airportCode.arrival"}})],1)],1)],1),e(u["a"],{staticClass:"ruleTable",class:t.$vuetify.theme.dark?"theme-dark":"theme-light",staticStyle:{"border-radius":"20px"},attrs:{headers:t.headers.arrival,items:t.tableItems.arrival,"show-expand":"","item-key":"id",height:t.$vuetify.theme.dark&&t.tableItems.arrival.length?"calc(100vh - 300px)":"","fixed-header":!(!t.$vuetify.theme.dark||!t.tableItems.arrival.length),"items-per-page":-1,"expand-icon":"",expanded:t.expanded.arrival,loading:t.dataLoading.arrival,"hide-default-footer":"",id:"arrival-table","loading-text":t.$t("pleaseWait","en"),"no-data-text":t.$t("noDataFound","en"),flat:""},on:{"click:row":t.openManifest},scopedSlots:t._u([{key:"item.tag",fn:function({item:a}){return[Boolean(t.getColor(a))?e(h["a"],{staticClass:"icon-circle-bold",attrs:{size:"13",color:t.getColor(a)}}):t._e()]}},{key:"item.flightNumber",fn:function({item:e}){return[t._v(" "+t._s(`${e.airline} ${e.flightNumber.substring(0,2).toUpperCase()==e.airline.toUpperCase()?e.flightNumber.substring(2):e.flightNumber}`)+" ")]}},{key:"item.schTime",fn:function({item:e}){return[t._v(" "+t._s(e.flightDateTime.substring(11,16))+" ")]}},{key:"expanded-item",fn:function({headers:a,item:i}){return[i.lastOfDate?e("td",{staticClass:"last-of-date-row",attrs:{colspan:a.length}},[e("div",{staticClass:"d-flex align-center justify-space-between"},[e("span",{staticClass:"px-2 d-flex align-center"},[e("span",[t._v(t._s(t.cnReplaceAll(i.actDateTime.substring(0,11),"-","/")))]),e("i",{staticClass:"icon-chevron-up icon-16 pb-1 px-2"})]),i.nextDate?e("span",{staticClass:"px-2 d-flex align-center"},[e("span",[t._v(t._s(t.cnReplaceAll(i.nextDate,"-","/")))]),e("i",{staticClass:"icon-chevron-down icon-16 pb-1 px-2"})]):t._e()])]):t._e()]}},{key:"item.actTime",fn:function({item:e}){return[t._v(" "+t._s(e.actDateTime.substring(11,16))+" ")]}},{key:"item.passengerCount",fn:function({item:a}){return[e("div",{staticStyle:{display:"flex","align-items":"center",gap:"5px"}},[t._v(" "+t._s(a.ShowPassenger)+" / "+t._s(a.passengerCount)+" ")])]}},{key:"item.bcCount",fn:function({item:e}){return[t._v(" "+t._s(e.BusinessShowPassenger)+" / "+t._s(e.Business)+" ")]}},{key:"item.cipCount",fn:function({item:e}){return[t._v(" "+t._s(e.ShowPassenger-e.BusinessShowPassenger)+" / "+t._s(e.CipCount)+" ")]}},{key:"item.airline",fn:function({item:a}){return[e("span",{staticClass:"d-flex align-center airline-wrapper ml-2",class:t.$vuetify.theme.dark&&!a.imgHasError?"airline-dark":""},[e(f["a"],{staticClass:"airline-logo mx-auto",attrs:{src:t.imgUrl(a.airline,"en"),"max-width":"80"},on:{error:function(e){return t.setImgError(a)}}})],1),a.imgHasError?e("span",{staticClass:"headline w-100 d-block rounded ml-2 img-placeholder",class:t.$vuetify.theme.dark?"grey--text":"grey--text text--darken-2",style:t.$vuetify.theme.dark?{"background-color":"rgba(255, 255, 255, 0.1) !important"}:{"background-color":"rgba(0, 0, 0, 0.05) !important"}},[t._v(" "+t._s(a.airline.toUpperCase())+" ")]):t._e()]}},{key:"item.action",fn:function({item:a}){return[e("div",{staticStyle:{height:"100%",display:"flex","align-items":"center","justify-content":"flex-end"},style:{"border-right":a.femaleCount>0?"12px solid #e89eb8":"12px solid transparent"}},[e(v["a"],{attrs:{"content-class":"actions",left:"","offset-y":"","min-width":"180"},scopedSlots:t._u([{key:"activator",fn:function({on:a,attrs:s}){return[e(i["a"],t._g(t._b({staticClass:"rounded-lg",staticStyle:{transform:"rotate(90deg)"},attrs:{depressed:"",text:"","x-small":""}},"v-btn",s,!1),a),[e(h["a"],{staticClass:"icon-more icon-20"})],1)]}}],null,!0)},[e(p["a"],{attrs:{dense:""}},[e(m["a"],{staticClass:"caption dir-ltr"},[e(g["a"],{on:{click:function(e){return t.getPassengers(a,"board")}}},[e(h["a"],{staticClass:"icon-flag icon-18 pr-2"}),t._v(" Print Board ")],1),e(g["a"],{on:{click:function(e){return t.getPassengers(a,"manifest")}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Flights Manifest ")],1),t.isChangeStatusEnabled?e(g["a"],{on:{click:function(e){return t.takeOffFlight(a)}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Archive ")],1):t._e(),e(g["a"],{on:{click:function(e){return t.credenceLetter(a,"sepah")}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Credence Letter ")],1)],1)],1)],1)],1)]}}],null,!0)})],1),e(l["a"],{attrs:{cols:"6 pt-0"}},[e(c["a"],[e(C["a"],[e(l["a"],{staticClass:"d-flex align-end",attrs:{cols:"2"}},[e("span",{staticClass:"headline font-weight-800 orange--text text--darken-1"},[t._v("Departure")])]),e(l["a"],[e(x["a"],{staticClass:"ml-2",attrs:{label:"Airline",height:32,dense:"","hide-details":"auto"},model:{value:t.airlineIata.departure,callback:function(e){t.$set(t.airlineIata,"departure",e)},expression:"airlineIata.departure"}})],1),e(l["a"],[e("number-field",{staticClass:"ml-2",attrs:{label:"Flight No",height:32,dense:"",noDot:!0,outlined:!1},model:{value:t.fightNumber.departure,callback:function(e){t.$set(t.fightNumber,"departure",e)},expression:"fightNumber.departure"}})],1),e(l["a"],[e(x["a"],{staticClass:"ml-2",attrs:{label:"To",height:32,dense:"","hide-details":"auto"},model:{value:t.airportCode.departure,callback:function(e){t.$set(t.airportCode,"departure",e)},expression:"airportCode.departure"}})],1)],1)],1),e(u["a"],{staticClass:"ruleTable",class:t.$vuetify.theme.dark?"theme-dark":"theme-light",staticStyle:{"border-radius":"20px"},attrs:{headers:t.headers.departure,items:t.tableItems.departure,"item-key":"id",height:t.$vuetify.theme.dark&&t.tableItems.departure.length?"calc(100vh - 300px)":"","expand-icon":"",expanded:t.expanded.departure,"fixed-header":!(!t.$vuetify.theme.dark||!t.tableItems.departure.length),"items-per-page":-1,loading:t.dataLoading.departure,"hide-default-footer":"",id:"departure-table","loading-text":t.$t("pleaseWait","en"),"no-data-text":t.$t("noDataFound","en"),flat:""},on:{"click:row":t.openManifest},scopedSlots:t._u([{key:"item.tag",fn:function({item:a}){return[Boolean(t.getColor(a))?e(h["a"],{staticClass:"icon-circle-bold",attrs:{size:"13",color:t.getColor(a)}}):t._e()]}},{key:"expanded-item",fn:function({headers:a,item:i}){return[i.lastOfDate?e("td",{staticClass:"last-of-date-row",attrs:{colspan:a.length}},[e("div",{staticClass:"d-flex align-center justify-space-between"},[e("span",{staticClass:"px-2 d-flex align-center"},[e("span",[t._v(t._s(t.cnReplaceAll(i.actDateTime.substring(0,11),"-","/")))]),e("i",{staticClass:"icon-chevron-up icon-16 pb-1 px-2"})]),i.nextDate?e("span",{staticClass:"px-2 d-flex align-center"},[e("span",[t._v(t._s(t.cnReplaceAll(i.nextDate,"-","/")))]),e("i",{staticClass:"icon-chevron-down icon-16 pb-1 px-2"})]):t._e()])]):t._e()]}},{key:"item.flightNumber",fn:function({item:e}){return[t._v(" "+t._s(`${e.airline} ${e.flightNumber.substring(0,2).toUpperCase()==e.airline.toUpperCase()?e.flightNumber.substring(2):e.flightNumber}`)+" ")]}},{key:"item.schTime",fn:function({item:e}){return[t._v(" "+t._s(e.flightDateTime.substring(11,16))+" ")]}},{key:"item.actTime",fn:function({item:e}){return[t._v(" "+t._s(e.actDateTime.substring(11,16))+" ")]}},{key:"item.passengerCount",fn:function({item:a}){return[e("div",{staticStyle:{display:"flex","align-items":"center",gap:"5px"}},[t._v(" "+t._s(a.ShowPassenger)+" / "+t._s(a.passengerCount)+" ")])]}},{key:"item.bcCount",fn:function({item:e}){return[t._v(" "+t._s(e.BusinessShowPassenger)+" / "+t._s(e.Business)+" ")]}},{key:"item.cipCount",fn:function({item:e}){return[t._v(" "+t._s(e.ShowPassenger-e.BusinessShowPassenger)+" / "+t._s(e.CipCount)+" ")]}},{key:"item.airline",fn:function({item:a}){return[e("span",{staticClass:"d-flex align-center airline-wrapper ml-2",class:t.$vuetify.theme.dark&&!a.imgHasError?"airline-dark":""},[e(f["a"],{staticClass:"airline-logo mx-auto",attrs:{src:t.imgUrl(a.airline,"en"),"max-width":"80"},on:{error:function(e){return t.setImgError(a)}}})],1),a.imgHasError?e("span",{staticClass:"headline w-100 d-block rounded ml-2 img-placeholder",class:t.$vuetify.theme.dark?"grey--text":"grey--text text--darken-2",style:t.$vuetify.theme.dark?{"background-color":"rgba(255, 255, 255, 0.1) !important"}:{"background-color":"rgba(0, 0, 0, 0.05) !important"}},[t._v(" "+t._s(a.airline.toUpperCase())+" ")]):t._e()]}},{key:"item.action",fn:function({item:a}){return[e("div",{staticStyle:{height:"100%",display:"flex","align-items":"center","justify-content":"flex-end"},style:{"border-right":a.femaleCount>0?"12px solid #e89eb8":"12px solid transparent"}},[e(v["a"],{attrs:{"content-class":"actions",left:"","offset-y":"","min-width":"180"},scopedSlots:t._u([{key:"activator",fn:function({on:a,attrs:s}){return[e(i["a"],t._g(t._b({staticClass:"rounded-lg",staticStyle:{transform:"rotate(90deg)"},attrs:{depressed:"",text:"","x-small":""}},"v-btn",s,!1),a),[e(h["a"],{staticClass:"icon-more icon-20"})],1)]}}],null,!0)},[e(p["a"],{attrs:{dense:""}},[e(m["a"],{staticClass:"caption dir-ltr"},[e(g["a"],{on:{click:function(e){return t.getPassengers(a,"board")}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Airline Receipt ")],1),e(g["a"],{on:{click:function(e){return t.getPassengers(a,"manifest")}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Flights Manifest ")],1),t.isChangeStatusEnabled?e(g["a"],{on:{click:function(e){return t.takeOffFlight(a)}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Archive ")],1):t._e(),e(g["a"],{on:{click:function(e){return t.credenceLetter(a,"sepah")}}},[e(h["a"],{staticClass:"icon-note-1 icon-18 pr-2"}),t._v(" Credence Letter ")],1)],1)],1)],1)],1)]}}],null,!0)})],1)],1)],1)])},D=[],_=a("60a3"),k=a("3817"),T=a("5df0"),S=a("f1a7"),$=a("c514"),I=a("5c1f"),P=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("svg",{attrs:{width:"12px",height:"12px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"SVGRepo_bgCarrier","stroke-width":"0"}}),e("g",{attrs:{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}}),e("g",{attrs:{id:"SVGRepo_iconCarrier"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 9C20 13.0803 16.9453 16.4471 12.9981 16.9383C12.9994 16.9587 13 16.9793 13 17V19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H13V22C13 22.5523 12.5523 23 12 23C11.4477 23 11 22.5523 11 22V21H10C9.44772 21 9 20.5523 9 20C9 19.4477 9.44772 19 10 19H11V17C11 16.9793 11.0006 16.9587 11.0019 16.9383C7.05466 16.4471 4 13.0803 4 9C4 4.58172 7.58172 1 12 1C16.4183 1 20 4.58172 20 9ZM6.00365 9C6.00365 12.3117 8.68831 14.9963 12 14.9963C15.3117 14.9963 17.9963 12.3117 17.9963 9C17.9963 5.68831 15.3117 3.00365 12 3.00365C8.68831 3.00365 6.00365 5.68831 6.00365 9Z",fill:"red"}})])])},F=[],R=function(){var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])},t(e,a)};return function(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(i.prototype=a.prototype,new i)}}(),A=function(t,e,a,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(e,a,n):s(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n},N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e=A([Object(_["a"])({name:"FemaleIcon"})],e),e}(_["d"]),O=N,j=O,L=a("2877"),E=Object(L["a"])(j,P,F,!1,null,null,null),B=E.exports,H=function(){var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])},t(e,a)};return function(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function i(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(i.prototype=a.prototype,new i)}}(),Y=function(t,e,a,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(e,a,n):s(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n},M=function(t,e,a,i){function s(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function n(t){try{l(i.next(t))}catch(e){r(e)}}function o(t){try{l(i["throw"](t))}catch(e){r(e)}}function l(t){t.done?a(t.value):s(t.value).then(n,o)}l((i=i.apply(t,e||[])).next())}))},U=function(t,e){var a,i,s,r,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(e){return l([t,e])}}function l(r){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,i&&(s=2&r[0]?i["return"]:r[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,i=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=e.call(t,n)}catch(o){r=[6,o],i=0}finally{a=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},V=function(t,e,a){if(a||2===arguments.length)for(var i,s=0,r=e.length;s<r;s++)!i&&s in e||(i||(i=Array.prototype.slice.call(e,0,s)),i[s]=e[s]);return t.concat(i||Array.prototype.slice.call(e))},q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dataLoading={arrival:!1,departure:!1},e.items={arrival:[],departure:[]},e.fightNumber={arrival:"",departure:""},e.airlineIata={arrival:"",departure:""},e.airportCode={arrival:"",departure:""},e.checkDate=void 0,e.startDate=void 0,e.endDate=void 0,e.selectedLocale="fa",e.currentShiftDates=[],e.newContracts=[],e.shift=null,e.defaultDate=!1,e.status="active",e.flightTakeOff=0,e}return H(e,t),e.prototype.mounted=function(){var t=this;this.getParseTokenData(),this.setDefaultDate(),setTimeout((function(){t.$vuetify.rtl=!1}),500),document.addEventListener&&(document.addEventListener("fullscreenchange",this.flExitHandler,!1),document.addEventListener("mozfullscreenchange",this.flExitHandler,!1),document.addEventListener("MSFullscreenChange",this.flExitHandler,!1),document.addEventListener("webkitfullscreenchange",this.flExitHandler,!1))},e.prototype.flExitHandler=function(){var t=document;t.webkitIsFullScreen||t.mozFullScreen||t.msFullscreenElement||(this.$vuetify.theme.dark=!1)},e.prototype.reqFullscreen=function(){var t=document.getElementById("operations-report");t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen&&t.mozRequestFullScreen(),this.$vuetify.theme.dark=!0},e.prototype.setImgError=function(t){this.$set(t,"imgHasError",!0)},e.prototype.getTotalReport=function(){sessionStorage.setItem("operationsTotalReport",JSON.stringify(this.tableItems));var t=this.$router.resolve({name:"operationsTotalReport",query:{startDate:this.startDate,endDate:this.endDate}});window.open(t.href,"_blank")},e.prototype.startChecking=function(){var t=this;setInterval((function(){var e=t.$store.state.baseUrl+"report/cipmanifest/allflights?CheckDate="+t.checkDate+"&StartDate="+t.currentShiftDates[0]+"&EndDate="+t.currentShiftDates[1]+"&FlightType=inbound";t.axios.get(e).then((function(e){e.data.Items=e.data.Items.filter((function(t){return"inbound"==t.flightType})),e.data.Items.length&&(t.newContracts=V(V([],t.newContracts,!0),e.data.Items.map((function(t){return{flightType:t.flightType,flightDateTime:t.flightDateTime,actDateTime:t.actDateTime,flightNumber:t.flightNumber,airline:t.airline}})),!0))})).catch((function(t){console.log(t)})),t.checkDate=(new t.$persianDate).calendar("g").toString("YYYY-MM-DD HH:mm")}),3e5)},e.prototype.openBoardPrint=function(t,e){var a={passengers:t,flightNo:e.airline+e.flightNumber};sessionStorage.setItem("boardData",JSON.stringify(a));var i=this.$router.resolve({name:"boardpassengers",query:{total:"true"}});window.open(i.href,"_blank")},e.prototype.getPassengers=function(t,e){return M(this,void 0,void 0,(function(){var a,i,s,r,n,o,l;return U(this,(function(c){switch(c.label){case 0:return"board"!=e?[3,2]:(r=this.$store.state.baseUrl+"report/cipmanifest?CipServiceTypeId=0&StartDate="+t.flightDateTime+"&EndDate="+t.flightDateTime+"&Airline="+t.airline+"&FlightNumber="+t.flightNumber+"&FlightType="+t.flightType,n={flightDateTime:t.flightDateTime,airline:t.airline,flightNumber:t.flightNumber,airport:t.airport,flightType:t.flightType,FlightStatus:this.status},[4,this.axios(r)]);case 1:return o=c.sent(),"inbound"==t.flightType?this.openBoardPrint(o.data.Items,n):(a=o.data.Items.filter((function(t){return"Business"==t.cabinClass&&t.status})),a.length?(sessionStorage.setItem("bcPassengers",JSON.stringify({passengers:a,flight:n})),l=this.$router.resolve({name:"businessReport",query:n}),window.open(l.href,"_blank")):this.$toast.error("No Shown Business Passengers!")),[3,6];case 2:return"credenceLetter"!=e?[3,4]:(i=[],s={StartDate:t.flightDateTime,EndDate:t.flightDateTime,Airline:t.airline,FlightNumber:t.flightNumber,FlightType:t.flightType,FlightStatus:this.status},[4,this.axios(this.$store.state.baseUrl+"report/cipmanifest",{params:s})]);case 3:return o=c.sent(),o.data.Items.map((function(t,e){i.push({GivenName:t.GivenName,SurName:t.SurName,VipStatus:t.vipStatus,CabinClass:t.cabinClass,NationalId:t.NationalId,PassportNO:t.PassportNO,PassengerTypeCode:t.PassengerTypeCode,Nationality:t.Nationality,lomStatus:t.lomStatus,status:t.status,isService:0===t.isService})})),console.log("passengersInfoooooooooooo",i),this.$store.commit("cipStore/setSelectedPassengerData",i),[3,6];case 4:return r=this.$store.state.baseUrl+"report/cipmanifest?StartDate="+t.flightDateTime+"&EndDate="+t.flightDateTime+"&Airline="+t.airline+"&FlightNumber="+t.flightNumber+"&FlightType="+t.flightType,n={flightDateTime:t.flightDateTime,airline:t.airline,flightNumber:t.flightNumber,airport:t.airport,flightType:t.flightType},[4,this.axios(r)];case 5:o=c.sent(),sessionStorage.setItem("flightsManifestData",JSON.stringify({passengers:o.data.Items,flight:n})),l=this.$router.resolve({name:"flightsManifest",query:n}),window.open(l.href,"_blank"),c.label=6;case 6:return[2]}}))}))},Object.defineProperty(e.prototype,"isUserVisitor",{get:function(){return"visitor"===this.$store.state.authStore.user.roleType},enumerable:!1,configurable:!0}),e.prototype.openManifest=function(t){if(!this.isUserVisitor){console.log(t);var e=this.cnLodash.cloneDeep(t);delete e.NotShow,delete e.cipDate,delete e.cipType,delete e.tripType,delete e.cabinClass,delete e.ShowPassenger,delete e.passengerCount;var a=this.$router.resolve({name:"cipmanifest",query:e});window.open(a.href,"_blank")}},e.prototype.changeShift=function(){this.defaultDate=!1,1==this.shift?this.currentShift():2==this.shift?this.nextShift():this.prevShift()},e.prototype.setDefaultDate=function(){this.shift=null,this.defaultDate=!0;var t=(new this.$persianDate).calendar("g").subHour(24).toString("YYYY-MM-DD HH:mm"),e=(new this.$persianDate).calendar("g").addHour(24).toString("YYYY-MM-DD HH:mm");this.startDate=t,this.endDate=e,this.status="active",this.getData()},e.prototype.prev20Days=function(){var t=(new this.$persianDate).calendar("g").subDay(20).toString();this.startDate=t+" 00:00",this.endDate=t+" 23:59",this.currentShiftDates=[this.startDate,this.endDate],this.getData()},e.prototype.currentShift=function(t){void 0===t&&(t=!0);var e=Number(this.morningTime.split(":")[0]),a=Number(this.eveningTime.split(":")[0]),i=(new this.$persianDate).toString("HH"),s=(new this.$persianDate).calendar("g").toString(),r=(new this.$persianDate).calendar("g").addDay(1).toString(),n=(new this.$persianDate).calendar("g").subDay(1).toString();e<=parseInt(i)&&parseInt(i)<a?(this.startDate=s+" "+this.morningTime,this.endDate=s+" "+this.eveningTime):(this.startDate=parseInt(i)>=a?s+" "+this.eveningTime:n+" "+this.eveningTime,this.endDate=parseInt(i)>=a?r+" "+this.morningTime:s+" "+this.morningTime),this.currentShiftDates=[this.startDate,this.endDate],t&&this.getData()},e.prototype.nextShift=function(){var t=Number(this.morningTime.split(":")[0]),e=Number(this.eveningTime.split(":")[0]),a=(new this.$persianDate).toString("HH"),i=(new this.$persianDate).calendar("g").toString(),s=(new this.$persianDate).calendar("g").addDay(1).toString();t<=parseInt(a)&&parseInt(a)<e?(this.startDate=i+" "+this.eveningTime,this.endDate=s+" "+this.morningTime):(this.startDate=parseInt(a)>=e?s+" "+this.morningTime:i+" "+this.morningTime,this.endDate=parseInt(a)>=e?s+" "+this.eveningTime:i+" "+this.eveningTime),this.getData()},e.prototype.prevShift=function(){var t=Number(this.morningTime.split(":")[0]),e=Number(this.eveningTime.split(":")[0]),a=(new this.$persianDate).toString("HH"),i=(new this.$persianDate).calendar("g").toString(),s=(new this.$persianDate).calendar("g").subDay(1).toString();t<=parseInt(a)&&parseInt(a)<e?(this.startDate=s+" "+this.eveningTime,this.endDate=i+" "+this.morningTime):(this.startDate=parseInt(a)>=e?i+" "+this.morningTime:s+" "+this.morningTime,this.endDate=parseInt(a)>=e?i+" "+this.eveningTime:s+" "+this.eveningTime),this.getData()},e.prototype.getData=function(){var t=this;this.checkDate=(new this.$persianDate).calendar("g").toString("YYYY-MM-DD HH:mm"),this.newContracts.splice(0),this.dataLoading.arrival=!0,this.dataLoading.departure=!0;var e=this.$store.state.baseUrl+"report/cipmanifest/allflights?StartDate="+this.startDate+"&EndDate="+this.endDate+"&FlightStatus="+this.status;this.axios.get(e+"&FlightType=inbound").then((function(e){t.items.arrival=e.data.Items,t.dataLoading.arrival=!1})).then((function(a){t.axios.get(e+"&FlightType=outbound").then((function(e){t.startChecking(),t.startRefreshing(),t.items.departure=e.data.Items,t.dataLoading.departure=!1}))})).catch((function(e){console.log(e),t.dataLoading.arrival=!1,t.dataLoading.departure=!1}))},e.prototype.startRefreshing=function(){var t=this;setInterval((function(){if(t.defaultDate){var e=(new t.$persianDate).calendar("g").subHour(24).toString("YYYY-MM-DD HH:mm"),a=(new t.$persianDate).calendar("g").addHour(24).toString("YYYY-MM-DD HH:mm");t.startDate=e,t.endDate=a}t.dataLoading.arrival=!0,t.dataLoading.departure=!0;var i=t.$store.state.baseUrl+"report/cipmanifest/allflights?StartDate="+t.startDate+"&EndDate="+t.endDate+"&FlightStatus="+t.status;t.axios.get(i+"&FlightType=inbound").then((function(e){t.items.arrival=e.data.Items,t.dataLoading.arrival=!1})).then((function(e){t.axios.get(i+"&FlightType=outbound").then((function(e){t.items.departure=e.data.Items,t.dataLoading.departure=!1}))})).catch((function(e){console.log(e),t.dataLoading.arrival=!1,t.dataLoading.departure=!1}))}),18e4)},e.prototype.getParseTokenData=function(){var t=this;this.axios.get(this.$store.state.baseUrl+"parsetoken").then((function(e){t.flightTakeOff=e.data.Items.data.FlightTakeOff})).catch((function(t){}))},e.prototype.takeOffFlight=function(t){return M(this,void 0,void 0,(function(){var e,a=this;return U(this,(function(i){return e={TakeOffFlightInfo:{FlightDateTime:t.flightDateTime,FlightNumber:t.flightNumber,AirportCode:t.airport,AirlineIata:t.airline,Cabin:t.cabinClass,ActFlightDateTime:t.actDateTime},Type:"TakeOff"},this.axios.post(this.$store.state.baseUrl+"report/cip/flightinfo",e).then((function(t){t.data.Success&&a.getData()})).catch((function(t){})),[2]}))}))},e.prototype.getColor=function(t){var e=new Date(t.flightDateTime),a=new Date,i=e-a;return a>=e?"#eb0909":i>0&&i<=18e5?"#20c41d":i>18e5&&i<=54e5?"#0cb3eb":""},e.prototype.credenceLetter=function(t,e){return M(this,void 0,void 0,(function(){var a,i;return U(this,(function(s){switch(s.label){case 0:return this.$store.commit("cipStore/setFlightInfoForCredence",[]),this.$store.commit("cipStore/setSelectedPassengerData",[]),a=[{airline:t.correctIata,airport:t.airport,flightNumber:t.flightNumber,flightDateTime:t.actDateTime,flightType:t.flightType,letterType:e}],[4,this.getPassengers(t,"credenceLetter")];case 1:return s.sent(),this.$store.commit("cipStore/setFlightInfoForCredence",a),i=this.$router.resolve({name:"organsLetterOfCredence"}),window.open(i.href,"_blank"),[2]}}))}))},Object.defineProperty(e.prototype,"headers",{get:function(){var t={arrival:[{text:"",value:"tag",align:"center",sortable:!1,width:20},{text:"Airline",value:"airline",align:"center",sortable:!1,width:50},{text:"Flight No.",value:"flightNumber",align:"center",sortable:!1,width:80},{text:"Sch. Time",value:"schTime",align:"center",sortable:!1,width:68},{text:"Act. Time",value:"actTime",align:"center",sortable:!1,width:68},{text:"From",value:"airport",align:"center",sortable:!1,width:50},{text:"Total",value:"passengerCount",align:"center",sortable:!1,width:50},{text:"CIP",value:"cipCount",align:"center",sortable:!1,width:50},{text:"Visa",value:"VisaCount",align:"center",sortable:!1,width:50},{text:"LOM",value:"LomCount",align:"center",sortable:!1,width:50},{text:"VIP",value:"VipCount",align:"center",sortable:!1,width:50}],departure:[{text:"",value:"tag",align:"center",sortable:!1,width:20},{text:"Airline",value:"airline",align:"center",sortable:!1,width:50},{text:"Flight No.",value:"flightNumber",align:"center",sortable:!1,width:70},{text:"Sch. Time",value:"schTime",align:"center",sortable:!1,width:68},{text:"Act. Time",value:"actTime",align:"center",sortable:!1,width:68},{text:"To",value:"airport",align:"center",sortable:!1,width:50},{text:"Total",value:"passengerCount",align:"center",sortable:!1,width:50},{text:"CIP",value:"cipCount",align:"center",sortable:!1,width:50},{text:"BC",value:"bcCount",align:"center",sortable:!1,width:50},{text:"LOM",value:"LomCount",align:"center",sortable:!1,width:30},{text:"VIP",value:"VipCount",align:"center",sortable:!1,width:30}]};return this.$vuetify.theme.dark||(t.departure.push({text:"",value:"action",align:"center",sortable:!1,width:30}),t.arrival.push({text:"",value:"action",align:"center",sortable:!1,width:30})),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalStatistics",{get:function(){var t={Total:{shown:this.tableItems.arrival.reduce((function(t,e){return t+e.ShowPassenger}),0)+this.tableItems.departure.reduce((function(t,e){return t+e.ShowPassenger}),0),all:this.tableItems.arrival.reduce((function(t,e){return t+e.passengerCount}),0)+this.tableItems.departure.reduce((function(t,e){return t+e.passengerCount}),0),percentage:0},ARR:{shown:this.tableItems.arrival.reduce((function(t,e){return t+e.ShowPassenger}),0),all:this.tableItems.arrival.reduce((function(t,e){return t+e.passengerCount}),0),percentage:0},DEP:{shown:this.tableItems.departure.reduce((function(t,e){return t+e.ShowPassenger}),0),all:this.tableItems.departure.reduce((function(t,e){return t+e.passengerCount}),0),percentage:0},CIP:{shown:this.tableItems.arrival.reduce((function(t,e){return t+(e.ShowPassenger-e.BusinessShowPassenger)}),0)+this.tableItems.departure.reduce((function(t,e){return t+(e.ShowPassenger-e.BusinessShowPassenger)}),0),all:this.tableItems.arrival.reduce((function(t,e){return t+e.CipCount}),0)+this.tableItems.departure.reduce((function(t,e){return t+e.CipCount}),0),percentage:0},BC:{shown:this.tableItems.arrival.reduce((function(t,e){return t+e.BusinessShowPassenger}),0)+this.tableItems.departure.reduce((function(t,e){return t+e.BusinessShowPassenger}),0),all:this.tableItems.arrival.reduce((function(t,e){return t+e.Business}),0)+this.tableItems.departure.reduce((function(t,e){return t+e.Business}),0),percentage:0},ATT:{ARR:{shown:this.tableItems.arrival.reduce((function(t,e){return t+e.AttendentShow}),0),all:this.tableItems.arrival.reduce((function(t,e){return t+e.AttendentCount}),0),percentage:0},DEP:{shown:this.tableItems.departure.reduce((function(t,e){return t+e.AttendentShow}),0),all:this.tableItems.departure.reduce((function(t,e){return t+e.AttendentCount}),0),percentage:0}}};return t.Total.percentage=parseFloat((t.Total.shown/t.Total.all*100).toFixed(2)),t.ARR.percentage=parseFloat((t.ARR.shown/t.ARR.all*100).toFixed(2)),t.DEP.percentage=parseFloat((t.DEP.shown/t.DEP.all*100).toFixed(2)),t.CIP.percentage=parseFloat((t.CIP.shown/t.CIP.all*100).toFixed(2)),t.BC.percentage=parseFloat((t.BC.shown/t.BC.all*100).toFixed(2)),t.ATT.DEP.percentage=parseFloat((t.ATT.DEP.shown/t.ATT.DEP.all*100).toFixed(2)),t.ATT.ARR.percentage=parseFloat((t.ATT.ARR.shown/t.ATT.ARR.all*100).toFixed(2)),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableItems",{get:function(){var t=this.cnLodash.cloneDeep(this.items),e=String(this.fightNumber.arrival).toLowerCase(),a=this.airlineIata.arrival.toLowerCase(),i=this.airportCode.arrival.toLowerCase();t.arrival=this.items.arrival.filter((function(t){return(!(a&&a.length>1)||t.airline&&t.airline.toLowerCase().includes(a))&&(!(i&&i.length>2)||t.airport&&t.airport.toLowerCase().includes(i))&&(!(e&&e.length>1)||t.flightNumber&&t.flightNumber.includes(e))})),t.arrival=this.cnLodash.sortBy(t.arrival,[function(t){return new Date(t.flightDateTime)}]);for(var s=this.cnLodash.groupBy(t.arrival,(function(t){return"".concat(t.actDateTime.substring(0,11))})),r=0,n=0,o=Object.values(s);n<o.length;n++){var l=o[n];r+=l.length;var c=t.arrival.find((function(t,e){return e==r-1})),u=t.arrival.find((function(t,e){return e==r}));c&&r!=t.arrival.length&&(this.$set(c,"lastOfDate",!0),this.$set(c,"nextDate",u?u.actDateTime.substring(0,11):""))}var d=String(this.fightNumber.departure).toLowerCase(),h=this.airlineIata.departure.toLowerCase(),f=this.airportCode.departure.toLowerCase();t.departure=this.items.departure.filter((function(t){return(!(h&&h.length>1)||t.airline&&t.airline.toLowerCase().includes(h))&&(!(f&&f.length>2)||t.airport&&t.airport.toLowerCase().includes(f))&&(!(d&&d.length>1)||t.flightNumber&&t.flightNumber.includes(d))})),t.departure=this.cnLodash.sortBy(t.departure,[function(t){return new Date(t.flightDateTime)}]);var p=this.cnLodash.groupBy(t.departure,(function(t){return"".concat(t.actDateTime.substring(0,11))}));r=0;for(var g=0,m=Object.values(p);g<m.length;g++){l=m[g];r+=l.length;c=t.departure.find((function(t,e){return e==r-1})),u=t.departure.find((function(t,e){return e==r}));c&&r!=t.departure.length&&(this.$set(c,"lastOfDate",!0),this.$set(c,"nextDate",u?u.actDateTime.substring(0,11):""))}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return{arrival:this.tableItems.arrival.filter((function(t){return t.lastOfDate})),departure:this.tableItems.departure.filter((function(t){return t.lastOfDate}))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"morningTime",{get:function(){return this.$store.state.authStore.base.cipShifts.morningTime[this.$i18n.locale]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eveningTime",{get:function(){return this.$store.state.authStore.base.cipShifts.eveningTime[this.$i18n.locale]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statusOptions",{get:function(){return[{text:"all",value:"all"},{text:"pending",value:"active"},{text:"archived",value:"deleted"}]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChangeStatusEnabled",{get:function(){return Boolean(this.flightTakeOff)&&1==this.flightTakeOff},enumerable:!1,configurable:!0}),e=Y([Object(_["a"])({components:{NumberField:$["a"],AppAriportSelect:k["a"],datePicker:I["a"],FemaleIcon:B}})],e),e}(Object(_["b"])(T["a"],S["a"])),z=q,G=z,J=(a("a8f4"),Object(L["a"])(G,w,D,!1,null,"64a7e607",null));e["default"]=J.exports},a8f4:function(t,e,a){"use strict";a("1666")}}]);