@feedmepos/mf-report 5.27.7 → 5.27.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-e4LY0dvE.js → App-BKFqxI-m.js} +60 -60
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-TVjaDWcm.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DR5VuQJj.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D9x8pN3X.js → Default.vue_vue_type_script_setup_true_lang-GwiWdE5u.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Bx-AqeaL.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Coq6oDe6.js} +1626 -1600
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CrPIvZb6.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BEzJU_Sz.js} +172 -164
- package/dist/{InsightView-CwEU9On-.js → InsightView-CCW8s2Nz.js} +4 -4
- package/dist/{Integration-B6JAFd0Y.js → Integration-DNdLOMT0.js} +3 -3
- package/dist/{Integrations-DxAm05YZ.js → Integrations-BPgCC5Om.js} +2 -2
- package/dist/{Layout-NoQrQleB.js → Layout-CUFM4N3i.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CbY-8OAh.js → MenuTab.vue_vue_type_script_setup_true_lang-m0ffrbus.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-4HRXbiuE.js → NavigationTab.vue_vue_type_script_setup_true_lang-GwZYPLrV.js} +3 -3
- package/dist/{OverviewView-B8hc0-Hf.js → OverviewView-BVYONT1r.js} +4 -4
- package/dist/{Report-0glM_tBx.js → Report-BUpZHl05.js} +3 -3
- package/dist/{ReportEditor-cUa_xfb8.js → ReportEditor-BOWsg9Af.js} +5 -5
- package/dist/{ReportView-BIIe_u_p.js → ReportView-CK-1xylV.js} +6 -6
- package/dist/{Setting-C0XDlS-1.js → Setting-BTuyR_Eu.js} +3 -3
- package/dist/{Template-C-8kktiM.js → Template-DMaB2KrT.js} +3 -3
- package/dist/{TileEditor-Cg2deby5.js → TileEditor-Buu05_ys.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-B5axm3_f.js → TileGrid.vue_vue_type_script_setup_true_lang-CWH1eLW9.js} +1 -1
- package/dist/{TransitionFade-BUE5HX0m.js → TransitionFade-CYcE1UH4.js} +4 -4
- package/dist/{app-CQCfPrrR.js → app-Dw7y4YtZ.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BPj1kHSl.js → formatChartData.worker-BHb-qk1A.js} +2 -2
- package/dist/assets/{processTableData.worker-BNG4ahN0.js → processTableData.worker-BmlVDhV4.js} +2 -2
- package/dist/{useRestaurantPermission-CfEZpfTN.js → useRestaurantPermission-C5oCpGvQ.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as C0, computed as z1, watch as x1, defineComponent as Ot, mergeModels as Ce, useModel as at, resolveComponent as G0, createElementBlock as l1, openBlock as Y0, createVNode as x0, withCtx as n1, createElementVNode as H0, createCommentVNode as he, Fragment as G1, renderList as ot, createBlock as m1, createTextVNode as We, withDirectives as An, toDisplayString as p1, unref as L0, vShow as Dn, renderSlot as sr, normalizeStyle as fn, normalizeClass as Xt, withModifiers as Ve } from "vue";
|
|
2
|
-
import { c as kt, h as ur, f as lr, _ as $n, i as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { o as mn, j as qn, u as P0, F as J0, r as U0, p as gn, a as H1, b as hn, m as Tn, g as En, d as w0, c as be, h as At } from "./app-
|
|
2
|
+
import { c as kt, h as ur, f as lr, _ as $n, i as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DR5VuQJj.js";
|
|
3
|
+
import { o as mn, j as qn, u as P0, F as J0, r as U0, p as gn, a as H1, b as hn, m as Tn, g as En, d as w0, c as be, h as At } from "./app-Dw7y4YtZ.js";
|
|
4
4
|
import { storeToRefs as g0, defineStore as xe } from "pinia";
|
|
5
5
|
import { useSnackbar as pr } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as cr } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
@@ -8895,7 +8895,7 @@ Arguments: [` + M + "]";
|
|
|
8895
8895
|
}, t.billSchema_closure.prototype = {
|
|
8896
8896
|
call$1(r) {
|
|
8897
8897
|
var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", l = "isDelivery", M = "completedAt", d = "integratedOrderId", _ = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", h = "takeawayPrice", S = "thirdPartyExtraCharge", R = "deliveryFee", g = "nettTotal", C = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", N = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal", J = "customerName", X = "customerPhone", Y = "customerAddress", z0 = "customerRemark", d0 = "fulfillmentAt";
|
|
8898
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)
|
|
8898
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", u, u, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", M, M, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, W.IFNULLi, !0, !1, "Item count", _, _, W.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, W.COALEStax, r), t.Field_Field$numeric(e, W.IFNULLdiT, !1, !1, "Discount", f, f, W.COALESdit, r), t.Field_Field$numeric(e, W.IFNULLg, !1, !1, "Item gross", y, y, W.COALESg, r), t.Field_Field$numeric(e, W.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, W.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, W.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", W.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, W.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", W.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, W.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", W.x28COALEo, r), t.Field_Field$numeric(e, W.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, W.x28COALEgx2d, r), t.Field_Field$numeric(e, W.IFNULLta, !1, !1, "Takeaway", h, h, W.COALEStak, r), t.Field_Field$numeric(e, W.IFNULLth, !1, !1, "Extra charge", S, S, W.COALESth, r), t.Field_Field$numeric(e, W.IFNULLde_, !1, !1, "Delivery fee", R, R, W.COALESdex2c, r), t.Field_Field$numeric(e, W.IFNULLn, !1, !1, "Nett", g, g, W.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, W.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, W.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, W.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, W.SUM__n, r), t.Field_Field$numeric(e, W.IFNULLdeWT, !1, !1, "Delivery fee with tax", C, C, W.COALESdex5f_, r), t.Field_Field$numeric(e, W.IFNULLdeWo, !1, !1, "Delivery fee without tax", B, B, W.COALESdex5fo, r), t.Field_Field$numeric(e, W.IFNULLoT, !1, !1, "Other charge with tax", I, I, W.COALESo_, r), t.Field_Field$numeric(e, W.IFNULLoo, !1, !1, "Other charge without tax", N, N, W.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, W.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, W.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, W.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, W.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, W.x28selecsta, r), t.Field_Field$numeric(e, W.IFNULLdiI, !1, !1, "Discount inc tax", w, w, W.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, W.x28selecstC, r), t.Field_Field$numeric(e, e, !1, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric(e, e, !1, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Use SUM to count bills", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, !1, !1, "Customer", J, J, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer phone", X, X, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer address", Y, Y, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, !1, !1, "Customer remark", z0, z0, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, !1, "Fulfillment time", d0, d0, e, r)], O.JSArray_Field);
|
|
8899
8899
|
},
|
|
8900
8900
|
$signature: 0
|
|
8901
8901
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -24029,7 +24029,7 @@ function Ks(c) {
|
|
|
24029
24029
|
const Q = b[$];
|
|
24030
24030
|
if (Q)
|
|
24031
24031
|
for (let e0 = 0; e0 < P.length; e0++) {
|
|
24032
|
-
const j = P[e0], V = E.rows[e0], s0 =
|
|
24032
|
+
const j = P[e0], V = E.rows[e0], s0 = pu(
|
|
24033
24033
|
V,
|
|
24034
24034
|
Q.rows,
|
|
24035
24035
|
E.columns
|
|
@@ -24420,7 +24420,14 @@ function er(c, b) {
|
|
|
24420
24420
|
const D = Math.pow(10, b);
|
|
24421
24421
|
return (Math.round(c * D) / D).toFixed(b);
|
|
24422
24422
|
}
|
|
24423
|
-
function lu(c
|
|
24423
|
+
function lu(c) {
|
|
24424
|
+
const b = c.split("."), D = b[0], $ = b[1], m = D.replace(
|
|
24425
|
+
/\B(?=(\d{3})+(?!\d))/g,
|
|
24426
|
+
","
|
|
24427
|
+
);
|
|
24428
|
+
return $ ? `${m}.${$}` : m;
|
|
24429
|
+
}
|
|
24430
|
+
function pu(c, b, D) {
|
|
24424
24431
|
const $ = D.filter(
|
|
24425
24432
|
(m) => m.fieldType === "DIMENSION"
|
|
24426
24433
|
);
|
|
@@ -24428,18 +24435,19 @@ function lu(c, b, D) {
|
|
|
24428
24435
|
(E) => c.value[E.id] === m.value[E.id]
|
|
24429
24436
|
));
|
|
24430
24437
|
}
|
|
24431
|
-
var
|
|
24438
|
+
var cu = {
|
|
24432
24439
|
formatChartDataV2: js,
|
|
24433
|
-
formatDisplayValue: t1
|
|
24440
|
+
formatDisplayValue: t1,
|
|
24441
|
+
applyThousandSeparators: lu
|
|
24434
24442
|
};
|
|
24435
|
-
const
|
|
24443
|
+
const Mu = Wn, bu = Ln, _u = xn, du = cu;
|
|
24436
24444
|
var Pt = {
|
|
24445
|
+
..._u,
|
|
24437
24446
|
...bu,
|
|
24438
24447
|
...Mu,
|
|
24439
|
-
...
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
function Fl(c) {
|
|
24448
|
+
...du
|
|
24449
|
+
}, v0 = /* @__PURE__ */ ((c) => (c.DateTime = "DATE_TIME", c.Hour = "HOUR", c.Day = "DAY", c.Week = "WEEK", c.Month = "MONTH", c.TimeOfDay = "TIME_OF_DAY", c.HourOfDay = "HOUR_OF_DAY", c.DayOfWeek = "DAY_OF_WEEK", c.DayOfMonth = "DAY_OF_MONTH", c.MonthOfYear = "MONTH_OF_YEAR", c.Year = "YEAR", c.YearMonthDay = "YEAR_MONTH_DAY", c))(v0 || {}), bt = /* @__PURE__ */ ((c) => (c.Asc = "ASC", c.Desc = "DESC", c))(bt || {}), e1 = /* @__PURE__ */ ((c) => (c.Equal = "EQUAL", c.NotEqual = "NOT_EQUAL", c.GreaterThan = "GREATER_THAN", c.LessThan = "LESS_THAN", c.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", c.LessThanOrEqual = "LESS_THAN_OR_EQUAL", c.Between = "BETWEEN", c.Like = "LIKE", c.NotLike = "NOT_LIKE", c.And = "AND", c.Or = "OR", c))(e1 || {}), c1 = /* @__PURE__ */ ((c) => (c.String = "STRING", c.Timestamp = "TIMESTAMP", c.Bool = "BOOL", c.Numeric = "NUMERIC", c))(c1 || {}), zu = /* @__PURE__ */ ((c) => (c.MTD = "MTD", c))(zu || {}), _t = /* @__PURE__ */ ((c) => (c.Scorecard = "SCORECARD", c.Spacer = "SPACER", c.Table = "TABLE", c.BarChart = "BARCHART", c.StackBarChart = "STACKBARCHART", c.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", c.LineChart = "LINECHART", c.StackLineChart = "STACKLINECHART", c.Circular = "CIRCULAR", c))(_t || {}), Ou = /* @__PURE__ */ ((c) => (c.EXCEL = "excel", c.PDF = "pdf", c.PDFFULLSIZE = "pdfFullSize", c.PDFRECEIPT = "pdfReceipt", c))(Ou || {}), Au = /* @__PURE__ */ ((c) => (c.PORTRAIT = "portrait", c.LANDSCAPE = "landscape", c))(Au || {});
|
|
24450
|
+
function Bl(c) {
|
|
24443
24451
|
switch (c) {
|
|
24444
24452
|
case "excel":
|
|
24445
24453
|
return "Excel";
|
|
@@ -24453,7 +24461,7 @@ function Fl(c) {
|
|
|
24453
24461
|
return "Unknown";
|
|
24454
24462
|
}
|
|
24455
24463
|
}
|
|
24456
|
-
function
|
|
24464
|
+
function Nl(c) {
|
|
24457
24465
|
switch (c) {
|
|
24458
24466
|
case "landscape":
|
|
24459
24467
|
return "report.common.landscape";
|
|
@@ -24464,7 +24472,7 @@ function Bl(c) {
|
|
|
24464
24472
|
}
|
|
24465
24473
|
}
|
|
24466
24474
|
var Jt = /* @__PURE__ */ ((c) => (c.BigQuery = "BIGQUERY", c.Postgres = "POSTGRES", c))(Jt || {});
|
|
24467
|
-
const u1 = "/report-settings",
|
|
24475
|
+
const u1 = "/report-settings", Du = async () => {
|
|
24468
24476
|
const { businessId: c } = g0(P0());
|
|
24469
24477
|
if (c) {
|
|
24470
24478
|
const b = {
|
|
@@ -24474,7 +24482,7 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24474
24482
|
return U0.fetch(b);
|
|
24475
24483
|
} else
|
|
24476
24484
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24477
|
-
},
|
|
24485
|
+
}, fu = async () => {
|
|
24478
24486
|
const { businessId: c } = g0(P0());
|
|
24479
24487
|
if (c) {
|
|
24480
24488
|
const b = {
|
|
@@ -24484,7 +24492,7 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24484
24492
|
return U0.fetch(b);
|
|
24485
24493
|
} else
|
|
24486
24494
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24487
|
-
},
|
|
24495
|
+
}, $u = (c) => {
|
|
24488
24496
|
const { businessId: b } = g0(P0());
|
|
24489
24497
|
if (b) {
|
|
24490
24498
|
const D = {
|
|
@@ -24497,7 +24505,7 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24497
24505
|
return U0.fetch(D);
|
|
24498
24506
|
} else
|
|
24499
24507
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24500
|
-
},
|
|
24508
|
+
}, yu = (c) => {
|
|
24501
24509
|
const { businessId: b } = g0(P0()), D = {
|
|
24502
24510
|
fetchType: J0.Put,
|
|
24503
24511
|
url: `${u1}/${b.value}/report-template`,
|
|
@@ -24506,47 +24514,47 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24506
24514
|
}
|
|
24507
24515
|
};
|
|
24508
24516
|
return U0.fetch(D);
|
|
24509
|
-
},
|
|
24517
|
+
}, mu = (c) => {
|
|
24510
24518
|
const { businessId: b } = g0(P0()), D = {
|
|
24511
24519
|
fetchType: J0.Delete,
|
|
24512
24520
|
url: `${u1}/${b.value}/report-template/${c.id}`
|
|
24513
24521
|
};
|
|
24514
24522
|
return U0.fetch(D);
|
|
24515
|
-
},
|
|
24523
|
+
}, qu = (c) => {
|
|
24516
24524
|
const { businessId: b } = g0(P0()), D = {
|
|
24517
24525
|
fetchType: J0.Put,
|
|
24518
24526
|
url: `${u1}/${b.value}/reports/${c.id}`,
|
|
24519
24527
|
data: c
|
|
24520
24528
|
};
|
|
24521
24529
|
return U0.fetch(D);
|
|
24522
|
-
},
|
|
24530
|
+
}, gu = (c) => {
|
|
24523
24531
|
const { businessId: b } = g0(P0()), D = {
|
|
24524
24532
|
fetchType: J0.Post,
|
|
24525
24533
|
url: `${u1}/${b.value}/reports`,
|
|
24526
24534
|
data: c
|
|
24527
24535
|
};
|
|
24528
24536
|
return U0.fetch(D);
|
|
24529
|
-
},
|
|
24537
|
+
}, hu = (c) => {
|
|
24530
24538
|
const { businessId: b } = g0(P0()), D = {
|
|
24531
24539
|
fetchType: J0.Delete,
|
|
24532
24540
|
url: `${u1}/${b.value}/reports/${c.id}`
|
|
24533
24541
|
};
|
|
24534
24542
|
return U0.fetch(D);
|
|
24535
|
-
},
|
|
24543
|
+
}, Tu = (c) => {
|
|
24536
24544
|
const { businessId: b } = g0(P0()), D = {
|
|
24537
24545
|
fetchType: J0.Put,
|
|
24538
24546
|
url: `${u1}/${b.value}/reports/default`,
|
|
24539
24547
|
data: { defaultReport: c }
|
|
24540
24548
|
};
|
|
24541
24549
|
return U0.fetch(D);
|
|
24542
|
-
},
|
|
24550
|
+
}, xl = (c, b) => {
|
|
24543
24551
|
const { businessId: D } = g0(P0()), $ = {
|
|
24544
24552
|
fetchType: J0.Put,
|
|
24545
24553
|
url: `${u1}/${D.value}/reports/${c}/pos-support`,
|
|
24546
24554
|
data: { isSupportPos: b }
|
|
24547
24555
|
};
|
|
24548
24556
|
return U0.fetch($);
|
|
24549
|
-
},
|
|
24557
|
+
}, Eu = async () => {
|
|
24550
24558
|
const { businessId: c } = g0(P0());
|
|
24551
24559
|
if (c) {
|
|
24552
24560
|
const b = {
|
|
@@ -24556,7 +24564,7 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24556
24564
|
return U0.fetch(b);
|
|
24557
24565
|
} else
|
|
24558
24566
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24559
|
-
},
|
|
24567
|
+
}, Su = async () => {
|
|
24560
24568
|
const { businessId: c } = g0(P0());
|
|
24561
24569
|
if (c) {
|
|
24562
24570
|
const b = {
|
|
@@ -24566,59 +24574,59 @@ const u1 = "/report-settings", Au = async () => {
|
|
|
24566
24574
|
return U0.fetch(b);
|
|
24567
24575
|
} else
|
|
24568
24576
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24569
|
-
},
|
|
24577
|
+
}, Ru = "/report-settings", tr = async () => {
|
|
24570
24578
|
const { businessId: c } = g0(P0());
|
|
24571
24579
|
if (c) {
|
|
24572
24580
|
const b = {
|
|
24573
24581
|
fetchType: J0.Get,
|
|
24574
|
-
url: `${
|
|
24582
|
+
url: `${Ru}/${c.value}/categories`
|
|
24575
24583
|
};
|
|
24576
24584
|
return U0.fetch(b);
|
|
24577
24585
|
} else
|
|
24578
24586
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
24579
24587
|
};
|
|
24580
24588
|
let ge;
|
|
24581
|
-
const
|
|
24582
|
-
function
|
|
24589
|
+
const Cu = new Uint8Array(16);
|
|
24590
|
+
function Wu() {
|
|
24583
24591
|
if (!ge && (ge = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ge))
|
|
24584
24592
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
24585
|
-
return ge(
|
|
24593
|
+
return ge(Cu);
|
|
24586
24594
|
}
|
|
24587
24595
|
const V0 = [];
|
|
24588
24596
|
for (let c = 0; c < 256; ++c)
|
|
24589
24597
|
V0.push((c + 256).toString(16).slice(1));
|
|
24590
|
-
function
|
|
24598
|
+
function Lu(c, b = 0) {
|
|
24591
24599
|
return V0[c[b + 0]] + V0[c[b + 1]] + V0[c[b + 2]] + V0[c[b + 3]] + "-" + V0[c[b + 4]] + V0[c[b + 5]] + "-" + V0[c[b + 6]] + V0[c[b + 7]] + "-" + V0[c[b + 8]] + V0[c[b + 9]] + "-" + V0[c[b + 10]] + V0[c[b + 11]] + V0[c[b + 12]] + V0[c[b + 13]] + V0[c[b + 14]] + V0[c[b + 15]];
|
|
24592
24600
|
}
|
|
24593
|
-
const
|
|
24594
|
-
randomUUID:
|
|
24601
|
+
const Iu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), rr = {
|
|
24602
|
+
randomUUID: Iu
|
|
24595
24603
|
};
|
|
24596
24604
|
function Ae(c, b, D) {
|
|
24597
24605
|
if (rr.randomUUID && !b && !c)
|
|
24598
24606
|
return rr.randomUUID();
|
|
24599
24607
|
c = c || {};
|
|
24600
|
-
const $ = c.random || (c.rng ||
|
|
24608
|
+
const $ = c.random || (c.rng || Wu)();
|
|
24601
24609
|
if ($[6] = $[6] & 15 | 64, $[8] = $[8] & 63 | 128, b) {
|
|
24602
24610
|
D = D || 0;
|
|
24603
24611
|
for (let m = 0; m < 16; ++m)
|
|
24604
24612
|
b[D + m] = $[m];
|
|
24605
24613
|
return b;
|
|
24606
24614
|
}
|
|
24607
|
-
return
|
|
24615
|
+
return Lu($);
|
|
24608
24616
|
}
|
|
24609
|
-
const
|
|
24610
|
-
function
|
|
24617
|
+
const Fu = 3;
|
|
24618
|
+
function Bu(c) {
|
|
24611
24619
|
return !!c.widget;
|
|
24612
24620
|
}
|
|
24613
24621
|
function J1(c = []) {
|
|
24614
24622
|
return c.flatMap(
|
|
24615
24623
|
(b) => {
|
|
24616
24624
|
var D;
|
|
24617
|
-
return (D = b.tiles) != null && D.length ? J1(b.tiles) :
|
|
24625
|
+
return (D = b.tiles) != null && D.length ? J1(b.tiles) : Bu(b) ? [b] : [];
|
|
24618
24626
|
}
|
|
24619
24627
|
);
|
|
24620
24628
|
}
|
|
24621
|
-
function
|
|
24629
|
+
function vl(c = []) {
|
|
24622
24630
|
return Object.fromEntries(J1(c).map((b, D) => [b.id, D]));
|
|
24623
24631
|
}
|
|
24624
24632
|
function pn(c = [], b) {
|
|
@@ -24628,7 +24636,7 @@ function pn(c = [], b) {
|
|
|
24628
24636
|
if ($) return $;
|
|
24629
24637
|
}
|
|
24630
24638
|
}
|
|
24631
|
-
function
|
|
24639
|
+
function wl(c, b) {
|
|
24632
24640
|
if (!b) return c;
|
|
24633
24641
|
const D = pn(c, b);
|
|
24634
24642
|
return D ? (D.tiles || (D.tiles = []), D.tiles) : c;
|
|
@@ -24638,21 +24646,21 @@ function Ht(c) {
|
|
|
24638
24646
|
const b = c.tab ? c.tiles.flatMap((D) => D.tiles ?? []) : c.tiles;
|
|
24639
24647
|
return b.length === 0 ? 2 : 1 + Math.max(...b.map(Ht));
|
|
24640
24648
|
}
|
|
24641
|
-
function
|
|
24649
|
+
function Pl(c = []) {
|
|
24642
24650
|
return c.length === 0 ? 0 : Math.max(...c.map(Ht));
|
|
24643
24651
|
}
|
|
24644
|
-
function
|
|
24645
|
-
return c.tab && b !== 1 ? !1 : b + Ht(c) - 1 <=
|
|
24652
|
+
function Jl(c, b) {
|
|
24653
|
+
return c.tab && b !== 1 ? !1 : b + Ht(c) - 1 <= Fu;
|
|
24646
24654
|
}
|
|
24647
|
-
function
|
|
24655
|
+
function Hl(c) {
|
|
24648
24656
|
const b = JSON.parse(JSON.stringify(c)), D = ($) => {
|
|
24649
24657
|
var m;
|
|
24650
24658
|
$.id = Ae(), (m = $.tiles) == null || m.forEach(D);
|
|
24651
24659
|
};
|
|
24652
24660
|
return D(b), b;
|
|
24653
24661
|
}
|
|
24654
|
-
function
|
|
24655
|
-
return [c.id, ...(c.tiles ?? []).flatMap(
|
|
24662
|
+
function Nu(c) {
|
|
24663
|
+
return [c.id, ...(c.tiles ?? []).flatMap(Nu)];
|
|
24656
24664
|
}
|
|
24657
24665
|
function dt(c = []) {
|
|
24658
24666
|
c.forEach((b) => {
|
|
@@ -24661,7 +24669,7 @@ function dt(c = []) {
|
|
|
24661
24669
|
}), b.tiles && dt(b.tiles);
|
|
24662
24670
|
});
|
|
24663
24671
|
}
|
|
24664
|
-
function
|
|
24672
|
+
function xu(c) {
|
|
24665
24673
|
return {
|
|
24666
24674
|
id: Ae(),
|
|
24667
24675
|
tabTitle: `Tab ${c}`,
|
|
@@ -24669,23 +24677,23 @@ function Nu(c) {
|
|
|
24669
24677
|
tiles: []
|
|
24670
24678
|
};
|
|
24671
24679
|
}
|
|
24672
|
-
function
|
|
24680
|
+
function Xl() {
|
|
24673
24681
|
return {
|
|
24674
24682
|
id: Ae(),
|
|
24675
24683
|
size: { width: 12, height: 4 },
|
|
24676
24684
|
tab: !0,
|
|
24677
|
-
tiles: [
|
|
24685
|
+
tiles: [xu(1)]
|
|
24678
24686
|
};
|
|
24679
24687
|
}
|
|
24680
|
-
function
|
|
24688
|
+
function kl() {
|
|
24681
24689
|
return {
|
|
24682
24690
|
id: Ae(),
|
|
24683
24691
|
size: { width: 6, height: 4 },
|
|
24684
24692
|
tiles: []
|
|
24685
24693
|
};
|
|
24686
24694
|
}
|
|
24687
|
-
const
|
|
24688
|
-
function
|
|
24695
|
+
const vu = "mf-reportglobalFilter";
|
|
24696
|
+
function wu(c, {
|
|
24689
24697
|
unknownLabel: b,
|
|
24690
24698
|
getAvailable: D
|
|
24691
24699
|
}) {
|
|
@@ -24707,7 +24715,7 @@ function nr(c, b) {
|
|
|
24707
24715
|
((D = c.tileIds) == null ? void 0 : D.join(",")) ?? ""
|
|
24708
24716
|
].join("|");
|
|
24709
24717
|
}
|
|
24710
|
-
const F1 = xe(
|
|
24718
|
+
const F1 = xe(vu, () => {
|
|
24711
24719
|
const c = C0([]), b = C0(0), D = C0({}), $ = C0(!1), m = C0(null), E = z1(() => b.value === 0), L = () => ({
|
|
24712
24720
|
id: "",
|
|
24713
24721
|
globalFilter: {
|
|
@@ -24799,17 +24807,17 @@ const se = {
|
|
|
24799
24807
|
setJson: (c, b) => {
|
|
24800
24808
|
localStorage.setItem(c, JSON.stringify(b));
|
|
24801
24809
|
}
|
|
24802
|
-
},
|
|
24810
|
+
}, Pu = () => {
|
|
24803
24811
|
const c = {
|
|
24804
24812
|
fetchType: J0.Get,
|
|
24805
24813
|
url: "/schemas"
|
|
24806
24814
|
};
|
|
24807
24815
|
return U0.fetch(c);
|
|
24808
|
-
},
|
|
24816
|
+
}, Ju = "mf-reportschema-store", cn = xe(Ju, () => {
|
|
24809
24817
|
const c = C0([]), b = pr();
|
|
24810
24818
|
async function D() {
|
|
24811
24819
|
try {
|
|
24812
|
-
c.value = await
|
|
24820
|
+
c.value = await Pu();
|
|
24813
24821
|
} catch ($) {
|
|
24814
24822
|
console.log($), b.open({
|
|
24815
24823
|
title: "Get Schema Error",
|
|
@@ -24823,7 +24831,7 @@ const se = {
|
|
|
24823
24831
|
getSchema: D
|
|
24824
24832
|
};
|
|
24825
24833
|
});
|
|
24826
|
-
async function
|
|
24834
|
+
async function Hu(c, b) {
|
|
24827
24835
|
const { businessId: D } = g0(P0());
|
|
24828
24836
|
if (!D.value)
|
|
24829
24837
|
return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
|
|
@@ -24836,7 +24844,7 @@ async function Ju(c, b) {
|
|
|
24836
24844
|
};
|
|
24837
24845
|
await gn.fetch($);
|
|
24838
24846
|
}
|
|
24839
|
-
const
|
|
24847
|
+
const Xu = "mf-reportreport-store", ae = xe(Xu, () => {
|
|
24840
24848
|
const { business: c } = g0(H1()), { globalFilters: b } = g0(F1()), { schemas: D } = g0(cn()), { flags: $ } = g0(hn()), m = C0([]), E = C0([]), L = C0([]), x = C0(0), P = pr(), v = Sn(), H = z1(() => m.value.filter((s) => s.editable)), K = z1(() => m.value.filter((s) => !s.editable)), o0 = C0(!1), Z = C0(""), U = C0(), Q = C0(), e0 = z1(() => {
|
|
24841
24849
|
const s = $.value.find(
|
|
24842
24850
|
(u) => u.key === Tn.report_portal_integration_custom_report
|
|
@@ -24844,12 +24852,12 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
24844
24852
|
return typeof (s == null ? void 0 : s.value) == "number" ? s.value : null;
|
|
24845
24853
|
}), { isReportPermissionEnabled: j } = En(), V = z1(() => e0.value === null ? !0 : e0.value - H.value.length > 0);
|
|
24846
24854
|
async function s0() {
|
|
24847
|
-
return Q.value = await
|
|
24855
|
+
return Q.value = await Eu(), Q.value && dt(Q.value.tiles), Q.value;
|
|
24848
24856
|
}
|
|
24849
24857
|
async function r0() {
|
|
24850
24858
|
var s;
|
|
24851
24859
|
try {
|
|
24852
|
-
m.value = await
|
|
24860
|
+
m.value = await Du(), m.value.forEach((l) => dt(l.tiles)), L.value = await tr(), m.value.find((l) => l.id === Z.value) || (Z.value = ((s = m.value.find((l) => l.isDefault)) == null ? void 0 : s.id) || m.value[0].id);
|
|
24853
24861
|
} catch (u) {
|
|
24854
24862
|
console.log(u), P.open({
|
|
24855
24863
|
title: "Report Fetch Error",
|
|
@@ -24860,7 +24868,7 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
24860
24868
|
}
|
|
24861
24869
|
async function b0() {
|
|
24862
24870
|
try {
|
|
24863
|
-
E.value = await
|
|
24871
|
+
E.value = await fu(), L.value.length === 0 && (L.value = await tr());
|
|
24864
24872
|
} catch (s) {
|
|
24865
24873
|
console.log(s), P.open({
|
|
24866
24874
|
title: "Template Fetch Error",
|
|
@@ -24896,12 +24904,12 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
24896
24904
|
const u = H.value.findIndex((M) => M.id === s.id);
|
|
24897
24905
|
let l;
|
|
24898
24906
|
if (u >= 0)
|
|
24899
|
-
l = await mu(s);
|
|
24900
|
-
else {
|
|
24901
24907
|
l = await qu(s);
|
|
24908
|
+
else {
|
|
24909
|
+
l = await gu(s);
|
|
24902
24910
|
try {
|
|
24903
24911
|
if (j.value) {
|
|
24904
|
-
await
|
|
24912
|
+
await Hu(l.id, l.name);
|
|
24905
24913
|
const { businessId: M } = g0(P0());
|
|
24906
24914
|
await v.fetchUserPermissions(void 0, M.value);
|
|
24907
24915
|
}
|
|
@@ -24915,19 +24923,19 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
24915
24923
|
return O(l.id), await r0(), l;
|
|
24916
24924
|
}
|
|
24917
24925
|
async function p(s) {
|
|
24918
|
-
await
|
|
24926
|
+
await hu(s), await r0();
|
|
24919
24927
|
}
|
|
24920
24928
|
async function A(s) {
|
|
24921
|
-
await
|
|
24929
|
+
await Tu(s), await s0();
|
|
24922
24930
|
}
|
|
24923
24931
|
async function T(s) {
|
|
24924
|
-
await
|
|
24932
|
+
await $u(s), await b0();
|
|
24925
24933
|
}
|
|
24926
24934
|
async function F(s) {
|
|
24927
|
-
await
|
|
24935
|
+
await yu(s), await b0();
|
|
24928
24936
|
}
|
|
24929
24937
|
async function W(s) {
|
|
24930
|
-
await
|
|
24938
|
+
await mu(s), await b0();
|
|
24931
24939
|
}
|
|
24932
24940
|
function O(s) {
|
|
24933
24941
|
Z.value = s;
|
|
@@ -24960,7 +24968,7 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
24960
24968
|
}
|
|
24961
24969
|
}
|
|
24962
24970
|
async function o() {
|
|
24963
|
-
return await
|
|
24971
|
+
return await Su();
|
|
24964
24972
|
}
|
|
24965
24973
|
return {
|
|
24966
24974
|
isOpenDownloadDialog: D0,
|
|
@@ -25002,11 +25010,11 @@ const Hu = "mf-reportreport-store", ae = xe(Hu, () => {
|
|
|
25002
25010
|
};
|
|
25003
25011
|
});
|
|
25004
25012
|
var Mn = /* @__PURE__ */ ((c) => (c.generating = "GENERATING", c.completed = "COMPLETED", c.failed = "FAILED", c.canceled = "CANCELLED", c))(Mn || {});
|
|
25005
|
-
const
|
|
25013
|
+
const ku = "/assets/formatChartData.worker-BHb-qk1A.js", rt = /* @__PURE__ */ new Map();
|
|
25006
25014
|
function ar(c) {
|
|
25007
25015
|
return new Worker(c, { type: "module" });
|
|
25008
25016
|
}
|
|
25009
|
-
async function
|
|
25017
|
+
async function Uu(c) {
|
|
25010
25018
|
if (rt.has(c))
|
|
25011
25019
|
return ar(rt.get(c));
|
|
25012
25020
|
let b = c;
|
|
@@ -25017,8 +25025,8 @@ async function ku(c) {
|
|
|
25017
25025
|
const $ = ar(b);
|
|
25018
25026
|
return rt.set(c, b), $;
|
|
25019
25027
|
}
|
|
25020
|
-
async function
|
|
25021
|
-
const D = await
|
|
25028
|
+
async function Yu(c, b) {
|
|
25029
|
+
const D = await Uu(c);
|
|
25022
25030
|
return D.postMessage(b), await new Promise(($) => {
|
|
25023
25031
|
D.onmessage = async (m) => {
|
|
25024
25032
|
const E = m.data;
|
|
@@ -25026,7 +25034,7 @@ async function Uu(c, b) {
|
|
|
25026
25034
|
};
|
|
25027
25035
|
});
|
|
25028
25036
|
}
|
|
25029
|
-
const
|
|
25037
|
+
const Qu = "mf-reportreport-sort-store", bn = xe(Qu, () => {
|
|
25030
25038
|
const c = C0([]);
|
|
25031
25039
|
function b(m, E) {
|
|
25032
25040
|
if (m == null) return;
|
|
@@ -25047,7 +25055,7 @@ function _n(c = []) {
|
|
|
25047
25055
|
new Set(c.map((b) => b === "" ? "NULL" : b))
|
|
25048
25056
|
);
|
|
25049
25057
|
}
|
|
25050
|
-
function
|
|
25058
|
+
function Gu(c) {
|
|
25051
25059
|
return [
|
|
25052
25060
|
c.schemaName,
|
|
25053
25061
|
c.name,
|
|
@@ -25056,14 +25064,14 @@ function Qu(c) {
|
|
|
25056
25064
|
c.operator
|
|
25057
25065
|
].join(":");
|
|
25058
25066
|
}
|
|
25059
|
-
function
|
|
25067
|
+
function Vu(c) {
|
|
25060
25068
|
const b = (D, $) => w0().set("hour", D).set("minute", $).set("second", 0).set("millisecond", 0).toISOString();
|
|
25061
25069
|
return !c.startTime || !c.endTime ? [] : [
|
|
25062
25070
|
b(c.startTime.hour, c.startTime.minute),
|
|
25063
25071
|
b(c.endTime.hour, c.endTime.minute)
|
|
25064
25072
|
];
|
|
25065
25073
|
}
|
|
25066
|
-
function
|
|
25074
|
+
function ju(c, b) {
|
|
25067
25075
|
return {
|
|
25068
25076
|
schemaName: c.schemaName,
|
|
25069
25077
|
name: c.name,
|
|
@@ -25074,8 +25082,8 @@ function Vu(c, b) {
|
|
|
25074
25082
|
isGlobalFilter: !0
|
|
25075
25083
|
};
|
|
25076
25084
|
}
|
|
25077
|
-
function
|
|
25078
|
-
const D =
|
|
25085
|
+
function Ku(c, b) {
|
|
25086
|
+
const D = Vu(b);
|
|
25079
25087
|
return D.length !== 2 ? null : {
|
|
25080
25088
|
schemaName: c.schemaName,
|
|
25081
25089
|
name: c.name,
|
|
@@ -25086,7 +25094,7 @@ function ju(c, b) {
|
|
|
25086
25094
|
isGlobalFilter: !0
|
|
25087
25095
|
};
|
|
25088
25096
|
}
|
|
25089
|
-
function
|
|
25097
|
+
function Zu(c) {
|
|
25090
25098
|
var $, m, E, L;
|
|
25091
25099
|
const b = Array.from(
|
|
25092
25100
|
new Set((c.values ?? []).map((x) => x === "" ? "NULL" : x))
|
|
@@ -25112,14 +25120,14 @@ function Ku(c) {
|
|
|
25112
25120
|
return ((m = c.customTimeRanges) == null ? void 0 : m.filter((P) => {
|
|
25113
25121
|
const v = String(P.name ?? "");
|
|
25114
25122
|
return x.has(v);
|
|
25115
|
-
}).map((P) =>
|
|
25123
|
+
}).map((P) => Ku(c, P)).filter((P) => !!P)) ?? [];
|
|
25116
25124
|
}
|
|
25117
25125
|
if ((((E = c.customOptions) == null ? void 0 : E.length) ?? 0) > 0) {
|
|
25118
25126
|
const x = new Set(b.map((P) => String(P)));
|
|
25119
25127
|
return ((L = c.customOptions) == null ? void 0 : L.filter((P) => {
|
|
25120
25128
|
const v = String(P.label ?? "");
|
|
25121
25129
|
return x.has(v);
|
|
25122
|
-
}).map((P) =>
|
|
25130
|
+
}).map((P) => ju(c, P)).filter((P) => Array.isArray(P.values) && P.values.length > 0)) ?? [];
|
|
25123
25131
|
}
|
|
25124
25132
|
return b.length === 0 ? [] : [
|
|
25125
25133
|
{
|
|
@@ -25149,7 +25157,7 @@ function or({
|
|
|
25149
25157
|
m.push(H);
|
|
25150
25158
|
return;
|
|
25151
25159
|
}
|
|
25152
|
-
const o0 =
|
|
25160
|
+
const o0 = Gu(H), Z = $.get(o0);
|
|
25153
25161
|
if (!Z) {
|
|
25154
25162
|
$.set(o0, H);
|
|
25155
25163
|
return;
|
|
@@ -25166,7 +25174,7 @@ function De(c, b, D) {
|
|
|
25166
25174
|
const $ = JSON.parse(JSON.stringify(c)), m = b.filter((L) => {
|
|
25167
25175
|
var x;
|
|
25168
25176
|
return (x = L.tileIds) == null ? void 0 : x.includes(D);
|
|
25169
|
-
}).flatMap((L) =>
|
|
25177
|
+
}).flatMap((L) => Zu(L));
|
|
25170
25178
|
return {
|
|
25171
25179
|
...$,
|
|
25172
25180
|
config: {
|
|
@@ -25190,7 +25198,7 @@ function De(c, b, D) {
|
|
|
25190
25198
|
}
|
|
25191
25199
|
};
|
|
25192
25200
|
}
|
|
25193
|
-
const
|
|
25201
|
+
const el = [
|
|
25194
25202
|
"schemaNames",
|
|
25195
25203
|
"schemas",
|
|
25196
25204
|
"dimensions",
|
|
@@ -25220,7 +25228,7 @@ const Zu = [
|
|
|
25220
25228
|
];
|
|
25221
25229
|
function dn(c) {
|
|
25222
25230
|
const b = { ...c.config };
|
|
25223
|
-
for (const D of
|
|
25231
|
+
for (const D of el)
|
|
25224
25232
|
delete b[D];
|
|
25225
25233
|
return b;
|
|
25226
25234
|
}
|
|
@@ -25237,7 +25245,7 @@ async function zn(c, b) {
|
|
|
25237
25245
|
}
|
|
25238
25246
|
throw new Error("No callback");
|
|
25239
25247
|
}
|
|
25240
|
-
const
|
|
25248
|
+
const tl = async ({
|
|
25241
25249
|
widget: c,
|
|
25242
25250
|
signal: b,
|
|
25243
25251
|
tileId: D,
|
|
@@ -25285,7 +25293,7 @@ const el = async ({
|
|
|
25285
25293
|
}
|
|
25286
25294
|
};
|
|
25287
25295
|
return await zn([() => U0.fetch(D0)], 2e3);
|
|
25288
|
-
},
|
|
25296
|
+
}, Ul = async ({
|
|
25289
25297
|
widget: c,
|
|
25290
25298
|
signal: b,
|
|
25291
25299
|
tileId: D,
|
|
@@ -25321,7 +25329,7 @@ const el = async ({
|
|
|
25321
25329
|
}
|
|
25322
25330
|
};
|
|
25323
25331
|
return U0.fetch(i0);
|
|
25324
|
-
},
|
|
25332
|
+
}, rl = async ({
|
|
25325
25333
|
widget: c,
|
|
25326
25334
|
signal: b,
|
|
25327
25335
|
tileId: D,
|
|
@@ -25333,7 +25341,7 @@ const el = async ({
|
|
|
25333
25341
|
var p, A, T, F;
|
|
25334
25342
|
const { businessId: x, country: P } = g0(P0()), { currentReport: v, editingReport: H, overviewReport: K } = ae(), { selectedNavigationTab: o0 } = be(), Z = o0 === "overview" && K ? K : H ?? v;
|
|
25335
25343
|
if (zt(Z))
|
|
25336
|
-
return
|
|
25344
|
+
return tl({
|
|
25337
25345
|
widget: c,
|
|
25338
25346
|
signal: b,
|
|
25339
25347
|
tileId: D,
|
|
@@ -25386,13 +25394,13 @@ const el = async ({
|
|
|
25386
25394
|
}, t = [() => U0.fetch(M0)];
|
|
25387
25395
|
U.length < 50 && t.push(() => U0.fetch(M0)), t.push(() => U0.fetch(M0));
|
|
25388
25396
|
const i = await zn(t, 2e3);
|
|
25389
|
-
return (await
|
|
25397
|
+
return (await Yu(ku, {
|
|
25390
25398
|
responses: i,
|
|
25391
25399
|
widget: JSON.parse(JSON.stringify(c)),
|
|
25392
25400
|
country: P.value,
|
|
25393
25401
|
timezone: r0
|
|
25394
25402
|
})).data;
|
|
25395
|
-
},
|
|
25403
|
+
}, Yl = async ({
|
|
25396
25404
|
reportType: c,
|
|
25397
25405
|
index: b,
|
|
25398
25406
|
orientationTypes: D,
|
|
@@ -25448,7 +25456,7 @@ const el = async ({
|
|
|
25448
25456
|
}
|
|
25449
25457
|
}, { headers: u0, data: l0 } = await At.rawFetch(i0), f0 = u0["content-disposition"].split("filename=")[1].replaceAll('"', ""), c0 = window.URL.createObjectURL(new Blob([new Uint8Array(l0).buffer])), O0 = document.createElement("a");
|
|
25450
25458
|
O0.href = c0, O0.setAttribute("download", decodeURIComponent(f0)), document.body.appendChild(O0), O0.click(), O0.remove();
|
|
25451
|
-
},
|
|
25459
|
+
}, Ql = async ({
|
|
25452
25460
|
emails: c,
|
|
25453
25461
|
types: b,
|
|
25454
25462
|
dateRange: D,
|
|
@@ -25511,7 +25519,7 @@ const el = async ({
|
|
|
25511
25519
|
data: u0,
|
|
25512
25520
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
25513
25521
|
});
|
|
25514
|
-
},
|
|
25522
|
+
}, Gl = async (c) => {
|
|
25515
25523
|
const { businessId: b } = g0(P0());
|
|
25516
25524
|
await At.fetch({
|
|
25517
25525
|
fetchType: J0.Post,
|
|
@@ -25519,23 +25527,23 @@ const el = async ({
|
|
|
25519
25527
|
data: { jobId: c },
|
|
25520
25528
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
25521
25529
|
});
|
|
25522
|
-
},
|
|
25530
|
+
}, Vl = async () => {
|
|
25523
25531
|
const { businessId: c } = g0(P0());
|
|
25524
25532
|
return await U0.fetch({
|
|
25525
25533
|
fetchType: J0.Get,
|
|
25526
25534
|
url: `/${c.value}/reports/email-recipients`
|
|
25527
25535
|
});
|
|
25528
|
-
},
|
|
25536
|
+
}, jl = async (c) => {
|
|
25529
25537
|
const { businessId: b } = g0(P0());
|
|
25530
25538
|
await U0.fetch({
|
|
25531
25539
|
fetchType: J0.Post,
|
|
25532
25540
|
url: `/${b.value}/reports/email-recipient/delete`,
|
|
25533
25541
|
data: { email: c }
|
|
25534
25542
|
});
|
|
25535
|
-
}, ir = (c, b = "en") => w0().set("hour", c.hour).set("minute", c.minute).locale(b).format("h:mm A"),
|
|
25543
|
+
}, ir = (c, b = "en") => w0().set("hour", c.hour).set("minute", c.minute).locale(b).format("h:mm A"), nl = (c, b) => {
|
|
25536
25544
|
const D = w0().set("hour", c.hour).set("minute", c.minute);
|
|
25537
25545
|
return w0().set("hour", b.hour).set("minute", b.minute) < D ? "+1" : "";
|
|
25538
|
-
},
|
|
25546
|
+
}, al = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ol = { class: "text-fm-color-typo-primary" }, il = { class: "text-fm-color-typo-secondary" }, sl = { class: "fm-typo-en-body-lg-600 mb-8" }, ul = { class: "flex items-center justify-center w-full" }, ll = { class: "fm-typo-en-body-lg-600 mb-8" }, pl = { class: "flex items-center justify-center" }, cl = { class: "flex flex-row mb-4 px-4 gap-2" }, Ml = /* @__PURE__ */ Ot({
|
|
25539
25547
|
__name: "TimeRangeSelect",
|
|
25540
25548
|
props: /* @__PURE__ */ Ce({
|
|
25541
25549
|
defaultDateRange: {
|
|
@@ -25635,7 +25643,7 @@ const el = async ({
|
|
|
25635
25643
|
default: n1(() => {
|
|
25636
25644
|
var i0, u0, l0, f0;
|
|
25637
25645
|
return [
|
|
25638
|
-
H0("div",
|
|
25646
|
+
H0("div", al, [
|
|
25639
25647
|
x0(s0, {
|
|
25640
25648
|
modelValue: L.value,
|
|
25641
25649
|
"onUpdate:modelValue": Q[1] || (Q[1] = (c0) => L.value = c0)
|
|
@@ -25648,7 +25656,7 @@ const el = async ({
|
|
|
25648
25656
|
onClick: (D0) => H(c0.startTime, c0.endTime)
|
|
25649
25657
|
}, {
|
|
25650
25658
|
label: n1(() => [
|
|
25651
|
-
H0("p",
|
|
25659
|
+
H0("p", ol, [
|
|
25652
25660
|
We(p1(c0.name) + " ", 1),
|
|
25653
25661
|
An(x0(e0, {
|
|
25654
25662
|
label: L0(D)("report.common.default"),
|
|
@@ -25658,7 +25666,7 @@ const el = async ({
|
|
|
25658
25666
|
[Dn, c0.isDefault]
|
|
25659
25667
|
])
|
|
25660
25668
|
]),
|
|
25661
|
-
H0("p",
|
|
25669
|
+
H0("p", il, p1(L0(ir)(c0.startTime, L0(v1)())) + " - " + p1(L0(ir)(c0.endTime, L0(v1)())) + " " + p1(L0(nl)(c0.startTime, c0.endTime)), 1)
|
|
25662
25670
|
]),
|
|
25663
25671
|
_: 2
|
|
25664
25672
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
@@ -25672,8 +25680,8 @@ const el = async ({
|
|
|
25672
25680
|
_: 1
|
|
25673
25681
|
}, 8, ["modelValue"]),
|
|
25674
25682
|
L.value === c.defaultDateRange.length + 1 ? (Y0(), l1(G1, { key: 0 }, [
|
|
25675
|
-
H0("p",
|
|
25676
|
-
H0("div",
|
|
25683
|
+
H0("p", sl, p1(L0(D)("report.date.startingTime")), 1),
|
|
25684
|
+
H0("div", ul, [
|
|
25677
25685
|
x0(r0, {
|
|
25678
25686
|
"model-value": P(`${(i0 = v.value.start) == null ? void 0 : i0.hour}:${(u0 = v.value.start) == null ? void 0 : u0.minute}`),
|
|
25679
25687
|
"onUpdate:modelValue": Q[2] || (Q[2] = (c0) => {
|
|
@@ -25686,8 +25694,8 @@ const el = async ({
|
|
|
25686
25694
|
})
|
|
25687
25695
|
}, null, 8, ["model-value"])
|
|
25688
25696
|
]),
|
|
25689
|
-
H0("p",
|
|
25690
|
-
H0("div",
|
|
25697
|
+
H0("p", ll, p1(L0(D)("report.date.endingTime")), 1),
|
|
25698
|
+
H0("div", pl, [
|
|
25691
25699
|
x0(r0, {
|
|
25692
25700
|
"model-value": P(`${(l0 = v.value.end) == null ? void 0 : l0.hour}:${(f0 = v.value.end) == null ? void 0 : f0.minute}`),
|
|
25693
25701
|
"onUpdate:modelValue": Q[3] || (Q[3] = (c0) => {
|
|
@@ -25701,7 +25709,7 @@ const el = async ({
|
|
|
25701
25709
|
}, null, 8, ["model-value"])
|
|
25702
25710
|
])
|
|
25703
25711
|
], 64)) : he("", !0),
|
|
25704
|
-
H0("div",
|
|
25712
|
+
H0("div", cl, [
|
|
25705
25713
|
Q[7] || (Q[7] = H0("div", { class: "grow" }, null, -1)),
|
|
25706
25714
|
x0(b0, {
|
|
25707
25715
|
label: L0(D)("report.common.cancel"),
|
|
@@ -25721,7 +25729,7 @@ const el = async ({
|
|
|
25721
25729
|
]);
|
|
25722
25730
|
};
|
|
25723
25731
|
}
|
|
25724
|
-
}),
|
|
25732
|
+
}), Kl = /* @__PURE__ */ Ot({
|
|
25725
25733
|
__name: "BaseDialog",
|
|
25726
25734
|
props: /* @__PURE__ */ Ce({
|
|
25727
25735
|
title: {
|
|
@@ -25777,7 +25785,7 @@ const el = async ({
|
|
|
25777
25785
|
}
|
|
25778
25786
|
});
|
|
25779
25787
|
var N1 = /* @__PURE__ */ ((c) => (c.Select = "Select", c.TextField = "TextField", c.Timestamp = "Timestamp", c))(N1 || {});
|
|
25780
|
-
function
|
|
25788
|
+
function bl(c) {
|
|
25781
25789
|
let b = !1, D = 1;
|
|
25782
25790
|
switch (c) {
|
|
25783
25791
|
case e1.Equal:
|
|
@@ -25801,13 +25809,13 @@ function Ml(c) {
|
|
|
25801
25809
|
count: D
|
|
25802
25810
|
};
|
|
25803
25811
|
}
|
|
25804
|
-
function
|
|
25812
|
+
function Zl({
|
|
25805
25813
|
operator: c,
|
|
25806
25814
|
dimensionOption: b,
|
|
25807
25815
|
dataType: D,
|
|
25808
25816
|
t: $
|
|
25809
25817
|
}) {
|
|
25810
|
-
const { fixed: m, count: E } =
|
|
25818
|
+
const { fixed: m, count: E } = bl(c);
|
|
25811
25819
|
switch (D) {
|
|
25812
25820
|
case c1.String:
|
|
25813
25821
|
return {
|
|
@@ -25852,7 +25860,7 @@ function Kl({
|
|
|
25852
25860
|
default: ""
|
|
25853
25861
|
};
|
|
25854
25862
|
}
|
|
25855
|
-
function
|
|
25863
|
+
function e2(c) {
|
|
25856
25864
|
switch (c) {
|
|
25857
25865
|
case v0.HourOfDay:
|
|
25858
25866
|
return 0;
|
|
@@ -25862,7 +25870,7 @@ function Zl(c) {
|
|
|
25862
25870
|
return;
|
|
25863
25871
|
}
|
|
25864
25872
|
}
|
|
25865
|
-
function
|
|
25873
|
+
function t2(c) {
|
|
25866
25874
|
switch (c) {
|
|
25867
25875
|
case v0.HourOfDay:
|
|
25868
25876
|
return 23;
|
|
@@ -25959,10 +25967,10 @@ function nt({
|
|
|
25959
25967
|
});
|
|
25960
25968
|
return D.type !== N1.Select ? [] : [{ label: b("report.input.unknown"), value: "" }, ...D.options];
|
|
25961
25969
|
}
|
|
25962
|
-
const
|
|
25970
|
+
const _l = { class: "flex flex-row flex-wrap gap-2" }, dl = { class: "inline-flex max-w-[460px]" }, zl = {
|
|
25963
25971
|
key: 0,
|
|
25964
25972
|
class: "flex justify-center my-2"
|
|
25965
|
-
},
|
|
25973
|
+
}, Ol = { class: "px-2 pb-8" }, Al = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Dl = { class: "px-2 pb-8" }, fl = { class: "flex items-start w-full" }, $l = ["onClick"], yl = { class: "fm-typo-en-body-md-400" }, ml = { key: 0 }, ql = { class: "px-12 py-3" }, gl = { class: "flex items-center justify-between" }, hl = { class: "text-xs max-w-[200px]" }, Tl = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Y1 = "(EMPTY)", r2 = /* @__PURE__ */ Ot({
|
|
25966
25974
|
__name: "GlobalFilterSelect",
|
|
25967
25975
|
props: {
|
|
25968
25976
|
globalFilterId: {},
|
|
@@ -26261,7 +26269,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26261
26269
|
}
|
|
26262
26270
|
const N = [];
|
|
26263
26271
|
for (const d0 of I) {
|
|
26264
|
-
const k = await
|
|
26272
|
+
const k = await rl({
|
|
26265
26273
|
widget: d0,
|
|
26266
26274
|
signal: C,
|
|
26267
26275
|
scopedLocationIds: b.locationIds,
|
|
@@ -26275,7 +26283,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26275
26283
|
}));
|
|
26276
26284
|
}
|
|
26277
26285
|
const w = Array.from(new Set(N)), J = c0(g), X = g.keepSelection ? Array.from(/* @__PURE__ */ new Set([...w, ...J])) : w, Y = new Set(N), z0 = new Set(w);
|
|
26278
|
-
g.options =
|
|
26286
|
+
g.options = wu(X, {
|
|
26279
26287
|
unknownLabel: b0.value,
|
|
26280
26288
|
getAvailable: (d0) => g.keepSelection ? Y.has(d0) : z0.has(d0)
|
|
26281
26289
|
}), D0(g);
|
|
@@ -26427,7 +26435,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26427
26435
|
}
|
|
26428
26436
|
return (g, C) => {
|
|
26429
26437
|
const B = G0("FmCircularProgress"), I = G0("FmTextField"), N = G0("FmMenuItem"), w = G0("FmTooltip"), J = G0("FmIcon"), X = G0("FmMenuDivider"), Y = G0("FmSwitch"), z0 = G0("FmButton"), d0 = G0("FmMenu");
|
|
26430
|
-
return Y0(), l1("div",
|
|
26438
|
+
return Y0(), l1("div", _l, [
|
|
26431
26439
|
(Y0(!0), l1(G1, null, ot(l0.value, (k, q0) => {
|
|
26432
26440
|
var _0, E0, y0, S0, R0, j0;
|
|
26433
26441
|
return Y0(), l1("div", {
|
|
@@ -26444,7 +26452,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26444
26452
|
removable: ((y0 = k.globalFilter.values) == null ? void 0 : y0.length) === 2,
|
|
26445
26453
|
onUpdate: (I0) => M(k.globalFilter, I0),
|
|
26446
26454
|
onChipClosed: () => M(k.globalFilter, null)
|
|
26447
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : k.globalFilter.option === L0(v0).TimeOfDay && !O(k.globalFilter) ? (Y0(), m1(
|
|
26455
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : k.globalFilter.option === L0(v0).TimeOfDay && !O(k.globalFilter) ? (Y0(), m1(Ml, {
|
|
26448
26456
|
key: 1,
|
|
26449
26457
|
"model-value": {
|
|
26450
26458
|
start: (S0 = k.globalFilter.values) == null ? void 0 : S0[0],
|
|
@@ -26462,7 +26470,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26462
26470
|
open: L0(s0)(k.id)
|
|
26463
26471
|
}, {
|
|
26464
26472
|
"menu-button": n1(() => [
|
|
26465
|
-
H0("div",
|
|
26473
|
+
H0("div", dl, [
|
|
26466
26474
|
x0(lr, {
|
|
26467
26475
|
"left-icon": "filter_alt",
|
|
26468
26476
|
"trailing-icon": "expand_more",
|
|
@@ -26482,10 +26490,10 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26482
26490
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
26483
26491
|
style: fn({ maxHeight: `${I0}px`, width: K0 })
|
|
26484
26492
|
}, [
|
|
26485
|
-
i0.value ? (Y0(), l1("div",
|
|
26493
|
+
i0.value ? (Y0(), l1("div", zl, [
|
|
26486
26494
|
x0(B)
|
|
26487
26495
|
])) : k.options.length > 0 && !i0.value ? (Y0(), l1(G1, { key: 1 }, [
|
|
26488
|
-
H0("div",
|
|
26496
|
+
H0("div", Ol, [
|
|
26489
26497
|
x0(I, {
|
|
26490
26498
|
modelValue: k.search,
|
|
26491
26499
|
"onUpdate:modelValue": [
|
|
@@ -26498,8 +26506,8 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26498
26506
|
class: "border px-2 pb-8 text-sm mb-1 rounded"
|
|
26499
26507
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
26500
26508
|
]),
|
|
26501
|
-
H0("div",
|
|
26502
|
-
H0("div",
|
|
26509
|
+
H0("div", Al, [
|
|
26510
|
+
H0("div", Dl, [
|
|
26503
26511
|
x0(N, {
|
|
26504
26512
|
label: d(k),
|
|
26505
26513
|
"has-checkbox": !0,
|
|
@@ -26520,7 +26528,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26520
26528
|
We(p1(X0.label), 1)
|
|
26521
26529
|
]),
|
|
26522
26530
|
default: n1(() => [
|
|
26523
|
-
H0("div",
|
|
26531
|
+
H0("div", fl, [
|
|
26524
26532
|
x0(N, {
|
|
26525
26533
|
label: S(X0.label, 110),
|
|
26526
26534
|
"has-checkbox": !0,
|
|
@@ -26561,12 +26569,12 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26561
26569
|
size: "md",
|
|
26562
26570
|
class: ""
|
|
26563
26571
|
}, null, 8, ["name"]),
|
|
26564
|
-
H0("span",
|
|
26565
|
-
], 8,
|
|
26572
|
+
H0("span", yl, p1(L0(D)("report.section.filter.advanced")), 1)
|
|
26573
|
+
], 8, $l),
|
|
26566
26574
|
x0(X),
|
|
26567
|
-
k.showAdvanced ? (Y0(), l1("div",
|
|
26568
|
-
H0("div",
|
|
26569
|
-
H0("div",
|
|
26575
|
+
k.showAdvanced ? (Y0(), l1("div", ml, [
|
|
26576
|
+
H0("div", ql, [
|
|
26577
|
+
H0("div", gl, [
|
|
26570
26578
|
x0(Y, {
|
|
26571
26579
|
"model-value": k.keepSelection,
|
|
26572
26580
|
label: L0(D)("report.section.filter.keepSelection"),
|
|
@@ -26578,7 +26586,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26578
26586
|
"z-index": 2e3
|
|
26579
26587
|
}, {
|
|
26580
26588
|
content: n1(() => [
|
|
26581
|
-
H0("div",
|
|
26589
|
+
H0("div", hl, p1(L0(D)("report.section.filter.keepSelectionTooltip")), 1)
|
|
26582
26590
|
]),
|
|
26583
26591
|
default: n1(() => [
|
|
26584
26592
|
x0(J, {
|
|
@@ -26592,7 +26600,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26592
26600
|
])
|
|
26593
26601
|
])
|
|
26594
26602
|
])) : he("", !0),
|
|
26595
|
-
H0("div",
|
|
26603
|
+
H0("div", Tl, [
|
|
26596
26604
|
x0(z0, {
|
|
26597
26605
|
variant: "tertiary",
|
|
26598
26606
|
label: L0(D)("report.common.cancel"),
|
|
@@ -26621,52 +26629,52 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26621
26629
|
}
|
|
26622
26630
|
});
|
|
26623
26631
|
export {
|
|
26624
|
-
|
|
26625
|
-
|
|
26632
|
+
Yl as A,
|
|
26633
|
+
rl as B,
|
|
26626
26634
|
e1 as C,
|
|
26627
26635
|
c1 as D,
|
|
26628
|
-
|
|
26636
|
+
Bl as E,
|
|
26629
26637
|
ir as F,
|
|
26630
|
-
|
|
26631
|
-
|
|
26638
|
+
nl as G,
|
|
26639
|
+
jl as H,
|
|
26632
26640
|
N1 as I,
|
|
26633
|
-
|
|
26634
|
-
|
|
26635
|
-
|
|
26636
|
-
|
|
26637
|
-
|
|
26641
|
+
Vl as J,
|
|
26642
|
+
Nl as K,
|
|
26643
|
+
wu as L,
|
|
26644
|
+
Fu as M,
|
|
26645
|
+
Gl as N,
|
|
26638
26646
|
Mn as O,
|
|
26639
|
-
|
|
26647
|
+
zu as P,
|
|
26640
26648
|
Jt as Q,
|
|
26641
|
-
|
|
26649
|
+
Ou as R,
|
|
26642
26650
|
bt as S,
|
|
26643
|
-
|
|
26651
|
+
Ql as T,
|
|
26644
26652
|
_t as W,
|
|
26645
|
-
|
|
26653
|
+
Ml as _,
|
|
26646
26654
|
cn as a,
|
|
26647
|
-
|
|
26655
|
+
r2 as b,
|
|
26648
26656
|
v0 as c,
|
|
26649
|
-
|
|
26650
|
-
|
|
26651
|
-
|
|
26652
|
-
|
|
26653
|
-
|
|
26654
|
-
|
|
26657
|
+
Nu as d,
|
|
26658
|
+
kl as e,
|
|
26659
|
+
Xl as f,
|
|
26660
|
+
Zl as g,
|
|
26661
|
+
wl as h,
|
|
26662
|
+
Jl as i,
|
|
26655
26663
|
F1 as j,
|
|
26656
26664
|
J1 as k,
|
|
26657
|
-
|
|
26665
|
+
vl as l,
|
|
26658
26666
|
dt as m,
|
|
26659
|
-
|
|
26660
|
-
|
|
26661
|
-
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26667
|
+
xu as n,
|
|
26668
|
+
Ul as o,
|
|
26669
|
+
Pl as p,
|
|
26670
|
+
Kl as q,
|
|
26671
|
+
Hl as r,
|
|
26672
|
+
xl as s,
|
|
26673
|
+
e2 as t,
|
|
26666
26674
|
ae as u,
|
|
26667
|
-
|
|
26675
|
+
t2 as v,
|
|
26668
26676
|
bn as w,
|
|
26669
26677
|
Ae as x,
|
|
26670
|
-
|
|
26671
|
-
|
|
26678
|
+
Yu as y,
|
|
26679
|
+
Au as z
|
|
26672
26680
|
};
|