PageSourceSearch

https://dashboard.figo.app/assets/SettingsMobilityProducts-BZtDjMXW.js

js figo.app collected 2026-10-01 23:47:51 UTC 5,418 bytes, 1 lines download raw bytes

1import{d as w,c as v,a as k,f as s,g as i,u as a,h as b,e as R,F as W,i as m,o as u,b as l,t as y,j as g,a6 as x}from"./index-BVbpgNQp.js";import{s as L}from"./toast-BDUA91ct.js";import"./businessCard-BawaULLc.js";import{_ as M}from"./LoadingCircle.vue_vue_type_script_setup_true_lang-BUVrBfZK.js";import{_ as P}from"./SwitchList.vue_vue_type_script_setup_true_lang-BnSq0SMG.js";import{_ as H,b as q,c as G,d as B,e as T,g as Y,f as D,a as A}from"./AlertDialogCancel.vue_vue_type_script_setup_true_lang-B8Fa6h9B.js";import{_ as F}from"./Card.vue_vue_type_script_setup_true_lang-BUaiSDOo.js";import{_ as V}from"./CardHeader.vue_vue_type_script_setup_true_lang-DphMYr12.js";import{_ as j}from"./CardTitle.vue_vue_type_script_setup_true_lang-DESHY_kW.js";import{_ as O}from"./CardDescription.vue_vue_type_script_setup_true_lang-ZpvWHTwq.js";import{_ as z}from"./CardContent.vue_vue_type_script_setup_true_lang-Bqt6wySr.js";import{f as I,g as J}from"./useOrganisation-CdA1OhUF.js";import"./use-toast-C_-Ooiqp.js";import"./utils-CToZCR5q.js";import"./Icon.vue_vue_type_script_setup_true_lang-DJ79VOGX.js";import"./lucide-vue-next-Nej5oana.js";import"./loader-circle-DcbxVK2o.js";import"./send-BSF9MUEJ.js";import"./users-auh5lEQH.js";import"./Switch.vue_vue_type_script_setup_true_lang-FngKKb54.js";import"./index-Zh9XNDik.js";import"./index-dwSwr7aH.js";import"./index-BrCcdA9X.js";import"./http-opq6vUwx.js";import"./useQuery-YhK6z7MD.js";import"./useQueryClient-CFqHKYbM.js";import"./useMutation-B5hN7ulz.js";const K={class:"flex flex-col space-y-4"},Q={key:0,class:"items-center justify-center"},Se=w({__name:"SettingsMobilityProducts",setup(U){const{data:n,refetch:p,isLoading:E}=I(),{mutateAsync:h,isPending:C}=J(),N=x(),$=m([]),o=m(!1),r=m(),c=async t=>{const e=f.value.find(_=>_.name===t);if(!e)return;const d=e.enabled;if(d){if(!o.value){r.value=e,o.value=!0;return}o.value&&(o.value=!1)}try{$.value.push(e.name),await h({provider:e.name,enable:!d}),await p(),L({title:`${d?"Request to disable":"Enabled"} access to ${e.label} successfully ${!d&&"send."}`,description:"Your organisation will soon be contacted for further information."})}catch{await p()}},f=g(()=>[{name:"MYWHEELS",label:"MyWheels",description:"Car sharing provider with over 3,000 vehicles (electric and fuel). Available nationwide for drivers aged 21 and older.",icon:"CarFront",action:()=>c("MYWHEELS"),enabled:n.value?.requested_providers.includes("MYWHEELS")||n.value?.mobility_products.includes("MYWHEELS"),category:"sharedMobility",provider:"MyWheels"},{name:"GREENWHEELS_RNP",label:"Greenwheels",description:"Car sharing provider with a strong presence in urban areas. The 3000+ cars are typically located near train stations and public transport hubs.",icon:"CarFront",action:()=>c("GREENWHEELS_RNP"),enabled:["GREENWHEELS","GREENWHEELS_RNP"].some(t=>n.value?.requested_providers.includes(t))||["GREENWHEELS","GREENWHEELS_RNP"].some(t=>n.value?.mobility_products.includes(t)),category:"sharedMobility",provider:"Greenwheels"},{name:"NS",label:"Business Card",description:"Public transport on invoice with the NS Business Card. Easily add subscriptions and save up to 15–20% on public transport.",icon:"TrainFront",action:()=>c("NS"),enabled:n.value?.requested_providers.includes("NS")||n.value?.business_card_enabled,category:"businessCard",provider:"NS"},{name:"ADYEN",label:"TravelCard",description:"One card for all mobility needs: taxis, fuel, charging, parking, public transport, hotels, and flights. Enable per user and control exactly which services are allowed.",icon:"CreditCard",action:()=>N.push({name:"settings-travel-card"}),enabled:["pending","failed","rejected","invalid"].includes(n.value?.kyc_check_status??"notStarted")||n.value?.kyc_check_status==="completed",category:"travelCard",provider:"Adyen"}]),S=g(()=>f.value?.map(t=>({id:t.name,label:t.label,icon:t.icon,enabled:t.enabled,disabled:!1,description:t.description,onClick:t.action,canDisable:!1})));return(t,e)=>(u(),v(W,null,[k("div",K,[s(a(F),null,{default:i(()=>[s(a(V),null,{default:i(()=>[s(a(j),{class:"text-2xl font-medium"},{default:i(()=>[...e[2]||(e[2]=[l("Mobility Products",-1)])]),_:1}),s(a(O),null,{default:i(()=>[...e[3]||(e[3]=[l(" Manage the default mobility products available to employees in your organisation. You can override these settings per employee on the employee page. The Business Card and TravelCard must al
1ways be assigned individually. ",-1)])]),_:1})]),_:1}),s(a(z),{class:"flex flex-col space-y-8 bg-muted/20"},{default:i(()=>[a(E)?(u(),v("div",Q,[s(M)])):(u(),b(P,{key:1,disabled:a(C),"model-value":S.value},null,8,["disabled","model-value"]))]),_:1})]),_:1})]),r.value?(u(),b(a(H),{key:0,open:o.value},{default:i(()=>[s(a(A),null,{default:i(()=>[s(a(q),null,{default:i(()=>[s(a(G),null,{default:i(()=>[l("Disable "+y(r.value.label),1)]),_:1}),s(a(B),null,{default:i(()=>[l(" Disabling "+y(r.value.label)+" requires some additional configuration. We’ll get in touch with you shortly to coordinate the necessary steps and ensure everything is handled properly. ",1)]),_:1})]),_:1}),s(a(T),null,{default:i(()=>[s(a(Y),{onClick:e[0]||(e[0]=()=>{o.value=!1,r.value=void 0})},{default:i(()=>[...e[4]||(e[4]=[l(" Cancel ",-1)])]),_:1}),s(a(D),{onClick:e[1]||(e[1]=d=>r.value.action())},{default:i(()=>[...e[5]||(e[5]=[l(" Request disable",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):R("",!0)],64))}});export{Se 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.