PageSourceSearch

https://app.taxiplus.co.uk/assets/List-_J4Q3HF2.js

js taxiplus.co.uk collected 2026-09-24 21:32:14 UTC 13,794 bytes, 1 lines download raw bytes

1import{E as s,n as r,o as c,f as i,af as $,a as m,q as g,bf as b,r as S,t as C,e as F,c as w}from"./index-rHR5sy1l.js";import{D as j}from"./DownloadCsv-OEZYtHsi.js";import{S as I}from"./ServiceIterator-DL74xApp.js";import{g as o,b as _,a as d}from"./targetDetails-RomyKh6l.js";import"./data-tables-DVdmMj_q.js";import"./debounce-CEDpA78Y.js";import"./Filters-DOK2QaOd.js";import"./VDatePicker-Dq84nKuc.js";import"./index-CmIJiG7r.js";import"./DebouncedSelect-vdBQ-geq.js";import"./index-DF9Obo11.js";var E=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contents"},[e(s,{staticStyle:{padding:"0%"},attrs:{cols:"3"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("strong",[t._v(t._s(t.flag.target.subject_forename)+" "+t._s(t.flag.target.subject_surname))]),e("br"),t._v(" "+t._s(t.flag.target.email)+" ")])]),e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[t._v(" "+t._s(t.flag.reason_display)),e("br"),t._v(" "+t._s(t.flag.target_content_type.display_name)+" ")])]),e(s,{staticStyle:{padding:"0%"},attrs:{cols:t.hasSegments?"2":"3"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.process_name))])])])],1)},D=[];const R={name:"FlaggedCaseActivity",components:{},props:{flag:{type:Object,required:!0}},data(){return{}},computed:{...i("ui",["contentTypes"]),...c("ui",["hasEntitlement"]),hasSegments(){return this.hasEntitlement("segments")}},methods:{getTargetIcon:d,getFlagColor:_,getTargetRoute:o}},p={};var A=r(R,E,D,!1,T,"19fe5408");function T(t){for(let a in p)this[a]=p[a]}const O=function(){return A.exports}();var k=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contents"},[e(s,{staticStyle:{padding:"0%"},attrs:{cols:"3"}},[t.flag.target.subject_forename?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("strong",[t._v(t._s(t.flag.target.subject_forename)+" "+t._s(t.flag.target.subject_surname))]),e("br"),t._v(" "+t._s(t.flag.target.email)+" ")]):e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("strong",[t._v(t._s(t.flag.target.subject.forename)+" "+t._s(t.flag.target.subject.surname))]),e("br"),t._v(" "+t._s(t.flag.target.email)+" ")])]),e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[t._v(" "+t._s(t.flag.reason_display)),e("br"),t._v(" "+t._s(t.flag.target_content_type.display_name)+" ")])]),t.hasSegments?e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[t.flag.target.activity_type_code?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.activity_type_code_display))])]):e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.cycle_name))])])]):t._e(),t.hasSegments?t._e():e(s,{staticStyle:{padding:"0%"},attrs:{cols:"3"}},[t.flag.target.activity_type_code?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.activity_type_code_display))])]):e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.cycle_name))])])])],1)},N=[];const B={name:"FlaggedCaseActivity",components:{},props:{flag:{type:Object,required:!0}},data(){return{}},computed:{...i("ui",["contentTypes"]),...c("ui",["hasEntitlement"]),hasSegments(){return this.hasEntitlement("segments")},descriptionItems(){return this.flag.target.description.split(":")}},methods:{getTargetIcon:d,getFlagColor:_,getTargetRoute:o}},u={};var M=r(B,k,N,!1,V,"07b9d312");function V(t){for(let a in u)this[a]=u[a]}const q=function(){return M.exports}();var L=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contents"},[e(s,{staticStyle:{padding:"0%"},attrs:{cols:"3"}},[t.flag.target.subject_forename?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("strong",[t._v(t._s(t.flag.target.subject_forename)+" "+t._s(t.flag.target.subject_surname))]),e("br"),t._v(" "+t._s(t.flag.target.email)+" ")]):e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("strong",[t._v(t._s(t.flag.target.subject.forename)+" "+t._s(t.flag.target.subject.surname))]),e("br"),t._v(" "+t._s(t.flag.target.email)+" ")])]),e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[t._v(" "+t._s(t.flag.reason_display)),e("br"),t._v(" "+t._s(t.flag.target_content_type.display_name)+" ")])]),t.hasSegments?e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[t.flag.target.activity_type_code?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.activity_type_code_display))])]):e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.cycle_name))])])]):t._e(),t.hasSegments?t._e():e(s,{staticStyle:{padding:"0%"},attrs:{cols:"3"}},[t.flag.target.activity_type_code?e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.target.activity_type_code_display))])]):e("div",{staticClass:"mt-2 ml-3 mb-2"}
1,[e("p",[t._v(t._s(t.flag.target.cycle_name))])])])],1)},U=[];const G={name:"FlaggedSubscription",components:{},props:{flag:{type:Object,required:!0}},data(){return{}},computed:{...i("ui",["contentTypes"]),...c("ui",["hasEntitlement"]),hasSegments(){return this.hasEntitlement("segments")},descriptionItems(){return this.flag.target.description.split(":")}},methods:{getTargetIcon:d,getFlagColor:_,getTargetRoute:o}},v={};var P=r(G,L,U,!1,H,"2cb96884");function H(t){for(let a in v)this[a]=v[a]}const K=function(){return P.exports}();var W=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"contents"},[t.hasSegments?e(s,{staticStyle:{padding:"0%"},attrs:{cols:"1"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[e("p",[t._v(t._s(t.flag.segment?t.flag.segment.name:"None"))])])]):t._e(),e(s,{staticStyle:{padding:"0%"},attrs:{cols:"2"}},[e("div",{staticClass:"mt-2 ml-3 mb-2"},[e($,{attrs:{left:""},scopedSlots:t._u([{key:"activator",fn:function(n){var l=n.on,x=n.attrs;return[e("span",t._g(t._b({},"span",x,!1),l),[e(m,{attrs:{small:""}},[t._v(" mdi-plus ")]),t._v(" "+t._s(t.longDate(t.flag.added_at))+" ")],1)]}}])},[e("span",[t._v("Added at")])])],1)]),t.profile.permissions.includes("flags.change_flag")?e(s,{attrs:{cols:"2"}},[e("div",{staticClass:"d-flex align-center fill-height"},[t.state=="active"?e(g,{attrs:{color:"error",outlined:"",ripple:!1,loading:t.updating},on:{click:function(n){return n.stopPropagation(),t.clear()}}},[e(m,{attrs:{left:""}},[t._v(" mdi-cancel ")]),t._v("Clear ")],1):t._e(),t.state=="cleared"?e(g,{attrs:{outlined:"",ripple:!1,loading:t.updating},on:{click:function(n){return n.stopPropagation(),t.reactivate()}}},[e(m,{attrs:{left:""}},[t._v(" mdi-play ")]),t._v("Reactivate ")],1):t._e()],1)]):t._e()],1)},z=[];const J={name:"FlagItemActions",props:{flag:{type:Object,required:!0}},data(){return{updating:!1,state:this.flag.state}},computed:{...i("users",["profile"]),...c("ui",["hasEntitlement"]),hasSegments(){return this.hasEntitlement("segments")},descriptionItems(){return this.flag.target.description.split(":")},viewButtonText(){return this.flag.target_content_type.name==="case activity"?"View Case":this.flag.target_content_type.name==="subscription"?"View Subscription":"View"}},watch:{"flag.state":function(t){this.state=t}},methods:{longDate:b,async reactivate(){this.updating=!0,(await this.$service.product.flags.reactivate(this.flag.id)).status===200&&(this.state="active",this.$store.dispatch("ui/getActiveFlagCount"),this.$emit("reactivatedFlag")),this.updating=!1},async clear(){this.updating=!0,(await this.$service.product.flags.clear(this.flag.id)).status===200&&(this.state="cleared",this.$store.dispatch("ui/getActiveFlagCount"),this.$emit("clearedFlag")),this.updating=!1},getTargetIcon:d,getTargetRoute:o}},f={};var Q=r(J,W,z,!1,X,"c2177d64");function X(t){for(let a in f)this[a]=f[a]}const Y=function(){return Q.exports}();var Z=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e(S,{class:{"iterator-row":!0,"inactive-row":t.flag.state!="active","active-row":t.flag.state==="active"},staticStyle:{cursor:"pointer"},attrs:{flat:"",ripple:!1},on:{click:t.navigate}},[e(C,[e(F,[t.flag?e(t.listItemComponent,{tag:"component",attrs:{flag:t.localFlag}}):t._e(),e("FlagItemActions",{attrs:{flag:t.localFlag},on:{clearedFlag:t.clearedFlag,reactivatedFlag:t.reactivatedFlag}})],1)],1)],1)},tt=[];const et={name:"FlagItem",components:{FlagItemActions:Y},props:{flag:{type:Object,required:!0}},data(){return{updating:!1,localFlag:this.flag,state:this.flag.state}},computed:{descriptionItems(){return this.flag.target.description.split(":")},listItemComponent(){return{case:O,"case activity":q,subscription:K}[this.flag.target_content_type.name]},viewButtonText(){return this.flag.target_content_type.name==="case activity"?"View Case":this.flag.target_content_type.name==="subscription"?"View Subscription":"View"}},methods:{getTargetRoute:o,navigate(){const t=this.getTargetRoute(this.flag);t&&this.$router.push(t)},clearedFlag(){this.localFlag.state="cleared"},reactivatedFlag(){this.localFlag.state="active"}}
1},h={};var at=r(et,Z,tt,!1,st,"3080e294");function st(t){for(let a in h)this[a]=h[a]}const nt=function(){return at.exports}();var it=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e(w,[e("h1",{staticClass:"font-weight-light mb-3"},[t._v(" Flags ")]),t.loading?t._e():e("ServiceIterator",{key:t.updating,attrs:{service:"product.flags",filters:t.filtersOptions,ordering:t.orderingOptions},scopedSlots:t._u([{key:"header",fn:function(){return[e(S,{staticClass:"my-1",staticStyle:{"border-left":"5px solid transparent"},attrs:{elevation:"0",loading:t.loading}},[e(C,[e(F,[e(s,{attrs:{cols:"3"}},[e("span",[t._v("Subject Name / Email")])]),e(s,{attrs:{cols:"2"}},[e("span",[t._v("Flag Reason / Object Type")])]),t.hasSegments?e(s,{attrs:{cols:"2"}},[e("span",[t._v("Flagged Item")])]):t._e(),t.hasSegments?t._e():e(s,{attrs:{cols:"3"}},[e("span",[t._v("Flagged Item")])]),t.hasSegments?e(s,{attrs:{cols:"1"}},[e("span",[t._v("Segment")])]):t._e(),e(s,{attrs:{cols:"2"}},[e("span",[t._v("Key Dates")])]),e(s,{attrs:{cols:"2"}},[e("span",[t._v("Actions")])])],1)],1)],1)]},proxy:!0},{key:"actions",fn:function(n){var l=n.params;return[e("DownloadCsv",{attrs:{service:"product.flags",filename:t.csvFilename,fields:t.csvFields,headers:t.csvHeaders,params:l}})]}},{key:"item",fn:function(n){var l=n.item;return[e("FlagItem",{attrs:{flag:l}})]}}],null,!1,3634500918)})],1)},rt=[];const lt={name:"FlagList",components:{DownloadCsv:j,ServiceIterator:I,FlagItem:nt},data:()=>({csvFields:[{name:"customer",fields:["id","name"]},"id","added_at","state_display","reason_display",{name:"target",fields:["id","description"]},{name:"target_content_type",fields:["display_name"]},{name:"segment",fields:["name","id"]}],csvHeaders:{customer:{id:"Customer: ID",name:"Customer: Name"},id:"Flag: ID",added_at:"Flag: Added At",state_display:"Flag: State",reason_display:"Flag: Reason",target:{id:"Target: ID",description:"Target: Description"},target_content_type:{display_name:"Target: Object Type"},segment:{name:"Segment: Name",id:"Segment: ID"}},orderingOptions:[{text:"Object Type",value:"target_content_type"},{text:"Date Added",value:"added_at"}],loading:!1,updating:!1}),computed:{...c("ui",["hasEntitlement"]),...i("users",["profile"]),...i("ui",["activityTypes"]),hasSegments(){return this.hasEntitlement("segments")},csvFilename(){const t=new Date;return"flags-".concat(t.toISOString().slice(0,10),".csv")},hasCyclesEntitlement(){return this.hasEntitlement("cycles")},filtersOptions(){const t=[{name:"state",text:"State",type:"select",multiple:!0,choices:[{text:"Active",value:"active"},{text:"Cleared",value:"cleared"}]},{name:"reason",text:"Reason",type:"select",multiple:!0,choices:this.reasonChoices},{name:"added_at",text:"Added at",type:"datetime-range"}];return this.hasEntitlement("segments")&&t.splice(1,0,{name:"segment",text:"Segments",type:"debounced-select",multiple:!0,service:"product.segments"}),t},reasonChoices(){const t=new Set(this.activityTypes.map(e=>e.code));return[{items:[{text:"Incomplete Case Portal",value:"incomplete-case-portal"}]},{codes:["dbs-basic","dbs-standard","dbs-enhanced"],items:[{text:"Non-Clear DBS",value:"non-clear-dbs"},{text:"Withdrawn DBS",value:"withdrawn-dbs"}]},{codes:["dbs-update"],items:[{text:"DBS Update Final Reminder Sent",value:"dbs-update-final-reminder-sent"},{text:"DBS Update Not Registered",value:"dbs-update-not-registered"},{text:"DBS Update New Info",value:"dbs-update-new-info"},{text:"DBS New Certificate Required",value:"dbs-new-cert-required"}]},{codes:["driver-data"],items:[{text:"Driving Endorsements",value:"driving-endorsements"},{text:"Non Current/Full Licence",value:"non-current-full-licence"},{text:"No Driver Record Found",value:"no-driver-record-found"},{text:"Driver Address Mismatch",value:"driver-address-mismatch"}]},{items:[{text:"Revoked Consent",value:"revoked-consent"}]},{codes:["rtw"],items:[{text:"Right to Work Not Verified",value:"rtw-not-verified"}]},{codes:["online-idv"],items:[{text:"IBV Attempts Exhausted",value:"max-ibv-attempts"}]},{codes:["adverse-financial"],items:[{text:"Adverse Financial Results",value:"adverse-financial-results"},{text:"No UK Address",value:"no-uk-address"}]},{codes:["hcpc"],items:[{text:"Status other than Registered recorded",value:"hcpc-not-registered"},{text:"Registered name mismatch",value:"hcpc-name-mismatch"}]}].filter(e=>!e.codes||e.codes.some(n=>t.has(n))).flatMap(e=>e.items)}},mounted(){this.$store.commit("ui/setBreadCrumbs",[{text:"Flag Management",to:{name:"flag-list"}},{text:"Flag List"}])},methods:{async clear(t){this.updating=!0,await this.$service.product.flags.clear(t.id),this.updating=!1},async reactivate(t){this.updating=!0,await this.$service.product.flags.reactivate(t.id),this.updating=!1},longDate:b}},y={};var ct=r(lt,it,rt,!1,ot,"08c88ba8");function ot(t){for(let a in y)this[a]=y[a]}const St=function(){return ct.exports}();export{St as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.