PageSourceSearch

http://smartclub.ai/assets/index-DMsZw1a0.js

js smartclub.ai collected 2026-10-05 15:11:08 UTC 3,489 bytes, 2 lines download raw bytes

1import{u as B,s as l,A as b,M as u,f as V}from"./index-DazxfFOG.js";import{_ as v}from"./CampaignDialog.vue_vue_type_script_setup_true_lang-DmUvoI7w.js";import{_ as I}from"./AdvancedTableWithFilters.vue_vue_type_script_setup_true_lang-pZeuCATW.js";import{d as _,r as o,E as m,c as S,f as h,A as y,j as k,aQ as T,H as i,a5 as x,F as E,R as L,bk as U}from"./vendor-vuetify-U1i-P9xV.js";import{_ as $}from"./PageWrapper.vue_vue_type_style_index_0_lang-CsmP58dr.js";import{b as g}from"./route-block-BIO7NrfO.js";import"./vendor-sentry-CdlvO8A5.js";import"./AdvancedDataTable.vue_vue_type_style_index_0_lang-BA3gqiC_.js";import"./EmptyPlaceholder.vue_vue_type_style_index_0_lang-DwEqO1uY.js";import"./TransferFee-BfPzVybe.js";import"./AgencySelect.vue_vue_type_script_setup_true_lang-CLmCqeSE.js";import"./agency-tUZzMRmA.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="47ffde50-b367-43d4-8912-b8e5080a0976",t._sentryDebugIdIdentifier="sentry-dbid-47ffde50-b367-43d4-8912-b8e5080a0976")}catch{}const N="CAMPAIGNS",O=_({__name:"CampaignsAdvancedTable",setup(t){const n=B(),r=o(!1),d=o(0),w=o([{name:"Name",value:"title",sortValue:"title",width:150},{name:"Start",value:"startDate",sortValue:"startDate",formatter:l.dateFromBackendFullToLocalShort,width:105},{name:"End",value:"endDate",sortValue:"endDate",formatter:l.dateFromBackendFullToLocalShort,width:105},{name:"Disabled",value:"disabled",sortValue:"disabled",width:150,formatter:l.boolean,options:{type:"chip-select",target:"boolean"}},{name:"Created",value:"createdAt",sortValue:"createdAt",formatter:l.dateFromBackendFullToLocalShort,width:105}]),C=o([{key:"disabled",label:"Disabled",type:"select",customSelectItems:[{title:"Active",value:!1},{title:"Disabled",value:!0}],value:void 0},{label:"Created",type:"twin",inputs:[{key:"createdAt.gte",label:"start",type:"datepicker",value:void 0,formatter:l.dateForBackendFullLocalOffset},{key:"createdAt.lte",label:"end",type:"datepicker",value:void 0,formatter:e=>l.dateForBackendFullLocalOffset(e,!0)}]}]),D=e=>{n.push({name:"Admin / Campaign Briefings",params:{campaignId:e.id}})},f=()=>{d.value+=1},p=o(void 0),c=o(!1);async function A(e){p.value=e,c.value=!0}const F=L(()=>[{title:"Edit campaign",icon:u.pencil,onClick:A},{title:"Download PDF",icon:u.filePdfBox,onClick:async e=>{if(!e)return;const a=await b.agency.campaigns.download(e.id);a&&V.downloadBlob(a,e.title)}}]);return(e,a)=>(m(),S(E,null,[(m(),h(I,{key:d.value,"table-key":N,"table-refresh-key":d.value,"mobile-title":"Campaigns","table-mobile-title":"Campaigns","filters-schema":C.value,headers:w.value,fetcher:y(b).agency.campaigns.table,"row-actions":F.value,onOnRowClick:D},{actions:k(()=>[T(i(x,{color:"primary",variant:"text",density:"comfortable",icon:y(u).plus,onClick:a[0]||(a[0]=s=>r.value=!0)},null,8,["icon"]),[[U,"Add campaign"]])]),_:1},8,["table-refresh-key","filters-schema","headers","fetcher","row-actions"])),i(v,{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=s=>r.value=s),onCreated:f},null,8,["modelValue"]),i(v,{modelValue:c.value,"onUpdate:modelValue":a[2]||(a[2]=s=>c.value=s),campaign:p.value,onUpdated:f},null,8,["modelValue","campaign"])],64))}}),P=_({__name:"index",setup(t){return(n,r)=>(m(),h($,null,{default:k(()=>[i(O)]),_:1}))}});typeof g=="function"&&g(P);export{P as default};
2//# sourceMappingURL=index-DMsZw1a0.js.map

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.