PageSourceSearch

https://markelnow.markel.de/_nuxt/BmaGzMFT.js

js markel.de collected 2026-10-08 21:26:27 UTC 5,692 bytes, 1 lines download raw bytes

1import{_ as H}from"./Ckp7xcT-.js";import{q as z,A as j,s as M,n as v,L as G,o as L,c as J,b as d,w as g,k as u,f as B,l as K,F as W,x as C,h as m,u as X}from"./CixyhrsF.js";import{u as Y}from"./TOB5zBsp.js";import{b as Z}from"./BNtLFrFZ.js";import{c as h,u as ee}from"./CpTJCyGD.js";import{u as te}from"./_IBr3dTh.js";import{u as re}from"./DIMXVQ2v.js";import{u as oe}from"./B36m5RDn.js";import{u as se}from"./CbIwP7J-.js";import{_ as ae}from"./C21vlRb9.js";import{F as ne}from"./DCnMr8Me.js";import{L as ie}from"./8eQ0f9NZ.js";import{_ as le}from"./CifyFHWm.js";import"./6oJNfLY9.js";import"./zWpOjJ4x.js";import"./DlAUqK2U.js";import"./Hj8HdAod.js";import"./C9MKUz8e.js";import"./C4V3VpwM.js";/* empty css        */import"./BdEgCN-x.js";import"./CEUmbTbd.js";import"./DAwIdlq3.js";import"./Bld93i0n.js";import"./TTO_Cskq.js";import"./CK98QRmG.js";import"./BDwJF-UT.js";import"./CPm27c3u.js";import"./D_Pf2ZU3.js";import"./Bvs4w4Ln.js";import"./DWvn0_Bs.js";import"./DrEBuYjv.js";import"./BTLyo1Ya.js";import"./Bu0D6dsI.js";import"./DgKJDBlR.js";import"./Deq7dLfM.js";import"./cUOEabjg.js";import"./ChJ9tbZn.js";import"./CmRiZaR-.js";import"./DWePY3SK.js";import"./j9DeQjMI.js";import"./D2D6Yf1o.js";import"./DRRvzESn.js";import"./Do0Z4vYL.js";const ce={__name:"BrokerList",emits:["view-contracts"],setup(A,{emit:p}){const{getIndexStoreByScope:f}=re(),o=z(),s=f("broker"),n=se(),i=oe(),{list:S,filtered:I,isLoading:U}=j(s),{t}=M(),{getMinCharacterRules:F}=Y(t),{handleError:N}=Z(),{isSAL:Q}=te(),y=v(!1),k=p;i.updateFiltersFromQuery("brokers",o.query);const _=m(()=>i.getSelectedForScope("brokers")),{applySuccessfulQuery:b,consumeRouteSync:R}=ee({route:o,buildAppliedQuery:({currentQuery:e,requestQuery:r})=>h({currentQuery:e,requestQuery:r,ownedPrefixes:["filter_"]})}),l=v(h({currentQuery:o.query,requestQuery:o.query,ownedPrefixes:["filter_"]}));let a=0;const $=e=>e.isDisabled===!0?[{label:"",color:"error"}]:[{label:"",color:"success"}],q=()=>[{icon:"mdi-text-box-multiple",label:t("frontendMebeLayer.shared.viewContracts"),action:e=>{k("view-contracts",e?.id??0)}}],D=m(()=>[{type:"actions",title:t("frontendMebeLayer.shared.columns.actions"),key:"actions",actions:q,sortable:!1,align:"center"},{type:"text",title:t("frontendMebeLayer.shared.columns.agentNr"),key:"internalNumber",sortable:!0,align:"left"},{type:"text",title:t("frontendMebeLayer.shared.columns.companyName"),key:"name",sortable:!0},{type:"custom",title:t("frontendMebeLayer.shared.columns.legal"),key:"idLegalForm",method:n.getLegalFormNameById,sortable:!1,show:"lgAndUp"},{type:"actions",title:t("frontendMebeLayer.shared.columns.active"),key:"isDisabled",actions:$,sortable:!1,align:"center"},{type:"date",title:t("frontendMebeLayer.shared.columns.created"),key:"registerDate",sortable:!0,show:"lgAndUp"},{type:"custom",title:t("frontendMebeLayer.shared.columns.userNr"),key:"id",method:s.getUserCountById,sortable:!1,align:"center",show:"xlOnly"},{type:"actions",title:t("frontendMebeLayer.labels.contracts"),key:"contractsCount",actions:T,align:"center",sortable:!1,show:"lgAndUp",hide:Q.value!==!0},{type:"text",title:t("frontendMebeLayer.shared.columns.zip"),key:"zip",sortable:!0,show:"lgAndUp"},{type:"text",title:t("frontendMebeLayer.shared.columns.city"),key:"city",sortable:!0,show:"lgAndUp"},{type:"custom",title:t("frontendMebeLayer.shared.columns.country"),key:"idCountry",method:n.getCountryNameById,sortable:!1,show:"mdAndUp"},{type:"text",title:t("frontendMebeLayer.shared.columns.phoneNr"),key:"regularPhone",sortable:!1,align:"left",show:"xlOnly"}].filter(r=>r.hide!==!0)),P=m(()=>[{label:t("frontendMebeLayer.components.brokerList.addBroker"),icon:"mdi-plus-circle",iconColor:"secondary",variant:"text",class:"text-none text-secondary at-btn-create-broker",action:()=>{y.value=!0},testId:"broker.BrokerList.createButton",show:!0}].filter(e=>e.show===!0)),V=m(()=>({showLabel:!1,hint:t("frontendMebeLayer.components.brokerList.searchHint"),toolTipInfo:t("frontendMebeLayer.components.brokerList.searchHint"),rules:F(3,!0),instant:!1})),E=e=>e?.id?`broker.BrokerList.row.${e.id}`:null,T=e=>[{showLabel:!0,tooltip:t("frontendMebeLayer.shared.viewContracts"),label:e.contractsCount??0,action:r=>{k("view-contracts",r?.id??0)}}],w=async e=>{if(R(e)===!0)return!1;const r=++a;Object.keys(_.value).length>0?e.filters={..._.value}:e.filters=null;try{return await s.get(e)===!1?(r===a&&await b(l.value),!1):r!==a||(await s.getUsers(),r!==a)?!1:(l.value=h({currentQuery:o.query,requestQuery:e,ownedPrefixes:["filter_"]}),await b(l.value),!0)}catch(c){return r!==a||(N(c,t("frontendMebeLayer.errors.errorLoadingList")),await b(l.value)),!1}};G(()=>{a+=1,s.cancelListRequest()});const x=e=>{C(`/broker/${e.id}`)},O=(e=0)=>{y.value=!1,e!==0&&x({id:e})};return(e,r)=>{const c=H;return L(),J(W,null,[d(ie,{title:e.$t("frontendMebeLayer.components.brokerList.inventory"),"header-actions":P.value,onUpdate:w},{"header-tools":g(()=>[d(ne,{show:"",scope:"brokers","search-options":V.value,onUpdate:w},null,8,["search-options"])]),main:g(()=>[d(c,{headers:D.value,items:u(S),"items-total":u(I),"items-per-page-text":e.$t("frontendMebeLayer.components.brokerList.itemsPerPage"),"route-query":u(o).query,loading:u(U),"item-icon":"mdi-text-box-multiple","
1item-test-id":E,onSelect:x},null,8,["headers","items","items-total","items-per-page-text","route-query","loading"])]),_:1},8,["title","header-actions"]),y.value?(L(),B(ae,{key:0,onClose:O})):K("",!0)],64)}}},et={__name:"index",setup(A){const{t:p}=M();X(()=>({title:p("labels.brokers")}));const f=o=>{C(`/broker/${o}/contract`)};return(o,s)=>{const n=ce,i=le;return L(),B(i,{name:"broker"},{default:g(()=>[d(n,{onViewContracts:f})]),_:1})}}};export{et 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.