@arbocollab/arbo-web-scene 0.26.8-alpha.68 → 0.26.8-alpha.69

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/es/index.es.js CHANGED
@@ -11928,16 +11928,16 @@ const dlr = (e, t) => {
11928
11928
  (s = (i = e == null ? void 0 : e.config) == null ? void 0 : i.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", o);
11929
11929
  }
11930
11930
  return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = a, { handleSetTab: a };
11931
- }, flr = "0.26.8-alpha.68", hlr = {
11931
+ }, flr = "0.26.8-alpha.69", hlr = {
11932
11932
  "@arbocollab/arbo-chart-component": "1.0.1",
11933
11933
  "@arbocollab/arbo-comment-utils": "1.0.1",
11934
11934
  "@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@1.0.14",
11935
11935
  "@arbocollab/arbo-media-player-component": "0.0.26",
11936
11936
  "@arbocollab/arbo-table-component": "1.0.1",
11937
- "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.377-alpha.135",
11938
- "@arbocollab/arbo-calendar-component": "0.0.49",
11937
+ "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.377-alpha.139",
11938
+ "@arbocollab/arbo-calendar-component": "0.0.50",
11939
11939
  "@arbocollab/arbo-metric-table": "npm:@arbocollab/arbo-metric-table@0.0.24",
11940
- "@arbocollab/ag-grid-ui-components": "0.0.52",
11940
+ "@arbocollab/ag-grid-ui-components": "0.0.53",
11941
11941
  "@vueuse/core": "^10.11.1",
11942
11942
  "@ctrl/tinycolor": "^4.2.0",
11943
11943
  axios: "^1.7.2",
@@ -30441,7 +30441,7 @@ fdn((e) => ({
30441
30441
  return sTt(t, n) || e.has(t, n);
30442
30442
  }
30443
30443
  }));
30444
- const Qmr = "0.0.377-alpha.135", egr = {
30444
+ const Qmr = "0.0.377-alpha.139", egr = {
30445
30445
  version: Qmr
30446
30446
  }, pdn = "mediaCachingDB", iR = "mediaStore", STe = "__cache_flag__", tgr = 1, mdn = !1, ETe = egr.version;
30447
30447
  let ire = null, lSe = !1, uSe = null, ngr = class {
@@ -43725,11 +43725,12 @@ const X1r = (e) => {
43725
43725
  refreshInterval: e.refreshInterval,
43726
43726
  enableAutoRefresh: e.enableAutoRefresh,
43727
43727
  onInsightClick: e.onInsightClick,
43728
- onCopyLink: e.onCopyLink
43728
+ onCopyLink: e.onCopyLink,
43729
+ switchInstance: e.switchInstance
43729
43730
  },
43730
43731
  "user-profile-tooltip-content"
43731
43732
  );
43732
- return Z1r(t, n), t;
43733
+ return n.provide("switchInstance", e.switchInstance), Z1r(t, n), t;
43733
43734
  }, ZOt = (e) => {
43734
43735
  e._userProfileContainer && (bSe(e._userProfileContainer), delete e._userProfileContainer), e._userProfileInstance && (ySe(e._userProfileInstance), delete e._userProfileInstance), e.style.cursor = "", e.classList.remove("user-profile-trigger");
43735
43736
  }, Rhn = {
@@ -121747,11 +121748,11 @@ var ria = function(e, t, n) {
121747
121748
  }), R = ne(function() {
121748
121749
  return !a.startDate && !e.disabled ? e.startTooltip : !a.startDate && (e.disabled || e.readOnly) ? e.startPlaceholder : a.startDate ? Xo.fromJSDate(a.startDate, {
121749
121750
  zone: a.timezone
121750
- }).toFormat("LLL dd, yyyy | HH:mm:ss") : e.startTooltip;
121751
+ }).toFormat("LLL dd, yyyy · HH:mm:ss") : e.startTooltip;
121751
121752
  }), $ = ne(function() {
121752
121753
  return !a.endDate && !e.disabled ? e.dueTooltip : !a.endDate && (e.disabled || e.readOnly) ? e.startPlaceholder : a.endDate ? Xo.fromJSDate(a.endDate, {
121753
121754
  zone: a.timezone
121754
- }).toFormat("LLL dd, yyyy | HH:mm:ss") : e.dueTooltip;
121755
+ }).toFormat("LLL dd, yyyy · HH:mm:ss") : e.dueTooltip;
121755
121756
  }), I = re(a.startDate ? Xo.fromJSDate(a.startDate, {
121756
121757
  zone: a.timezone
121757
121758
  }).year : (/* @__PURE__ */ new Date()).getFullYear()), P = re(a.startDate ? Xo.fromJSDate(a.startDate, {
@@ -123818,9 +123819,9 @@ var Hsa = {
123818
123819
  emits: ["clear", "open", "focus-end", "focus-start"],
123819
123820
  setup: function(e, t) {
123820
123821
  var n = t.emit, r = dpe, a = ne(function() {
123821
- return i.startDate ? i.startDate.toFormat("LLL dd, yyyy | HH:mm") : "";
123822
+ return i.startDate ? i.startDate.toFormat("LLL dd, yyyy · HH:mm") : "";
123822
123823
  }), o = ne(function() {
123823
- return i.endDate ? i.endDate.toFormat("LLL dd, yyyy | HH:mm") : "";
123824
+ return i.endDate ? i.endDate.toFormat("LLL dd, yyyy · HH:mm") : "";
123824
123825
  }), i = e, s = re(null), l = ne(function() {
123825
123826
  return i.active;
123826
123827
  }), u = ne(function() {
@@ -132593,9 +132594,8 @@ const Ifa = { class: "date-formatting-display" }, Rfa = ["innerHTML"], Pfa = ["i
132593
132594
  const p = No();
132594
132595
  return r.apiUpdateFunction || (p == null ? void 0 : p.appContext.config.globalProperties.$getUserBasicInfo);
132595
132596
  }), i = _Z(), { switchInstanceFunc: s } = $a(i), l = mo("switchInstance"), u = () => {
132596
- var g;
132597
- const p = (g = No()) == null ? void 0 : g.appContext.config.globalProperties.switchInstance, v = l || p || s.value || window.switchApploader;
132598
- v ? v("people_insight", { tab: "home", id: r.user.id || "" }, { showLoading: !1 }) : window.switchApploader ? window.switchApploader(
132597
+ const p = window.switchApploader;
132598
+ p ? p("people_insight", { tab: "home", id: r.user.id || "" }, { showLoading: !1 }) : window.switchApploader ? window.switchApploader(
132599
132599
  "people_insight",
132600
132600
  { tab: "home", id: r.user.id || "" },
132601
132601
  { showLoading: !1 }
@@ -136162,75 +136162,91 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136162
136162
  hoverColor: "#d7ebfe"
136163
136163
  }) }
136164
136164
  },
136165
- emits: ["delete", "copy", "onClick", "openReview", "openHub", "showPopup", "hidePopup"],
136165
+ emits: [
136166
+ "delete",
136167
+ "copy",
136168
+ "onClick",
136169
+ "openReview",
136170
+ "openHub",
136171
+ "showPopup",
136172
+ "hidePopup",
136173
+ "imageLoadingError"
136174
+ ],
136166
136175
  setup(e, { expose: t, emit: n }) {
136167
136176
  const r = jo, a = ne(() => {
136168
- var E;
136169
- return o.tooltip || ((E = o.renditionData) == null ? void 0 : E.name);
136170
- }), o = e, i = re(!1), s = re(() => document.body), l = re(null), u = (E, x) => {
136171
- let y = "";
136172
- const O = ipe.get("account.last_prefered_timezone") || "Asia/Bangkok", k = new Date(E ?? "");
136173
- return (!E || !wo.fromJSDate(k).isValid) && (y = ""), y = wo.fromJSDate(k, { zone: O }).toFormat(
136177
+ var O;
136178
+ return o.tooltip || ((O = o.renditionData) == null ? void 0 : O.name);
136179
+ }), o = e, i = re(!1), s = re(() => document.body), l = re(null), u = (O, k) => {
136180
+ let D = "";
136181
+ const R = ipe.get("account.last_prefered_timezone") || "Asia/Bangkok", $ = new Date(O ?? "");
136182
+ return (!O || !wo.fromJSDate($).isValid) && (D = ""), D = wo.fromJSDate($, { zone: R }).toFormat(
136174
136183
  oft.STANDARD_DATE_TIME
136175
- ), String(y);
136184
+ ), String(D);
136176
136185
  }, d = () => {
136177
- var E;
136178
- f("openReview", (E = o.renditionData) == null ? void 0 : E.id);
136179
- }, f = n, m = (E) => {
136180
- var x;
136181
- f("onClick", (x = o.renditionData) == null ? void 0 : x.id, E);
136186
+ var O;
136187
+ f("openReview", (O = o.renditionData) == null ? void 0 : O.id);
136188
+ }, f = n, m = (O) => {
136189
+ var k;
136190
+ f("onClick", (k = o.renditionData) == null ? void 0 : k.id, O);
136182
136191
  }, p = () => {
136183
- var E;
136184
- f("delete", (E = o.renditionData) == null ? void 0 : E.id);
136185
- }, v = (E) => {
136186
- var x, y;
136187
- if (E === "hub") {
136188
- const O = Sc({
136192
+ var O;
136193
+ f("delete", (O = o.renditionData) == null ? void 0 : O.id);
136194
+ }, v = (O) => {
136195
+ var k, D;
136196
+ if (O === "hub") {
136197
+ const R = Sc({
136189
136198
  type: "hub_rendition",
136190
136199
  config: {
136191
136200
  scene_id: o.sceneId || "",
136192
- rendition_id: ((x = o.renditionData) == null ? void 0 : x.id) || "",
136201
+ rendition_id: ((k = o.renditionData) == null ? void 0 : k.id) || "",
136193
136202
  ws_code: sessionStorage.getItem("ws.code") || "",
136194
136203
  baseDomain: sessionStorage.getItem("BASE_URL") || ""
136195
136204
  }
136196
136205
  }).url;
136197
- navigator.clipboard.writeText(O);
136198
- } else if (E === "review") {
136199
- const O = Sc({
136206
+ navigator.clipboard.writeText(R);
136207
+ } else if (O === "review") {
136208
+ const R = Sc({
136200
136209
  type: "review_rendition",
136201
136210
  config: {
136202
136211
  scene_id: o.sceneId || "",
136203
136212
  take_id: o.takeId || "",
136204
- rendition_id: ((y = o.renditionData) == null ? void 0 : y.id) || "",
136213
+ rendition_id: ((D = o.renditionData) == null ? void 0 : D.id) || "",
136205
136214
  ws_code: sessionStorage.getItem("ws.code") || "",
136206
136215
  reviewDomain: sessionStorage.getItem("BASE_REVIEW_URL") || ""
136207
136216
  }
136208
136217
  }).url;
136209
- navigator.clipboard.writeText(O);
136218
+ navigator.clipboard.writeText(R);
136210
136219
  }
136211
136220
  setTimeout(() => {
136212
136221
  }, 1e3);
136213
- }, g = ne(() => {
136214
- var E;
136222
+ }, g = re(0), w = re(null), S = (O) => {
136223
+ var k, D, R, $, I;
136224
+ f("imageLoadingError", O), O === 404 ? (g.value++, g.value < 3 ? (k = w.value) == null || k.refresh() : console.log(
136225
+ `[ReviewFileCard] Image not found: ${(D = o.renditionData) == null ? void 0 : D.thumbnail}. Max retry attempts reached.`
136226
+ ), console.log(
136227
+ `[ReviewFileCard] Image not found: ${(R = o.renditionData) == null ? void 0 : R.thumbnail}. Retrying in 15 seconds... (Attempt ${g.value}/3)`
136228
+ )) : console.log(O === 403 ? `[ReviewFileCard] Access denied to image: ${($ = o.renditionData) == null ? void 0 : $.thumbnail}` : `[ReviewFileCard] Error loading image: ${(I = o.renditionData) == null ? void 0 : I.thumbnail}, status: ${O}`);
136229
+ }, E = ne(() => {
136230
+ var O;
136215
136231
  try {
136216
- const x = new Date(((E = o.renditionData) == null ? void 0 : E.created_at) ?? ""), y = (/* @__PURE__ */ new Date()).getTime() - x.getTime(), O = Math.floor(y / (1e3 * 60 * 60)), k = Math.floor(y % (1e3 * 60 * 60) / (1e3 * 60));
136217
- if (O <= 3)
136218
- return O === 0 ? `${k} minute${k !== 1 ? "s" : ""} ago` : `${O} hour${O !== 1 ? "s" : ""} ${k} minute${k !== 1 ? "s" : ""} ago`;
136219
- } catch (x) {
136220
- console.error("isShowShortDate -> error", x);
136221
- }
136222
- }), w = (E) => {
136223
- const x = sessionStorage.getItem("user.ws_user_role_id") || "";
136224
- return E == x;
136225
- }, S = (E) => E ? {
136232
+ const k = new Date(((O = o.renditionData) == null ? void 0 : O.created_at) ?? ""), D = (/* @__PURE__ */ new Date()).getTime() - k.getTime(), R = Math.floor(D / (1e3 * 60 * 60)), $ = Math.floor(D % (1e3 * 60 * 60) / (1e3 * 60));
136233
+ if (R <= 3)
136234
+ return R === 0 ? `${$} minute${$ !== 1 ? "s" : ""} ago` : `${R} hour${R !== 1 ? "s" : ""} ${$} minute${$ !== 1 ? "s" : ""} ago`;
136235
+ } catch (k) {
136236
+ console.error("isShowShortDate -> error", k);
136237
+ }
136238
+ }), x = (O) => {
136239
+ const k = sessionStorage.getItem("user.ws_user_role_id") || "";
136240
+ return O == k;
136241
+ }, y = (O) => O ? {
136226
136242
  user: {
136227
- id: E == null ? void 0 : E.id,
136228
- name: E == null ? void 0 : E.display_name,
136229
- profile_image: (E == null ? void 0 : E.profile_image) || null,
136230
- color: (E == null ? void 0 : E.color) || { bgColor: "", textColor: "" },
136231
- initial: (E == null ? void 0 : E.initial) || ""
136243
+ id: O == null ? void 0 : O.id,
136244
+ name: O == null ? void 0 : O.display_name,
136245
+ profile_image: (O == null ? void 0 : O.profile_image) || null,
136246
+ color: (O == null ? void 0 : O.color) || { bgColor: "", textColor: "" },
136247
+ initial: (O == null ? void 0 : O.initial) || ""
136232
136248
  },
136233
- isMe: w(E.id),
136249
+ isMe: x(O.id),
136234
136250
  showProfile: !0
136235
136251
  } : {
136236
136252
  user: {
@@ -136243,15 +136259,15 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136243
136259
  isMe: !1,
136244
136260
  showProfile: !1
136245
136261
  };
136246
- return bt(i, (E) => {
136247
- f(E ? "showPopup" : "hidePopup");
136262
+ return bt(i, (O) => {
136263
+ f(O ? "showPopup" : "hidePopup");
136248
136264
  }), t({
136249
136265
  hidePopup: () => {
136250
- var E;
136251
- (E = l.value) == null || E.hidePopup();
136266
+ var O;
136267
+ (O = l.value) == null || O.hidePopup();
136252
136268
  }
136253
- }), (E, x) => {
136254
- var y, O, k, D, R, $;
136269
+ }), (O, k) => {
136270
+ var D, R, $, I, P, j;
136255
136271
  return kt((z(), me("div", {
136256
136272
  class: $e(["rendition-item-wrapper", { disabled: e.disabled, focused: e.hovered || e.forceBorder || i.value || o.active }]),
136257
136273
  onClick: Zt(m, ["stop"])
@@ -136268,23 +136284,26 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136268
136284
  class: $e(["rendition-item", [i.value ? "show-options" : ""]])
136269
136285
  }, [
136270
136286
  Me(WRe, {
136271
- src: ((y = e.renditionData) == null ? void 0 : y.thumbnail) || null,
136287
+ src: ((D = e.renditionData) == null ? void 0 : D.thumbnail) || null,
136272
136288
  "show-broken-image": !1,
136273
136289
  alt: "rendition thumbnail",
136274
136290
  width: "200px",
136275
136291
  class: "z-[1] rendition-thumbnail",
136276
- height: "100%"
136292
+ height: "100%",
136293
+ onError: S,
136294
+ ref_key: "imageSkeletonRef",
136295
+ ref: w
136277
136296
  }, null, 8, ["src"]),
136278
136297
  De("div", _pa, [
136279
- (O = e.renditionData) != null && O.attachments && ((D = (k = e.renditionData) == null ? void 0 : k.attachments) == null ? void 0 : D.length) > 1 ? kt((z(), me("div", Spa, [
136280
- Wt(Ct((R = e.renditionData.attachments) == null ? void 0 : R.length) + " ", 1),
136298
+ (R = e.renditionData) != null && R.attachments && ((I = ($ = e.renditionData) == null ? void 0 : $.attachments) == null ? void 0 : I.length) > 1 ? kt((z(), me("div", Spa, [
136299
+ Wt(Ct((P = e.renditionData.attachments) == null ? void 0 : P.length) + " ", 1),
136281
136300
  Me(ee(Qn), {
136282
136301
  src: "File",
136283
136302
  color: "#a6a6a6"
136284
136303
  })
136285
136304
  ])), [
136286
136305
  [ee(r), {
136287
- content: `${($ = e.renditionData.attachments) == null ? void 0 : $.length} review files`,
136306
+ content: `${(j = e.renditionData.attachments) == null ? void 0 : j.length} review files`,
136288
136307
  delay: [1e3, 0],
136289
136308
  hideOnClick: !1,
136290
136309
  bypassOverflowCheck: !0
@@ -136296,7 +136315,7 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136296
136315
  label: "",
136297
136316
  color: "#a6a6a6"
136298
136317
  }),
136299
- x[2] || (x[2] = De("div", { class: "dot" }, null, -1))
136318
+ k[2] || (k[2] = De("div", { class: "dot" }, null, -1))
136300
136319
  ])), [
136301
136320
  [ee(r), {
136302
136321
  content: "New comment",
@@ -136328,36 +136347,36 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136328
136347
  "is-review-comment": !0,
136329
136348
  "is-scene-hub-comment": !1,
136330
136349
  "append-to": s.value,
136331
- onOpenPopup: x[0] || (x[0] = (I) => i.value = !0),
136332
- onClosePopup: x[1] || (x[1] = (I) => i.value = !1),
136350
+ onOpenPopup: k[0] || (k[0] = (B) => i.value = !0),
136351
+ onClosePopup: k[1] || (k[1] = (B) => i.value = !1),
136333
136352
  onCopyLink: v,
136334
136353
  onDelete: p
136335
136354
  }, null, 8, ["append-to"])
136336
136355
  ], 2)
136337
136356
  ], 2),
136338
136357
  De("div", Cpa, [
136339
- ht(E.$slots, "title", {}, () => {
136340
- var I, P, j;
136358
+ ht(O.$slots, "title", {}, () => {
136359
+ var B, F, U;
136341
136360
  return [
136342
136361
  De("div", xpa, [
136343
- Me(r_, Bs(Gl({ ...S((I = e.renditionData) == null ? void 0 : I.ws_creator) })), null, 16),
136362
+ Me(r_, Bs(Gl({ ...y((B = e.renditionData) == null ? void 0 : B.ws_creator) })), null, 16),
136344
136363
  De("span", kpa, [
136345
136364
  Me(fF, {
136346
- value: ((j = (P = e.renditionData) == null ? void 0 : P.ws_creator) == null ? void 0 : j.display_name) ?? "",
136365
+ value: ((U = (F = e.renditionData) == null ? void 0 : F.ws_creator) == null ? void 0 : U.display_name) ?? "",
136347
136366
  "tooltip-delay": 1e3
136348
136367
  }, null, 8, ["value"])
136349
136368
  ])
136350
136369
  ])
136351
136370
  ];
136352
136371
  }, !0),
136353
- ht(E.$slots, "timestamp", {}, () => {
136354
- var I, P;
136372
+ ht(O.$slots, "timestamp", {}, () => {
136373
+ var B, F;
136355
136374
  return [
136356
136375
  kt((z(), me("div", Tpa, [
136357
- Wt(Ct(g.value ? g.value : u(((I = o.renditionData) == null ? void 0 : I.created_at) ?? "")), 1)
136376
+ Wt(Ct(E.value ? E.value : u(((B = o.renditionData) == null ? void 0 : B.created_at) ?? "")), 1)
136358
136377
  ])), [
136359
136378
  [ee(r), {
136360
- content: g.value ? u(((P = o.renditionData) == null ? void 0 : P.created_at) ?? "") : "",
136379
+ content: E.value ? u(((F = o.renditionData) == null ? void 0 : F.created_at) ?? "") : "",
136361
136380
  delay: [1e3, 0],
136362
136381
  bypassOverflowCheck: !0
136363
136382
  }]
@@ -136375,7 +136394,7 @@ const w8e = (e, t) => e === uh.ALLOW ? t : e === uh.DISABLED ? "Parent folder is
136375
136394
  ]);
136376
136395
  };
136377
136396
  }
136378
- }), Zht = /* @__PURE__ */ Hr(Opa, [["__scopeId", "data-v-72b9a3cc"]]), Dpa = { class: "review-card__thumbnail" }, Apa = { class: "review-card__name" }, $pa = {
136397
+ }), Zht = /* @__PURE__ */ Hr(Opa, [["__scopeId", "data-v-f451ed31"]]), Dpa = { class: "review-card__thumbnail" }, Apa = { class: "review-card__name" }, $pa = {
136379
136398
  key: 1,
136380
136399
  class: "review-card__suffix"
136381
136400
  }, Ipa = /* @__PURE__ */ _t({
@@ -142790,11 +142809,12 @@ const Iba = (e) => {
142790
142809
  refreshInterval: e.refreshInterval,
142791
142810
  enableAutoRefresh: e.enableAutoRefresh,
142792
142811
  onInsightClick: e.onInsightClick,
142793
- onCopyLink: e.onCopyLink
142812
+ onCopyLink: e.onCopyLink,
142813
+ switchInstance: e.switchInstance
142794
142814
  },
142795
142815
  "user-profile-tooltip-content"
142796
142816
  );
142797
- return $ba(t, n), t;
142817
+ return n.provide("switchInstance", e.switchInstance), $ba(t, n), t;
142798
142818
  }, mMt = (e) => {
142799
142819
  e._userProfileContainer && (yEe(e._userProfileContainer), delete e._userProfileContainer), e._userProfileInstance && (vEe(e._userProfileInstance), delete e._userProfileInstance), e.style.cursor = "", e.classList.remove("user-profile-trigger");
142800
142820
  }, Rba = {
@@ -235916,7 +235936,7 @@ const ffo = /* @__PURE__ */ Ho(rfo, [["render", dfo], ["__scopeId", "data-v-1bab
235916
235936
  ], 4));
235917
235937
  }
235918
235938
  }), Qjt = /* @__PURE__ */ Hr(Ffo, [["__scopeId", "data-v-7e4080e7"]]), Bfo = {
235919
- key: 1,
235939
+ key: 0,
235920
235940
  class: "assigned-user-wrapper"
235921
235941
  }, Vfo = /* @__PURE__ */ _t({
235922
235942
  __name: "CommentAssignUser",
@@ -235948,90 +235968,88 @@ const ffo = /* @__PURE__ */ Ho(rfo, [["render", dfo], ["__scopeId", "data-v-1bab
235948
235968
  }
235949
235969
  }, f = t;
235950
235970
  return (m, p) => {
235971
+ var g, w;
235951
235972
  const v = ta("Icon");
235952
- return z(), lt(Rpe, {
235973
+ return s.value[0] && (r.readonly || !r.commentPermission.canAssign) ? kt((z(), me("div", Bfo, [
235974
+ Me(r_, {
235975
+ user: s.value[0],
235976
+ "show-profile": !1,
235977
+ "show-tooltip": !1,
235978
+ isMe: i((g = s.value[0]) == null ? void 0 : g.id),
235979
+ style: { height: "20px", width: "20px" }
235980
+ }, null, 8, ["user", "isMe"])
235981
+ ])), [
235982
+ [ee(n), {
235983
+ content: s.value[0] ? `Assigned to ${(w = s.value[0]) == null ? void 0 : w.name}` : "",
235984
+ delay: [300, 0]
235985
+ }]
235986
+ ]) : (z(), lt(Rpe, {
235987
+ key: 1,
235953
235988
  getDataApiFunc: r.apiFunctions.getAssignableUser,
235954
235989
  modelValue: s.value,
235955
- "onUpdate:modelValue": p[0] || (p[0] = (g) => s.value = g),
235990
+ "onUpdate:modelValue": p[0] || (p[0] = (S) => s.value = S),
235956
235991
  "is-multiple-select": !1,
235957
235992
  "show-tooltip": !1,
235958
235993
  onSelect: d,
235959
235994
  onDeselect: u,
235960
235995
  onReselect: d,
235961
- onOpen: p[1] || (p[1] = (g) => m.$emit("open-assign-popup")),
235962
- onClose: p[2] || (p[2] = (g) => m.$emit("close-assign-popup")),
235996
+ onOpen: p[1] || (p[1] = (S) => m.$emit("open-assign-popup")),
235997
+ onClose: p[2] || (p[2] = (S) => m.$emit("close-assign-popup")),
235963
235998
  "read-only": r.readonly
235964
235999
  }, {
235965
236000
  trigger: Ue(() => [
235966
236001
  ht(m.$slots, "trigger", {
235967
236002
  disabled: !a.value
235968
- }, () => {
235969
- var g, w;
235970
- return [
235971
- !r.readonly && r.commentPermission.canAssign ? (z(), lt(ee(iA), {
235972
- key: 0,
235973
- onClear: u,
235974
- style: { marginLeft: "0" },
235975
- "disable-remove": !1
235976
- }, {
235977
- default: Ue(() => {
235978
- var S;
235979
- return [
235980
- kt((z(), lt(ee(sr), {
235981
- readonly: r.readonly,
235982
- variant: ["secondary", "icon"],
235983
- size: "28px"
235984
- }, {
235985
- default: Ue(() => {
235986
- var E;
235987
- return [
235988
- s.value[0] ? (z(), lt(r_, {
235989
- key: 0,
235990
- user: s.value[0],
235991
- "show-profile": !1,
235992
- "show-tooltip": !1,
235993
- isMe: i((E = s.value[0]) == null ? void 0 : E.id),
235994
- style: { height: "20px", width: "20px" }
235995
- }, null, 8, ["user", "isMe"])) : (z(), lt(v, {
235996
- key: 1,
235997
- src: "UserPlus",
235998
- size: 16
235999
- }))
236000
- ];
236001
- }),
236002
- _: 1
236003
- }, 8, ["readonly"])), [
236004
- [ee(n), {
236005
- content: s.value[0] ? `Assigned to ${(S = s.value[0]) == null ? void 0 : S.name}` : "",
236006
- delay: [300, 0]
236007
- }]
236008
- ])
236009
- ];
236010
- }),
236011
- _: 1
236012
- })) : qe("", !0),
236013
- s.value[0] && (r.readonly || !r.commentPermission.canAssign) ? kt((z(), me("div", Bfo, [
236014
- Me(r_, {
236015
- user: s.value[0],
236016
- "show-profile": !1,
236017
- "show-tooltip": !1,
236018
- isMe: i((g = s.value[0]) == null ? void 0 : g.id),
236019
- style: { height: "20px", width: "20px" }
236020
- }, null, 8, ["user", "isMe"])
236021
- ])), [
236022
- [ee(n), {
236023
- content: s.value[0] ? `Assigned to ${(w = s.value[0]) == null ? void 0 : w.name}` : "",
236024
- delay: [300, 0]
236025
- }]
236026
- ]) : qe("", !0)
236027
- ];
236028
- }, !0)
236003
+ }, () => [
236004
+ !r.readonly && r.commentPermission.canAssign ? (z(), lt(ee(iA), {
236005
+ key: 0,
236006
+ onClear: u,
236007
+ style: { marginLeft: "0" },
236008
+ "disable-remove": !1
236009
+ }, {
236010
+ default: Ue(() => {
236011
+ var S;
236012
+ return [
236013
+ kt((z(), lt(ee(sr), {
236014
+ readonly: r.readonly,
236015
+ variant: ["secondary", "icon"],
236016
+ size: "28px"
236017
+ }, {
236018
+ default: Ue(() => {
236019
+ var E;
236020
+ return [
236021
+ s.value[0] ? (z(), lt(r_, {
236022
+ key: 0,
236023
+ user: s.value[0],
236024
+ "show-profile": !1,
236025
+ "show-tooltip": !1,
236026
+ isMe: i((E = s.value[0]) == null ? void 0 : E.id),
236027
+ style: { height: "20px", width: "20px" }
236028
+ }, null, 8, ["user", "isMe"])) : (z(), lt(v, {
236029
+ key: 1,
236030
+ src: "UserPlus",
236031
+ size: 16
236032
+ }))
236033
+ ];
236034
+ }),
236035
+ _: 1
236036
+ }, 8, ["readonly"])), [
236037
+ [ee(n), {
236038
+ content: s.value[0] ? `Assigned to ${(S = s.value[0]) == null ? void 0 : S.name}` : "",
236039
+ delay: [300, 0]
236040
+ }]
236041
+ ])
236042
+ ];
236043
+ }),
236044
+ _: 1
236045
+ })) : qe("", !0)
236046
+ ], !0)
236029
236047
  ]),
236030
236048
  _: 3
236031
- }, 8, ["getDataApiFunc", "modelValue", "read-only"]);
236049
+ }, 8, ["getDataApiFunc", "modelValue", "read-only"]));
236032
236050
  };
236033
236051
  }
236034
- }), e5t = /* @__PURE__ */ Hr(Vfo, [["__scopeId", "data-v-c744c01d"]]), Ufo = { class: "comment-reaction-wrapper" }, jfo = { class: "comment-reaction-list" }, Hfo = { class: "comment-reaction-inner" }, zfo = {
236052
+ }), e5t = /* @__PURE__ */ Hr(Vfo, [["__scopeId", "data-v-1964985d"]]), Ufo = { class: "comment-reaction-wrapper" }, jfo = { class: "comment-reaction-list" }, Hfo = { class: "comment-reaction-inner" }, zfo = {
236035
236053
  key: 0,
236036
236054
  class: "comment-reaction-count"
236037
236055
  }, Wfo = {
@@ -236673,7 +236691,7 @@ const Zfo = (e) => {
236673
236691
  fn: Ue(() => [
236674
236692
  r.commentData.assigned_user ? (z(), lt(e5t, {
236675
236693
  key: x.header,
236676
- readonly: r.readonly || ve.resolved,
236694
+ readonly: (r.readonly || ve.resolved) && !r.commentPermission.canAssign,
236677
236695
  onOpenAssignPopup: Ke[0] || (Ke[0] = (ot) => O.value = !0),
236678
236696
  onCloseAssignPopup: Ke[1] || (Ke[1] = (ot) => O.value = !1),
236679
236697
  "comment-data": r.commentData,
@@ -236782,7 +236800,7 @@ const Zfo = (e) => {
236782
236800
  ], 8, Xfo);
236783
236801
  };
236784
236802
  }
236785
- }), rho = /* @__PURE__ */ Hr(nho, [["__scopeId", "data-v-b6e9b389"]]), aho = /* @__PURE__ */ _t({
236803
+ }), rho = /* @__PURE__ */ Hr(nho, [["__scopeId", "data-v-a208cbd6"]]), aho = /* @__PURE__ */ _t({
236786
236804
  __name: "CommentSkeleton",
236787
236805
  setup(e, { expose: t }) {
236788
236806
  t();
@@ -236952,7 +236970,8 @@ const sPn = /* @__PURE__ */ Ho(aho, [["render", uho], ["__scopeId", "data-v-3546
236952
236970
  params: {
236953
236971
  include: zoe,
236954
236972
  order_by: lue,
236955
- per_page: Xk
236973
+ per_page: Xk,
236974
+ include_permission: 1
236956
236975
  }
236957
236976
  }
236958
236977
  );
@@ -237661,7 +237680,8 @@ const kme = /* @__PURE__ */ Ho(mho, [["render", who], ["__scopeId", "data-v-e7d7
237661
237680
  include: zoe,
237662
237681
  order_by: lue,
237663
237682
  per_page: Xk,
237664
- ...I
237683
+ ...I,
237684
+ include_permission: 1
237665
237685
  }
237666
237686
  }
237667
237687
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbocollab/arbo-web-scene",
3
3
  "description": "Arbo Web Scene",
4
- "version": "0.26.8-alpha.68",
4
+ "version": "0.26.8-alpha.69",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {