vue3-beak-ui-framework 1.2.58 → 1.2.59

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.
@@ -1,4 +1,4 @@
1
- import { g as rt } from "./index-BG_AoqOs.js";
1
+ import { g as rt } from "./index-SWxtueLq.js";
2
2
  var Q = { exports: {} }, it = Q.exports, et;
3
3
  function st() {
4
4
  return et || (et = 1, function(j, V) {
@@ -1,4 +1,4 @@
1
- import { g as Ua } from "./index-BG_AoqOs.js";
1
+ import { g as Ua } from "./index-SWxtueLq.js";
2
2
  function Le(o) {
3
3
  if (!o)
4
4
  return;
@@ -122620,7 +122620,7 @@ class Columns {
122620
122620
  const Tg = Bg.headings[Ig], Lg = [];
122621
122621
  if (Tg.getAttribute("data-type") === "date") {
122622
122622
  let Dg = !1;
122623
- Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-COTQ5RK7.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
122623
+ Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-aXjFXbs0.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
122624
122624
  }
122625
122625
  Promise.all(Lg).then((Dg) => {
122626
122626
  const Jg = Dg[0];
@@ -123941,7 +123941,12 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
123941
123941
  showPageSize: { type: Boolean, default: !1 },
123942
123942
  // when true, render a Layout dropdown (Portrait/Landscape) in the toolbar
123943
123943
  // bound to the pageLayout prop. Use `v-model:page-layout` on the parent.
123944
- showPageLayout: { type: Boolean, default: !1 }
123944
+ showPageLayout: { type: Boolean, default: !1 },
123945
+ // when true, render the "Save as PDF" button in the toolbar. Defaults to
123946
+ // true so existing consumers see no change. Set to false if the html2canvas
123947
+ // output isn't acceptable for your design — users can still get a PDF via
123948
+ // the Print button's "Save as PDF" destination in the browser print dialog.
123949
+ showSaveAsPdf: { type: Boolean, default: !0 }
123945
123950
  },
123946
123951
  emits: ["rendered", "render-error", "before-print", "after-print", "before-save", "after-save", "save-error", "update:pageSize", "update:pageLayout"],
123947
123952
  setup(ps, { expose: Ig, emit: Zg }) {
@@ -123967,27 +123972,25 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
123967
123972
  A5: [148, 210]
123968
123973
  }, BI = () => {
123969
123974
  const [XI, MI] = hI[Gg.pageSize], PI = Gg.pageLayout === "landscape" ? `${MI} ${XI}` : `${XI} ${MI}`, OI = Xg.value ? `
123970
- @top-left { content: none; }
123971
- @top-center { content: element(vpdHeader); }
123972
- @top-right { content: none; }` : `
123975
+ @top-center { content: element(vpdHeader); }` : `
123973
123976
  @top-left { content: element(vpdHeaderLeft); }
123974
123977
  @top-right { content: element(vpdHeaderRight); }`, QI = Vg.value ? `
123975
- @bottom-left { content: none; }
123976
- @bottom-center { content: element(vpdFooter); }
123977
- @bottom-right { content: none; }` : `
123978
+ @bottom-center { content: element(vpdFooter); }` : `
123978
123979
  @bottom-left { content: element(vpdFooterLeft); }
123979
123980
  @bottom-center { content: element(vpdFooterCenter); }
123980
- @bottom-right { content: element(vpdFooterRight); }`, _I = Fg.value ? `
123981
- @top-left { content: none; }
123981
+ @bottom-right { content: element(vpdFooterRight); }`, _I = Fg.value ? Xg.value ? `
123982
+ @top-center { content: element(vpdCoverHeader, first); }` : `
123982
123983
  @top-center { content: element(vpdCoverHeader, first); }
123984
+ @top-left { content: none; }
123983
123985
  @top-right { content: none; }` : Xg.value ? `
123984
123986
  @top-center { content: none; }
123985
123987
  @top-left { content: element(vpdCoverHeaderLeft, first); }
123986
123988
  @top-right { content: element(vpdCoverHeaderRight, first); }` : `
123987
123989
  @top-left { content: element(vpdCoverHeaderLeft, first); }
123988
- @top-right { content: element(vpdCoverHeaderRight, first); }`, cC = Tg.value ? `
123989
- @bottom-left { content: none; }
123990
+ @top-right { content: element(vpdCoverHeaderRight, first); }`, cC = Tg.value ? Vg.value ? `
123991
+ @bottom-center { content: element(vpdCoverFooter, first); }` : `
123990
123992
  @bottom-center { content: element(vpdCoverFooter, first); }
123993
+ @bottom-left { content: none; }
123991
123994
  @bottom-right { content: none; }` : Lg.value ? `
123992
123995
  @bottom-left { content: element(vpdCoverFooterLeft, first); }
123993
123996
  @bottom-center { content: element(vpdCoverFooterCenter, first); }
@@ -124018,6 +124021,24 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124018
124021
  .v-pd-running.v-pd-cover-footer-center { position: running(vpdCoverFooterCenter); }
124019
124022
  .v-pd-running.v-pd-cover-footer-right { position: running(vpdCoverFooterRight); }
124020
124023
 
124024
+ /*
124025
+ * Safety net for the paged.js polyfill: its base stylesheet hides
124026
+ * .pagedjs_margin-*-center > .pagedjs_margin-content > * by default and
124027
+ * only re-shows the box once the chunker adds .hasContent to the margin
124028
+ * box. With the full-width single-slot pipeline the chunker sometimes
124029
+ * places our running element but skips the .hasContent tag, leaving the
124030
+ * footer/header invisible. These rules have specificity (0,4,0), one
124031
+ * higher than the polyfill's (0,3,0) hide rule, so they win without
124032
+ * needing !important. They no-op in the happy path because they match
124033
+ * the chunker's intended behaviour.
124034
+ */
124035
+ .pagedjs_page .pagedjs_margin-top-center > .pagedjs_margin-content > .v-pd-header,
124036
+ .pagedjs_page .pagedjs_margin-bottom-center > .pagedjs_margin-content > .v-pd-footer,
124037
+ .pagedjs_page .pagedjs_margin-top-center > .pagedjs_margin-content > .v-pd-cover-header,
124038
+ .pagedjs_page .pagedjs_margin-bottom-center > .pagedjs_margin-content > .v-pd-cover-footer {
124039
+ display: block;
124040
+ }
124041
+
124021
124042
  /* table behavior: keep rows intact, but do not over-constrain cells */
124022
124043
  table { break-inside: auto; border-collapse: collapse; }
124023
124044
  thead { display: table-header-group; break-inside: avoid; }
@@ -124136,7 +124157,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124136
124157
  Qg.value = !0, _g.value = null;
124137
124158
  let MI;
124138
124159
  try {
124139
- ({ Previewer: MI } = await import("./index-B5DQA9UH.js"));
124160
+ ({ Previewer: MI } = await import("./index-MFVd8D83.js"));
124140
124161
  } catch (OI) {
124141
124162
  _g.value = "pagedjs is not installed. Run: npm i pagedjs", Qg.value = !1, Bg("render-error", OI);
124142
124163
  return;
@@ -124247,7 +124268,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124247
124268
  }
124248
124269
  const [_I, cC] = await Promise.all([
124249
124270
  import("./html2canvas.esm-DgdJBc_o.js"),
124250
- import("./jspdf.es.min-Bu54FCkv.js").then((IC) => IC.j)
124271
+ import("./jspdf.es.min-4Ljanazx.js").then((IC) => IC.j)
124251
124272
  ]), gC = _I.default || _I, CC = cC.jsPDF || cC.default, [AC, NC] = yI[Gg.pageSize], uC = Gg.pageLayout === "landscape" ? "landscape" : "portrait", dC = uC === "landscape" ? NC : AC, nC = uC === "landscape" ? AC : NC, oC = new CC({
124252
124273
  orientation: uC,
124253
124274
  unit: "mm",
@@ -124377,7 +124398,8 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124377
124398
  }, " + ", 8, _hoisted_24$2)
124378
124399
  ], 64)) : createCommentVNode("", !0),
124379
124400
  _hoisted_25$2,
124380
- createElementVNode("button", {
124401
+ ps.showSaveAsPdf ? (openBlock(), createElementBlock("button", {
124402
+ key: 3,
124381
124403
  type: "button",
124382
124404
  class: "v-pd-tb-btn",
124383
124405
  disabled: !il.value || Qg.value || Kg.value,
@@ -124386,7 +124408,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124386
124408
  }, [
124387
124409
  _hoisted_27$1,
124388
124410
  createTextVNode(" Save as PDF ")
124389
- ], 8, _hoisted_26$2),
124411
+ ], 8, _hoisted_26$2)) : createCommentVNode("", !0),
124390
124412
  createElementVNode("button", {
124391
124413
  type: "button",
124392
124414
  class: "v-pd-tb-btn v-pd-tb-icon",
@@ -1,5 +1,5 @@
1
- import { c as Va, g as al } from "./index-BG_AoqOs.js";
2
- import { _ as ka } from "./jspdf.es.min-Bu54FCkv.js";
1
+ import { c as Va, g as al } from "./index-SWxtueLq.js";
2
+ import { _ as ka } from "./jspdf.es.min-4Ljanazx.js";
3
3
  var cn = {}, vn = {}, Cr, gn;
4
4
  function ae() {
5
5
  if (gn) return Cr;
@@ -9246,7 +9246,7 @@ function(n) {
9246
9246
  var d = h.getContext("2d");
9247
9247
  d.fillStyle = "#fff", d.fillRect(0, 0, h.width, h.height);
9248
9248
  var m = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, _ = this;
9249
- return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-BXbz0Hwe.js")).catch(function(k) {
9249
+ return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-BJ3piMbP.js")).catch(function(k) {
9250
9250
  return Promise.reject(new Error("Could not load canvg: " + k));
9251
9251
  }).then(function(k) {
9252
9252
  return k.default ? k.default : k;
@@ -1,4 +1,4 @@
1
- import { i as f } from "./index-BG_AoqOs.js";
1
+ import { i as f } from "./index-SWxtueLq.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -315,28 +315,26 @@ Ind=INDIVIDUAL`}]},{group:"number",op:"round",label:"Round…",needs:[{key:"deci
315
315
  `,columnDelimiter:",",removeDoubleQuotes:!1};if(!isObject$d(ps))return!1;const Bg={...Zg,...ps};if(Bg.data.length||isObject$d(Bg.data)){if(Bg.type==="csv"){Ig={data:[]};const Gg=Bg.data.split(Bg.lineDelimiter);Gg.length&&(Bg.headings&&(Ig.headings=Gg[0].split(Bg.columnDelimiter),Bg.removeDoubleQuotes&&(Ig.headings=Ig.headings.map(Ng=>Ng.trim().replace(/(^"|"$)/g,""))),Gg.shift()),Gg.forEach((Ng,Wg)=>{Ig.data[Wg]=[];const Dg=Ng.split(Bg.columnDelimiter);Dg.length&&Dg.forEach(Vg=>{Bg.removeDoubleQuotes&&(Vg=Vg.trim().replace(/(^"|"$)/g,"")),Ig.data[Wg].push(Vg)})}))}else if(Bg.type==="json"){const Gg=isJson(Bg.data);Gg&&(Ig={headings:[],data:[]},Gg.forEach((Ng,Wg)=>{Ig.data[Wg]=[],Object.entries(Ng).forEach(([Dg,Vg])=>{Ig.headings.includes(Dg)||Ig.headings.push(Dg),Ig.data[Wg].push(Vg)})}))}isObject$d(Bg.data)&&(Ig=Bg.data),Ig&&this.insert(Ig)}return!1}print(){const ps=this.activeHeadings,Ig=this.activeRows,Zg=createElement("table"),Bg=createElement("thead"),Gg=createElement("tbody"),Ng=createElement("tr");ps.forEach(Dg=>{Ng.appendChild(createElement("th",{html:Dg.textContent}))}),Bg.appendChild(Ng),Ig.forEach(Dg=>{const Vg=createElement("tr");Array.from(Dg.cells).forEach(Fg=>{Vg.appendChild(createElement("td",{html:Fg.textContent}))}),Gg.appendChild(Vg)}),Zg.appendChild(Bg),Zg.appendChild(Gg);const Wg=window.open();Wg.document.body.appendChild(Zg),Wg.print()}setMessage(ps){let Ig=1;this.hasRows?Ig=this.data[0].cells.length:this.activeHeadings.length&&(Ig=this.activeHeadings.length),this.wrapper.classList.add("dataTable-empty"),this.label&&(this.label.innerHTML=""),this.totalPages=0,this.render("pager"),this.clear(createElement("tr",{html:`<td class="dataTables-empty" colspan="${Ig}">${ps}</td>`}))}columns(ps){return new Columns(this,ps)}rows(ps){return new Rows(this,ps)}on(ps,Ig){this.events=this.events||{},this.events[ps]=this.events[ps]||[],this.events[ps].push(Ig)}off(ps,Ig){this.events=this.events||{},ps in this.events&&this.events[ps].splice(this.events[ps].indexOf(Ig),1)}emit(ps){if(this.events=this.events||{},ps in this.events)for(let Ig=0;Ig<this.events[ps].length;Ig++)this.events[ps][Ig].apply(this,Array.prototype.slice.call(arguments,1))}}const _sfc_main$T=vue.defineComponent({__name:"V-SimpleDatatables",props:{options:{type:Object,default:()=>({})},autoupdate:{type:Boolean,default:!1}},emits:["init","refresh","update","page","sort","perpage","search"],setup(il,{emit:ps}){const Ig=il,Zg=vue.ref(null),Bg=vue.ref(null),Gg=vue.ref(null),Ng=vue.ref(!1),Wg=vue.reactive({column:0,direction:""}),Dg=ps,Vg=Yg=>{Ng.value||(Ng.value=!0)},Fg=Yg=>{Ng.value&&(Ng.value=!1)},Xg=()=>{if(Bg.value){const Yg=Bg.value.querySelector(".dataTable-input"),Hg=Bg.value.querySelector(".dataTable-selector"),Jg=Bg.value.querySelector(".dataTable-pagination"),Ug=Bg.value.querySelectorAll(".dataTable-sorter");Yg&&(Yg.addEventListener("focus",Vg,!1),Yg.addEventListener("blur",Fg,!1)),Hg&&(Hg.addEventListener("focus",Vg,!1),Hg.addEventListener("blur",Fg,!1),Hg.addEventListener("change",Fg,!1)),Jg&&(Jg.addEventListener("mousedown",Vg,!1),Jg.addEventListener("mouseup",Fg,!1)),Ug.forEach(Kg=>{let $g=Kg;$g&&($g.addEventListener("mousedown",Vg,!1),$g.addEventListener("mouseup",Fg,!1))})}Gg.value&&(Gg.value.on("datatable.init",()=>{Dg("init")}),Gg.value.on("datatable.refresh",()=>{Dg("refresh")}),Gg.value.on("datatable.update",()=>{Dg("update")}),Gg.value.on("datatable.page",Yg=>{Dg("page",Yg)}),Gg.value.on("datatable.sort",(Yg,Hg)=>{Wg.column=Yg,Wg.direction=Hg||"",Dg("sort",Yg,Hg)}),Gg.value.on("datatable.perpage",Yg=>{Dg("perpage",Yg)}),Gg.value.on("datatable.search",(Yg,Hg)=>{Dg("search",Yg,Hg)}))},Tg=()=>{if(Gg.value&&(Gg.value.destroy(),Gg.value=null),Bg.value){const Yg=Bg.value.querySelector(".dataTable-input"),Hg=Bg.value.querySelector(".dataTable-selector"),Jg=Bg.value.querySelector(".dataTable-pagination"),Ug=Bg.value.querySelectorAll(".dataTable-sorter");Yg&&(Yg.removeEventListener("focus",Vg),Yg.removeEventListener("blur",Fg)),Hg&&(Hg.removeEventListener("focus",Vg),Hg.removeEventListener("blur",Fg),Hg.removeEventListener("change",Fg)),Jg&&(Jg.removeEventListener("mousedown",Vg),Jg.removeEventListener("mouseup",Fg)),Ug.forEach(Kg=>{let $g=Kg;$g&&($g.removeEventListener("mousedown",Vg),$g.removeEventListener("mouseup",Fg))})}};return vue.onMounted(()=>{console.log("Data-table:",Gg.value),Zg.value&&(console.log("tableElement:",Zg.value),console.log("tableElement- props.options:",Ig.options),Gg.value=new DataTable("#"+Zg.value.id,Ig.options)),Xg()}),vue.onBeforeUnmount(()=>{Tg()}),vue.isReactive(Ig.options)&&vue.watch([Ig.options,()=>Ig.autoupdate],()=>{var Yg,Hg;if(Zg.value&&Ig.autoupdate&&!Ng.value){let Jg=1,Ug=10,Kg="";Gg.value&&(Jg=Gg.value.currentPage,Kg=(Yg=Gg.value.input)==null?void 0:Yg.value,Ug=(Hg=Gg.value.options)==null?void 0:Hg.perPage,Tg()),Gg.value=new DataTable("#"+Zg.value.id,{...Ig.options,perPage:Ug}),Ig.options.searchable!==!1&&(Gg.value.input.value=Kg,Gg.value.input.dispatchEvent(new Event("keyup"))),Wg.direction!==""&&Gg.value.columns().sort(Wg.column,Wg.direction),Gg.value.page(Jg),Xg()}}),(Yg,Hg)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"wrapperElement",ref:Bg},[vue.createElementVNode("table",{ref_key:"tableElement",ref:Zg,id:"tableElement"},[vue.renderSlot(Yg.$slots,"default")],512)],512))}});/*!
316
316
  * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
317
317
  * (c) 2020 Szymon Nowak | Released under the MIT license
318
- */let Point$1=class{constructor(ps,Ig,Zg){this.x=ps,this.y=Ig,this.time=Zg||Date.now()}distanceTo(ps){return Math.sqrt(Math.pow(this.x-ps.x,2)+Math.pow(this.y-ps.y,2))}equals(ps){return this.x===ps.x&&this.y===ps.y&&this.time===ps.time}velocityFrom(ps){return this.time!==ps.time?this.distanceTo(ps)/(this.time-ps.time):0}};class Bezier{constructor(ps,Ig,Zg,Bg,Gg,Ng){this.startPoint=ps,this.control2=Ig,this.control1=Zg,this.endPoint=Bg,this.startWidth=Gg,this.endWidth=Ng}static fromPoints(ps,Ig){const Zg=this.calculateControlPoints(ps[0],ps[1],ps[2]).c2,Bg=this.calculateControlPoints(ps[1],ps[2],ps[3]).c1;return new Bezier(ps[1],Zg,Bg,ps[2],Ig.start,Ig.end)}static calculateControlPoints(ps,Ig,Zg){const Bg=ps.x-Ig.x,Gg=ps.y-Ig.y,Ng=Ig.x-Zg.x,Wg=Ig.y-Zg.y,Dg={x:(ps.x+Ig.x)/2,y:(ps.y+Ig.y)/2},Vg={x:(Ig.x+Zg.x)/2,y:(Ig.y+Zg.y)/2},Fg=Math.sqrt(Bg*Bg+Gg*Gg),Xg=Math.sqrt(Ng*Ng+Wg*Wg),Tg=Dg.x-Vg.x,Yg=Dg.y-Vg.y,Hg=Xg/(Fg+Xg),Jg={x:Vg.x+Tg*Hg,y:Vg.y+Yg*Hg},Ug=Ig.x-Jg.x,Kg=Ig.y-Jg.y;return{c1:new Point$1(Dg.x+Ug,Dg.y+Kg),c2:new Point$1(Vg.x+Ug,Vg.y+Kg)}}length(){let Ig=0,Zg,Bg;for(let Gg=0;Gg<=10;Gg+=1){const Ng=Gg/10,Wg=this.point(Ng,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),Dg=this.point(Ng,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(Gg>0){const Vg=Wg-Zg,Fg=Dg-Bg;Ig+=Math.sqrt(Vg*Vg+Fg*Fg)}Zg=Wg,Bg=Dg}return Ig}point(ps,Ig,Zg,Bg,Gg){return Ig*(1-ps)*(1-ps)*(1-ps)+3*Zg*(1-ps)*(1-ps)*ps+3*Bg*(1-ps)*ps*ps+Gg*ps*ps*ps}}function throttle$1(il,ps=250){let Ig=0,Zg=null,Bg,Gg,Ng;const Wg=()=>{Ig=Date.now(),Zg=null,Bg=il.apply(Gg,Ng),Zg||(Gg=null,Ng=[])};return function(...Vg){const Fg=Date.now(),Xg=ps-(Fg-Ig);return Gg=this,Ng=Vg,Xg<=0||Xg>ps?(Zg&&(clearTimeout(Zg),Zg=null),Ig=Fg,Bg=il.apply(Gg,Ng),Zg||(Gg=null,Ng=[])):Zg||(Zg=window.setTimeout(Wg,Xg)),Bg}}class SignaturePad{constructor(ps,Ig={}){this.canvas=ps,this.options=Ig,this._handleMouseDown=Zg=>{Zg.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(Zg))},this._handleMouseMove=Zg=>{this._mouseButtonDown&&this._strokeMoveUpdate(Zg)},this._handleMouseUp=Zg=>{Zg.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(Zg))},this._handleTouchStart=Zg=>{if(Zg.preventDefault(),Zg.targetTouches.length===1){const Bg=Zg.changedTouches[0];this._strokeBegin(Bg)}},this._handleTouchMove=Zg=>{Zg.preventDefault();const Bg=Zg.targetTouches[0];this._strokeMoveUpdate(Bg)},this._handleTouchEnd=Zg=>{if(Zg.target===this.canvas){Zg.preventDefault();const Gg=Zg.changedTouches[0];this._strokeEnd(Gg)}},this.velocityFilterWeight=Ig.velocityFilterWeight||.7,this.minWidth=Ig.minWidth||.5,this.maxWidth=Ig.maxWidth||2.5,this.throttle="throttle"in Ig?Ig.throttle:16,this.minDistance="minDistance"in Ig?Ig.minDistance:5,this.dotSize=Ig.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=Ig.penColor||"black",this.backgroundColor=Ig.backgroundColor||"rgba(0,0,0,0)",this.onBegin=Ig.onBegin,this.onEnd=Ig.onEnd,this._strokeMoveUpdate=this.throttle?throttle$1(SignaturePad.prototype._strokeUpdate,this.throttle):SignaturePad.prototype._strokeUpdate,this._ctx=ps.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:ps,canvas:Ig}=this;ps.fillStyle=this.backgroundColor,ps.clearRect(0,0,Ig.width,Ig.height),ps.fillRect(0,0,Ig.width,Ig.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(ps,Ig={},Zg){const Bg=new Image,Gg=Ig.ratio||window.devicePixelRatio||1,Ng=Ig.width||this.canvas.width/Gg,Wg=Ig.height||this.canvas.height/Gg;this._reset(),Bg.onload=()=>{this._ctx.drawImage(Bg,0,0,Ng,Wg),Zg&&Zg()},Bg.onerror=Dg=>{Zg&&Zg(Dg)},Bg.src=ps,this._isEmpty=!1}toDataURL(ps="image/png",Ig){switch(ps){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(ps,Ig)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(ps){this.clear(),this._fromData(ps,({color:Ig,curve:Zg})=>this._drawCurve({color:Ig,curve:Zg}),({color:Ig,point:Zg})=>this._drawDot({color:Ig,point:Zg})),this._data=ps}toData(){return this._data}_strokeBegin(ps){const Ig={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(ps),this._data.push(Ig),this._reset(),this._strokeUpdate(ps)}_strokeUpdate(ps){if(this._data.length===0){this._strokeBegin(ps);return}const Ig=ps.clientX,Zg=ps.clientY,Bg=this._createPoint(Ig,Zg),Gg=this._data[this._data.length-1],Ng=Gg.points,Wg=Ng.length>0&&Ng[Ng.length-1],Dg=Wg?Bg.distanceTo(Wg)<=this.minDistance:!1,Vg=Gg.color;if(!Wg||!(Wg&&Dg)){const Fg=this._addPoint(Bg);Wg?Fg&&this._drawCurve({color:Vg,curve:Fg}):this._drawDot({color:Vg,point:Bg}),Ng.push({time:Bg.time,x:Bg.x,y:Bg.y})}}_strokeEnd(ps){this._strokeUpdate(ps),typeof this.onEnd=="function"&&this.onEnd(ps)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(ps,Ig){const Zg=this.canvas.getBoundingClientRect();return new Point$1(ps-Zg.left,Ig-Zg.top,new Date().getTime())}_addPoint(ps){const{_lastPoints:Ig}=this;if(Ig.push(ps),Ig.length>2){Ig.length===3&&Ig.unshift(Ig[0]);const Zg=this._calculateCurveWidths(Ig[1],Ig[2]),Bg=Bezier.fromPoints(Ig,Zg);return Ig.shift(),Bg}return null}_calculateCurveWidths(ps,Ig){const Zg=this.velocityFilterWeight*Ig.velocityFrom(ps)+(1-this.velocityFilterWeight)*this._lastVelocity,Bg=this._strokeWidth(Zg),Gg={end:Bg,start:this._lastWidth};return this._lastVelocity=Zg,this._lastWidth=Bg,Gg}_strokeWidth(ps){return Math.max(this.maxWidth/(ps+1),this.minWidth)}_drawCurveSegment(ps,Ig,Zg){const Bg=this._ctx;Bg.moveTo(ps,Ig),Bg.arc(ps,Ig,Zg,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:ps,curve:Ig}){const Zg=this._ctx,Bg=Ig.endWidth-Ig.startWidth,Gg=Math.floor(Ig.length())*2;Zg.beginPath(),Zg.fillStyle=ps;for(let Ng=0;Ng<Gg;Ng+=1){const Wg=Ng/Gg,Dg=Wg*Wg,Vg=Dg*Wg,Fg=1-Wg,Xg=Fg*Fg,Tg=Xg*Fg;let Yg=Tg*Ig.startPoint.x;Yg+=3*Xg*Wg*Ig.control1.x,Yg+=3*Fg*Dg*Ig.control2.x,Yg+=Vg*Ig.endPoint.x;let Hg=Tg*Ig.startPoint.y;Hg+=3*Xg*Wg*Ig.control1.y,Hg+=3*Fg*Dg*Ig.control2.y,Hg+=Vg*Ig.endPoint.y;const Jg=Math.min(Ig.startWidth+Vg*Bg,this.maxWidth);this._drawCurveSegment(Yg,Hg,Jg)}Zg.closePath(),Zg.fill()}_drawDot({color:ps,point:Ig}){const Zg=this._ctx,Bg=typeof this.dotSize=="function"?this.dotSize():this.dotSize;Zg.beginPath(),this._drawCurveSegment(Ig.x,Ig.y,Bg),Zg.closePath(),Zg.fillStyle=ps,Zg.fill()}_fromData(ps,Ig,Zg){for(const Bg of ps){const{color:Gg,points:Ng}=Bg;if(Ng.length>1)for(let Wg=0;Wg<Ng.length;Wg+=1){const Dg=Ng[Wg],Vg=new Point$1(Dg.x,Dg.y,Dg.time);this.penColor=Gg,Wg===0&&this._reset();const Fg=this._addPoint(Vg);Fg&&Ig({color:Gg,curve:Fg})}else this._reset(),Zg({color:Gg,point:Ng[0]})}}_toSVG(){const ps=this._data,Ig=Math.max(window.devicePixelRatio||1,1),Zg=0,Bg=0,Gg=this.canvas.width/Ig,Ng=this.canvas.height/Ig,Wg=document.createElementNS("http://www.w3.org/2000/svg","svg");Wg.setAttribute("width",this.canvas.width.toString()),Wg.setAttribute("height",this.canvas.height.toString()),this._fromData(ps,({color:Yg,curve:Hg})=>{const Jg=document.createElement("path");if(!isNaN(Hg.control1.x)&&!isNaN(Hg.control1.y)&&!isNaN(Hg.control2.x)&&!isNaN(Hg.control2.y)){const Ug=`M ${Hg.startPoint.x.toFixed(3)},${Hg.startPoint.y.toFixed(3)} C ${Hg.control1.x.toFixed(3)},${Hg.control1.y.toFixed(3)} ${Hg.control2.x.toFixed(3)},${Hg.control2.y.toFixed(3)} ${Hg.endPoint.x.toFixed(3)},${Hg.endPoint.y.toFixed(3)}`;Jg.setAttribute("d",Ug),Jg.setAttribute("stroke-width",(Hg.endWidth*2.25).toFixed(3)),Jg.setAttribute("stroke",Yg),Jg.setAttribute("fill","none"),Jg.setAttribute("stroke-linecap","round"),Wg.appendChild(Jg)}},({color:Yg,point:Hg})=>{const Jg=document.createElement("circle"),Ug=typeof this.dotSize=="function"?this.dotSize():this.dotSize;Jg.setAttribute("r",Ug.toString()),Jg.setAttribute("cx",Hg.x.toString()),Jg.setAttribute("cy",Hg.y.toString()),Jg.setAttribute("fill",Yg),Wg.appendChild(Jg)});const Dg="data:image/svg+xml;base64,",Vg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${Zg} ${Bg} ${Gg} ${Ng}" width="${Gg}" height="${Ng}">`;let Fg=Wg.innerHTML;if(Fg===void 0){const Yg=document.createElement("dummy"),Hg=Wg.childNodes;Yg.innerHTML="";for(let Jg=0;Jg<Hg.length;Jg+=1)Yg.appendChild(Hg[Jg].cloneNode(!0));Fg=Yg.innerHTML}const Tg=Vg+Fg+"</svg>";return Dg+btoa(Tg)}}const _hoisted_1$M=["id","data-uid","disabled"],_sfc_main$S=vue.defineComponent({__name:"V-Vue3Signature",props:{sigOption:{type:Object,default:()=>({backgroundColor:"rgb(255,255,255)",penColor:"rgb(0, 0, 0)"})},w:{type:String,default:"100%"},h:{type:String,default:"100%"},clearOnResize:{type:Boolean,default:!1},waterMark:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultUrl:{type:String,default:""}},setup(il,{expose:ps}){const Ig=il;let Zg=vue.reactive({sig:()=>{},option:{backgroundColor:"rgb(255,255,255)",penColor:"rgb(0, 0, 0)"},uid:"",disabled:!1});Zg.uid="canvas01";let Bg=Object.keys(Ig.sigOption);for(let Tg of Bg)Zg.option[Tg]=Ig.sigOption[Tg];vue.watch(()=>Ig.disabled,Tg=>{var Yg,Hg;Tg?(Yg=Zg.sig)==null||Yg.off():(Hg=Zg.sig)==null||Hg.on()});const Gg=()=>{var Yg,Hg;let Tg=document.getElementById(Zg.uid);if(Tg){let Jg=function(Ug){let Kg;Vg()||(Kg=Wg());let $g=Math.max(window.devicePixelRatio||1,1);const _g=RegExp(/px/);Ug.width=_g.test(Ig.w)?Ig.w.replace(/px/g,"")*$g:Ug.offsetWidth*$g,Ug.height=_g.test(Ig.h)?Ig.h.replace(/px/g,"")*$g:Ug.offsetHeight*$g,Ug.getContext("2d").scale($g,$g),Ng(),!Ig.clearOnResize&&Kg!==void 0&&Dg(Kg),Object.keys(Ig.waterMark).length&&Xg(Ig.waterMark)};Zg.sig=new SignaturePad(Tg,Zg.option),window.addEventListener("resize",Jg(Tg)),Jg(Tg),Ig.defaultUrl!==""&&Dg(Ig.defaultUrl),Ig.disabled?(Yg=Zg.sig)==null||Yg.off():(Hg=Zg.sig)==null||Hg.on()}},Ng=()=>{var Tg;(Tg=Zg.sig)==null||Tg.clear()},Wg=Tg=>{var Yg,Hg;return Tg?(Yg=Zg.sig)==null?void 0:Yg.toDataURL(Tg):(Hg=Zg.sig)==null?void 0:Hg.toDataURL()},Dg=Tg=>{var Yg;(Yg=Zg.sig)==null||Yg.fromDataURL(Tg)},Vg=()=>{var Tg;return(Tg=Zg.sig)==null?void 0:Tg.isEmpty()},Fg=()=>{var Yg,Hg;let Tg=(Yg=Zg.sig)==null?void 0:Yg.toData();Tg&&(Tg.pop(),(Hg=Zg.sig)==null||Hg.fromData(Tg))},Xg=Tg=>{if(Object.prototype.toString.call(Tg)!="[object Object]")throw new Error("Expected Object, got "+typeof Tg+".");{let Yg=document.getElementById(Zg.uid),Hg={text:Tg.text||"",x:Tg.x||20,y:Tg.y||20,sx:Tg.sx||40,sy:Tg.sy||40},Jg=Yg.getContext("2d");Jg.font=Tg.font||"20px sans-serif",Jg.fillStyle=Tg.fillStyle||"#333",Jg.strokeStyle=Tg.strokeStyle||"#333",Tg.style=="all"?(Jg.fillText(Hg.text,Hg.x,Hg.y),Jg.strokeText(Hg.text,Hg.sx,Hg.sy)):Tg.style=="stroke"?Jg.strokeText(Hg.text,Hg.sx,Hg.sy):Jg.fillText(Hg.text,Hg.x,Hg.y),Zg.sig._isEmpty=!1}};return vue.onMounted(()=>{Gg()}),ps({save:Wg,clear:Ng,isEmpty:Vg,undo:Fg,addWaterMark:Xg,fromDataURL:Dg}),(Tg,Yg)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:il.w,height:il.h}),onTouchmove:Yg[0]||(Yg[0]=vue.withModifiers(()=>{},["prevent"]))},[vue.createElementVNode("canvas",{id:vue.unref(Zg).uid,class:"canvas","data-uid":vue.unref(Zg).uid,disabled:vue.unref(Zg).disabled},null,8,_hoisted_1$M)],36))}}),_hoisted_1$L=["size","layout"],_hoisted_2$G={class:"page-header"},_hoisted_3$A={class:"left"},_hoisted_4$s={class:"right"},_hoisted_5$n={class:"page-body"},_hoisted_6$g={class:"page-footer"},_sfc_main$R=vue.defineComponent({__name:"V-PageDesign",props:{pageSize:{type:String,default:"A4",validator:function(il){return["A3","A4","A5"].indexOf(il)===-1?(console.warn(`V-PageDesign: invalid "${il}" page size. Should be A3, A4 or A5`),!1):!0}},pageLayout:{type:String,default:"portrait",validator:function(il){return["portrait","landscape"].indexOf(il)===-1?(console.warn(`V-PageDesign: invalid "${il}" page layout. Should be [portrait] or [landscape]`),!1):!0}}},setup(il){return(ps,Ig)=>(vue.openBlock(),vue.createElementBlock("div",{class:"page",size:il.pageSize,layout:il.pageLayout},[vue.createElementVNode("div",_hoisted_2$G,[vue.createElementVNode("div",_hoisted_3$A,[vue.renderSlot(ps.$slots,"page-header-left")]),vue.createElementVNode("div",_hoisted_4$s,[vue.renderSlot(ps.$slots,"page-header-right")])]),vue.createElementVNode("div",_hoisted_5$n,[vue.renderSlot(ps.$slots,"page-body-content")]),vue.createElementVNode("div",_hoisted_6$g,[vue.renderSlot(ps.$slots,"page-footer")])],8,_hoisted_1$L))}}),_hoisted_1$K={class:"v-pd-wrapper"},_hoisted_2$F={key:0,class:"v-pd-toolbar"},_hoisted_3$z=["disabled"],_hoisted_4$r={class:"v-pd-tb-indicator"},_hoisted_5$m=["disabled"],_hoisted_6$f=vue.createElementVNode("span",{class:"v-pd-tb-divider","aria-hidden":"true"},null,-1),_hoisted_7$e={class:"v-pd-tb-field"},_hoisted_8$c=vue.createElementVNode("span",{class:"v-pd-tb-field-label"},"Size",-1),_hoisted_9$a=["value","disabled"],_hoisted_10$8=vue.createElementVNode("option",{value:"A3"},"A3",-1),_hoisted_11$8=vue.createElementVNode("option",{value:"A4"},"A4",-1),_hoisted_12$8=vue.createElementVNode("option",{value:"A5"},"A5",-1),_hoisted_13$8=[_hoisted_10$8,_hoisted_11$8,_hoisted_12$8],_hoisted_14$6={key:0,class:"v-pd-tb-divider","aria-hidden":"true"},_hoisted_15$6={class:"v-pd-tb-field"},_hoisted_16$5=vue.createElementVNode("span",{class:"v-pd-tb-field-label"},"Layout",-1),_hoisted_17$4=["value","disabled"],_hoisted_18$4=vue.createElementVNode("option",{value:"portrait"},"Portrait",-1),_hoisted_19$3=vue.createElementVNode("option",{value:"landscape"},"Landscape",-1),_hoisted_20$3=[_hoisted_18$4,_hoisted_19$3],_hoisted_21$2=vue.createElementVNode("span",{class:"v-pd-tb-divider","aria-hidden":"true"},null,-1),_hoisted_22$2=["disabled"],_hoisted_23$2=["title"],_hoisted_24$2=["disabled"],_hoisted_25$2=vue.createElementVNode("span",{class:"v-pd-tb-spacer"},null,-1),_hoisted_26$2=["disabled"],_hoisted_27$1=vue.createElementVNode("span",{class:"v-pd-tb-pdf-icon","aria-hidden":"true"},"PDF",-1),_hoisted_28$1=["disabled"],_hoisted_29$1=vue.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[vue.createElementVNode("polyline",{points:"6 9 6 2 18 2 18 9"}),vue.createElementVNode("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),vue.createElementVNode("rect",{x:"6",y:"14",width:"12",height:"8"})],-1),_hoisted_30$1=[_hoisted_29$1],_hoisted_31$1={key:0,class:"v-pd-running v-pd-cover-header"},_hoisted_32$1={class:"v-pd-running v-pd-cover-header-left"},_hoisted_33$1={class:"v-pd-running v-pd-cover-header-right"},_hoisted_34$1={key:2,class:"v-pd-running v-pd-cover-footer"},_hoisted_35$1={class:"v-pd-running v-pd-cover-footer-left"},_hoisted_36$1={class:"v-pd-running v-pd-cover-footer-center"},_hoisted_37$1={class:"v-pd-running v-pd-cover-footer-right"},_hoisted_38$1={key:4,class:"v-pd-running v-pd-header"},_hoisted_39$1={class:"v-pd-running v-pd-header-left"},_hoisted_40$1={class:"v-pd-running v-pd-header-right"},_hoisted_41$1={key:6,class:"v-pd-running v-pd-footer"},_hoisted_42$1={class:"v-pd-running v-pd-footer-left"},_hoisted_43$1={class:"v-pd-running v-pd-footer-center"},_hoisted_44$1={class:"v-pd-running v-pd-footer-right"},_hoisted_45$1={class:"v-pd-preview"},_hoisted_46$1={key:1,class:"v-pd-overlay"},_hoisted_47$1={key:2,class:"v-pd-error"},_sfc_main$Q=vue.defineComponent({__name:"V-PageDesignPaged",props:{pageSize:{type:String,default:"A4",validator:il=>["A3","A4","A5"].includes(il)},pageLayout:{type:String,default:"portrait",validator:il=>["portrait","landscape"].includes(il)},margin:{type:String,default:"15.4mm"},contentKey:{type:[String,Number],default:0},extraCss:{type:String,default:""},showLoadingState:{type:Boolean,default:!0},showToolbar:{type:Boolean,default:!0},documentTitle:{type:String,default:""},scrollNavigation:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!1},thumbnailWidth:{type:Number,default:120},showZoom:{type:Boolean,default:!1},zoom:{type:Number,default:1},minZoom:{type:Number,default:.5},maxZoom:{type:Number,default:2.5},zoomStep:{type:Number,default:.1},showPageSize:{type:Boolean,default:!1},showPageLayout:{type:Boolean,default:!1}},emits:["rendered","render-error","before-print","after-print","before-save","after-save","save-error","update:pageSize","update:pageLayout"],setup(il,{expose:ps,emit:Ig}){const Zg=il,Bg=Ig,Gg=HI=>{const DI=HI.target.value;Bg("update:pageSize",DI)},Ng=HI=>{const DI=HI.target.value;Bg("update:pageLayout",DI)},Wg=vue.useSlots(),Dg=vue.computed(()=>!!Wg.header),Vg=vue.computed(()=>!!Wg.footer),Fg=vue.computed(()=>!!Wg["cover-header"]),Xg=vue.computed(()=>!!Wg["cover-footer"]),Tg=vue.computed(()=>!!Wg["cover-footer-left"]||!!Wg["cover-footer-center"]||!!Wg["cover-footer-right"]);vue.computed(()=>Xg.value||Tg.value);const Yg=vue.ref(null),Hg=vue.ref(null),Jg=vue.ref(null),Ug=vue.ref(!1),Kg=vue.ref(!1),$g=vue.ref(null),_g=vue.ref(0),Lg=vue.ref(1),Qg=vue.ref(Zg.zoom);let iI=null,tI=0,nI=null,aI=null,sI=null;const II={A3:["29.7cm","42cm"],A4:["21cm","29.7cm"],A5:["14.8cm","21cm"]},fI={A3:[297,420],A4:[210,297],A5:[148,210]},bI=()=>{const[HI,DI]=II[Zg.pageSize],PI=Zg.pageLayout==="landscape"?`${DI} ${HI}`:`${HI} ${DI}`,_I=Dg.value?`
319
- @top-left { content: none; }
320
- @top-center { content: element(vpdHeader); }
321
- @top-right { content: none; }`:`
318
+ */let Point$1=class{constructor(ps,Ig,Zg){this.x=ps,this.y=Ig,this.time=Zg||Date.now()}distanceTo(ps){return Math.sqrt(Math.pow(this.x-ps.x,2)+Math.pow(this.y-ps.y,2))}equals(ps){return this.x===ps.x&&this.y===ps.y&&this.time===ps.time}velocityFrom(ps){return this.time!==ps.time?this.distanceTo(ps)/(this.time-ps.time):0}};class Bezier{constructor(ps,Ig,Zg,Bg,Gg,Ng){this.startPoint=ps,this.control2=Ig,this.control1=Zg,this.endPoint=Bg,this.startWidth=Gg,this.endWidth=Ng}static fromPoints(ps,Ig){const Zg=this.calculateControlPoints(ps[0],ps[1],ps[2]).c2,Bg=this.calculateControlPoints(ps[1],ps[2],ps[3]).c1;return new Bezier(ps[1],Zg,Bg,ps[2],Ig.start,Ig.end)}static calculateControlPoints(ps,Ig,Zg){const Bg=ps.x-Ig.x,Gg=ps.y-Ig.y,Ng=Ig.x-Zg.x,Wg=Ig.y-Zg.y,Dg={x:(ps.x+Ig.x)/2,y:(ps.y+Ig.y)/2},Vg={x:(Ig.x+Zg.x)/2,y:(Ig.y+Zg.y)/2},Fg=Math.sqrt(Bg*Bg+Gg*Gg),Xg=Math.sqrt(Ng*Ng+Wg*Wg),Tg=Dg.x-Vg.x,Yg=Dg.y-Vg.y,Hg=Xg/(Fg+Xg),Jg={x:Vg.x+Tg*Hg,y:Vg.y+Yg*Hg},Ug=Ig.x-Jg.x,Kg=Ig.y-Jg.y;return{c1:new Point$1(Dg.x+Ug,Dg.y+Kg),c2:new Point$1(Vg.x+Ug,Vg.y+Kg)}}length(){let Ig=0,Zg,Bg;for(let Gg=0;Gg<=10;Gg+=1){const Ng=Gg/10,Wg=this.point(Ng,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),Dg=this.point(Ng,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(Gg>0){const Vg=Wg-Zg,Fg=Dg-Bg;Ig+=Math.sqrt(Vg*Vg+Fg*Fg)}Zg=Wg,Bg=Dg}return Ig}point(ps,Ig,Zg,Bg,Gg){return Ig*(1-ps)*(1-ps)*(1-ps)+3*Zg*(1-ps)*(1-ps)*ps+3*Bg*(1-ps)*ps*ps+Gg*ps*ps*ps}}function throttle$1(il,ps=250){let Ig=0,Zg=null,Bg,Gg,Ng;const Wg=()=>{Ig=Date.now(),Zg=null,Bg=il.apply(Gg,Ng),Zg||(Gg=null,Ng=[])};return function(...Vg){const Fg=Date.now(),Xg=ps-(Fg-Ig);return Gg=this,Ng=Vg,Xg<=0||Xg>ps?(Zg&&(clearTimeout(Zg),Zg=null),Ig=Fg,Bg=il.apply(Gg,Ng),Zg||(Gg=null,Ng=[])):Zg||(Zg=window.setTimeout(Wg,Xg)),Bg}}class SignaturePad{constructor(ps,Ig={}){this.canvas=ps,this.options=Ig,this._handleMouseDown=Zg=>{Zg.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(Zg))},this._handleMouseMove=Zg=>{this._mouseButtonDown&&this._strokeMoveUpdate(Zg)},this._handleMouseUp=Zg=>{Zg.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(Zg))},this._handleTouchStart=Zg=>{if(Zg.preventDefault(),Zg.targetTouches.length===1){const Bg=Zg.changedTouches[0];this._strokeBegin(Bg)}},this._handleTouchMove=Zg=>{Zg.preventDefault();const Bg=Zg.targetTouches[0];this._strokeMoveUpdate(Bg)},this._handleTouchEnd=Zg=>{if(Zg.target===this.canvas){Zg.preventDefault();const Gg=Zg.changedTouches[0];this._strokeEnd(Gg)}},this.velocityFilterWeight=Ig.velocityFilterWeight||.7,this.minWidth=Ig.minWidth||.5,this.maxWidth=Ig.maxWidth||2.5,this.throttle="throttle"in Ig?Ig.throttle:16,this.minDistance="minDistance"in Ig?Ig.minDistance:5,this.dotSize=Ig.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=Ig.penColor||"black",this.backgroundColor=Ig.backgroundColor||"rgba(0,0,0,0)",this.onBegin=Ig.onBegin,this.onEnd=Ig.onEnd,this._strokeMoveUpdate=this.throttle?throttle$1(SignaturePad.prototype._strokeUpdate,this.throttle):SignaturePad.prototype._strokeUpdate,this._ctx=ps.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:ps,canvas:Ig}=this;ps.fillStyle=this.backgroundColor,ps.clearRect(0,0,Ig.width,Ig.height),ps.fillRect(0,0,Ig.width,Ig.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(ps,Ig={},Zg){const Bg=new Image,Gg=Ig.ratio||window.devicePixelRatio||1,Ng=Ig.width||this.canvas.width/Gg,Wg=Ig.height||this.canvas.height/Gg;this._reset(),Bg.onload=()=>{this._ctx.drawImage(Bg,0,0,Ng,Wg),Zg&&Zg()},Bg.onerror=Dg=>{Zg&&Zg(Dg)},Bg.src=ps,this._isEmpty=!1}toDataURL(ps="image/png",Ig){switch(ps){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(ps,Ig)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(ps){this.clear(),this._fromData(ps,({color:Ig,curve:Zg})=>this._drawCurve({color:Ig,curve:Zg}),({color:Ig,point:Zg})=>this._drawDot({color:Ig,point:Zg})),this._data=ps}toData(){return this._data}_strokeBegin(ps){const Ig={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(ps),this._data.push(Ig),this._reset(),this._strokeUpdate(ps)}_strokeUpdate(ps){if(this._data.length===0){this._strokeBegin(ps);return}const Ig=ps.clientX,Zg=ps.clientY,Bg=this._createPoint(Ig,Zg),Gg=this._data[this._data.length-1],Ng=Gg.points,Wg=Ng.length>0&&Ng[Ng.length-1],Dg=Wg?Bg.distanceTo(Wg)<=this.minDistance:!1,Vg=Gg.color;if(!Wg||!(Wg&&Dg)){const Fg=this._addPoint(Bg);Wg?Fg&&this._drawCurve({color:Vg,curve:Fg}):this._drawDot({color:Vg,point:Bg}),Ng.push({time:Bg.time,x:Bg.x,y:Bg.y})}}_strokeEnd(ps){this._strokeUpdate(ps),typeof this.onEnd=="function"&&this.onEnd(ps)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(ps,Ig){const Zg=this.canvas.getBoundingClientRect();return new Point$1(ps-Zg.left,Ig-Zg.top,new Date().getTime())}_addPoint(ps){const{_lastPoints:Ig}=this;if(Ig.push(ps),Ig.length>2){Ig.length===3&&Ig.unshift(Ig[0]);const Zg=this._calculateCurveWidths(Ig[1],Ig[2]),Bg=Bezier.fromPoints(Ig,Zg);return Ig.shift(),Bg}return null}_calculateCurveWidths(ps,Ig){const Zg=this.velocityFilterWeight*Ig.velocityFrom(ps)+(1-this.velocityFilterWeight)*this._lastVelocity,Bg=this._strokeWidth(Zg),Gg={end:Bg,start:this._lastWidth};return this._lastVelocity=Zg,this._lastWidth=Bg,Gg}_strokeWidth(ps){return Math.max(this.maxWidth/(ps+1),this.minWidth)}_drawCurveSegment(ps,Ig,Zg){const Bg=this._ctx;Bg.moveTo(ps,Ig),Bg.arc(ps,Ig,Zg,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:ps,curve:Ig}){const Zg=this._ctx,Bg=Ig.endWidth-Ig.startWidth,Gg=Math.floor(Ig.length())*2;Zg.beginPath(),Zg.fillStyle=ps;for(let Ng=0;Ng<Gg;Ng+=1){const Wg=Ng/Gg,Dg=Wg*Wg,Vg=Dg*Wg,Fg=1-Wg,Xg=Fg*Fg,Tg=Xg*Fg;let Yg=Tg*Ig.startPoint.x;Yg+=3*Xg*Wg*Ig.control1.x,Yg+=3*Fg*Dg*Ig.control2.x,Yg+=Vg*Ig.endPoint.x;let Hg=Tg*Ig.startPoint.y;Hg+=3*Xg*Wg*Ig.control1.y,Hg+=3*Fg*Dg*Ig.control2.y,Hg+=Vg*Ig.endPoint.y;const Jg=Math.min(Ig.startWidth+Vg*Bg,this.maxWidth);this._drawCurveSegment(Yg,Hg,Jg)}Zg.closePath(),Zg.fill()}_drawDot({color:ps,point:Ig}){const Zg=this._ctx,Bg=typeof this.dotSize=="function"?this.dotSize():this.dotSize;Zg.beginPath(),this._drawCurveSegment(Ig.x,Ig.y,Bg),Zg.closePath(),Zg.fillStyle=ps,Zg.fill()}_fromData(ps,Ig,Zg){for(const Bg of ps){const{color:Gg,points:Ng}=Bg;if(Ng.length>1)for(let Wg=0;Wg<Ng.length;Wg+=1){const Dg=Ng[Wg],Vg=new Point$1(Dg.x,Dg.y,Dg.time);this.penColor=Gg,Wg===0&&this._reset();const Fg=this._addPoint(Vg);Fg&&Ig({color:Gg,curve:Fg})}else this._reset(),Zg({color:Gg,point:Ng[0]})}}_toSVG(){const ps=this._data,Ig=Math.max(window.devicePixelRatio||1,1),Zg=0,Bg=0,Gg=this.canvas.width/Ig,Ng=this.canvas.height/Ig,Wg=document.createElementNS("http://www.w3.org/2000/svg","svg");Wg.setAttribute("width",this.canvas.width.toString()),Wg.setAttribute("height",this.canvas.height.toString()),this._fromData(ps,({color:Yg,curve:Hg})=>{const Jg=document.createElement("path");if(!isNaN(Hg.control1.x)&&!isNaN(Hg.control1.y)&&!isNaN(Hg.control2.x)&&!isNaN(Hg.control2.y)){const Ug=`M ${Hg.startPoint.x.toFixed(3)},${Hg.startPoint.y.toFixed(3)} C ${Hg.control1.x.toFixed(3)},${Hg.control1.y.toFixed(3)} ${Hg.control2.x.toFixed(3)},${Hg.control2.y.toFixed(3)} ${Hg.endPoint.x.toFixed(3)},${Hg.endPoint.y.toFixed(3)}`;Jg.setAttribute("d",Ug),Jg.setAttribute("stroke-width",(Hg.endWidth*2.25).toFixed(3)),Jg.setAttribute("stroke",Yg),Jg.setAttribute("fill","none"),Jg.setAttribute("stroke-linecap","round"),Wg.appendChild(Jg)}},({color:Yg,point:Hg})=>{const Jg=document.createElement("circle"),Ug=typeof this.dotSize=="function"?this.dotSize():this.dotSize;Jg.setAttribute("r",Ug.toString()),Jg.setAttribute("cx",Hg.x.toString()),Jg.setAttribute("cy",Hg.y.toString()),Jg.setAttribute("fill",Yg),Wg.appendChild(Jg)});const Dg="data:image/svg+xml;base64,",Vg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${Zg} ${Bg} ${Gg} ${Ng}" width="${Gg}" height="${Ng}">`;let Fg=Wg.innerHTML;if(Fg===void 0){const Yg=document.createElement("dummy"),Hg=Wg.childNodes;Yg.innerHTML="";for(let Jg=0;Jg<Hg.length;Jg+=1)Yg.appendChild(Hg[Jg].cloneNode(!0));Fg=Yg.innerHTML}const Tg=Vg+Fg+"</svg>";return Dg+btoa(Tg)}}const _hoisted_1$M=["id","data-uid","disabled"],_sfc_main$S=vue.defineComponent({__name:"V-Vue3Signature",props:{sigOption:{type:Object,default:()=>({backgroundColor:"rgb(255,255,255)",penColor:"rgb(0, 0, 0)"})},w:{type:String,default:"100%"},h:{type:String,default:"100%"},clearOnResize:{type:Boolean,default:!1},waterMark:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},defaultUrl:{type:String,default:""}},setup(il,{expose:ps}){const Ig=il;let Zg=vue.reactive({sig:()=>{},option:{backgroundColor:"rgb(255,255,255)",penColor:"rgb(0, 0, 0)"},uid:"",disabled:!1});Zg.uid="canvas01";let Bg=Object.keys(Ig.sigOption);for(let Tg of Bg)Zg.option[Tg]=Ig.sigOption[Tg];vue.watch(()=>Ig.disabled,Tg=>{var Yg,Hg;Tg?(Yg=Zg.sig)==null||Yg.off():(Hg=Zg.sig)==null||Hg.on()});const Gg=()=>{var Yg,Hg;let Tg=document.getElementById(Zg.uid);if(Tg){let Jg=function(Ug){let Kg;Vg()||(Kg=Wg());let $g=Math.max(window.devicePixelRatio||1,1);const _g=RegExp(/px/);Ug.width=_g.test(Ig.w)?Ig.w.replace(/px/g,"")*$g:Ug.offsetWidth*$g,Ug.height=_g.test(Ig.h)?Ig.h.replace(/px/g,"")*$g:Ug.offsetHeight*$g,Ug.getContext("2d").scale($g,$g),Ng(),!Ig.clearOnResize&&Kg!==void 0&&Dg(Kg),Object.keys(Ig.waterMark).length&&Xg(Ig.waterMark)};Zg.sig=new SignaturePad(Tg,Zg.option),window.addEventListener("resize",Jg(Tg)),Jg(Tg),Ig.defaultUrl!==""&&Dg(Ig.defaultUrl),Ig.disabled?(Yg=Zg.sig)==null||Yg.off():(Hg=Zg.sig)==null||Hg.on()}},Ng=()=>{var Tg;(Tg=Zg.sig)==null||Tg.clear()},Wg=Tg=>{var Yg,Hg;return Tg?(Yg=Zg.sig)==null?void 0:Yg.toDataURL(Tg):(Hg=Zg.sig)==null?void 0:Hg.toDataURL()},Dg=Tg=>{var Yg;(Yg=Zg.sig)==null||Yg.fromDataURL(Tg)},Vg=()=>{var Tg;return(Tg=Zg.sig)==null?void 0:Tg.isEmpty()},Fg=()=>{var Yg,Hg;let Tg=(Yg=Zg.sig)==null?void 0:Yg.toData();Tg&&(Tg.pop(),(Hg=Zg.sig)==null||Hg.fromData(Tg))},Xg=Tg=>{if(Object.prototype.toString.call(Tg)!="[object Object]")throw new Error("Expected Object, got "+typeof Tg+".");{let Yg=document.getElementById(Zg.uid),Hg={text:Tg.text||"",x:Tg.x||20,y:Tg.y||20,sx:Tg.sx||40,sy:Tg.sy||40},Jg=Yg.getContext("2d");Jg.font=Tg.font||"20px sans-serif",Jg.fillStyle=Tg.fillStyle||"#333",Jg.strokeStyle=Tg.strokeStyle||"#333",Tg.style=="all"?(Jg.fillText(Hg.text,Hg.x,Hg.y),Jg.strokeText(Hg.text,Hg.sx,Hg.sy)):Tg.style=="stroke"?Jg.strokeText(Hg.text,Hg.sx,Hg.sy):Jg.fillText(Hg.text,Hg.x,Hg.y),Zg.sig._isEmpty=!1}};return vue.onMounted(()=>{Gg()}),ps({save:Wg,clear:Ng,isEmpty:Vg,undo:Fg,addWaterMark:Xg,fromDataURL:Dg}),(Tg,Yg)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:il.w,height:il.h}),onTouchmove:Yg[0]||(Yg[0]=vue.withModifiers(()=>{},["prevent"]))},[vue.createElementVNode("canvas",{id:vue.unref(Zg).uid,class:"canvas","data-uid":vue.unref(Zg).uid,disabled:vue.unref(Zg).disabled},null,8,_hoisted_1$M)],36))}}),_hoisted_1$L=["size","layout"],_hoisted_2$G={class:"page-header"},_hoisted_3$A={class:"left"},_hoisted_4$s={class:"right"},_hoisted_5$n={class:"page-body"},_hoisted_6$g={class:"page-footer"},_sfc_main$R=vue.defineComponent({__name:"V-PageDesign",props:{pageSize:{type:String,default:"A4",validator:function(il){return["A3","A4","A5"].indexOf(il)===-1?(console.warn(`V-PageDesign: invalid "${il}" page size. Should be A3, A4 or A5`),!1):!0}},pageLayout:{type:String,default:"portrait",validator:function(il){return["portrait","landscape"].indexOf(il)===-1?(console.warn(`V-PageDesign: invalid "${il}" page layout. Should be [portrait] or [landscape]`),!1):!0}}},setup(il){return(ps,Ig)=>(vue.openBlock(),vue.createElementBlock("div",{class:"page",size:il.pageSize,layout:il.pageLayout},[vue.createElementVNode("div",_hoisted_2$G,[vue.createElementVNode("div",_hoisted_3$A,[vue.renderSlot(ps.$slots,"page-header-left")]),vue.createElementVNode("div",_hoisted_4$s,[vue.renderSlot(ps.$slots,"page-header-right")])]),vue.createElementVNode("div",_hoisted_5$n,[vue.renderSlot(ps.$slots,"page-body-content")]),vue.createElementVNode("div",_hoisted_6$g,[vue.renderSlot(ps.$slots,"page-footer")])],8,_hoisted_1$L))}}),_hoisted_1$K={class:"v-pd-wrapper"},_hoisted_2$F={key:0,class:"v-pd-toolbar"},_hoisted_3$z=["disabled"],_hoisted_4$r={class:"v-pd-tb-indicator"},_hoisted_5$m=["disabled"],_hoisted_6$f=vue.createElementVNode("span",{class:"v-pd-tb-divider","aria-hidden":"true"},null,-1),_hoisted_7$e={class:"v-pd-tb-field"},_hoisted_8$c=vue.createElementVNode("span",{class:"v-pd-tb-field-label"},"Size",-1),_hoisted_9$a=["value","disabled"],_hoisted_10$8=vue.createElementVNode("option",{value:"A3"},"A3",-1),_hoisted_11$8=vue.createElementVNode("option",{value:"A4"},"A4",-1),_hoisted_12$8=vue.createElementVNode("option",{value:"A5"},"A5",-1),_hoisted_13$8=[_hoisted_10$8,_hoisted_11$8,_hoisted_12$8],_hoisted_14$6={key:0,class:"v-pd-tb-divider","aria-hidden":"true"},_hoisted_15$6={class:"v-pd-tb-field"},_hoisted_16$5=vue.createElementVNode("span",{class:"v-pd-tb-field-label"},"Layout",-1),_hoisted_17$4=["value","disabled"],_hoisted_18$4=vue.createElementVNode("option",{value:"portrait"},"Portrait",-1),_hoisted_19$3=vue.createElementVNode("option",{value:"landscape"},"Landscape",-1),_hoisted_20$3=[_hoisted_18$4,_hoisted_19$3],_hoisted_21$2=vue.createElementVNode("span",{class:"v-pd-tb-divider","aria-hidden":"true"},null,-1),_hoisted_22$2=["disabled"],_hoisted_23$2=["title"],_hoisted_24$2=["disabled"],_hoisted_25$2=vue.createElementVNode("span",{class:"v-pd-tb-spacer"},null,-1),_hoisted_26$2=["disabled"],_hoisted_27$1=vue.createElementVNode("span",{class:"v-pd-tb-pdf-icon","aria-hidden":"true"},"PDF",-1),_hoisted_28$1=["disabled"],_hoisted_29$1=vue.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[vue.createElementVNode("polyline",{points:"6 9 6 2 18 2 18 9"}),vue.createElementVNode("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),vue.createElementVNode("rect",{x:"6",y:"14",width:"12",height:"8"})],-1),_hoisted_30$1=[_hoisted_29$1],_hoisted_31$1={key:0,class:"v-pd-running v-pd-cover-header"},_hoisted_32$1={class:"v-pd-running v-pd-cover-header-left"},_hoisted_33$1={class:"v-pd-running v-pd-cover-header-right"},_hoisted_34$1={key:2,class:"v-pd-running v-pd-cover-footer"},_hoisted_35$1={class:"v-pd-running v-pd-cover-footer-left"},_hoisted_36$1={class:"v-pd-running v-pd-cover-footer-center"},_hoisted_37$1={class:"v-pd-running v-pd-cover-footer-right"},_hoisted_38$1={key:4,class:"v-pd-running v-pd-header"},_hoisted_39$1={class:"v-pd-running v-pd-header-left"},_hoisted_40$1={class:"v-pd-running v-pd-header-right"},_hoisted_41$1={key:6,class:"v-pd-running v-pd-footer"},_hoisted_42$1={class:"v-pd-running v-pd-footer-left"},_hoisted_43$1={class:"v-pd-running v-pd-footer-center"},_hoisted_44$1={class:"v-pd-running v-pd-footer-right"},_hoisted_45$1={class:"v-pd-preview"},_hoisted_46$1={key:1,class:"v-pd-overlay"},_hoisted_47$1={key:2,class:"v-pd-error"},_sfc_main$Q=vue.defineComponent({__name:"V-PageDesignPaged",props:{pageSize:{type:String,default:"A4",validator:il=>["A3","A4","A5"].includes(il)},pageLayout:{type:String,default:"portrait",validator:il=>["portrait","landscape"].includes(il)},margin:{type:String,default:"15.4mm"},contentKey:{type:[String,Number],default:0},extraCss:{type:String,default:""},showLoadingState:{type:Boolean,default:!0},showToolbar:{type:Boolean,default:!0},documentTitle:{type:String,default:""},scrollNavigation:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!1},thumbnailWidth:{type:Number,default:120},showZoom:{type:Boolean,default:!1},zoom:{type:Number,default:1},minZoom:{type:Number,default:.5},maxZoom:{type:Number,default:2.5},zoomStep:{type:Number,default:.1},showPageSize:{type:Boolean,default:!1},showPageLayout:{type:Boolean,default:!1},showSaveAsPdf:{type:Boolean,default:!0}},emits:["rendered","render-error","before-print","after-print","before-save","after-save","save-error","update:pageSize","update:pageLayout"],setup(il,{expose:ps,emit:Ig}){const Zg=il,Bg=Ig,Gg=HI=>{const DI=HI.target.value;Bg("update:pageSize",DI)},Ng=HI=>{const DI=HI.target.value;Bg("update:pageLayout",DI)},Wg=vue.useSlots(),Dg=vue.computed(()=>!!Wg.header),Vg=vue.computed(()=>!!Wg.footer),Fg=vue.computed(()=>!!Wg["cover-header"]),Xg=vue.computed(()=>!!Wg["cover-footer"]),Tg=vue.computed(()=>!!Wg["cover-footer-left"]||!!Wg["cover-footer-center"]||!!Wg["cover-footer-right"]);vue.computed(()=>Xg.value||Tg.value);const Yg=vue.ref(null),Hg=vue.ref(null),Jg=vue.ref(null),Ug=vue.ref(!1),Kg=vue.ref(!1),$g=vue.ref(null),_g=vue.ref(0),Lg=vue.ref(1),Qg=vue.ref(Zg.zoom);let iI=null,tI=0,nI=null,aI=null,sI=null;const II={A3:["29.7cm","42cm"],A4:["21cm","29.7cm"],A5:["14.8cm","21cm"]},fI={A3:[297,420],A4:[210,297],A5:[148,210]},bI=()=>{const[HI,DI]=II[Zg.pageSize],PI=Zg.pageLayout==="landscape"?`${DI} ${HI}`:`${HI} ${DI}`,_I=Dg.value?`
319
+ @top-center { content: element(vpdHeader); }`:`
322
320
  @top-left { content: element(vpdHeaderLeft); }
323
321
  @top-right { content: element(vpdHeaderRight); }`,QI=Vg.value?`
324
- @bottom-left { content: none; }
325
- @bottom-center { content: element(vpdFooter); }
326
- @bottom-right { content: none; }`:`
322
+ @bottom-center { content: element(vpdFooter); }`:`
327
323
  @bottom-left { content: element(vpdFooterLeft); }
328
324
  @bottom-center { content: element(vpdFooterCenter); }
329
- @bottom-right { content: element(vpdFooterRight); }`,iA=Fg.value?`
330
- @top-left { content: none; }
325
+ @bottom-right { content: element(vpdFooterRight); }`,iA=Fg.value?Dg.value?`
326
+ @top-center { content: element(vpdCoverHeader, first); }`:`
331
327
  @top-center { content: element(vpdCoverHeader, first); }
328
+ @top-left { content: none; }
332
329
  @top-right { content: none; }`:Dg.value?`
333
330
  @top-center { content: none; }
334
331
  @top-left { content: element(vpdCoverHeaderLeft, first); }
335
332
  @top-right { content: element(vpdCoverHeaderRight, first); }`:`
336
333
  @top-left { content: element(vpdCoverHeaderLeft, first); }
337
- @top-right { content: element(vpdCoverHeaderRight, first); }`,AA=Xg.value?`
338
- @bottom-left { content: none; }
334
+ @top-right { content: element(vpdCoverHeaderRight, first); }`,AA=Xg.value?Vg.value?`
335
+ @bottom-center { content: element(vpdCoverFooter, first); }`:`
339
336
  @bottom-center { content: element(vpdCoverFooter, first); }
337
+ @bottom-left { content: none; }
340
338
  @bottom-right { content: none; }`:Tg.value?`
341
339
  @bottom-left { content: element(vpdCoverFooterLeft, first); }
342
340
  @bottom-center { content: element(vpdCoverFooterCenter, first); }
@@ -366,6 +364,24 @@ Ind=INDIVIDUAL`}]},{group:"number",op:"round",label:"Round…",needs:[{key:"deci
366
364
  .v-pd-running.v-pd-cover-footer-center { position: running(vpdCoverFooterCenter); }
367
365
  .v-pd-running.v-pd-cover-footer-right { position: running(vpdCoverFooterRight); }
368
366
 
367
+ /*
368
+ * Safety net for the paged.js polyfill: its base stylesheet hides
369
+ * .pagedjs_margin-*-center > .pagedjs_margin-content > * by default and
370
+ * only re-shows the box once the chunker adds .hasContent to the margin
371
+ * box. With the full-width single-slot pipeline the chunker sometimes
372
+ * places our running element but skips the .hasContent tag, leaving the
373
+ * footer/header invisible. These rules have specificity (0,4,0), one
374
+ * higher than the polyfill's (0,3,0) hide rule, so they win without
375
+ * needing !important. They no-op in the happy path because they match
376
+ * the chunker's intended behaviour.
377
+ */
378
+ .pagedjs_page .pagedjs_margin-top-center > .pagedjs_margin-content > .v-pd-header,
379
+ .pagedjs_page .pagedjs_margin-bottom-center > .pagedjs_margin-content > .v-pd-footer,
380
+ .pagedjs_page .pagedjs_margin-top-center > .pagedjs_margin-content > .v-pd-cover-header,
381
+ .pagedjs_page .pagedjs_margin-bottom-center > .pagedjs_margin-content > .v-pd-cover-footer {
382
+ display: block;
383
+ }
384
+
369
385
  /* table behavior: keep rows intact, but do not over-constrain cells */
370
386
  table { break-inside: auto; border-collapse: collapse; }
371
387
  thead { display: table-header-group; break-inside: avoid; }
@@ -385,7 +401,7 @@ Ind=INDIVIDUAL`}]},{group:"number",op:"round",label:"Round…",needs:[{key:"deci
385
401
 
386
402
  ${Zg.extraCss}
387
403
  `},mI=()=>Hg.value?Array.from(Hg.value.querySelectorAll(".pagedjs_page")):[],cI={height:"0",minHeight:"0",overflow:"hidden",visibility:"hidden",margin:"0"},yI=HI=>{HI.style.height="",HI.style.minHeight="",HI.style.overflow="",HI.style.visibility="",HI.style.margin=""},wI=HI=>{Object.assign(HI.style,cI)},hI=()=>{const HI=mI();if(HI.length){if(Zg.scrollNavigation){HI.forEach(yI);return}HI.forEach((DI,PI)=>{PI+1===Lg.value?yI(DI):wI(DI)})}},uI=()=>{if(nI&&(nI.disconnect(),nI=null),!Zg.scrollNavigation)return;const HI=mI();HI.length&&(nI=new IntersectionObserver(DI=>{let PI=null;for(const _I of DI){const QI=HI.indexOf(_I.target);QI<0||(!PI||_I.intersectionRatio>PI.ratio)&&(PI={idx:QI,ratio:_I.intersectionRatio})}PI&&PI.ratio>0&&(Lg.value=PI.idx+1)},{threshold:[.25,.5,.75]}),HI.forEach(DI=>nI.observe(DI)))},SI=()=>{const HI=mI();if(!HI.length){nI&&(nI.disconnect(),nI=null);return}_g.value=HI.length,Lg.value=1,HI.forEach((DI,PI)=>{DI.dataset.vpdPageIndex=String(PI+1)}),uI(),hI()},pI=()=>{if(!Zg.showThumbnails||!Jg.value)return;Jg.value.innerHTML="";const HI=mI();if(!HI.length)return;const PI=HI[0].getBoundingClientRect();if(!PI.width||!PI.height)return;const _I=Math.max(40,Math.round(Zg.thumbnailWidth)),QI=_I/PI.width,iA=Math.round(PI.height*QI),AA=document.createDocumentFragment();HI.forEach((dA,fA)=>{const wA=fA+1,kA=document.createElement("button");kA.type="button",kA.className="v-pd-thumb",kA.style.width=`${_I}px`,kA.style.height=`${iA}px`,kA.dataset.vpdThumbIndex=String(wA),kA.title=`Page ${wA}`,kA.addEventListener("click",()=>vI(wA));const bA=document.createElement("div");bA.className="v-pd-thumb-inner",bA.style.width=`${PI.width}px`,bA.style.height=`${PI.height}px`,bA.style.transform=`scale(${QI})`;const mA=document.createElement("div");mA.className="pagedjs_pages";const sA=dA.cloneNode(!0);sA.style.height="",sA.style.minHeight="",sA.style.overflow="",sA.style.visibility="",sA.style.margin="",mA.appendChild(sA),bA.appendChild(mA),kA.appendChild(bA);const oA=document.createElement("span");oA.className="v-pd-thumb-label",oA.textContent=String(wA),kA.appendChild(oA),AA.appendChild(kA)}),Jg.value.appendChild(AA),dI(!1)},dI=(HI=!0)=>{if(!Jg.value)return;Jg.value.querySelectorAll(".v-pd-thumb").forEach((PI,_I)=>{const QI=_I+1===Lg.value;PI.classList.toggle("is-active",QI),QI&&HI&&PI.scrollIntoView({behavior:"smooth",block:"nearest"})})},gI=()=>{var DI;nI&&(nI.disconnect(),nI=null);const HI=(DI=iI==null?void 0:iI.chunker)==null?void 0:DI.pages;Array.isArray(HI)&&HI.forEach(PI=>{try{typeof(PI==null?void 0:PI.removeListeners)=="function"?PI.removeListeners():PI&&(PI.listening=!1)}catch{}}),iI=null},oI=()=>{sI!==null&&window.clearTimeout(sI),sI=window.setTimeout(async()=>{sI=null,await vue.nextTick(),await BI()},50)},CI=()=>{aI&&(aI.disconnect(),aI=null),!(!Yg.value||typeof MutationObserver>"u")&&(aI=new MutationObserver(()=>{oI()}),aI.observe(Yg.value,{childList:!0,subtree:!0,characterData:!0,attributes:!0}))},BI=async()=>{if(!Yg.value||!Hg.value)return;const HI=++tI;Ug.value=!0,$g.value=null;let DI;try{({Previewer:DI}=await Promise.resolve().then(()=>index$1))}catch(_I){$g.value="pagedjs is not installed. Run: npm i pagedjs",Ug.value=!1,Bg("render-error",_I);return}if(HI!==tI)return;const PI=Yg.value.cloneNode(!0);PI.style.display="block",gI(),Hg.value.innerHTML="";try{iI=new DI;const _I=await iI.preview(PI,[{_:bI()}],Hg.value);if(HI===tI){const QI=(_I==null?void 0:_I.total)??0;_g.value=QI,Bg("rendered",QI),await vue.nextTick(),SI(),pI()}}catch(_I){$g.value=(_I==null?void 0:_I.message)??"Pagination failed",Bg("render-error",_I)}finally{HI===tI&&(Ug.value=!1)}},vI=HI=>{if(!Hg.value)return;const DI=Math.max(1,Math.min(HI,_g.value||1));if(!Zg.scrollNavigation){Lg.value=DI;return}const PI=Hg.value.querySelector(`.pagedjs_page:nth-of-type(${DI})`);PI&&(PI.scrollIntoView({behavior:"smooth",block:"start"}),Lg.value=DI)},VI=()=>vI(Lg.value-1),EI=()=>vI(Lg.value+1),TI=HI=>Math.max(Zg.minZoom,Math.min(Zg.maxZoom,HI)),LI=HI=>{Qg.value=Math.round(TI(HI)*100)/100},ZI=()=>LI(Qg.value+Zg.zoomStep),GI=()=>LI(Qg.value-Zg.zoomStep),YI=()=>LI(1),xI=vue.computed(()=>`${Math.round(Qg.value*100)}%`);vue.watch(()=>Zg.zoom,HI=>{HI!==Qg.value&&LI(HI)}),vue.watch(Lg,()=>{Zg.scrollNavigation||hI(),dI()}),vue.watch(()=>Zg.scrollNavigation,()=>{uI(),hI()}),vue.watch(()=>[Zg.showThumbnails,Zg.thumbnailWidth,_g.value],async()=>{await vue.nextTick(),pI()});const KI=()=>new Promise(HI=>{if(!Ug.value)return HI();const DI=vue.watch(Ug,PI=>{PI||(DI(),HI())})});let OI=null,MI=null,XI=null;const $I=()=>{MI!==null&&(window.clearTimeout(MI),MI=null),XI!=null&&XI.parentNode&&XI.parentNode.removeChild(XI),XI=null,OI!==null&&(document.title=OI,OI=null)},JI=()=>{$I(),Bg("after-print")},UI=async()=>{if(!Hg.value)return;await KI(),Zg.documentTitle&&(OI=document.title,document.title=Zg.documentTitle),Bg("before-print");const HI=Array.from(document.querySelectorAll('style, link[rel="stylesheet"]')).map(dA=>dA instanceof HTMLStyleElement?`<style>${dA.textContent??""}</style>`:dA instanceof HTMLLinkElement&&dA.href?`<link rel="stylesheet" href="${dA.href}">`:"").join(`
388
- `),DI=!Zg.scrollNavigation;DI&&mI().forEach(yI);const PI=Hg.value.style.zoom;Hg.value.style.zoom="";const _I=Hg.value.outerHTML;Hg.value.style.zoom=PI,DI&&hI();const QI=document.createElement("iframe");QI.setAttribute("aria-hidden","true"),QI.style.position="fixed",QI.style.right="0",QI.style.bottom="0",QI.style.width="0",QI.style.height="0",QI.style.border="0",XI=QI,document.body.appendChild(QI);let iA=!1;const AA=()=>{iA||(iA=!0,$I(),Bg("after-print"))};QI.addEventListener("load",async()=>{var wA;const dA=QI.contentDocument,fA=QI.contentWindow;if(!dA||!fA){AA();return}fA.addEventListener("afterprint",AA,{once:!0});try{"fonts"in dA&&await((wA=dA.fonts)==null?void 0:wA.ready)}catch{}await new Promise(kA=>setTimeout(kA,250)),fA.focus(),fA.print(),MI=window.setTimeout(AA,6e4)},{once:!0}),QI.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${Zg.documentTitle||document.title}</title>`+HI+`<style>html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;}.v-pd-toolbar, .v-pd-overlay, .v-pd-error, .v-pd-source, .v-pd-thumbs { display: none !important;}.v-pd-target, .v-pd-target .pagedjs_pages { margin: 0 !important; padding: 0 !important; overflow: visible !important; zoom: 1 !important;}.v-pd-target .pagedjs_page { margin: 0 !important; box-shadow: none !important;}</style></head><body>${_I}</body></html>`},jI=async()=>{var QI;if(!Hg.value)return;await KI();const HI=mI();if(!HI.length)return;Kg.value=!0,Bg("before-save");const DI=!Zg.scrollNavigation;DI&&HI.forEach(yI);const PI=Hg.value.style.zoom;Hg.value.style.zoom="";let _I=(Zg.documentTitle||document.title||"document").replace(/\.pdf$/i,"");try{try{await((QI=document.fonts)==null?void 0:QI.ready)}catch{}const[iA,AA]=await Promise.all([Promise.resolve().then(()=>html2canvas_esm),Promise.resolve().then(()=>jspdf_es_min)]),dA=iA.default||iA,fA=AA.jsPDF||AA.default,[wA,kA]=fI[Zg.pageSize],bA=Zg.pageLayout==="landscape"?"landscape":"portrait",mA=bA==="landscape"?kA:wA,sA=bA==="landscape"?wA:kA,oA=new fA({orientation:bA,unit:"mm",format:[mA,sA],compress:!0});for(let hA=0;hA<HI.length;hA++){const RA=(await dA(HI[hA],{scale:2,useCORS:!0,backgroundColor:"#ffffff",logging:!1})).toDataURL("image/jpeg",.95);hA>0&&oA.addPage([mA,sA],bA),oA.addImage(RA,"JPEG",0,0,mA,sA,void 0,"FAST")}oA.save(`${_I}.pdf`),Bg("after-save",`${_I}.pdf`)}catch(iA){$g.value=iA instanceof Error?iA.message:"Failed to export PDF",Bg("save-error",iA)}finally{Hg.value&&(Hg.value.style.zoom=PI),DI&&hI(),Kg.value=!1}},qI=vue.computed(()=>_g.value?`${Lg.value} / ${_g.value}`:"—");return vue.onMounted(async()=>{window.addEventListener("afterprint",JI),await vue.nextTick(),CI(),await BI()}),vue.onBeforeUnmount(()=>{window.removeEventListener("afterprint",JI),$I(),aI&&(aI.disconnect(),aI=null),sI!==null&&(window.clearTimeout(sI),sI=null),gI()}),vue.watch(()=>[Zg.pageSize,Zg.pageLayout,Zg.margin,Zg.extraCss,Zg.contentKey,Dg.value,Vg.value,Fg.value,Xg.value,Tg.value],async()=>{await vue.nextTick(),await BI()}),ps({paginate:BI,print:UI,saveAsPdf:jI,goToPage:vI,goPrevPage:VI,goNextPage:EI,zoomIn:ZI,zoomOut:GI,resetZoom:YI,setZoom:LI}),(HI,DI)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[il.showToolbar?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$F,[vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Lg.value<=1||!_g.value,onClick:VI,"aria-label":"Previous page",title:"Previous page"}," ‹ ",8,_hoisted_3$z),vue.createElementVNode("span",_hoisted_4$r,"Page: "+vue.toDisplayString(qI.value),1),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Lg.value>=_g.value||!_g.value,onClick:EI,"aria-label":"Next page",title:"Next page"}," › ",8,_hoisted_5$m),il.showPageSize?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_6$f,vue.createElementVNode("label",_hoisted_7$e,[_hoisted_8$c,vue.createElementVNode("select",{class:"v-pd-tb-select",value:il.pageSize,disabled:Ug.value||Kg.value,"aria-label":"Page size",onChange:Gg},_hoisted_13$8,40,_hoisted_9$a)])],64)):vue.createCommentVNode("",!0),il.showPageLayout?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[il.showPageSize?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",_hoisted_14$6)),vue.createElementVNode("label",_hoisted_15$6,[_hoisted_16$5,vue.createElementVNode("select",{class:"v-pd-tb-select",value:il.pageLayout,disabled:Ug.value||Kg.value,"aria-label":"Page layout",onChange:Ng},_hoisted_20$3,40,_hoisted_17$4)])],64)):vue.createCommentVNode("",!0),il.showZoom?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[_hoisted_21$2,vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Qg.value<=il.minZoom,onClick:GI,"aria-label":"Zoom out",title:"Zoom out"}," − ",8,_hoisted_22$2),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-zoom",onClick:YI,"aria-label":"Reset zoom",title:`Reset zoom (currently ${xI.value})`},vue.toDisplayString(xI.value),9,_hoisted_23$2),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Qg.value>=il.maxZoom,onClick:ZI,"aria-label":"Zoom in",title:"Zoom in"}," + ",8,_hoisted_24$2)],64)):vue.createCommentVNode("",!0),_hoisted_25$2,vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn",disabled:!_g.value||Ug.value||Kg.value,onClick:jI,title:"Save as PDF (downloads directly without opening the print dialog)"},[_hoisted_27$1,vue.createTextVNode(" Save as PDF ")],8,_hoisted_26$2),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:!_g.value||Ug.value||Kg.value,onClick:UI,"aria-label":"Print",title:"Print"},_hoisted_30$1,8,_hoisted_28$1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{ref_key:"sourceRef",ref:Yg,class:"v-pd-source","aria-hidden":"true"},[Fg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_31$1,[vue.renderSlot(HI.$slots,"cover-header")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createElementVNode("div",_hoisted_32$1,[vue.renderSlot(HI.$slots,"cover-header-left")]),vue.createElementVNode("div",_hoisted_33$1,[vue.renderSlot(HI.$slots,"cover-header-right")])],64)),Xg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_34$1,[vue.renderSlot(HI.$slots,"cover-footer")])):Tg.value?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:3},[vue.createElementVNode("div",_hoisted_35$1,[vue.renderSlot(HI.$slots,"cover-footer-left")]),vue.createElementVNode("div",_hoisted_36$1,[vue.renderSlot(HI.$slots,"cover-footer-center")]),vue.createElementVNode("div",_hoisted_37$1,[vue.renderSlot(HI.$slots,"cover-footer-right")])],64)):vue.createCommentVNode("",!0),Dg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_38$1,[vue.renderSlot(HI.$slots,"header")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:5},[vue.createElementVNode("div",_hoisted_39$1,[vue.renderSlot(HI.$slots,"header-left")]),vue.createElementVNode("div",_hoisted_40$1,[vue.renderSlot(HI.$slots,"header-right")])],64)),Vg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_41$1,[vue.renderSlot(HI.$slots,"footer")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:7},[vue.createElementVNode("div",_hoisted_42$1,[vue.renderSlot(HI.$slots,"footer-left")]),vue.createElementVNode("div",_hoisted_43$1,[vue.renderSlot(HI.$slots,"footer-center")]),vue.createElementVNode("div",_hoisted_44$1,[vue.renderSlot(HI.$slots,"footer-right")])],64)),vue.renderSlot(HI.$slots,"default")],512),vue.createElementVNode("div",{class:vue.normalizeClass(["v-pd-content",{"v-pd-content--with-thumbs":il.showThumbnails}])},[il.showThumbnails&&_g.value>0?(vue.openBlock(),vue.createElementBlock("aside",{key:0,ref_key:"thumbsRef",ref:Jg,class:"v-pd-thumbs","aria-label":"Page thumbnails"},null,512)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_45$1,[vue.createElementVNode("div",{ref_key:"targetRef",ref:Hg,class:"v-pd-target",style:vue.normalizeStyle({zoom:Qg.value})},null,4)])],2),il.showLoadingState&&(Ug.value||Kg.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_46$1,vue.toDisplayString(Kg.value?"Saving PDF…":"Rendering…"),1)):vue.createCommentVNode("",!0),$g.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_47$1,vue.toDisplayString($g.value),1)):vue.createCommentVNode("",!0)]))}}),_withScopeId$2=il=>(vue.pushScopeId("data-v-dc17e8cc"),il=il(),vue.popScopeId(),il),_hoisted_1$J={key:0,class:"bw-cc__header"},_hoisted_2$E={key:0,class:"bw-cc__title"},_hoisted_3$y={key:0,class:"bw-cc__pane-header"},_hoisted_4$q={class:"bw-cc__pane-content"},_hoisted_5$l={key:2,class:"bw-cc__empty"},_hoisted_6$e={class:"bw-cc__empty-default"},_hoisted_7$d={key:0},_hoisted_8$b={key:1},_hoisted_9$9={key:1,class:"bw-cc__pane-footer"},_hoisted_10$7=_withScopeId$2(()=>vue.createElementVNode("span",{class:"bw-cc__divider-grip"},null,-1)),_hoisted_11$7=[_hoisted_10$7],_hoisted_12$7={class:"bw-cc__edit-state"},_hoisted_13$7={class:"bw-cc__edit-actions"},_hoisted_14$5={key:1,class:"bw-cc__pane-header"},_hoisted_15$5={class:"bw-cc__pane-content bw-cc__pane-content--scroll has-slimscroll"},_hoisted_16$4={key:2,class:"bw-cc__pane-footer"},_sfc_main$P=vue.defineComponent({__name:"V-ContentController",props:{source:{default:null},sourceType:{default:"auto"},splitRatio:{default:.5},isResizable:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1},orientation:{default:"auto"},landscapeThreshold:{default:1.2},minLeftWidth:{default:280},minRightWidth:{default:220},title:{default:void 0},isDisplayHeader:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!0},isEditable:{type:Boolean,default:!0},isShowEditButtons:{type:Boolean,default:!0},isEnablePrint:{type:Boolean,default:!0},isEnableDownload:{type:Boolean,default:!0},isEnableOpenNew:{type:Boolean,default:!1},isEnableInfo:{type:Boolean,default:!1},isEnableRotate:{type:Boolean,default:!0},isEnableFullScreen:{type:Boolean,default:!0},isDisplayFooter:{type:Boolean,default:!0},startPage:{default:1},isEnableCrop:{type:Boolean,default:!1},isEnableResize:{type:Boolean,default:!1},isEnableUndo:{type:Boolean,default:!0},isEnableReset:{type:Boolean,default:!0},isEnableFilters:{type:Boolean,default:!1},isEnableAdjust:{type:Boolean,default:!1},isEnableKeyboard:{type:Boolean,default:!0}},emits:["pdf-loaded","page-change","image-loaded","source-type-detected","error","split-changed","orientation-changed","update:isReadonly","edit-start","edit-save","edit-cancel","image-edited"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=/\.(png|jpe?g|gif|webp|bmp|svg|tiff?)(\?.*)?$/i,Gg=/\.pdf(\?.*)?$/i,Ng=vue.computed(()=>{if(Ig.sourceType==="pdf")return"pdf";if(Ig.sourceType==="image")return"image";const fI=Ig.source;return fI?fI instanceof File?fI.type==="application/pdf"?"pdf":fI.type.startsWith("image/")?"image":"unknown":typeof fI=="string"?Gg.test(fI)?"pdf":Bg.test(fI)?"image":fI.startsWith("data:application/pdf")?"pdf":fI.startsWith("data:image/")?"image":"unknown":"unknown":"unknown"});vue.watch(Ng,fI=>{(fI==="pdf"||fI==="image")&&Zg("source-type-detected",fI),fI==="unknown"&&Ig.source&&Zg("error",new Error("V-ContentController: unsupported source type."))},{immediate:!0});const Wg=vue.ref({w:0,h:0}),Dg=fI=>{Wg.value={w:fI.width,h:fI.height},Zg("image-loaded",{width:fI.width,height:fI.height,filename:fI.filename})},Vg=fI=>Zg("error",fI),Fg=fI=>Zg("image-edited",fI),Xg=vue.computed(()=>Ig.orientation==="horizontal"?"horizontal":Ig.orientation==="vertical"||Ig.isStacked||Ng.value==="image"&&Wg.value.w&&Wg.value.h&&Wg.value.w/Wg.value.h>Ig.landscapeThreshold?"vertical":"horizontal");vue.watch(Xg,fI=>Zg("orientation-changed",fI),{immediate:!0});const Tg=vue.ref(Ig.isReadonly!==!1);vue.watch(()=>Ig.isReadonly,fI=>{fI!==void 0&&fI!==Tg.value&&(Tg.value=fI)});const Yg=fI=>{Tg.value!==fI&&(Tg.value=fI,Zg("update:isReadonly",fI))},Hg=()=>{Ig.isEditable&&(Yg(!1),Zg("edit-start"))},Jg=()=>{Yg(!0),Zg("edit-save")},Ug=()=>{Yg(!0),Zg("edit-cancel")},Kg=vue.ref(Ig.splitRatio);vue.watch(()=>Ig.splitRatio,fI=>{Kg.value=fI});const $g=vue.ref(null),_g=vue.ref(!1),Lg=fI=>{Ig.isResizable&&(_g.value=!0,fI.preventDefault(),document.addEventListener("mousemove",Qg),document.addEventListener("mouseup",iI),document.body.style.userSelect="none",document.body.style.cursor=Xg.value==="vertical"?"row-resize":"col-resize")},Qg=fI=>{if(!_g.value||!$g.value)return;const bI=$g.value.getBoundingClientRect(),mI=Xg.value==="vertical",cI=mI?fI.clientY-bI.top:fI.clientX-bI.left,yI=mI?bI.height:bI.width;if(yI<=0)return;let wI=cI/yI;const hI=Ig.minLeftWidth/yI,uI=Ig.minRightWidth/yI;wI=Math.max(hI,Math.min(1-uI,wI)),Kg.value=wI,Zg("split-changed",wI)},iI=()=>{_g.value=!1,document.removeEventListener("mousemove",Qg),document.removeEventListener("mouseup",iI),document.body.style.userSelect="",document.body.style.cursor=""};vue.onUnmounted(iI);const tI=fI=>Zg("pdf-loaded",fI),nI=fI=>Zg("page-change",fI),aI=fI=>Zg("error",fI),sI=vue.computed(()=>Xg.value==="vertical"?{width:"100%",height:`${Kg.value*100}%`}:{width:`${Kg.value*100}%`,height:"100%"}),II=vue.computed(()=>Xg.value==="vertical"?{width:"100%",height:`${(1-Kg.value)*100}%`}:{width:`${(1-Kg.value)*100}%`,height:"100%"});return(fI,bI)=>{const mI=BWPdfViewer,cI=BWImageViewer,yI=BWIcon,wI=BWIconWrap,hI=vue.resolveDirective("tooltip");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["bw-cc",[`is-${Xg.value}`,{"is-readonly":Tg.value}]])},[fI.isDisplayHeader||fI.title||fI.$slots.header?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[fI.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$E,vue.toDisplayString(fI.title),1)):vue.createCommentVNode("",!0),vue.renderSlot(fI.$slots,"header",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"bw-cc__body",ref_key:"bodyEl",ref:$g},[vue.createElementVNode("div",{class:"bw-cc__left",style:vue.normalizeStyle(sI.value)},[fI.$slots["left-header"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$y,[vue.renderSlot(fI.$slots,"left-header",{},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$q,[Ng.value==="pdf"&&fI.source?(vue.openBlock(),vue.createBlock(mI,{key:0,"pdf-url":fI.source,"start-page":fI.startPage,"is-enable-print":fI.isEnablePrint,"is-enable-download":fI.isEnableDownload,"is-enable-open-new":fI.isEnableOpenNew,"is-enable-info":fI.isEnableInfo,"is-enable-rotate":fI.isEnableRotate,"is-enable-full-screen":fI.isEnableFullScreen,"is-display-footer":fI.isDisplayFooter,onPdfLoaded:tI,onPageChange:nI,onError:aI},null,8,["pdf-url","start-page","is-enable-print","is-enable-download","is-enable-open-new","is-enable-info","is-enable-rotate","is-enable-full-screen","is-display-footer"])):Ng.value==="image"&&fI.source?(vue.openBlock(),vue.createBlock(cI,{key:1,"image-url":fI.source,"is-enable-print":fI.isEnablePrint,"is-enable-download":fI.isEnableDownload,"is-enable-open-new":fI.isEnableOpenNew,"is-enable-info":fI.isEnableInfo,"is-enable-rotate":fI.isEnableRotate,"is-enable-full-screen":fI.isEnableFullScreen,"is-enable-crop":fI.isEnableCrop,"is-enable-resize":fI.isEnableResize,"is-enable-undo":fI.isEnableUndo,"is-enable-reset":fI.isEnableReset,"is-enable-filters":fI.isEnableFilters,"is-enable-adjust":fI.isEnableAdjust,"is-enable-keyboard":fI.isEnableKeyboard,"is-display-footer":fI.isDisplayFooter,onImageLoaded:Dg,onError:Vg,onImageEdited:Fg},null,8,["image-url","is-enable-print","is-enable-download","is-enable-open-new","is-enable-info","is-enable-rotate","is-enable-full-screen","is-enable-crop","is-enable-resize","is-enable-undo","is-enable-reset","is-enable-filters","is-enable-adjust","is-enable-keyboard","is-display-footer"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$l,[vue.renderSlot(fI.$slots,"empty",{},()=>[vue.createElementVNode("div",_hoisted_6$e,[vue.createVNode(yI,{icon:"fluent:document-question-mark-24-regular",size:"big",color:"muted"}),fI.source?(vue.openBlock(),vue.createElementBlock("p",_hoisted_8$b,"Unsupported source type — provide a PDF or an image.")):(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$d,"No document loaded."))])],!0)]))]),fI.$slots["left-footer"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$9,[vue.renderSlot(fI.$slots,"left-footer",{},void 0,!0)])):vue.createCommentVNode("",!0)],4),fI.isResizable?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["bw-cc__divider",{"is-dragging":_g.value}]),onMousedown:Lg},_hoisted_11$7,34)),[[hI,"Drag to resize",void 0,{right:!0}]]):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"bw-cc__right",style:vue.normalizeStyle(II.value)},[fI.isEditable&&fI.isShowEditButtons?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["bw-cc__edit-bar",{"is-editing":!Tg.value}])},[vue.createElementVNode("span",_hoisted_12$7,[vue.createVNode(yI,{icon:Tg.value?"fluent:lock-closed-16-regular":"fluent:edit-16-regular",size:"small"},null,8,["icon"]),vue.createElementVNode("span",null,vue.toDisplayString(Tg.value?"Read-only":"Editing"),1)]),vue.createElementVNode("span",_hoisted_13$7,[Tg.value?vue.withDirectives((vue.openBlock(),vue.createBlock(wI,{key:0,icon:"fluent:edit-16-regular",color:"primary",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Hg,onKeydown:[vue.withKeys(vue.withModifiers(Hg,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Hg,["prevent"]),["space"])]},null,8,["onKeydown"])),[[hI,"Edit",void 0,{top:!0}]]):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.withDirectives(vue.createVNode(wI,{icon:"fluent:dismiss-16-regular",color:"danger",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Ug,onKeydown:[vue.withKeys(vue.withModifiers(Ug,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Ug,["prevent"]),["space"])]},null,8,["onKeydown"]),[[hI,"Cancel",void 0,{top:!0}]]),vue.withDirectives(vue.createVNode(wI,{icon:"fluent:save-16-regular",color:"success",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Jg,onKeydown:[vue.withKeys(vue.withModifiers(Jg,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Jg,["prevent"]),["space"])]},null,8,["onKeydown"]),[[hI,"Save",void 0,{top:!0}]])],64))])],2)):vue.createCommentVNode("",!0),fI.$slots["right-header"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$5,[vue.renderSlot(fI.$slots,"right-header",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_15$5,[vue.renderSlot(fI.$slots,"default",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)]),fI.$slots["right-footer"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_16$4,[vue.renderSlot(fI.$slots,"right-footer",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0)],4)],512)],2)}}}),BWContentController=_export_sfc$1(_sfc_main$P,[["__scopeId","data-v-dc17e8cc"]]),_withScopeId$1=il=>(vue.pushScopeId("data-v-05e9533e"),il=il(),vue.popScopeId(),il),_hoisted_1$I={class:"notifications-cont"},_hoisted_2$D={class:"title-cont"},_hoisted_3$x={class:"notification-list-cont"},_hoisted_4$p=["data-icon"],_hoisted_5$k={class:"notification-content"},_hoisted_6$d={class:"notification-desc"},_hoisted_7$c=["onClick"],_hoisted_8$a=_withScopeId$1(()=>vue.createElementVNode("i",{class:"iconify detail-icon","data-icon":"material-symbols:arrow-right-alt"},null,-1)),_sfc_main$O=vue.defineComponent({__name:"V-NotificationList",props:{notificationList:{type:Array,required:!0},title:{type:String,default:"Notifications"},color:{type:String,default:"primary",validator:il=>[void 0,"purple","info","success","warning","danger"].indexOf(il)===-1?(console.warn(`V-Checkbox: invalid "${il}" color. Should be purple, info, success, warning, danger or undefined`),!1):!0}},emits:["goDetail"],setup(il,{emit:ps}){const Ig=il,Zg=Gg=>Gg.icon&&Gg.icon.indexOf(":")!==-1,Bg=ps;return(Gg,Ng)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.createElementVNode("div",_hoisted_2$D,[vue.createElementVNode("h4",{class:vue.normalizeClass(["title",[Ig.color&&`is-${Ig.color}`]])},vue.toDisplayString(il.title),3)]),vue.createElementVNode("div",_hoisted_3$x,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.notificationList,(Wg,Dg)=>(vue.openBlock(),vue.createElementBlock("div",{key:Dg,class:vue.normalizeClass(["notification-cont",[Ig.color&&`is-${Ig.color}`]])},[Zg(Wg)?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"iconify notification-icon","data-icon":Wg.icon},null,8,_hoisted_4$p)):(vue.openBlock(),vue.createElementBlock("i",{key:1,class:vue.normalizeClass([Wg.icon,"notification-icon"])},null,2)),vue.createElementVNode("div",_hoisted_5$k,[vue.createElementVNode("span",_hoisted_6$d,vue.toDisplayString(Wg.content),1),Wg.showActionButton?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"action-button-cont",onClick:Vg=>Bg("goDetail",Wg)},[vue.createElementVNode("span",{class:vue.normalizeClass(["action-button",[Ig.color&&`is-${Ig.color}`]])},vue.toDisplayString(Wg.actionButtonContent),3),_hoisted_8$a],8,_hoisted_7$c)):vue.createCommentVNode("",!0)])],2))),128))])]))}}),BWNotificationList=_export_sfc$1(_sfc_main$O,[["__scopeId","data-v-05e9533e"]]),_hoisted_1$H={class:"row q-gutter-y-xs items-center justify-between"},_hoisted_2$C=["min","max"],_sfc_main$N=vue.defineComponent({__name:"V-NumberPicker",props:{modelValue:{type:Number,required:!0},initial:{type:Number,default:0},label:{type:String,default:""},min:{type:Number,default:-500},max:{type:Number,default:500},vertical:{type:Boolean},step:{type:Number,default:1}},emits:["changed","update:modelValue"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=vue.ref(Ig.modelValue??Ig.initial),Gg=Fg=>{Zg("update:modelValue",Fg.target.value)},Ng=vue.computed(()=>{let Fg="col-";return Ig.vertical?Fg+="12":Fg+="4",Fg+=" editor-option-title",Fg}),Wg=vue.computed(()=>{let Fg="ncontainer col-12";return Ig.vertical?Fg+="12":Fg+=4,Fg}),Dg=()=>{Bg.value<Ig.max&&(Bg.value+=Ig.step,Zg("changed",Bg.value),Zg("update:modelValue",Bg.value))},Vg=()=>{Bg.value>Ig.min&&(Bg.value-=Ig.step,Zg("changed",Bg.value),Zg("update:modelValue",Bg.value))};return vue.onBeforeMount(async()=>{console.log("V-NumberPicker - onBeforeMount:",Ig)}),vue.onMounted(async()=>{console.log("V-NumberPicker - onMounted:",Ig)}),(Fg,Xg)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$H,[vue.createElementVNode("div",{class:vue.normalizeClass(Ng.value)},vue.toDisplayString(il.label),3),vue.createElementVNode("div",{class:vue.normalizeClass(Wg.value)},[vue.createElementVNode("div",null,[vue.createElementVNode("button",{class:"col-4 minus",onClick:Vg},"-"),vue.withDirectives(vue.createElementVNode("input",{class:"col-4",type:"number",min:il.min,max:il.max,"onUpdate:modelValue":Xg[0]||(Xg[0]=Tg=>Bg.value=Tg),onInput:Gg,onChange:Gg},null,40,_hoisted_2$C),[[vue.vModelText,Bg.value,void 0,{number:!0}]]),vue.createElementVNode("button",{class:"col-4 plus",onClick:Dg},"+")])],2)]))}}),BWNumberPicker=_export_sfc$1(_sfc_main$N,[["__scopeId","data-v-a0197bba"]]),_hoisted_1$G={class:"section-placeholder"},_hoisted_2$B={class:"placeholder-content"},_hoisted_3$w={class:"dark-inverted"},_hoisted_4$o={key:0},_sfc_main$M=vue.defineComponent({__name:"V-PlaceholderInvite",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},image:{type:String,default:void 0},badge:{type:String,default:void 0}},setup(il){return(ps,Ig)=>{const Zg=_sfc_main$1y;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$G,[vue.createElementVNode("div",_hoisted_2$B,[vue.createVNode(Zg,{size:"xl",picture:il.image,badge:il.badge},null,8,["picture","badge"]),vue.createElementVNode("h3",_hoisted_3$w,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$o,vue.toDisplayString(il.subtitle),1)):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$F={class:"page-placeholder"},_hoisted_2$A={class:"placeholder-content"},_hoisted_3$v={class:"dark-inverted"},_sfc_main$L=vue.defineComponent({__name:"V-PlaceholderPage",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},cta:{type:String,default:void 0},larger:{type:Boolean,default:!1}},emits:["click"],setup(il,{emit:ps}){const Ig=ps;return(Zg,Bg)=>{const Gg=_sfc_main$2d;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$F,[vue.createElementVNode("div",_hoisted_2$A,[vue.renderSlot(Zg.$slots,"image"),vue.createElementVNode("h3",_hoisted_3$v,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:vue.normalizeClass([il.larger&&"is-larger"])},vue.toDisplayString(il.subtitle),3)):vue.createCommentVNode("",!0),il.cta?(vue.openBlock(),vue.createBlock(Gg,{key:1,color:"primary",elevated:"",onClick:Bg[0]||(Bg[0]=Ng=>Ig("click"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cta),1)]),_:1})):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$E={class:"section-placeholder"},_hoisted_2$z={class:"placeholder-content"},_hoisted_3$u={class:"dark-inverted"},_hoisted_4$n=["innerHTML"],_sfc_main$K=vue.defineComponent({__name:"V-PlaceholderSection",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},cta:{type:String,default:void 0}},emits:["click"],setup(il,{emit:ps}){const Ig=ps;return(Zg,Bg)=>{const Gg=_sfc_main$2d;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$E,[vue.createElementVNode("div",_hoisted_2$z,[vue.renderSlot(Zg.$slots,"image"),vue.createElementVNode("h3",_hoisted_3$u,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",{key:0,innerHTML:il.subtitle},null,8,_hoisted_4$n)):vue.createCommentVNode("",!0),il.cta?(vue.openBlock(),vue.createBlock(Gg,{key:1,color:"primary",elevated:"",onClick:Bg[0]||(Bg[0]=Ng=>Ig("click"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cta),1)]),_:1})):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$D={key:0,class:"flex-static-icon"},_hoisted_2$y={class:"flex-static-title"},_hoisted_3$t={key:0,class:"flex-static-subtitle"},_hoisted_4$m={key:1,class:"flex-static-infratitle"},_sfc_main$J=vue.defineComponent({__name:"V-StaticField",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},infratitle:{type:String,default:void 0},titleColor:{type:String,default:"#8f8f8f"},titleSize:{type:String,default:"1rem"},subtitleColor:{type:String,default:"#000000"},infratitleColor:{type:String,default:"#7e7a7a"},center:{type:Boolean,default:!1},lighter:{type:Boolean,default:!1},narrow:{type:Boolean,default:!1},mResponsive:{type:Boolean,default:!1},tResponsive:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},icon:{type:String,default:void 0}},setup(il){vue.useCssVars(Ig=>({"61baf6f2":ps.titleSize,"567612dc":ps.titleColor}));const ps=il;return vue.computed(()=>ps.icon&&ps.icon.indexOf(":")!==-1),(Ig,Zg)=>{const Bg=BWIcon,Gg=_sfc_main$2g;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([il.vertical&&"is-vertical",!il.center&&"media-flex",il.center&&"media-flex-center",il.narrow&&"no-margin",il.mResponsive&&"is-responsive-mobile",il.tResponsive&&"is-responsive-tablet-p"])},[vue.renderSlot(Ig.$slots,"avatar",{class:"flex-static-avatar"}),vue.createElementVNode("div",{class:vue.normalizeClass(["flex-static",[il.lighter&&"is-lighter"]])},[vue.createVNode(Gg,null,{content:vue.withCtx(()=>[ps.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[vue.createVNode(Bg,{icon:ps.icon},null,8,["icon"])])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_2$y,vue.toDisplayString(il.title),1)]),_:1}),il.subtitle?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$t,vue.toDisplayString(il.subtitle),1)):vue.createCommentVNode("",!0),il.infratitle?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$m,vue.toDisplayString(il.infratitle),1)):vue.createCommentVNode("",!0),vue.renderSlot(Ig.$slots,"default")],2)],2)}}}),_hoisted_1$C={class:"easy-card-wrapper"},_hoisted_2$x={class:"v-popover-content is-text"},_hoisted_3$s={class:"popover-head"},_hoisted_4$l={class:"dark-inverted"},_hoisted_5$j={class:"helper-text"},_hoisted_6$c={class:"easy-card-content-header"},_hoisted_7$b={class:"header-text"},_hoisted_8$9={class:"header-inner"},_hoisted_9$8={key:0,class:"header-actions"},_hoisted_10$6=["onClick"],_hoisted_11$6={key:0,class:"easy-action-wrapper"},_hoisted_12$6={key:0,class:"easy-card-content-inner has-slimscroll"},_hoisted_13$6=vue.createElementVNode("div",null," Easy Access Card Default Placeholder. Override this content. ",-1),_sfc_main$I=vue.defineComponent({__name:"V-EasyAccessCard",props:{card:{type:Object,required:!0},isOpen:{type:Boolean,required:!0},locale:{type:String,default:"en"}},emits:["toggle"],setup(il,{emit:ps}){const Ig=il,Zg={en:"Click to view",tr:"Görüntülemek için tıklayın",fr:"Cliquez pour voir"},Bg=ps,Gg=()=>{Bg("toggle")},Ng=vue.computed(()=>({width:Ig.isOpen?Ig.card.drawerWidth:0,height:Ig.isOpen?Ig.card.drawerHeight:0}));return(Wg,Dg)=>{var Tg,Yg,Hg,Jg;const Vg=BWIcon,Fg=vue.resolveComponent("tippy"),Xg=BWDropdown;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$C,[!il.isOpen&&!il.card.disabled?(vue.openBlock(),vue.createBlock(Fg,{key:0,placement:"left"},{content:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$x,[vue.createElementVNode("div",_hoisted_3$s,[vue.createElementVNode("h4",_hoisted_4$l,vue.toDisplayString(il.card.tooltip[il.locale]??il.card.tooltip),1)]),vue.createElementVNode("p",_hoisted_5$j,vue.toDisplayString(Zg[il.locale]),1)])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["easy-card-icon-button",{"is-disabled":il.card.disabled,"is-open":il.isOpen}]),onClick:Gg},[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:1,icon:"heroicons:chevron-right",class:"easy-card-image"})):(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon,class:"easy-card-image"},null,8,["icon"]))],2)]),_:1})):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["easy-card-icon-button",{"is-disabled":il.card.disabled,"is-open":il.isOpen}]),onClick:Gg},[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:1,icon:"heroicons:chevron-right",class:"easy-card-image"})):(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon,class:"easy-card-image"},null,8,["icon"]))],2)),vue.createElementVNode("div",{class:vue.normalizeClass(["easy-card-content"]),style:vue.normalizeStyle(Ng.value)},[vue.createElementVNode("div",_hoisted_6$c,[vue.createElementVNode("div",_hoisted_7$b,[vue.renderSlot(Wg.$slots,[`${il.card.key}-header`],{},()=>{var Ug;return[vue.createElementVNode("div",_hoisted_8$9,[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon},null,8,["icon"])):vue.createCommentVNode("",!0),vue.createElementVNode("h4",null,vue.toDisplayString(((Ug=il.card)==null?void 0:Ug.header[il.locale])??il.card.header),1)])]})]),(Yg=(Tg=il.card)==null?void 0:Tg.actions)!=null&&Yg.length&&((Jg=(Hg=il.card)==null?void 0:Hg.actions)==null?void 0:Jg.length)>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$8,[vue.createVNode(Xg,{outlined:"",dots:"",right:"",spaced:""},{button:vue.withCtx(({open:Ug})=>[vue.createVNode(Vg,{class:"more-icon",icon:"heroicons:ellipsis-vertical",onClick:Ug},null,8,["onClick"])]),content:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.card.actions,Ug=>(vue.openBlock(),vue.createElementBlock("div",{onClick:Ug==null?void 0:Ug.onClick,class:vue.normalizeClass(["dropdown-item","is-media","action-list-button",(Ug==null?void 0:Ug.disabled)&&"is-disabled"])},[Ug!=null&&Ug.hidden?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$6,[vue.createVNode(Vg,{icon:Ug==null?void 0:Ug.icon},null,8,["icon"]),vue.createElementVNode("div",null,vue.toDisplayString((Ug==null?void 0:Ug.label[il.locale])??Ug.label),1)]))],10,_hoisted_10$6))),256))]),_:1})])):vue.createCommentVNode("",!0)]),il.isOpen?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$6,[vue.renderSlot(Wg.$slots,[`${il.card.key}-content`],{},()=>[_hoisted_13$6])])):vue.createCommentVNode("",!0)],4)])}}}),_hoisted_1$B={key:0,class:"easy-modal-overlay"},_sfc_main$H=vue.defineComponent({__name:"V-EasyAccessCards",props:{cards:{type:Object,required:!0},locale:{type:String,required:!0,default:"en"}},setup(il){const ps=vue.ref(null),Ig=vue.ref(!1),Zg=vue.ref(null);onClickOutside(Zg,()=>{Gg()});const Bg=(Ng,Wg)=>{console.log("toggleCard:",Ng,Wg),ps.value=ps.value===Ng?null:Ng,Ig.value=Wg},Gg=()=>{Ig.value&&ps.value!==null&&(ps.value=null)};return(Ng,Wg)=>{const Dg=_sfc_main$I;return vue.openBlock(),vue.createElementBlock("div",null,[ps.value!==null?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$B)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["easy-access-cards-wrapper",ps.value===null&&"no-opened-card"]),ref_key:"wrapperRef",ref:Zg},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.cards,(Vg,Fg)=>(vue.openBlock(),vue.createElementBlock("div",{key:Fg},[Vg.hidden?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Dg,{key:0,class:vue.normalizeClass(["easy-access-card",ps.value!==null&&ps.value!==Fg&&"hidden"]),card:Vg,index:Fg,"is-open":ps.value===Fg,onToggle:Xg=>Bg(Fg,Vg.outsideToggle),locale:il.locale},{[`${Vg.key}-header`]:vue.withCtx(()=>[vue.renderSlot(Ng.$slots,`${Vg.key}-header`)]),[`${Vg.key}-content`]:vue.withCtx(()=>[vue.renderSlot(Ng.$slots,`${Vg.key}-content`)]),_:2},1032,["class","card","index","is-open","onToggle","locale"]))]))),128))],2)])}}}),_hoisted_1$A={class:"confirmation-modal-overlay"},_hoisted_2$w={class:"confirmation-buttons"},_sfc_main$G=vue.defineComponent({__name:"V-ConfirmationModal",props:{title:{type:Object,required:!0},description:{type:Object,required:!0},confirmActionName:{type:Object,required:!0},cancelActionName:{type:Object,required:!0},locale:{type:String,required:!0}},emits:["confirm","cancel"],setup(il,{emit:ps}){const Ig=ps,Zg=()=>{Ig("confirm")},Bg=()=>{Ig("cancel")};return(Gg,Ng)=>{const Wg=_sfc_main$2d,Dg=_sfc_main$1S;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$A,[vue.createVNode(vue.Transition,{name:"modal-fade",appear:""},{default:vue.withCtx(()=>[vue.createVNode(Dg,{class:"confirmation-modal-content",radius:"rounded",elevated:""},{default:vue.withCtx(()=>[vue.createElementVNode("h3",null,vue.toDisplayString(il.title[il.locale]),1),vue.createElementVNode("p",null,vue.toDisplayString(il.description[il.locale]),1),vue.createElementVNode("div",_hoisted_2$w,[vue.createVNode(Wg,{color:"secondary",onClick:Bg},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cancelActionName[il.locale]),1)]),_:1}),vue.createVNode(Wg,{color:"primary",onClick:Zg},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.confirmActionName[il.locale]),1)]),_:1})])]),_:1})]),_:1})])}}}),_hoisted_1$z={class:"modal-inner-wrapper"},_hoisted_2$v={class:"modal-header"},_hoisted_3$r={class:"modal-title"},_hoisted_4$k={class:"modal-buttons"},_hoisted_5$i={class:"modal-body"},_sfc_main$F=vue.defineComponent({__name:"V-FormModal",props:{title:{type:Object,required:!0},buttons:{type:Array,required:!0,validator:function(il){for(const ps of il)if([void 0,"primary","info","success","warning","danger","white"].indexOf(ps.color)===-1)return console.warn(`V-FormModal: invalid "${il}" color given for a button. Should be primary, secondary, info, success, warning, danger, white or undefined`),!1;return!0}},width:{type:String,default:"auto",validator:function(il){const ps=il==="auto"||/^\d+px$/.test(il);return ps||console.warn(`Invalid prop: width must be 'auto' or in the format '\${number}px', but got '${il}'.`),ps}},height:{type:String,default:"auto",validator:function(il){const ps=il==="auto"||/^\d+px$/.test(il);return ps||console.warn(`Invalid prop: height must be 'auto' or in the format '\${number}px', but got '${il}'.`),ps}},locale:{type:String,required:!0}},setup(il){const ps=il,Ig=vue.ref(null),Zg=(Wg,Dg)=>{Wg.confirmationInfo?Ig.value=Dg:Wg.onClick()},Bg=()=>{Ig.value!==null&&(ps.buttons[Ig.value].onClick(),Ig.value=null)},Gg=()=>{Ig.value=null},Ng=vue.computed(()=>Ig.value!==null?ps.buttons[Ig.value].confirmationInfo:null);return(Wg,Dg)=>{var Tg,Yg,Hg,Jg;const Vg=_sfc_main$2d,Fg=_sfc_main$1S,Xg=_sfc_main$G;return vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-form-modal-overlay",style:vue.normalizeStyle({"--form-modal-height":il.height,"--form-modal-width":il.width})},[vue.createVNode(vue.Transition,{name:"modal-fade",appear:""},{default:vue.withCtx(()=>[vue.createVNode(Fg,{class:"modal-content",radius:"rounded",elevated:"",onClick:Dg[0]||(Dg[0]=vue.withModifiers(()=>{},["stop"]))},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$z,[vue.createElementVNode("div",_hoisted_2$v,[vue.createElementVNode("div",_hoisted_3$r,[vue.renderSlot(Wg.$slots,"title",{},()=>[vue.createElementVNode("h4",null,vue.toDisplayString(il.title[il.locale]),1)])]),vue.createElementVNode("div",_hoisted_4$k,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.buttons,(Ug,Kg)=>(vue.openBlock(),vue.createBlock(Vg,{key:Kg,color:Ug.color,disabled:Ug.disabled,loading:Ug.loading,onClick:$g=>Zg(Ug,Kg),outlined:Ug.outlined},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ug.label[il.locale]),1)]),_:2},1032,["color","disabled","loading","onClick","outlined"]))),128))])]),vue.createElementVNode("div",_hoisted_5$i,[vue.renderSlot(Wg.$slots,"default")])])]),_:3})]),_:3}),Ig.value!==null?(vue.openBlock(),vue.createBlock(Xg,{key:0,title:((Tg=Ng.value)==null?void 0:Tg.title)??"",description:((Yg=Ng.value)==null?void 0:Yg.description)??"",confirmActionName:((Hg=Ng.value)==null?void 0:Hg.confirmActionName)??"",cancelActionName:((Jg=Ng.value)==null?void 0:Jg.cancelActionName)??"",onConfirm:Bg,onCancel:Gg,locale:il.locale},null,8,["title","description","confirmActionName","cancelActionName","locale"])):vue.createCommentVNode("",!0)],4)}}});var EVENT_TYPE=(il=>(il.SINGLE_DAY_TIMED="SINGLE_DAY_TIMED",il.SINGLE_DAY_FULL_DAY="SINGLE_DAY_FULL_DAY",il.SINGLE_HYBRID_DAY_TIMED="SINGLE_HYBRID_DAY_TIMED",il.MULTI_DAY_TIMED="MULTI_DAY_TIMED",il.MULTI_DAY_FULL_DAY="MULTI_DAY_FULL_DAY",il))(EVENT_TYPE||{});const calendarDomRectForVitest={top:26,right:911,bottom:728,left:8},EVENT_FLYOUT_WIDTH=400;class EventFlyoutPosition{calculateFlyoutPosition(ps,Ig,Zg=null){const Bg=Zg||calendarDomRectForVitest,Gg=ps.top-Bg.top,Ng=Bg.right-ps.right,Wg=Bg.bottom-ps.bottom,Dg=ps.left-Bg.left,Vg=Ig.width+10,Fg=Wg<0?Bg.bottom-Ig.height-10:null,Xg=Gg<0?Bg.top+10:null;return Wg>Ig.height&&Ng>Vg?{top:Xg||Math.round(ps.top),left:Math.round(ps.right)+10}:Gg>Ig.height&&Ng>Vg?{top:Fg||Math.round(ps.bottom)-Ig.height,left:Math.round(ps.right)+10}:Dg>Vg&&Wg>Ig.height?{top:Xg||ps.top,left:Math.round(ps.left-(Ig.width+10))}:Dg>Vg&&Gg>Ig.height?{top:Fg||Math.round(ps.bottom-Ig.height),left:Math.round(ps.left-(Ig.width+10))}:Wg<Ig.height?{top:Bg.bottom-Ig.height,left:null}:{top:ps.top,left:null}}}const EVENT_COLORS={yellow:"rgb(244, 180, 0)",blue:"rgb(38, 132, 255)",green:"rgb(51, 182, 121)",red:"rgb(255, 84, 86)",pink:"rgb(239, 139, 239)",purple:"rgb(157, 114, 245)",turquoise:"rgb(64, 190, 190)",brown:"rgb(169, 99, 30)"},DATE_TIME_STRING_PATTERN=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/,DATE_TIME_STRING_FULL_DAY_PATTERN=/^\d{4}-\d{2}-\d{2}$/;var DAY_TIME_POINT=(il=>(il[il.MIDNIGHT=0]="MIDNIGHT",il[il.ONE_AM=100]="ONE_AM",il[il.TWO_AM=200]="TWO_AM",il[il.THREE_AM=300]="THREE_AM",il[il.FOUR_AM=400]="FOUR_AM",il[il.FIVE_AM=500]="FIVE_AM",il[il.SIX_AM=600]="SIX_AM",il[il.SEVEN_AM=700]="SEVEN_AM",il[il.EIGHT_AM=800]="EIGHT_AM",il[il.NINE_AM=900]="NINE_AM",il[il.TEN_AM=1e3]="TEN_AM",il[il.ELEVEN_AM=1100]="ELEVEN_AM",il[il.TWELVE_PM=1200]="TWELVE_PM",il[il.ONE_PM=1300]="ONE_PM",il[il.TWO_PM=1400]="TWO_PM",il[il.THREE_PM=1500]="THREE_PM",il[il.FOUR_PM=1600]="FOUR_PM",il[il.FIVE_PM=1700]="FIVE_PM",il[il.SIX_PM=1800]="SIX_PM",il[il.SEVEN_PM=1900]="SEVEN_PM",il[il.EIGHT_PM=2e3]="EIGHT_PM",il[il.NINE_PM=2100]="NINE_PM",il[il.TEN_PM=2200]="TEN_PM",il[il.ELEVEN_PM=2300]="ELEVEN_PM",il[il.TWELVE_AM=2400]="TWELVE_AM",il))(DAY_TIME_POINT||{});class EDate extends Date{get fullYear(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}var DAY_MODE=(il=>(il.REGULAR="regular",il.SHORTENED="shortened",il.FLEXIBLE="flexible",il))(DAY_MODE||{}),WEEK_START_DAY=(il=>(il.SUNDAY="sunday",il.MONDAY="monday",il))(WEEK_START_DAY||{});class Time{constructor(ps="monday",Ig=null,Zg={start:0,end:2400}){_0(this,"FIRST_DAY_OF_WEEK");_0(this,"CALENDAR_LOCALE");_0(this,"ALL_HOURS",[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300]);_0(this,"DAY_START");_0(this,"DAY_END");_0(this,"HOURS_PER_DAY",24);_0(this,"MS_PER_DAY");this.FIRST_DAY_OF_WEEK=ps,this.CALENDAR_LOCALE=Ig||Helpers.getBrowserNavigatorLocale(),this.DAY_START=Zg.start,this.DAY_END=Zg.end,this.HOURS_PER_DAY=(()=>{const Bg=Time.getHourFromTimePoints(this.DAY_END),Gg=Time.getHourFromTimePoints(this.DAY_START);return Bg>Gg?Bg-Gg:this.HOURS_PER_DAY-Gg+Bg})(),this.MS_PER_DAY=864e5}get dayMode(){return this.DAY_START===0&&this.DAY_END===2400?DAY_MODE.REGULAR:this.DAY_START>=this.DAY_END?DAY_MODE.FLEXIBLE:DAY_MODE.SHORTENED}getDatesBetweenTwoDates(ps,Ig){for(var Zg=[],Bg=new Date(ps);Bg<=Ig;Bg.setDate(Bg.getDate()+1))Zg.push(new Date(Bg.getFullYear(),Bg.getMonth(),Bg.getDate()));return Zg}getCalendarWeekDateObjects(ps){let Ig;this.FIRST_DAY_OF_WEEK==="sunday"?Ig=ps.getDay():Ig=ps.getDay()===0?6:ps.getDay()-1;const Zg=ps.getDate()-Ig,Bg=new Date(ps.getFullYear(),ps.getMonth(),Zg);return this.getDatesBetweenTwoDates(Bg,new Date(Bg.getFullYear(),Bg.getMonth(),Bg.getDate()+6))}getCalendarMonthSplitInWeeks(ps,Ig){const Zg=[],Bg=new Date(ps,Ig,1),Gg=new Date(Bg.getFullYear(),Bg.getMonth(),1),Ng=this.getCalendarWeekDateObjects(Gg);Zg.push(Ng);let Wg=!0,Dg=Ng[0];const Vg=Bg.getMonth();for(;Wg;){const Fg=new Date(Dg.getFullYear(),Dg.getMonth(),Dg.getDate()+7);Fg.getMonth()===Vg?(Zg.push(this.getCalendarWeekDateObjects(Fg)),Dg=Fg):Wg=!1}return Zg}getCalendarYearMonths(ps){const Ig=[];let Zg=0;for(;Zg<=11;)Ig.push(new Date(ps,Zg,1)),Zg++;return Ig}getHourAndMinutesFromTimePoints(ps){const Ig=ps.toString();let Zg="0",Bg="0";return(Ig==null?void 0:Ig.length)===4?(Zg=Ig[0]+Ig[1],Bg=Ig[2]+Ig[3]):(Ig==null?void 0:Ig.length)===3&&(Zg=Ig[0],Bg=Ig[1]+Ig[2]),{hour:+Zg,minutes:+Bg}}getHourLocaleStringFromHourDigits(ps){const{hour:Ig,minutes:Zg}=this.getHourAndMinutesFromTimePoints(ps),Bg=new Date(2100,0,1,+Ig,+Zg,0).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"});return Bg[0]==="0"?Bg.substring(1):Bg}getLocalizedNameOfWeekday(ps,Ig="short"){return ps.toLocaleDateString(this.CALENDAR_LOCALE,{weekday:Ig})}getLocalizedNameOfMonth(ps,Ig="short"){return ps.toLocaleDateString(this.CALENDAR_LOCALE,{month:Ig})}getLocalizedDateString(ps){return ps.toLocaleDateString(this.CALENDAR_LOCALE)}getDateTimeStringFromDate(ps,Ig){const Zg=ps.getFullYear(),Bg=ps.getMonth()+1,Gg=ps.getDate(),Ng=`${Zg}-${Bg>=10?Bg:"0"+Bg}-${Gg>=10?Gg:"0"+Gg}`;if(!Ig){const Dg=ps.getHours(),Vg=ps.getMinutes();return`${Ng} ${Dg>=10?Dg:"0"+Dg}:${Vg>=10?Vg:"0"+Vg}`}return`${Ng} ${Ig==="start"?"00:00":"23:59"}`}getLocalizedTime(ps){const{year:Ig,month:Zg,date:Bg,hour:Gg,minutes:Ng}=this.getAllVariablesFromDateTimeString(ps);return new Date(Ig,Zg,Bg,Gg,Ng).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"numeric",minute:"numeric"})}getLocalizedHour(ps){return ps.toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"})}getLocalizedTimeRange(ps,Ig){return`${this.getLocalizedTime(ps)} - ${this.getLocalizedTime(Ig)}`}getAllVariablesFromDateTimeString(ps){return{year:+ps.substring(0,4),month:+ps.substring(5,7)-1,date:+ps.substring(8,10),hour:this.hourFrom(ps),minutes:this.minutesFrom(ps)}}dateIsToday(ps){const{fullYear:Ig,month:Zg,date:Bg}=new EDate,{fullYear:Gg,month:Ng,date:Wg}=new EDate(ps);return Ig===Gg&&Zg===Ng&&Bg===Wg}dateIsInWeek(ps,Ig){const{date:Zg,month:Bg,fullYear:Gg}=new EDate(ps);for(const Ng of Ig){const Wg=Zg===Ng.getDate(),Dg=Bg===Ng.getMonth(),Vg=Gg===Ng.getFullYear();if(Wg&&Dg&&Vg)return!0}return!1}formatDateTime(ps,Ig="en-GB"){var Dg,Vg,Fg,Xg,Tg;const Zg={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1},Gg=new Intl.DateTimeFormat(Ig,Zg).formatToParts(ps),Ng=`${(Dg=Gg.find(Yg=>Yg.type==="year"))==null?void 0:Dg.value}-${(Vg=Gg.find(Yg=>Yg.type==="month"))==null?void 0:Vg.value}-${(Fg=Gg.find(Yg=>Yg.type==="day"))==null?void 0:Fg.value}`,Wg=`${(Xg=Gg.find(Yg=>Yg.type==="hour"))==null?void 0:Xg.value}:${(Tg=Gg.find(Yg=>Yg.type==="minute"))==null?void 0:Tg.value}`;return`${Ng} ${Wg}`}getDateStringFromDate(ps){const Ig=ps.getFullYear(),Zg=ps.getMonth()+1,Bg=ps.getDate();return`${Ig}-${Zg>=10?Zg:"0"+Zg}-${Bg>=10?Bg:"0"+Bg}`}addMinutesToDateTimeString(ps,Ig){const{year:Zg,month:Bg,date:Gg,hour:Ng,minutes:Wg}=this.getAllVariablesFromDateTimeString(Ig),Dg=new Date(Zg,Bg,Gg,Ng,Wg),Vg=new Date(Dg.getTime()+ps*6e4);return this.getDateTimeStringFromDate(Vg)}addDaysToDateTimeString(ps,Ig){return this.addMinutesToDateTimeString(ps*1440,Ig)}dateStringsHaveEqualDates(ps,Ig){const{year:Zg,month:Bg,date:Gg}=this.getAllVariablesFromDateTimeString(ps),{year:Ng,month:Wg,date:Dg}=this.getAllVariablesFromDateTimeString(Ig);return Zg===Ng&&Bg===Wg&&Gg===Dg}setDateToEndOfDay(ps){return new Date(ps.getFullYear(),ps.getMonth(),ps.getDate(),23,59,59,999)}turnMinutesIntoPercentageOfHour(ps){const Zg=1.6666666666666667*ps;return Zg<10?"0"+Zg:Zg.toString()}getPercentageOfDayFromDateTimeString(ps,Ig,Zg){const Gg=this.hourFrom(ps)*100,Ng=+ps.substring(14,16),Wg=+this.turnMinutesIntoPercentageOfHour(+Ng);if(Zg>Ig){const Tg=Zg-Ig;return(Gg+Wg-Ig)/Tg*100}const Dg=DAY_TIME_POINT.TWELVE_AM-Ig,Vg=Dg+Zg,Fg=Gg+Wg;return(Fg>=Ig?Fg-Ig:Dg+Fg)/Vg*100}getTimeFromClick(ps,Ig){if(Ig<=0)throw new Error("weekHeight cannot be a negative number");if(ps<0)throw new Error("clickOffsetY cannot be a negative number");const Zg=this.DAY_START/100,Bg=Ig/this.HOURS_PER_DAY,Gg=Math.floor(ps%Bg/(Bg/60));if(this.DAY_END<=this.DAY_START){const Dg=this.DAY_END/100*Bg,Vg=Ig-Dg;if(ps>Vg){const Fg=Math.floor((ps-Vg)/Bg);return`${this.doubleDigit(Fg)}:${this.doubleDigit(Gg)}`}}const Ng=Math.floor(ps/Bg)+Zg;return`${this.doubleDigit(Ng)}:${this.doubleDigit(Gg)}`}setSegmentOfDateTimeString(ps,Ig){if(Ig.hour<0||Ig.hour>23)throw new Error("Invalid hour");const Zg=this.doubleDigit(Ig.hour);return ps=ps.replace(/\d{2}:/,Zg+":"),ps}isTrailingOrLeadingDate(ps,Ig){const{month:Zg}=new EDate(ps);return Ig!==Zg}static getTimePointsFromHour(ps){if(ps<0||ps>24||ps%1!==0)throw new Error("Invalid day boundary");return ps===0?ps:ps*100}static getHourFromTimePoints(ps){if(ps<0||ps>2400||ps%100!==0)throw new Error("Invalid time points");return ps===0?ps:ps/100}getTimelineHours(){return this.dayMode!==DAY_MODE.FLEXIBLE?this.ALL_HOURS.filter(ps=>ps>=this.DAY_START&&ps<this.DAY_END):[...this.ALL_HOURS.filter(ps=>ps>=this.DAY_START),...this.ALL_HOURS.filter(ps=>ps<this.DAY_END)]}dateStringFrom(ps){return ps.substring(0,10)}timeStringFrom(ps){return ps.substring(11,16)}hourFrom(ps){return+ps.substring(11,13)}minutesFrom(ps){return+ps.substring(14,16)}areDaysConsecutive(ps,Ig){return this.dateStringFrom(this.addDaysToDateTimeString(1,ps))===this.dateStringFrom(Ig)}setHourInDateTimeString(ps,Ig){const Zg=this.doubleDigit(Ig);return ps=ps.replace(/\d{2}:/,Zg+":"),ps}setMinutesInDateTimeString(ps,Ig){const Zg=this.doubleDigit(Ig);return ps=ps.replace(/:\d{2}/,":"+Zg),ps}getDateTimeStringDayBoundariesFrom(ps){if(this.DAY_END<=this.DAY_START){const Bg=this.addDaysToDateTimeString(1,ps),Gg=this.setHourInDateTimeString(Bg,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour);return{start:this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour),end:Gg}}const Ig=this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour);let Zg;return this.DAY_END===DAY_TIME_POINT.TWELVE_AM?(Zg=this.setHourInDateTimeString(ps,23),Zg=this.setMinutesInDateTimeString(Zg,59)):Zg=this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour),{start:Ig,end:Zg}}doubleDigit(ps){if(ps<0||ps>60)throw new Error("Invalid number. This is not a valid hour or minute");return ps<10?"0"+ps:String(ps)}}class Helpers{static getBrowserNavigatorLocale(){var ps;return typeof navigator!="object"?"en-US":navigator.languages&&((ps=navigator.languages)!=null&&ps.length)?navigator.languages[0]:navigator.language}static hasSlotContent(ps){return ps?ps().some(Ig=>{var Zg;return Ig.type===vue.Comment||Array.isArray(Ig.children)&&!((Zg=Ig.children)!=null&&Zg.length)?!1:Ig.type!==vue.Text||typeof Ig.children=="string"&&Ig.children.trim()!==""}):!1}static getEventType(ps,Ig){const Zg=DATE_TIME_STRING_PATTERN.test(ps.start)&&DATE_TIME_STRING_PATTERN.test(ps.end),Bg=DATE_TIME_STRING_FULL_DAY_PATTERN.test(ps.start)&&DATE_TIME_STRING_FULL_DAY_PATTERN.test(ps.end);if(Zg)return this.getTimedEventType(ps,Ig);if(Bg)return this.getFullDayEventType(ps,Ig);throw new Error("Event has invalid type")}static getTimedEventType(ps,Ig){if(Ig.dateStringsHaveEqualDates(ps.start,ps.end))return EVENT_TYPE.SINGLE_DAY_TIMED;if(Ig.dayMode===DAY_MODE.FLEXIBLE){const Zg=Ig.setHourInDateTimeString(Ig.addDaysToDateTimeString(1,Ig.dateStringFrom(ps.start)),Time.getHourFromTimePoints(Ig.DAY_END));if(ps.end<Zg)return EVENT_TYPE.SINGLE_HYBRID_DAY_TIMED}return EVENT_TYPE.MULTI_DAY_TIMED}static getFullDayEventType(ps,Ig){return Ig.dateStringsHaveEqualDates(ps.start,ps.end)?EVENT_TYPE.SINGLE_DAY_FULL_DAY:EVENT_TYPE.MULTI_DAY_FULL_DAY}static isUIEventTouchEvent(ps){return"touches"in ps&&typeof ps.touches=="object"}}const languageKeys={week:{"it-IT":"Settimana","en-US":"Week","de-DE":"Woche","sv-SE":"Vecka","zh-CN":"周","pt-BR":"Semana","fr-FR":"Semaine","th-TH":"สัปดาห์","nl-NL":"Week","ru-RU":"Неделя","ar-YE":"إسبوع","es-ES":"Semana","ja-JP":"週","pl-PL":"Tydzień","hu-HU":"Hét"},month:{"it-IT":"Mese","en-US":"Month","de-DE":"Monat","sv-SE":"Månad","zh-CN":"月","pt-BR":"Mês","fr-FR":"Mois","th-TH":"เดือน","nl-NL":"Maand","ru-RU":"Месяц","ar-YE":"شهر","es-ES":"Mes","ja-JP":"月","pl-PL":"Miesiąc","hu-HU":"Hónap"},day:{"it-IT":"Giorno","en-US":"Day","de-DE":"Tag","sv-SE":"Dag","zh-CN":"日","pt-BR":"Dia","fr-FR":"Jour","th-TH":"วัน","nl-NL":"Dag","ru-RU":"День","ar-YE":"يوم","es-ES":"Día","ja-JP":"日","pl-PL":"Dzień","hu-HU":"Nap"},list:{"it-IT":"Elenco","en-US":"List","de-DE":"Liste","sv-SE":"Lista","zh-CN":"列表","pt-BR":"Lista","fr-FR":"Liste","th-TH":"รายการ","nl-NL":"Lijst","ru-RU":"Список","ar-YE":"قائمة","es-ES":"Lista","ja-JP":"リスト","pl-PL":"Lista","hu-HU":"Lista"},today:{"it-IT":"Oggi","en-US":"Today","de-DE":"Heute","sv-SE":"Dag","zh-CN":"今天","pt-BR":"Dia","fr-FR":"Aujourd'hui","th-TH":"วัน","nl-NL":"Vandaag","ru-RU":"Сегодня","ar-YE":"يوم","es-ES":"Día","ja-JP":"日","pl-PL":"Dzień","hu-HU":"Nap"},moreEvents:{"it-IT":"+ altri eventi","en-US":"+ more events","de-DE":"+ weitere Ereignisse","sv-SE":"+ fler event","zh-CN":"列出其他结果","pt-BR":"+ mais eventos","fr-FR":"+ d'autres événements","th-TH":"+ เหตุการณ์เพิ่มเติม","nl-NL":"meer evenementen","ru-RU":"+ ещё события","ar-YE":"+ المزيد من الأحداث","es-ES":"más eventos","ja-JP":"その他イベント","pl-PL":"+ więcej wydarzeń","hu-HU":"További események"},noEvent:{"it-IT":"Nessun evento","en-US":"No events","de-DE":"Keine Ereignisse","sv-SE":"Inga event","zh-CN":"沒有活動","pt-BR":"Sem eventos","fr-FR":"Aucun Evènement","th-TH":"ไม่มีกิจกรรม","nl-NL":"Geen evenementen","ru-RU":"Нет событий","ar-YE":"لا أحداث","es-ES":"No hay eventos","ja-JP":"イベントなし","pl-PL":"Brak wydarzeń","hu-HU":"Nincs esemény"},completed:{"it-IT":"Completato","en-US":"Completed","de-DE":"Abgeschlossen","zh-CN":"已完成","fr-FR":"Complété","nl-NL":"Voltooid","ru-RU":"Нет событий","es-ES":"No hay eventos"},cancelled:{"it-IT":"Annullato","en-US":"Cancelled","de-DE":"Abgebrochen","zh-CN":"已取消","fr-FR":"Annulé","nl-NL":"Geannuleerd","ru-RU":"Отменено","es-ES":"Cancelado"},inprogress:{"it-IT":"In programma","en-US":"Scheduled","de-DE":"Geplant","zh-CN":"进行中","fr-FR":"Prévu","nl-NL":"Gepland","ru-RU":"Запланировано","es-ES":"Programado"},expired:{"it-IT":"Scaduto","en-US":"Expired","de-DE":"Abgelaufen","zh-CN":"已过期","fr-FR":"Expiré","nl-NL":"Verlopen","ru-RU":"Просроченный","es-ES":"Caducado"},alldayapp:{"it-IT":"È un appuntamento per tutto il giorno?","en-US":"Is All Day Appointment ?","de-DE":"Ist dies ein ganztägiger Termin?","zh-CN":"这是一个全天日程吗?","fr-FR":"S’agit-il d’un rendez-vous pour toute la journée ?","nl-NL":"Is dit een afspraak voor de hele dag?","ru-RU":"Это встреча на весь день?","es-ES":"¿Es una cita de todo el día?"},title:{"it-IT":"Titolo","en-US":"Title","de-DE":"Titel","zh-CN":"标题","fr-FR":"Titre","nl-NL":"Titel","ru-RU":"Заголовок","es-ES":"Título"},startdate:{"it-IT":"Data di inizio","en-US":"Start Date","de-DE":"Startdatum","zh-CN":"开始日期","fr-FR":"Date de début","nl-NL":"Startdatum","ru-RU":"Дата начала","es-ES":"Fecha de inicio"},enddate:{"it-IT":"Data di fine","en-US":"End Date","de-DE":"Enddatum","zh-CN":"结束日期","fr-FR":"Date de fin","nl-NL":"Einddatum","ru-RU":"Дата окончания","es-ES":"Fecha de fin"},scheduletitle:{"it-IT":"Programma un nuovo appuntamento","en-US":"Schedule New Appointment","de-DE":"Neuen Termin vereinbaren","zh-CN":"安排新预约","fr-FR":"Planifier un nouveau rendez-vous","nl-NL":"Nieuwe afspraak plannen","ru-RU":"Запланировать новую встречу","es-ES":"Programar una nueva cita"},updatetitle:{"it-IT":"Aggiorna appuntamento","en-US":"Update Appointment","de-DE":"Termin aktualisieren","zh-CN":"更新预约","fr-FR":"Mettre à jour le rendez-vous","nl-NL":"Afspraak bijwerken","ru-RU":"Обновить встречу","es-ES":"Actualizar cita"},deleteappointmenttitle:{"it-IT":"Elimina appuntamento","en-US":"Delete Appointment","de-DE":"Termin löschen","zh-CN":"删除预约","fr-FR":"Supprimer le rendez-vous","nl-NL":"Afspraak verwijderen","ru-RU":"Удалить встречу","es-ES":"Eliminar cita"},deletewarningtitle:{"it-IT":"Attenzione: eliminazione appuntamento","en-US":"Delete Appointment Warning","de-DE":"Warnung: Termin löschen","zh-CN":"删除预约警告","fr-FR":"Avertissement de suppression du rendez-vous","nl-NL":"Waarschuwing afspraak verwijderen","ru-RU":"Предупреждение об удалении встречи","es-ES":"Advertencia de eliminación de cita"},deletewarningmessage:{"it-IT":"Stai per eliminare l'appuntamento programmato. Sei sicuro?","en-US":"You are about to delete the scheduled appointment. Are you sure?","de-DE":"Sie sind dabei, den geplanten Termin zu löschen. Sind Sie sicher?","zh-CN":"您即将删除已安排的预约。确定要继续吗?","fr-FR":"Vous êtes sur le point de supprimer ce rendez-vous planifié. Voulez-vous continuer ?","nl-NL":"Je staat op het punt de geplande afspraak te verwijderen. Weet je het zeker?","ru-RU":"Вы собираетесь удалить запланированную встречу. Вы уверены?","es-ES":"Está a punto de eliminar la cita programada. ¿Seguro que desea continuar?"},deleteconfirm:{"it-IT":"Sì, elimina l'appuntamento","en-US":"Yes, delete the appointment","de-DE":"Ja, Termin löschen","zh-CN":"是的,删除预约","fr-FR":"Oui, supprimer le rendez-vous","nl-NL":"Ja, verwijder de afspraak","ru-RU":"Да, удалить встречу","es-ES":"Sí, eliminar la cita"},deletecancel:{"it-IT":"No, mantieni l'appuntamento","en-US":"No, keep the appointment","de-DE":"Nein, Termin behalten","zh-CN":"不,保留预约","fr-FR":"Non, conserver le rendez-vous","nl-NL":"Nee, afspraak behouden","ru-RU":"Нет, оставить встречу","es-ES":"No, conservar la cita"},location:{"it-IT":"Luogo","en-US":"Location","de-DE":"Ort","zh-CN":"地点","fr-FR":"Lieu","nl-NL":"Locatie","ru-RU":"Место","es-ES":"Ubicación"},pname:{"it-IT":"Nome partecipante/i","en-US":"Participant(s) Name","de-DE":"Name(n) der Teilnehmenden","zh-CN":"参与者姓名","fr-FR":"Nom du/des participant(s)","nl-NL":"Naam deelnemer(s)","ru-RU":"Имя участника (участников)","es-ES":"Nombre del/de los participante(s)"},pphone:{"it-IT":"Telefono partecipante/i","en-US":"Participant(s) Phone","de-DE":"Telefonnummer der Teilnehmenden","zh-CN":"参与者电话","fr-FR":"Téléphone du/des participant(s)","nl-NL":"Telefoon deelnemer(s)","ru-RU":"Телефон участника (участников)","es-ES":"Teléfono del/de los participante(s)"},pemail:{"it-IT":"Email partecipante/i","en-US":"Participant(s) Email","de-DE":"E-Mail der Teilnehmenden","zh-CN":"参与者邮箱","fr-FR":"E-mail du/des participant(s)","nl-NL":"E-mail deelnemer(s)","ru-RU":"Эл. почта участника (участников)","es-ES":"Correo electrónico del/de los participante(s)"},type:{"it-IT":"Tipo","en-US":"Type","de-DE":"Typ","zh-CN":"类型","fr-FR":"Type","nl-NL":"Type","ru-RU":"Тип","es-ES":"Tipo"},referenceid:{"it-IT":"ID di riferimento","en-US":"Reference ID","de-DE":"Referenz-ID","zh-CN":"参考编号","fr-FR":"ID de référence","nl-NL":"Referentie-ID","ru-RU":"Идентификатор ссылки","es-ES":"ID de referencia"},status:{"it-IT":"Stato","en-US":"Status","de-DE":"Status","zh-CN":"状态","fr-FR":"Statut","nl-NL":"Status","ru-RU":"Статус","es-ES":"Estado"},saveschedule:{"it-IT":"Salva pianificazione","en-US":"Save Schedule","de-DE":"Zeitplan speichern","zh-CN":"保存日程","fr-FR":"Enregistrer le planning","nl-NL":"Planning opslaan","ru-RU":"Сохранить расписание","es-ES":"Guardar programación"},discard:{"it-IT":"Scarta","en-US":"Discard","de-DE":"Verwerfen","zh-CN":"放弃","fr-FR":"Annuler","nl-NL":"Verwerpen","ru-RU":"Отменить","es-ES":"Descartar"}},localeMap=new Map([["de","de-DE"],["en","en-US"],["it","it-IT"],["sv","sv-SE"],["zh","zh-CN"],["pt","pt-BR"],["fr","fr-FR"],["th","th-TH"],["nl","nl-NL"],["ru","ru-RU"],["ar","ar-YE"],["es","es-ES"],["ja","ja-JP"],["pl","pl-PL"],["hu","hu-HU"]]),getLanguage={data(){return{languageKeys}},methods:{getLanguage(il,ps){return ps=this.overrideShortLocaleWithLongLocale(ps),il[ps]?il[ps]:il["en-US"]},overrideShortLocaleWithLongLocale(il){return localeMap.has(il)&&(il=localeMap.get(il)),il}}},_hoisted_1$y={key:0,class:"event-flyout__relative-wrapper"},_hoisted_2$u={class:"event-flyout__menu"},_hoisted_3$q={key:0,class:"event-flyout__menu-editable"},_hoisted_4$j={class:"event-flyout__menu-close"},_hoisted_5$h={key:0,class:"event-flyout__info-wrapper"},_hoisted_6$b={key:0,class:"event-flyout__row is-title"},_hoisted_7$a={key:1,class:"event-flyout__row is-time"},_hoisted_8$8={key:2,class:"event-flyout__row is-time"},_hoisted_9$7={key:3,class:"event-flyout__row is-time"},_hoisted_10$5={key:4,class:"event-flyout__row is-time"},_hoisted_11$5={key:5,class:"event-flyout__row is-time"},_hoisted_12$5={key:6,class:"event-flyout__row is-time"},_hoisted_13$5={key:7,class:"event-flyout__row is-time"},_hoisted_14$4={key:8,class:"event-flyout__row is-time"},_hoisted_15$4={key:9,class:"event-flyout__row is-time"},_sfc_main$E=vue.defineComponent({__name:"EventFlyout",props:{calendarEventProp:{type:Object,default:void 0},eventElement:{type:Object,default:null},time:{type:Object,required:!0},config:{type:Object,default:void 0,required:!0}},emits:["hide","edit-event","delete-event"],setup(il,{emit:ps}){vue.useCssVars(nI=>({cad8dc76:Dg}));const Ig=il,Zg=ps,Bg=vue.ref(!1),Gg=vue.ref(0),Ng=vue.ref(0),Wg=vue.ref(Ig.calendarEventProp),Dg=`${EVENT_FLYOUT_WIDTH}px`,Vg=EVENT_COLORS,Fg=new EventFlyoutPosition,Xg=vue.computed(()=>{var II,fI;if(!Wg.value||!Wg.value.start)return null;Wg.value.start=Ig.time.formatDateTime(new Date(Wg.value.start),(II=Ig.config)==null?void 0:II.locale),Wg.value.end=Ig.time.formatDateTime(new Date(Wg.value.end),(fI=Ig.config)==null?void 0:fI.locale);const nI=Helpers.getEventType(Wg.value,Ig.time);if([EVENT_TYPE.MULTI_DAY_TIMED].includes(nI)){const bI=iI(Wg.value.start)+" "+Ig.time.getLocalizedTime(Wg.value.start),mI=iI(Wg.value.end)+" "+Ig.time.getLocalizedTime(Wg.value.end);return`${bI} - ${mI}`}if([EVENT_TYPE.SINGLE_DAY_FULL_DAY,EVENT_TYPE.MULTI_DAY_FULL_DAY].includes(nI)){const bI=iI(Wg.value.start),mI=iI(Wg.value.end);return bI===mI?bI:`${bI} - ${mI}`}const aI=iI(Wg.value.start),sI=Ig.time.getLocalizedTimeRange(Wg.value.start,Wg.value.end);return`${aI} ⋅ ${sI}`}),Tg=vue.computed(()=>typeof Gg.value=="number"&&!Ng.value?{top:`${Gg.value}px`,left:"50%",position:"fixed",transform:"translateX(-50%)"}:{top:`${Gg.value}px`,left:`${Ng.value}px`,position:"fixed"}),Yg=vue.computed(()=>new Date>new Date(Wg.value.end)),Hg=vue.computed(()=>{var nI;return(nI=Wg.value)==null?void 0:nI.isEditable}),Jg=vue.computed(()=>{var nI;return(nI=Wg.value)==null?void 0:nI.isDisabled}),Ug=vue.computed(()=>{var nI;return((nI=Wg.value)==null?void 0:nI.isDeletable)&&!Yg.value&&Wg.value.status!=="CMP"}),Kg=vue.computed(()=>{var nI,aI,sI,II,fI,bI,mI,cI,yI,wI;return(nI=Wg.value)!=null&&nI.colorScheme&&((sI=(aI=Ig.config)==null?void 0:aI.style)!=null&&sI.colorSchemes)&&((fI=(II=Ig.config)==null?void 0:II.style)!=null&&fI.colorSchemes[Wg.value.colorScheme])?(yI=(cI=(mI=(bI=Ig.config)==null?void 0:bI.style)==null?void 0:mI.colorSchemes[Wg.value.colorScheme])==null?void 0:cI.lightColors)==null?void 0:yI.backgroundColor:Vg[((wI=Wg.value)==null?void 0:wI.color)||"blue"]}),$g=()=>{var II,fI;const nI=(II=Ig.eventElement)==null?void 0:II.closest(".calendar-root"),aI=document.querySelector(".event-flyout");if(!Ig.eventElement)return;const sI=Fg.calculateFlyoutPosition((fI=Ig.eventElement)==null?void 0:fI.getBoundingClientRect(),{height:(aI==null?void 0:aI.clientHeight)||300,width:(aI==null?void 0:aI.clientWidth)||0},nI?nI.getBoundingClientRect():null);Gg.value=typeof(sI==null?void 0:sI.top)=="number"?sI.top:null,Ng.value=typeof(sI==null?void 0:sI.left)=="number"?sI.left:null},_g=()=>{var nI;Zg("edit-event",(nI=Wg.value)==null?void 0:nI.id),Qg()},Lg=()=>{var nI;Zg("delete-event",(nI=Wg.value)==null?void 0:nI.id),Qg()},Qg=()=>{Bg.value=!1,setTimeout(()=>Zg("hide"),100)},iI=nI=>{const{year:aI,month:sI,date:II}=Ig.time.getAllVariablesFromDateTimeString(nI);return new Date(aI,sI,II).toLocaleDateString(Ig.time.CALENDAR_LOCALE,{year:"numeric",month:"long",day:"numeric"})},tI=nI=>{var bI;const aI=document.querySelector(".event-flyout");if(!aI||!Bg.value)return;const sI=!aI.contains(nI.target),II=!!nI.target.closest(".is-event"),fI=((bI=Ig.config.eventDialog)==null?void 0:bI.closeOnClickOutside)??!0;Bg.value&&sI&&!II&&fI&&Qg()};return vue.onMounted(()=>{console.log("Config:",Ig.config),document.addEventListener("click",tI)}),vue.onBeforeUnmount(()=>{document.removeEventListener("click",tI)}),vue.watch(()=>Ig.calendarEventProp,nI=>{setTimeout(()=>{Wg.value=nI,Bg.value=!!nI,$g()},10)},{deep:!0}),(nI,aI)=>{var II,fI,bI,mI,cI,yI,wI,hI,uI,SI,pI;const sI=BWIcon;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["event-flyout",{"is-visible":Bg.value,"is-not-editable":!Hg.value}]),style:vue.normalizeStyle(Tg.value)},[!il.config.eventDialog||!il.config.eventDialog.isCustom?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$y,[vue.createElementVNode("div",_hoisted_2$u,[(Hg.value||Ug.value)&&!Jg.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$q,[Hg.value?(vue.openBlock(),vue.createBlock(sI,{key:0,icon:"bx:edit",class:"event-flyout__menu-item is-edit-icon",onClick:_g})):vue.createCommentVNode("",!0),Ug.value?(vue.openBlock(),vue.createBlock(sI,{key:1,icon:"ion:trash-outline",class:"event-flyout__menu-item is-trash-icon",onClick:Lg})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_4$j,[vue.createVNode(sI,{icon:"material-symbols:close-rounded",class:"event-flyout__menu-item is-times-icon",onClick:Qg})])]),Wg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$h,[(II=Wg.value)!=null&&II.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$b,[vue.createElementVNode("div",{class:"event-flyout__color-icon",style:vue.normalizeStyle({backgroundColor:Kg.value})},null,4),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.title),1)])):vue.createCommentVNode("",!0),(fI=Wg.value)!=null&&fI.start?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$a,[vue.createVNode(sI,{icon:"tabler:clock",class:"calendar-week__event-icon"}),vue.createTextVNode(" "+vue.toDisplayString(Xg.value),1)])):vue.createCommentVNode("",!0),(bI=Wg.value)!=null&&bI.location?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$8,[vue.createVNode(sI,{icon:"akar-icons:location"}),vue.createTextVNode(" "+vue.toDisplayString((mI=Wg.value)==null?void 0:mI.location),1)])):vue.createCommentVNode("",!0),(cI=Wg.value)!=null&&cI.participantName?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$7,[vue.createVNode(sI,{icon:"hugeicons:user"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.participantName),1)])):vue.createCommentVNode("",!0),(yI=Wg.value)!=null&&yI.participantPhone?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$5,[vue.createVNode(sI,{icon:"ph:phone-light"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.participantPhone),1)])):vue.createCommentVNode("",!0),(wI=Wg.value)!=null&&wI.referenceId?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$5,[vue.createVNode(sI,{icon:"fluent:key-20-regular"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.referenceId),1)])):vue.createCommentVNode("",!0),((hI=Wg.value)==null?void 0:hI.status)==="INP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$5,[vue.createVNode(sI,{icon:"ri:calendar-schedule-line",class:"calendar-week__event-icon",color:"primary"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).inprogress,il.time.CALENDAR_LOCALE)),1)])):vue.createCommentVNode("",!0),((uI=Wg.value)==null?void 0:uI.status)==="CMP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$5,[vue.createVNode(sI,{icon:"lets-icons:check-fill",class:"calendar-week__event-icon",color:"success"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).completed,il.time.CALENDAR_LOCALE)),1)])):((SI=Wg.value)==null?void 0:SI.status)==="CAN"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$4,[vue.createVNode(sI,{icon:"charm:circle-cross",class:"calendar-week__event-icon",color:"danger"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).cancelled,il.time.CALENDAR_LOCALE)),1)])):((pI=Wg.value)==null?void 0:pI.status)==="EXP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$4,[vue.createVNode(sI,{icon:"ix:alarm-clock-cancelled",class:"calendar-week__event-icon",color:"expired"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).expired,il.time.CALENDAR_LOCALE)),1)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)])):vue.renderSlot(nI.$slots,"default",{key:1,eventDialogData:Wg.value,closeEventDialog:Qg},void 0,!0)],6)}}}),EventFlyout=_export_sfc$1(_sfc_main$E,[["__scopeId","data-v-135d3b1a"]]),_hoisted_1$x={key:0,class:"calendar-month__event"},_hoisted_2$t=["id","draggable"],_hoisted_3$p=["id","draggable"],_hoisted_4$i={key:0,class:"calendar-month__event-time"},_hoisted_5$g={class:"calendar-month__event-title"},eventIdPrefix$1="calendar-month__event-",_sfc_main$D=vue.defineComponent({__name:"Event",props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,default:null,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"],setup(il,{emit:ps}){vue.useCssVars(Ug=>({"7f961976":Ng.value}));const Ig=il,Zg=ps,Bg=vue.ref(EVENT_COLORS),Gg=vue.ref("#fff"),Ng=vue.ref(""),Wg=vue.ref(""),Dg=()=>{var Ug,Kg,$g,_g,Lg,Qg,iI,tI,nI;if((Ug=Ig.calendarEvent)!=null&&Ug.colorScheme&&((Kg=Ig.config.style)!=null&&Kg.colorSchemes)&&Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme]){Gg.value=(_g=($g=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:$g.lightColors)==null?void 0:_g.color,Wg.value=(Qg=(Lg=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:Lg.lightColors)==null?void 0:Qg.border,Ng.value=(tI=(iI=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:iI.lightColors)==null?void 0:tI.backgroundColor;return}if((nI=Ig.calendarEvent)!=null&&nI.color){Ng.value=Bg.value[Ig.calendarEvent.color];return}Ng.value=Bg.value.blue},Vg=()=>{const Ug=document.getElementById(Yg.value);Zg("event-was-clicked",{clickedEvent:Ig.calendarEvent,eventElement:Ug})},Fg=Ug=>{!Ug||!Ug.dataTransfer||(Ug.dataTransfer.effectAllowed="move",Ug.dataTransfer.setData("json",JSON.stringify(Ig.calendarEvent)))},Xg=vue.computed(()=>Array.isArray(Ig.calendarEvent.isCustom)?Ig.calendarEvent.isCustom.includes("month"):Ig.calendarEvent.isCustom||!1),Tg=vue.computed(()=>DATE_TIME_STRING_PATTERN.test(Ig.calendarEvent.start)?Ig.time.getLocalizedTime(Ig.calendarEvent.start):null),Yg=vue.computed(()=>eventIdPrefix$1+Ig.calendarEvent.id+Ig.time.dateStringFrom(Ig.day.dateTimeString)),Hg=vue.computed(()=>new Date>new Date(Ig.calendarEvent.end)),Jg=vue.computed(()=>{const{year:Ug,month:Kg,date:$g}=Ig.time.getAllVariablesFromDateTimeString(Ig.calendarEvent.start),{year:_g,month:Lg,date:Qg}=Ig.time.getAllVariablesFromDateTimeString(Ig.calendarEvent.end),iI=Ug===_g&&Kg===Lg&&$g===Qg,tI=Ig.calendarEvent.disableDnD&&Ig.calendarEvent.disableDnD.includes("month");return Ig.calendarEvent.isDeletable&&iI&&!tI&&!Hg.value?!0:void 0});return vue.watch(()=>{var Ug;return(Ug=Ig.calendarEvent)==null?void 0:Ug.colorScheme},(Ug,Kg)=>{Dg()}),vue.onMounted(()=>{Dg()}),(Ug,Kg)=>il.config.isSmall?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$x)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[Xg.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,id:Yg.value,class:vue.normalizeClass(["is-event",{"is-draggable":Jg.value}]),"data-ref":"custom-event",draggable:Jg.value,onDragstart:Fg,onClick:Vg},[vue.renderSlot(Ug.$slots,"monthEvent",{eventData:il.calendarEvent},void 0,!0)],42,_hoisted_2$t)):(vue.openBlock(),vue.createElementBlock("div",{key:1,id:Yg.value,"data-ref":"default-event",class:vue.normalizeClass(["calendar-month__event is-event",{"is-draggable":Jg.value}]),draggable:Jg.value,onDragstart:Fg,onClick:Vg,style:vue.normalizeStyle({color:Gg.value,width:"100%",backgroundColor:Ng.value,borderTop:"0px",borderRight:"0px",borderBottom:"0px",borderLeft:`4px solid ${Wg.value}`})},[Tg.value&&!il.calendarEvent.originalEvent?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$i,vue.toDisplayString(Tg.value),1)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(il.calendarEvent.title),1)],46,_hoisted_3$p))],64))}}),__unplugin_components_0$6=_export_sfc$1(_sfc_main$D,[["__scopeId","data-v-642eeff9"]]),_hoisted_1$w=["id"],_hoisted_2$s={class:"calendar-month_events"},_hoisted_3$o={key:1,class:"space-reserver"},_sfc_main$C=vue.defineComponent({__name:"DayMonth",props:{config:{type:Object,default:null,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0},isSelected:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-dragged","updated-period","date-was-clicked","day-was-selected"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=vue.ref(!1),Gg=()=>{const{date:Hg,month:Jg,year:Ug}=Ig.time.getAllVariablesFromDateTimeString(Ig.day.dateTimeString),Kg=new Date(Ug,Jg,Hg),$g=Ig.time.getCalendarWeekDateObjects(Kg),_g=$g[0],Lg=$g[6];Zg("updated-period",{start:_g,end:Lg,selectedDate:Kg})},Ng=()=>{Bg.value=!1},Wg=Hg=>{Bg.value=!1,Hg.stopPropagation()},Dg=Hg=>{var Kg,$g;if(Bg.value=!1,Hg.stopPropagation(),!Hg||!Hg.dataTransfer)return;const Jg=JSON.parse(Hg.dataTransfer.getData("json"));Ig.time.dateStringsHaveEqualDates(Jg.start,Ig.time.dateStringFrom(Ig.day.dateTimeString))||(Jg.start=Ig.time.formatDateTime(new Date(Jg.start),(Kg=Ig.config)==null?void 0:Kg.locale),Jg.end=Ig.time.formatDateTime(new Date(Jg.end),($g=Ig.config)==null?void 0:$g.locale),Jg.start=Jg.start.replace(/^\d{4}-\d{2}-\d{2}/,Ig.time.dateStringFrom(Ig.day.dateTimeString)),Jg.end=Jg.end.replace(/^\d{4}-\d{2}-\d{2}/,Ig.time.dateStringFrom(Ig.day.dateTimeString)),Zg("event-was-dragged",Jg))},Vg=Hg=>(Bg.value=!0,Hg.preventDefault(),!1),Fg=()=>{Zg("date-was-clicked",Ig.time.dateStringFrom(Ig.day.dateTimeString)),Ig.config.isSmall&&Zg("day-was-selected",Ig.day)},Xg=vue.computed(()=>Bg.value),Tg=vue.computed(()=>{var Hg;return Ig.day.isTrailingOrLeadingDate===!0&&((Hg=Ig.config.month)==null?void 0:Hg.showTrailingAndLeadingDates)===!1}),Yg=vue.computed(()=>{const{year:Hg,month:Jg,date:Ug}=Ig.time.getAllVariablesFromDateTimeString(Ig.day.dateTimeString);return Ig.time.dateIsToday(new Date(Hg,Jg,Ug))});return(Hg,Jg)=>{const Ug=__unplugin_components_0$6;return Tg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$o)):(vue.openBlock(),vue.createElementBlock("div",{key:0,id:"day-"+il.time.dateStringFrom(il.day.dateTimeString),class:vue.normalizeClass(["calendar-month__weekday",{"is-droppable":Xg.value,"trailing-or-leading":il.day.isTrailingOrLeadingDate,"is-selected":il.isSelected,"is-today":Yg.value}]),onClick:vue.withModifiers(Fg,["self"]),onDragleave:Ng,onDragover:Vg,onDrop:Dg,onDragend:Wg},[vue.renderSlot(Hg.$slots,"dayCell",{dayData:il.day},()=>{var Kg;return[vue.createElementVNode("span",{class:"calendar-month__day-date",onClick:Fg},vue.toDisplayString(il.day.dateTimeString.substring(8,10).startsWith("0")?il.day.dateTimeString.substring(9,10):il.day.dateTimeString.substring(8,10)),1),vue.createElementVNode("div",_hoisted_2$s,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.day.events,($g,_g)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:_g},[_g<3?(vue.openBlock(),vue.createBlock(Ug,{key:$g.id,"calendar-event":$g,config:il.config,time:il.time,day:il.day,onEventWasClicked:Jg[0]||(Jg[0]=Lg=>Zg("event-was-clicked",Lg))},{monthEvent:vue.withCtx(Lg=>[vue.renderSlot(Hg.$slots,"monthEvent",{eventData:Lg.eventData},void 0,!0)]),_:2},1032,["calendar-event","config","time","day"])):vue.createCommentVNode("",!0)],64))),128)),((Kg=il.day.events)==null?void 0:Kg.length)>=4?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"calendar-month__weekday-more",onClick:Gg},vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).moreEvents,il.time.CALENDAR_LOCALE)),1)):vue.createCommentVNode("",!0)])]},!0)],42,_hoisted_1$w))}}}),__unplugin_components_0$5=_export_sfc$1(_sfc_main$C,[["__scopeId","data-v-54f4ecf8"]]);class EventPosition extends Time{positionFullDayEventsInWeek(ps,Ig,Zg){var Dg,Vg;const Bg=(Dg=Zg.map(Fg=>{const{year:Xg,month:Tg,date:Yg}=this.getAllVariablesFromDateTimeString(Fg.start),{year:Hg,month:Jg,date:Ug}=this.getAllVariablesFromDateTimeString(Fg.end);return Fg.timeJS={start:new Date(Xg,Tg,Yg),end:new Date(Hg,Jg,Ug)},Fg}))==null?void 0:Dg.sort((Fg,Xg)=>Fg.start<Xg.start?-1:Fg.start>Xg.start?1:0),Ng=this.getDatesBetweenTwoDates(ps,Ig).map(Fg=>({date:Fg}));for(const Fg of Bg)for(const[Xg,Tg]of Ng.entries()){const Yg=this.getDateStringFromDate(Tg.date);if(this.getDateStringFromDate(Fg.timeJS.start)<=Yg&&this.getDateStringFromDate(Fg.timeJS.end)>=Yg){let Hg=1;for(;typeof Ng[Xg][`level${Hg}`]<"u";)Hg++;let Jg=Math.ceil((Fg.timeJS.end.getTime()-Tg.date.getTime())/this.MS_PER_DAY)+1;const Ug=(Ng==null?void 0:Ng.length)-Xg;Jg>Ug&&(Jg=Ug),Ng[Xg][`level${Hg}`]={...Fg,nDays:Jg};for(let Kg=1;Kg<Jg;Kg++)Ng[Xg+Kg][`level${Hg}`]="blocked";break}}const Wg=[];for(const Fg of Ng)Wg.push((Vg=Object.keys(Fg))==null?void 0:Vg.sort().reduce((Xg,Tg)=>(Xg[Tg]=Fg[Tg],Xg),{}));return Wg}positionFullDayEventsInMonth(ps,Ig){const Zg=[],Bg=ps.flat(),Gg=new Map;Bg.forEach(Wg=>Gg.set(this.dateStringFrom(Wg.dateTimeString),Wg)),Ig=Ig==null?void 0:Ig.sort((Wg,Dg)=>Wg.start<Dg.start?1:Wg.start>Dg.start?-1:0);for(const Wg of Ig){const{year:Dg,month:Vg,date:Fg}=this.getAllVariablesFromDateTimeString(Wg.start),{year:Xg,month:Tg,date:Yg}=this.getAllVariablesFromDateTimeString(Wg.end),Hg=this.getDatesBetweenTwoDates(new Date(Dg,Vg,Fg),new Date(Xg,Tg,Yg));for(const Jg of Hg){const Ug=this.getDateStringFromDate(Jg),Kg=Gg.get(Ug);Kg&&Gg.set(Ug,{...Kg,events:[Wg,...Kg.events]})}}let Ng=0;return Gg.forEach(Wg=>{var Dg,Vg;Zg!=null&&Zg.length?Zg[Ng]&&((Dg=Zg[Ng])==null?void 0:Dg.length)<7?Zg[Ng].push(Wg):Zg[Ng]&&((Vg=Zg[Ng])==null?void 0:Vg.length)===7&&(Zg.push([Wg]),Ng++):Zg.push([Wg])}),Zg}}/*!
404
+ `),DI=!Zg.scrollNavigation;DI&&mI().forEach(yI);const PI=Hg.value.style.zoom;Hg.value.style.zoom="";const _I=Hg.value.outerHTML;Hg.value.style.zoom=PI,DI&&hI();const QI=document.createElement("iframe");QI.setAttribute("aria-hidden","true"),QI.style.position="fixed",QI.style.right="0",QI.style.bottom="0",QI.style.width="0",QI.style.height="0",QI.style.border="0",XI=QI,document.body.appendChild(QI);let iA=!1;const AA=()=>{iA||(iA=!0,$I(),Bg("after-print"))};QI.addEventListener("load",async()=>{var wA;const dA=QI.contentDocument,fA=QI.contentWindow;if(!dA||!fA){AA();return}fA.addEventListener("afterprint",AA,{once:!0});try{"fonts"in dA&&await((wA=dA.fonts)==null?void 0:wA.ready)}catch{}await new Promise(kA=>setTimeout(kA,250)),fA.focus(),fA.print(),MI=window.setTimeout(AA,6e4)},{once:!0}),QI.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${Zg.documentTitle||document.title}</title>`+HI+`<style>html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;}.v-pd-toolbar, .v-pd-overlay, .v-pd-error, .v-pd-source, .v-pd-thumbs { display: none !important;}.v-pd-target, .v-pd-target .pagedjs_pages { margin: 0 !important; padding: 0 !important; overflow: visible !important; zoom: 1 !important;}.v-pd-target .pagedjs_page { margin: 0 !important; box-shadow: none !important;}</style></head><body>${_I}</body></html>`},jI=async()=>{var QI;if(!Hg.value)return;await KI();const HI=mI();if(!HI.length)return;Kg.value=!0,Bg("before-save");const DI=!Zg.scrollNavigation;DI&&HI.forEach(yI);const PI=Hg.value.style.zoom;Hg.value.style.zoom="";let _I=(Zg.documentTitle||document.title||"document").replace(/\.pdf$/i,"");try{try{await((QI=document.fonts)==null?void 0:QI.ready)}catch{}const[iA,AA]=await Promise.all([Promise.resolve().then(()=>html2canvas_esm),Promise.resolve().then(()=>jspdf_es_min)]),dA=iA.default||iA,fA=AA.jsPDF||AA.default,[wA,kA]=fI[Zg.pageSize],bA=Zg.pageLayout==="landscape"?"landscape":"portrait",mA=bA==="landscape"?kA:wA,sA=bA==="landscape"?wA:kA,oA=new fA({orientation:bA,unit:"mm",format:[mA,sA],compress:!0});for(let hA=0;hA<HI.length;hA++){const RA=(await dA(HI[hA],{scale:2,useCORS:!0,backgroundColor:"#ffffff",logging:!1})).toDataURL("image/jpeg",.95);hA>0&&oA.addPage([mA,sA],bA),oA.addImage(RA,"JPEG",0,0,mA,sA,void 0,"FAST")}oA.save(`${_I}.pdf`),Bg("after-save",`${_I}.pdf`)}catch(iA){$g.value=iA instanceof Error?iA.message:"Failed to export PDF",Bg("save-error",iA)}finally{Hg.value&&(Hg.value.style.zoom=PI),DI&&hI(),Kg.value=!1}},qI=vue.computed(()=>_g.value?`${Lg.value} / ${_g.value}`:"—");return vue.onMounted(async()=>{window.addEventListener("afterprint",JI),await vue.nextTick(),CI(),await BI()}),vue.onBeforeUnmount(()=>{window.removeEventListener("afterprint",JI),$I(),aI&&(aI.disconnect(),aI=null),sI!==null&&(window.clearTimeout(sI),sI=null),gI()}),vue.watch(()=>[Zg.pageSize,Zg.pageLayout,Zg.margin,Zg.extraCss,Zg.contentKey,Dg.value,Vg.value,Fg.value,Xg.value,Tg.value],async()=>{await vue.nextTick(),await BI()}),ps({paginate:BI,print:UI,saveAsPdf:jI,goToPage:vI,goPrevPage:VI,goNextPage:EI,zoomIn:ZI,zoomOut:GI,resetZoom:YI,setZoom:LI}),(HI,DI)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[il.showToolbar?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$F,[vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Lg.value<=1||!_g.value,onClick:VI,"aria-label":"Previous page",title:"Previous page"}," ‹ ",8,_hoisted_3$z),vue.createElementVNode("span",_hoisted_4$r,"Page: "+vue.toDisplayString(qI.value),1),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Lg.value>=_g.value||!_g.value,onClick:EI,"aria-label":"Next page",title:"Next page"}," › ",8,_hoisted_5$m),il.showPageSize?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_6$f,vue.createElementVNode("label",_hoisted_7$e,[_hoisted_8$c,vue.createElementVNode("select",{class:"v-pd-tb-select",value:il.pageSize,disabled:Ug.value||Kg.value,"aria-label":"Page size",onChange:Gg},_hoisted_13$8,40,_hoisted_9$a)])],64)):vue.createCommentVNode("",!0),il.showPageLayout?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[il.showPageSize?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",_hoisted_14$6)),vue.createElementVNode("label",_hoisted_15$6,[_hoisted_16$5,vue.createElementVNode("select",{class:"v-pd-tb-select",value:il.pageLayout,disabled:Ug.value||Kg.value,"aria-label":"Page layout",onChange:Ng},_hoisted_20$3,40,_hoisted_17$4)])],64)):vue.createCommentVNode("",!0),il.showZoom?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[_hoisted_21$2,vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Qg.value<=il.minZoom,onClick:GI,"aria-label":"Zoom out",title:"Zoom out"}," − ",8,_hoisted_22$2),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-zoom",onClick:YI,"aria-label":"Reset zoom",title:`Reset zoom (currently ${xI.value})`},vue.toDisplayString(xI.value),9,_hoisted_23$2),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:Qg.value>=il.maxZoom,onClick:ZI,"aria-label":"Zoom in",title:"Zoom in"}," + ",8,_hoisted_24$2)],64)):vue.createCommentVNode("",!0),_hoisted_25$2,il.showSaveAsPdf?(vue.openBlock(),vue.createElementBlock("button",{key:3,type:"button",class:"v-pd-tb-btn",disabled:!_g.value||Ug.value||Kg.value,onClick:jI,title:"Save as PDF (downloads directly without opening the print dialog)"},[_hoisted_27$1,vue.createTextVNode(" Save as PDF ")],8,_hoisted_26$2)):vue.createCommentVNode("",!0),vue.createElementVNode("button",{type:"button",class:"v-pd-tb-btn v-pd-tb-icon",disabled:!_g.value||Ug.value||Kg.value,onClick:UI,"aria-label":"Print",title:"Print"},_hoisted_30$1,8,_hoisted_28$1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{ref_key:"sourceRef",ref:Yg,class:"v-pd-source","aria-hidden":"true"},[Fg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_31$1,[vue.renderSlot(HI.$slots,"cover-header")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createElementVNode("div",_hoisted_32$1,[vue.renderSlot(HI.$slots,"cover-header-left")]),vue.createElementVNode("div",_hoisted_33$1,[vue.renderSlot(HI.$slots,"cover-header-right")])],64)),Xg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_34$1,[vue.renderSlot(HI.$slots,"cover-footer")])):Tg.value?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:3},[vue.createElementVNode("div",_hoisted_35$1,[vue.renderSlot(HI.$slots,"cover-footer-left")]),vue.createElementVNode("div",_hoisted_36$1,[vue.renderSlot(HI.$slots,"cover-footer-center")]),vue.createElementVNode("div",_hoisted_37$1,[vue.renderSlot(HI.$slots,"cover-footer-right")])],64)):vue.createCommentVNode("",!0),Dg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_38$1,[vue.renderSlot(HI.$slots,"header")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:5},[vue.createElementVNode("div",_hoisted_39$1,[vue.renderSlot(HI.$slots,"header-left")]),vue.createElementVNode("div",_hoisted_40$1,[vue.renderSlot(HI.$slots,"header-right")])],64)),Vg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_41$1,[vue.renderSlot(HI.$slots,"footer")])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:7},[vue.createElementVNode("div",_hoisted_42$1,[vue.renderSlot(HI.$slots,"footer-left")]),vue.createElementVNode("div",_hoisted_43$1,[vue.renderSlot(HI.$slots,"footer-center")]),vue.createElementVNode("div",_hoisted_44$1,[vue.renderSlot(HI.$slots,"footer-right")])],64)),vue.renderSlot(HI.$slots,"default")],512),vue.createElementVNode("div",{class:vue.normalizeClass(["v-pd-content",{"v-pd-content--with-thumbs":il.showThumbnails}])},[il.showThumbnails&&_g.value>0?(vue.openBlock(),vue.createElementBlock("aside",{key:0,ref_key:"thumbsRef",ref:Jg,class:"v-pd-thumbs","aria-label":"Page thumbnails"},null,512)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_45$1,[vue.createElementVNode("div",{ref_key:"targetRef",ref:Hg,class:"v-pd-target",style:vue.normalizeStyle({zoom:Qg.value})},null,4)])],2),il.showLoadingState&&(Ug.value||Kg.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_46$1,vue.toDisplayString(Kg.value?"Saving PDF…":"Rendering…"),1)):vue.createCommentVNode("",!0),$g.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_47$1,vue.toDisplayString($g.value),1)):vue.createCommentVNode("",!0)]))}}),_withScopeId$2=il=>(vue.pushScopeId("data-v-dc17e8cc"),il=il(),vue.popScopeId(),il),_hoisted_1$J={key:0,class:"bw-cc__header"},_hoisted_2$E={key:0,class:"bw-cc__title"},_hoisted_3$y={key:0,class:"bw-cc__pane-header"},_hoisted_4$q={class:"bw-cc__pane-content"},_hoisted_5$l={key:2,class:"bw-cc__empty"},_hoisted_6$e={class:"bw-cc__empty-default"},_hoisted_7$d={key:0},_hoisted_8$b={key:1},_hoisted_9$9={key:1,class:"bw-cc__pane-footer"},_hoisted_10$7=_withScopeId$2(()=>vue.createElementVNode("span",{class:"bw-cc__divider-grip"},null,-1)),_hoisted_11$7=[_hoisted_10$7],_hoisted_12$7={class:"bw-cc__edit-state"},_hoisted_13$7={class:"bw-cc__edit-actions"},_hoisted_14$5={key:1,class:"bw-cc__pane-header"},_hoisted_15$5={class:"bw-cc__pane-content bw-cc__pane-content--scroll has-slimscroll"},_hoisted_16$4={key:2,class:"bw-cc__pane-footer"},_sfc_main$P=vue.defineComponent({__name:"V-ContentController",props:{source:{default:null},sourceType:{default:"auto"},splitRatio:{default:.5},isResizable:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1},orientation:{default:"auto"},landscapeThreshold:{default:1.2},minLeftWidth:{default:280},minRightWidth:{default:220},title:{default:void 0},isDisplayHeader:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!0},isEditable:{type:Boolean,default:!0},isShowEditButtons:{type:Boolean,default:!0},isEnablePrint:{type:Boolean,default:!0},isEnableDownload:{type:Boolean,default:!0},isEnableOpenNew:{type:Boolean,default:!1},isEnableInfo:{type:Boolean,default:!1},isEnableRotate:{type:Boolean,default:!0},isEnableFullScreen:{type:Boolean,default:!0},isDisplayFooter:{type:Boolean,default:!0},startPage:{default:1},isEnableCrop:{type:Boolean,default:!1},isEnableResize:{type:Boolean,default:!1},isEnableUndo:{type:Boolean,default:!0},isEnableReset:{type:Boolean,default:!0},isEnableFilters:{type:Boolean,default:!1},isEnableAdjust:{type:Boolean,default:!1},isEnableKeyboard:{type:Boolean,default:!0}},emits:["pdf-loaded","page-change","image-loaded","source-type-detected","error","split-changed","orientation-changed","update:isReadonly","edit-start","edit-save","edit-cancel","image-edited"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=/\.(png|jpe?g|gif|webp|bmp|svg|tiff?)(\?.*)?$/i,Gg=/\.pdf(\?.*)?$/i,Ng=vue.computed(()=>{if(Ig.sourceType==="pdf")return"pdf";if(Ig.sourceType==="image")return"image";const fI=Ig.source;return fI?fI instanceof File?fI.type==="application/pdf"?"pdf":fI.type.startsWith("image/")?"image":"unknown":typeof fI=="string"?Gg.test(fI)?"pdf":Bg.test(fI)?"image":fI.startsWith("data:application/pdf")?"pdf":fI.startsWith("data:image/")?"image":"unknown":"unknown":"unknown"});vue.watch(Ng,fI=>{(fI==="pdf"||fI==="image")&&Zg("source-type-detected",fI),fI==="unknown"&&Ig.source&&Zg("error",new Error("V-ContentController: unsupported source type."))},{immediate:!0});const Wg=vue.ref({w:0,h:0}),Dg=fI=>{Wg.value={w:fI.width,h:fI.height},Zg("image-loaded",{width:fI.width,height:fI.height,filename:fI.filename})},Vg=fI=>Zg("error",fI),Fg=fI=>Zg("image-edited",fI),Xg=vue.computed(()=>Ig.orientation==="horizontal"?"horizontal":Ig.orientation==="vertical"||Ig.isStacked||Ng.value==="image"&&Wg.value.w&&Wg.value.h&&Wg.value.w/Wg.value.h>Ig.landscapeThreshold?"vertical":"horizontal");vue.watch(Xg,fI=>Zg("orientation-changed",fI),{immediate:!0});const Tg=vue.ref(Ig.isReadonly!==!1);vue.watch(()=>Ig.isReadonly,fI=>{fI!==void 0&&fI!==Tg.value&&(Tg.value=fI)});const Yg=fI=>{Tg.value!==fI&&(Tg.value=fI,Zg("update:isReadonly",fI))},Hg=()=>{Ig.isEditable&&(Yg(!1),Zg("edit-start"))},Jg=()=>{Yg(!0),Zg("edit-save")},Ug=()=>{Yg(!0),Zg("edit-cancel")},Kg=vue.ref(Ig.splitRatio);vue.watch(()=>Ig.splitRatio,fI=>{Kg.value=fI});const $g=vue.ref(null),_g=vue.ref(!1),Lg=fI=>{Ig.isResizable&&(_g.value=!0,fI.preventDefault(),document.addEventListener("mousemove",Qg),document.addEventListener("mouseup",iI),document.body.style.userSelect="none",document.body.style.cursor=Xg.value==="vertical"?"row-resize":"col-resize")},Qg=fI=>{if(!_g.value||!$g.value)return;const bI=$g.value.getBoundingClientRect(),mI=Xg.value==="vertical",cI=mI?fI.clientY-bI.top:fI.clientX-bI.left,yI=mI?bI.height:bI.width;if(yI<=0)return;let wI=cI/yI;const hI=Ig.minLeftWidth/yI,uI=Ig.minRightWidth/yI;wI=Math.max(hI,Math.min(1-uI,wI)),Kg.value=wI,Zg("split-changed",wI)},iI=()=>{_g.value=!1,document.removeEventListener("mousemove",Qg),document.removeEventListener("mouseup",iI),document.body.style.userSelect="",document.body.style.cursor=""};vue.onUnmounted(iI);const tI=fI=>Zg("pdf-loaded",fI),nI=fI=>Zg("page-change",fI),aI=fI=>Zg("error",fI),sI=vue.computed(()=>Xg.value==="vertical"?{width:"100%",height:`${Kg.value*100}%`}:{width:`${Kg.value*100}%`,height:"100%"}),II=vue.computed(()=>Xg.value==="vertical"?{width:"100%",height:`${(1-Kg.value)*100}%`}:{width:`${(1-Kg.value)*100}%`,height:"100%"});return(fI,bI)=>{const mI=BWPdfViewer,cI=BWImageViewer,yI=BWIcon,wI=BWIconWrap,hI=vue.resolveDirective("tooltip");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["bw-cc",[`is-${Xg.value}`,{"is-readonly":Tg.value}]])},[fI.isDisplayHeader||fI.title||fI.$slots.header?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[fI.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$E,vue.toDisplayString(fI.title),1)):vue.createCommentVNode("",!0),vue.renderSlot(fI.$slots,"header",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"bw-cc__body",ref_key:"bodyEl",ref:$g},[vue.createElementVNode("div",{class:"bw-cc__left",style:vue.normalizeStyle(sI.value)},[fI.$slots["left-header"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$y,[vue.renderSlot(fI.$slots,"left-header",{},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$q,[Ng.value==="pdf"&&fI.source?(vue.openBlock(),vue.createBlock(mI,{key:0,"pdf-url":fI.source,"start-page":fI.startPage,"is-enable-print":fI.isEnablePrint,"is-enable-download":fI.isEnableDownload,"is-enable-open-new":fI.isEnableOpenNew,"is-enable-info":fI.isEnableInfo,"is-enable-rotate":fI.isEnableRotate,"is-enable-full-screen":fI.isEnableFullScreen,"is-display-footer":fI.isDisplayFooter,onPdfLoaded:tI,onPageChange:nI,onError:aI},null,8,["pdf-url","start-page","is-enable-print","is-enable-download","is-enable-open-new","is-enable-info","is-enable-rotate","is-enable-full-screen","is-display-footer"])):Ng.value==="image"&&fI.source?(vue.openBlock(),vue.createBlock(cI,{key:1,"image-url":fI.source,"is-enable-print":fI.isEnablePrint,"is-enable-download":fI.isEnableDownload,"is-enable-open-new":fI.isEnableOpenNew,"is-enable-info":fI.isEnableInfo,"is-enable-rotate":fI.isEnableRotate,"is-enable-full-screen":fI.isEnableFullScreen,"is-enable-crop":fI.isEnableCrop,"is-enable-resize":fI.isEnableResize,"is-enable-undo":fI.isEnableUndo,"is-enable-reset":fI.isEnableReset,"is-enable-filters":fI.isEnableFilters,"is-enable-adjust":fI.isEnableAdjust,"is-enable-keyboard":fI.isEnableKeyboard,"is-display-footer":fI.isDisplayFooter,onImageLoaded:Dg,onError:Vg,onImageEdited:Fg},null,8,["image-url","is-enable-print","is-enable-download","is-enable-open-new","is-enable-info","is-enable-rotate","is-enable-full-screen","is-enable-crop","is-enable-resize","is-enable-undo","is-enable-reset","is-enable-filters","is-enable-adjust","is-enable-keyboard","is-display-footer"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$l,[vue.renderSlot(fI.$slots,"empty",{},()=>[vue.createElementVNode("div",_hoisted_6$e,[vue.createVNode(yI,{icon:"fluent:document-question-mark-24-regular",size:"big",color:"muted"}),fI.source?(vue.openBlock(),vue.createElementBlock("p",_hoisted_8$b,"Unsupported source type — provide a PDF or an image.")):(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$d,"No document loaded."))])],!0)]))]),fI.$slots["left-footer"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$9,[vue.renderSlot(fI.$slots,"left-footer",{},void 0,!0)])):vue.createCommentVNode("",!0)],4),fI.isResizable?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["bw-cc__divider",{"is-dragging":_g.value}]),onMousedown:Lg},_hoisted_11$7,34)),[[hI,"Drag to resize",void 0,{right:!0}]]):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"bw-cc__right",style:vue.normalizeStyle(II.value)},[fI.isEditable&&fI.isShowEditButtons?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["bw-cc__edit-bar",{"is-editing":!Tg.value}])},[vue.createElementVNode("span",_hoisted_12$7,[vue.createVNode(yI,{icon:Tg.value?"fluent:lock-closed-16-regular":"fluent:edit-16-regular",size:"small"},null,8,["icon"]),vue.createElementVNode("span",null,vue.toDisplayString(Tg.value?"Read-only":"Editing"),1)]),vue.createElementVNode("span",_hoisted_13$7,[Tg.value?vue.withDirectives((vue.openBlock(),vue.createBlock(wI,{key:0,icon:"fluent:edit-16-regular",color:"primary",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Hg,onKeydown:[vue.withKeys(vue.withModifiers(Hg,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Hg,["prevent"]),["space"])]},null,8,["onKeydown"])),[[hI,"Edit",void 0,{top:!0}]]):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.withDirectives(vue.createVNode(wI,{icon:"fluent:dismiss-16-regular",color:"danger",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Ug,onKeydown:[vue.withKeys(vue.withModifiers(Ug,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Ug,["prevent"]),["space"])]},null,8,["onKeydown"]),[[hI,"Cancel",void 0,{top:!0}]]),vue.withDirectives(vue.createVNode(wI,{icon:"fluent:save-16-regular",color:"success",class:"bw-cc__edit-btn",role:"button",tabindex:"0",onClick:Jg,onKeydown:[vue.withKeys(vue.withModifiers(Jg,["prevent"]),["enter"]),vue.withKeys(vue.withModifiers(Jg,["prevent"]),["space"])]},null,8,["onKeydown"]),[[hI,"Save",void 0,{top:!0}]])],64))])],2)):vue.createCommentVNode("",!0),fI.$slots["right-header"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$5,[vue.renderSlot(fI.$slots,"right-header",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_15$5,[vue.renderSlot(fI.$slots,"default",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)]),fI.$slots["right-footer"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_16$4,[vue.renderSlot(fI.$slots,"right-footer",{isReadonly:Tg.value,startEdit:Hg,save:Jg,cancel:Ug},void 0,!0)])):vue.createCommentVNode("",!0)],4)],512)],2)}}}),BWContentController=_export_sfc$1(_sfc_main$P,[["__scopeId","data-v-dc17e8cc"]]),_withScopeId$1=il=>(vue.pushScopeId("data-v-05e9533e"),il=il(),vue.popScopeId(),il),_hoisted_1$I={class:"notifications-cont"},_hoisted_2$D={class:"title-cont"},_hoisted_3$x={class:"notification-list-cont"},_hoisted_4$p=["data-icon"],_hoisted_5$k={class:"notification-content"},_hoisted_6$d={class:"notification-desc"},_hoisted_7$c=["onClick"],_hoisted_8$a=_withScopeId$1(()=>vue.createElementVNode("i",{class:"iconify detail-icon","data-icon":"material-symbols:arrow-right-alt"},null,-1)),_sfc_main$O=vue.defineComponent({__name:"V-NotificationList",props:{notificationList:{type:Array,required:!0},title:{type:String,default:"Notifications"},color:{type:String,default:"primary",validator:il=>[void 0,"purple","info","success","warning","danger"].indexOf(il)===-1?(console.warn(`V-Checkbox: invalid "${il}" color. Should be purple, info, success, warning, danger or undefined`),!1):!0}},emits:["goDetail"],setup(il,{emit:ps}){const Ig=il,Zg=Gg=>Gg.icon&&Gg.icon.indexOf(":")!==-1,Bg=ps;return(Gg,Ng)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.createElementVNode("div",_hoisted_2$D,[vue.createElementVNode("h4",{class:vue.normalizeClass(["title",[Ig.color&&`is-${Ig.color}`]])},vue.toDisplayString(il.title),3)]),vue.createElementVNode("div",_hoisted_3$x,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.notificationList,(Wg,Dg)=>(vue.openBlock(),vue.createElementBlock("div",{key:Dg,class:vue.normalizeClass(["notification-cont",[Ig.color&&`is-${Ig.color}`]])},[Zg(Wg)?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"iconify notification-icon","data-icon":Wg.icon},null,8,_hoisted_4$p)):(vue.openBlock(),vue.createElementBlock("i",{key:1,class:vue.normalizeClass([Wg.icon,"notification-icon"])},null,2)),vue.createElementVNode("div",_hoisted_5$k,[vue.createElementVNode("span",_hoisted_6$d,vue.toDisplayString(Wg.content),1),Wg.showActionButton?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"action-button-cont",onClick:Vg=>Bg("goDetail",Wg)},[vue.createElementVNode("span",{class:vue.normalizeClass(["action-button",[Ig.color&&`is-${Ig.color}`]])},vue.toDisplayString(Wg.actionButtonContent),3),_hoisted_8$a],8,_hoisted_7$c)):vue.createCommentVNode("",!0)])],2))),128))])]))}}),BWNotificationList=_export_sfc$1(_sfc_main$O,[["__scopeId","data-v-05e9533e"]]),_hoisted_1$H={class:"row q-gutter-y-xs items-center justify-between"},_hoisted_2$C=["min","max"],_sfc_main$N=vue.defineComponent({__name:"V-NumberPicker",props:{modelValue:{type:Number,required:!0},initial:{type:Number,default:0},label:{type:String,default:""},min:{type:Number,default:-500},max:{type:Number,default:500},vertical:{type:Boolean},step:{type:Number,default:1}},emits:["changed","update:modelValue"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=vue.ref(Ig.modelValue??Ig.initial),Gg=Fg=>{Zg("update:modelValue",Fg.target.value)},Ng=vue.computed(()=>{let Fg="col-";return Ig.vertical?Fg+="12":Fg+="4",Fg+=" editor-option-title",Fg}),Wg=vue.computed(()=>{let Fg="ncontainer col-12";return Ig.vertical?Fg+="12":Fg+=4,Fg}),Dg=()=>{Bg.value<Ig.max&&(Bg.value+=Ig.step,Zg("changed",Bg.value),Zg("update:modelValue",Bg.value))},Vg=()=>{Bg.value>Ig.min&&(Bg.value-=Ig.step,Zg("changed",Bg.value),Zg("update:modelValue",Bg.value))};return vue.onBeforeMount(async()=>{console.log("V-NumberPicker - onBeforeMount:",Ig)}),vue.onMounted(async()=>{console.log("V-NumberPicker - onMounted:",Ig)}),(Fg,Xg)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$H,[vue.createElementVNode("div",{class:vue.normalizeClass(Ng.value)},vue.toDisplayString(il.label),3),vue.createElementVNode("div",{class:vue.normalizeClass(Wg.value)},[vue.createElementVNode("div",null,[vue.createElementVNode("button",{class:"col-4 minus",onClick:Vg},"-"),vue.withDirectives(vue.createElementVNode("input",{class:"col-4",type:"number",min:il.min,max:il.max,"onUpdate:modelValue":Xg[0]||(Xg[0]=Tg=>Bg.value=Tg),onInput:Gg,onChange:Gg},null,40,_hoisted_2$C),[[vue.vModelText,Bg.value,void 0,{number:!0}]]),vue.createElementVNode("button",{class:"col-4 plus",onClick:Dg},"+")])],2)]))}}),BWNumberPicker=_export_sfc$1(_sfc_main$N,[["__scopeId","data-v-a0197bba"]]),_hoisted_1$G={class:"section-placeholder"},_hoisted_2$B={class:"placeholder-content"},_hoisted_3$w={class:"dark-inverted"},_hoisted_4$o={key:0},_sfc_main$M=vue.defineComponent({__name:"V-PlaceholderInvite",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},image:{type:String,default:void 0},badge:{type:String,default:void 0}},setup(il){return(ps,Ig)=>{const Zg=_sfc_main$1y;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$G,[vue.createElementVNode("div",_hoisted_2$B,[vue.createVNode(Zg,{size:"xl",picture:il.image,badge:il.badge},null,8,["picture","badge"]),vue.createElementVNode("h3",_hoisted_3$w,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$o,vue.toDisplayString(il.subtitle),1)):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$F={class:"page-placeholder"},_hoisted_2$A={class:"placeholder-content"},_hoisted_3$v={class:"dark-inverted"},_sfc_main$L=vue.defineComponent({__name:"V-PlaceholderPage",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},cta:{type:String,default:void 0},larger:{type:Boolean,default:!1}},emits:["click"],setup(il,{emit:ps}){const Ig=ps;return(Zg,Bg)=>{const Gg=_sfc_main$2d;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$F,[vue.createElementVNode("div",_hoisted_2$A,[vue.renderSlot(Zg.$slots,"image"),vue.createElementVNode("h3",_hoisted_3$v,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:vue.normalizeClass([il.larger&&"is-larger"])},vue.toDisplayString(il.subtitle),3)):vue.createCommentVNode("",!0),il.cta?(vue.openBlock(),vue.createBlock(Gg,{key:1,color:"primary",elevated:"",onClick:Bg[0]||(Bg[0]=Ng=>Ig("click"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cta),1)]),_:1})):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$E={class:"section-placeholder"},_hoisted_2$z={class:"placeholder-content"},_hoisted_3$u={class:"dark-inverted"},_hoisted_4$n=["innerHTML"],_sfc_main$K=vue.defineComponent({__name:"V-PlaceholderSection",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},cta:{type:String,default:void 0}},emits:["click"],setup(il,{emit:ps}){const Ig=ps;return(Zg,Bg)=>{const Gg=_sfc_main$2d;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$E,[vue.createElementVNode("div",_hoisted_2$z,[vue.renderSlot(Zg.$slots,"image"),vue.createElementVNode("h3",_hoisted_3$u,vue.toDisplayString(il.title),1),il.subtitle?(vue.openBlock(),vue.createElementBlock("p",{key:0,innerHTML:il.subtitle},null,8,_hoisted_4$n)):vue.createCommentVNode("",!0),il.cta?(vue.openBlock(),vue.createBlock(Gg,{key:1,color:"primary",elevated:"",onClick:Bg[0]||(Bg[0]=Ng=>Ig("click"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cta),1)]),_:1})):vue.createCommentVNode("",!0)])])}}}),_hoisted_1$D={key:0,class:"flex-static-icon"},_hoisted_2$y={class:"flex-static-title"},_hoisted_3$t={key:0,class:"flex-static-subtitle"},_hoisted_4$m={key:1,class:"flex-static-infratitle"},_sfc_main$J=vue.defineComponent({__name:"V-StaticField",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},infratitle:{type:String,default:void 0},titleColor:{type:String,default:"#8f8f8f"},titleSize:{type:String,default:"1rem"},subtitleColor:{type:String,default:"#000000"},infratitleColor:{type:String,default:"#7e7a7a"},center:{type:Boolean,default:!1},lighter:{type:Boolean,default:!1},narrow:{type:Boolean,default:!1},mResponsive:{type:Boolean,default:!1},tResponsive:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},icon:{type:String,default:void 0}},setup(il){vue.useCssVars(Ig=>({"61baf6f2":ps.titleSize,"567612dc":ps.titleColor}));const ps=il;return vue.computed(()=>ps.icon&&ps.icon.indexOf(":")!==-1),(Ig,Zg)=>{const Bg=BWIcon,Gg=_sfc_main$2g;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([il.vertical&&"is-vertical",!il.center&&"media-flex",il.center&&"media-flex-center",il.narrow&&"no-margin",il.mResponsive&&"is-responsive-mobile",il.tResponsive&&"is-responsive-tablet-p"])},[vue.renderSlot(Ig.$slots,"avatar",{class:"flex-static-avatar"}),vue.createElementVNode("div",{class:vue.normalizeClass(["flex-static",[il.lighter&&"is-lighter"]])},[vue.createVNode(Gg,null,{content:vue.withCtx(()=>[ps.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[vue.createVNode(Bg,{icon:ps.icon},null,8,["icon"])])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_2$y,vue.toDisplayString(il.title),1)]),_:1}),il.subtitle?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$t,vue.toDisplayString(il.subtitle),1)):vue.createCommentVNode("",!0),il.infratitle?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$m,vue.toDisplayString(il.infratitle),1)):vue.createCommentVNode("",!0),vue.renderSlot(Ig.$slots,"default")],2)],2)}}}),_hoisted_1$C={class:"easy-card-wrapper"},_hoisted_2$x={class:"v-popover-content is-text"},_hoisted_3$s={class:"popover-head"},_hoisted_4$l={class:"dark-inverted"},_hoisted_5$j={class:"helper-text"},_hoisted_6$c={class:"easy-card-content-header"},_hoisted_7$b={class:"header-text"},_hoisted_8$9={class:"header-inner"},_hoisted_9$8={key:0,class:"header-actions"},_hoisted_10$6=["onClick"],_hoisted_11$6={key:0,class:"easy-action-wrapper"},_hoisted_12$6={key:0,class:"easy-card-content-inner has-slimscroll"},_hoisted_13$6=vue.createElementVNode("div",null," Easy Access Card Default Placeholder. Override this content. ",-1),_sfc_main$I=vue.defineComponent({__name:"V-EasyAccessCard",props:{card:{type:Object,required:!0},isOpen:{type:Boolean,required:!0},locale:{type:String,default:"en"}},emits:["toggle"],setup(il,{emit:ps}){const Ig=il,Zg={en:"Click to view",tr:"Görüntülemek için tıklayın",fr:"Cliquez pour voir"},Bg=ps,Gg=()=>{Bg("toggle")},Ng=vue.computed(()=>({width:Ig.isOpen?Ig.card.drawerWidth:0,height:Ig.isOpen?Ig.card.drawerHeight:0}));return(Wg,Dg)=>{var Tg,Yg,Hg,Jg;const Vg=BWIcon,Fg=vue.resolveComponent("tippy"),Xg=BWDropdown;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$C,[!il.isOpen&&!il.card.disabled?(vue.openBlock(),vue.createBlock(Fg,{key:0,placement:"left"},{content:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$x,[vue.createElementVNode("div",_hoisted_3$s,[vue.createElementVNode("h4",_hoisted_4$l,vue.toDisplayString(il.card.tooltip[il.locale]??il.card.tooltip),1)]),vue.createElementVNode("p",_hoisted_5$j,vue.toDisplayString(Zg[il.locale]),1)])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["easy-card-icon-button",{"is-disabled":il.card.disabled,"is-open":il.isOpen}]),onClick:Gg},[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:1,icon:"heroicons:chevron-right",class:"easy-card-image"})):(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon,class:"easy-card-image"},null,8,["icon"]))],2)]),_:1})):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["easy-card-icon-button",{"is-disabled":il.card.disabled,"is-open":il.isOpen}]),onClick:Gg},[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:1,icon:"heroicons:chevron-right",class:"easy-card-image"})):(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon,class:"easy-card-image"},null,8,["icon"]))],2)),vue.createElementVNode("div",{class:vue.normalizeClass(["easy-card-content"]),style:vue.normalizeStyle(Ng.value)},[vue.createElementVNode("div",_hoisted_6$c,[vue.createElementVNode("div",_hoisted_7$b,[vue.renderSlot(Wg.$slots,[`${il.card.key}-header`],{},()=>{var Ug;return[vue.createElementVNode("div",_hoisted_8$9,[il.isOpen?(vue.openBlock(),vue.createBlock(Vg,{key:0,icon:il.card.icon},null,8,["icon"])):vue.createCommentVNode("",!0),vue.createElementVNode("h4",null,vue.toDisplayString(((Ug=il.card)==null?void 0:Ug.header[il.locale])??il.card.header),1)])]})]),(Yg=(Tg=il.card)==null?void 0:Tg.actions)!=null&&Yg.length&&((Jg=(Hg=il.card)==null?void 0:Hg.actions)==null?void 0:Jg.length)>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$8,[vue.createVNode(Xg,{outlined:"",dots:"",right:"",spaced:""},{button:vue.withCtx(({open:Ug})=>[vue.createVNode(Vg,{class:"more-icon",icon:"heroicons:ellipsis-vertical",onClick:Ug},null,8,["onClick"])]),content:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.card.actions,Ug=>(vue.openBlock(),vue.createElementBlock("div",{onClick:Ug==null?void 0:Ug.onClick,class:vue.normalizeClass(["dropdown-item","is-media","action-list-button",(Ug==null?void 0:Ug.disabled)&&"is-disabled"])},[Ug!=null&&Ug.hidden?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$6,[vue.createVNode(Vg,{icon:Ug==null?void 0:Ug.icon},null,8,["icon"]),vue.createElementVNode("div",null,vue.toDisplayString((Ug==null?void 0:Ug.label[il.locale])??Ug.label),1)]))],10,_hoisted_10$6))),256))]),_:1})])):vue.createCommentVNode("",!0)]),il.isOpen?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$6,[vue.renderSlot(Wg.$slots,[`${il.card.key}-content`],{},()=>[_hoisted_13$6])])):vue.createCommentVNode("",!0)],4)])}}}),_hoisted_1$B={key:0,class:"easy-modal-overlay"},_sfc_main$H=vue.defineComponent({__name:"V-EasyAccessCards",props:{cards:{type:Object,required:!0},locale:{type:String,required:!0,default:"en"}},setup(il){const ps=vue.ref(null),Ig=vue.ref(!1),Zg=vue.ref(null);onClickOutside(Zg,()=>{Gg()});const Bg=(Ng,Wg)=>{console.log("toggleCard:",Ng,Wg),ps.value=ps.value===Ng?null:Ng,Ig.value=Wg},Gg=()=>{Ig.value&&ps.value!==null&&(ps.value=null)};return(Ng,Wg)=>{const Dg=_sfc_main$I;return vue.openBlock(),vue.createElementBlock("div",null,[ps.value!==null?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$B)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["easy-access-cards-wrapper",ps.value===null&&"no-opened-card"]),ref_key:"wrapperRef",ref:Zg},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.cards,(Vg,Fg)=>(vue.openBlock(),vue.createElementBlock("div",{key:Fg},[Vg.hidden?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Dg,{key:0,class:vue.normalizeClass(["easy-access-card",ps.value!==null&&ps.value!==Fg&&"hidden"]),card:Vg,index:Fg,"is-open":ps.value===Fg,onToggle:Xg=>Bg(Fg,Vg.outsideToggle),locale:il.locale},{[`${Vg.key}-header`]:vue.withCtx(()=>[vue.renderSlot(Ng.$slots,`${Vg.key}-header`)]),[`${Vg.key}-content`]:vue.withCtx(()=>[vue.renderSlot(Ng.$slots,`${Vg.key}-content`)]),_:2},1032,["class","card","index","is-open","onToggle","locale"]))]))),128))],2)])}}}),_hoisted_1$A={class:"confirmation-modal-overlay"},_hoisted_2$w={class:"confirmation-buttons"},_sfc_main$G=vue.defineComponent({__name:"V-ConfirmationModal",props:{title:{type:Object,required:!0},description:{type:Object,required:!0},confirmActionName:{type:Object,required:!0},cancelActionName:{type:Object,required:!0},locale:{type:String,required:!0}},emits:["confirm","cancel"],setup(il,{emit:ps}){const Ig=ps,Zg=()=>{Ig("confirm")},Bg=()=>{Ig("cancel")};return(Gg,Ng)=>{const Wg=_sfc_main$2d,Dg=_sfc_main$1S;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$A,[vue.createVNode(vue.Transition,{name:"modal-fade",appear:""},{default:vue.withCtx(()=>[vue.createVNode(Dg,{class:"confirmation-modal-content",radius:"rounded",elevated:""},{default:vue.withCtx(()=>[vue.createElementVNode("h3",null,vue.toDisplayString(il.title[il.locale]),1),vue.createElementVNode("p",null,vue.toDisplayString(il.description[il.locale]),1),vue.createElementVNode("div",_hoisted_2$w,[vue.createVNode(Wg,{color:"secondary",onClick:Bg},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.cancelActionName[il.locale]),1)]),_:1}),vue.createVNode(Wg,{color:"primary",onClick:Zg},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(il.confirmActionName[il.locale]),1)]),_:1})])]),_:1})]),_:1})])}}}),_hoisted_1$z={class:"modal-inner-wrapper"},_hoisted_2$v={class:"modal-header"},_hoisted_3$r={class:"modal-title"},_hoisted_4$k={class:"modal-buttons"},_hoisted_5$i={class:"modal-body"},_sfc_main$F=vue.defineComponent({__name:"V-FormModal",props:{title:{type:Object,required:!0},buttons:{type:Array,required:!0,validator:function(il){for(const ps of il)if([void 0,"primary","info","success","warning","danger","white"].indexOf(ps.color)===-1)return console.warn(`V-FormModal: invalid "${il}" color given for a button. Should be primary, secondary, info, success, warning, danger, white or undefined`),!1;return!0}},width:{type:String,default:"auto",validator:function(il){const ps=il==="auto"||/^\d+px$/.test(il);return ps||console.warn(`Invalid prop: width must be 'auto' or in the format '\${number}px', but got '${il}'.`),ps}},height:{type:String,default:"auto",validator:function(il){const ps=il==="auto"||/^\d+px$/.test(il);return ps||console.warn(`Invalid prop: height must be 'auto' or in the format '\${number}px', but got '${il}'.`),ps}},locale:{type:String,required:!0}},setup(il){const ps=il,Ig=vue.ref(null),Zg=(Wg,Dg)=>{Wg.confirmationInfo?Ig.value=Dg:Wg.onClick()},Bg=()=>{Ig.value!==null&&(ps.buttons[Ig.value].onClick(),Ig.value=null)},Gg=()=>{Ig.value=null},Ng=vue.computed(()=>Ig.value!==null?ps.buttons[Ig.value].confirmationInfo:null);return(Wg,Dg)=>{var Tg,Yg,Hg,Jg;const Vg=_sfc_main$2d,Fg=_sfc_main$1S,Xg=_sfc_main$G;return vue.openBlock(),vue.createElementBlock("div",{key:0,class:"v-form-modal-overlay",style:vue.normalizeStyle({"--form-modal-height":il.height,"--form-modal-width":il.width})},[vue.createVNode(vue.Transition,{name:"modal-fade",appear:""},{default:vue.withCtx(()=>[vue.createVNode(Fg,{class:"modal-content",radius:"rounded",elevated:"",onClick:Dg[0]||(Dg[0]=vue.withModifiers(()=>{},["stop"]))},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$z,[vue.createElementVNode("div",_hoisted_2$v,[vue.createElementVNode("div",_hoisted_3$r,[vue.renderSlot(Wg.$slots,"title",{},()=>[vue.createElementVNode("h4",null,vue.toDisplayString(il.title[il.locale]),1)])]),vue.createElementVNode("div",_hoisted_4$k,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.buttons,(Ug,Kg)=>(vue.openBlock(),vue.createBlock(Vg,{key:Kg,color:Ug.color,disabled:Ug.disabled,loading:Ug.loading,onClick:$g=>Zg(Ug,Kg),outlined:Ug.outlined},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ug.label[il.locale]),1)]),_:2},1032,["color","disabled","loading","onClick","outlined"]))),128))])]),vue.createElementVNode("div",_hoisted_5$i,[vue.renderSlot(Wg.$slots,"default")])])]),_:3})]),_:3}),Ig.value!==null?(vue.openBlock(),vue.createBlock(Xg,{key:0,title:((Tg=Ng.value)==null?void 0:Tg.title)??"",description:((Yg=Ng.value)==null?void 0:Yg.description)??"",confirmActionName:((Hg=Ng.value)==null?void 0:Hg.confirmActionName)??"",cancelActionName:((Jg=Ng.value)==null?void 0:Jg.cancelActionName)??"",onConfirm:Bg,onCancel:Gg,locale:il.locale},null,8,["title","description","confirmActionName","cancelActionName","locale"])):vue.createCommentVNode("",!0)],4)}}});var EVENT_TYPE=(il=>(il.SINGLE_DAY_TIMED="SINGLE_DAY_TIMED",il.SINGLE_DAY_FULL_DAY="SINGLE_DAY_FULL_DAY",il.SINGLE_HYBRID_DAY_TIMED="SINGLE_HYBRID_DAY_TIMED",il.MULTI_DAY_TIMED="MULTI_DAY_TIMED",il.MULTI_DAY_FULL_DAY="MULTI_DAY_FULL_DAY",il))(EVENT_TYPE||{});const calendarDomRectForVitest={top:26,right:911,bottom:728,left:8},EVENT_FLYOUT_WIDTH=400;class EventFlyoutPosition{calculateFlyoutPosition(ps,Ig,Zg=null){const Bg=Zg||calendarDomRectForVitest,Gg=ps.top-Bg.top,Ng=Bg.right-ps.right,Wg=Bg.bottom-ps.bottom,Dg=ps.left-Bg.left,Vg=Ig.width+10,Fg=Wg<0?Bg.bottom-Ig.height-10:null,Xg=Gg<0?Bg.top+10:null;return Wg>Ig.height&&Ng>Vg?{top:Xg||Math.round(ps.top),left:Math.round(ps.right)+10}:Gg>Ig.height&&Ng>Vg?{top:Fg||Math.round(ps.bottom)-Ig.height,left:Math.round(ps.right)+10}:Dg>Vg&&Wg>Ig.height?{top:Xg||ps.top,left:Math.round(ps.left-(Ig.width+10))}:Dg>Vg&&Gg>Ig.height?{top:Fg||Math.round(ps.bottom-Ig.height),left:Math.round(ps.left-(Ig.width+10))}:Wg<Ig.height?{top:Bg.bottom-Ig.height,left:null}:{top:ps.top,left:null}}}const EVENT_COLORS={yellow:"rgb(244, 180, 0)",blue:"rgb(38, 132, 255)",green:"rgb(51, 182, 121)",red:"rgb(255, 84, 86)",pink:"rgb(239, 139, 239)",purple:"rgb(157, 114, 245)",turquoise:"rgb(64, 190, 190)",brown:"rgb(169, 99, 30)"},DATE_TIME_STRING_PATTERN=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/,DATE_TIME_STRING_FULL_DAY_PATTERN=/^\d{4}-\d{2}-\d{2}$/;var DAY_TIME_POINT=(il=>(il[il.MIDNIGHT=0]="MIDNIGHT",il[il.ONE_AM=100]="ONE_AM",il[il.TWO_AM=200]="TWO_AM",il[il.THREE_AM=300]="THREE_AM",il[il.FOUR_AM=400]="FOUR_AM",il[il.FIVE_AM=500]="FIVE_AM",il[il.SIX_AM=600]="SIX_AM",il[il.SEVEN_AM=700]="SEVEN_AM",il[il.EIGHT_AM=800]="EIGHT_AM",il[il.NINE_AM=900]="NINE_AM",il[il.TEN_AM=1e3]="TEN_AM",il[il.ELEVEN_AM=1100]="ELEVEN_AM",il[il.TWELVE_PM=1200]="TWELVE_PM",il[il.ONE_PM=1300]="ONE_PM",il[il.TWO_PM=1400]="TWO_PM",il[il.THREE_PM=1500]="THREE_PM",il[il.FOUR_PM=1600]="FOUR_PM",il[il.FIVE_PM=1700]="FIVE_PM",il[il.SIX_PM=1800]="SIX_PM",il[il.SEVEN_PM=1900]="SEVEN_PM",il[il.EIGHT_PM=2e3]="EIGHT_PM",il[il.NINE_PM=2100]="NINE_PM",il[il.TEN_PM=2200]="TEN_PM",il[il.ELEVEN_PM=2300]="ELEVEN_PM",il[il.TWELVE_AM=2400]="TWELVE_AM",il))(DAY_TIME_POINT||{});class EDate extends Date{get fullYear(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}var DAY_MODE=(il=>(il.REGULAR="regular",il.SHORTENED="shortened",il.FLEXIBLE="flexible",il))(DAY_MODE||{}),WEEK_START_DAY=(il=>(il.SUNDAY="sunday",il.MONDAY="monday",il))(WEEK_START_DAY||{});class Time{constructor(ps="monday",Ig=null,Zg={start:0,end:2400}){_0(this,"FIRST_DAY_OF_WEEK");_0(this,"CALENDAR_LOCALE");_0(this,"ALL_HOURS",[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300]);_0(this,"DAY_START");_0(this,"DAY_END");_0(this,"HOURS_PER_DAY",24);_0(this,"MS_PER_DAY");this.FIRST_DAY_OF_WEEK=ps,this.CALENDAR_LOCALE=Ig||Helpers.getBrowserNavigatorLocale(),this.DAY_START=Zg.start,this.DAY_END=Zg.end,this.HOURS_PER_DAY=(()=>{const Bg=Time.getHourFromTimePoints(this.DAY_END),Gg=Time.getHourFromTimePoints(this.DAY_START);return Bg>Gg?Bg-Gg:this.HOURS_PER_DAY-Gg+Bg})(),this.MS_PER_DAY=864e5}get dayMode(){return this.DAY_START===0&&this.DAY_END===2400?DAY_MODE.REGULAR:this.DAY_START>=this.DAY_END?DAY_MODE.FLEXIBLE:DAY_MODE.SHORTENED}getDatesBetweenTwoDates(ps,Ig){for(var Zg=[],Bg=new Date(ps);Bg<=Ig;Bg.setDate(Bg.getDate()+1))Zg.push(new Date(Bg.getFullYear(),Bg.getMonth(),Bg.getDate()));return Zg}getCalendarWeekDateObjects(ps){let Ig;this.FIRST_DAY_OF_WEEK==="sunday"?Ig=ps.getDay():Ig=ps.getDay()===0?6:ps.getDay()-1;const Zg=ps.getDate()-Ig,Bg=new Date(ps.getFullYear(),ps.getMonth(),Zg);return this.getDatesBetweenTwoDates(Bg,new Date(Bg.getFullYear(),Bg.getMonth(),Bg.getDate()+6))}getCalendarMonthSplitInWeeks(ps,Ig){const Zg=[],Bg=new Date(ps,Ig,1),Gg=new Date(Bg.getFullYear(),Bg.getMonth(),1),Ng=this.getCalendarWeekDateObjects(Gg);Zg.push(Ng);let Wg=!0,Dg=Ng[0];const Vg=Bg.getMonth();for(;Wg;){const Fg=new Date(Dg.getFullYear(),Dg.getMonth(),Dg.getDate()+7);Fg.getMonth()===Vg?(Zg.push(this.getCalendarWeekDateObjects(Fg)),Dg=Fg):Wg=!1}return Zg}getCalendarYearMonths(ps){const Ig=[];let Zg=0;for(;Zg<=11;)Ig.push(new Date(ps,Zg,1)),Zg++;return Ig}getHourAndMinutesFromTimePoints(ps){const Ig=ps.toString();let Zg="0",Bg="0";return(Ig==null?void 0:Ig.length)===4?(Zg=Ig[0]+Ig[1],Bg=Ig[2]+Ig[3]):(Ig==null?void 0:Ig.length)===3&&(Zg=Ig[0],Bg=Ig[1]+Ig[2]),{hour:+Zg,minutes:+Bg}}getHourLocaleStringFromHourDigits(ps){const{hour:Ig,minutes:Zg}=this.getHourAndMinutesFromTimePoints(ps),Bg=new Date(2100,0,1,+Ig,+Zg,0).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"});return Bg[0]==="0"?Bg.substring(1):Bg}getLocalizedNameOfWeekday(ps,Ig="short"){return ps.toLocaleDateString(this.CALENDAR_LOCALE,{weekday:Ig})}getLocalizedNameOfMonth(ps,Ig="short"){return ps.toLocaleDateString(this.CALENDAR_LOCALE,{month:Ig})}getLocalizedDateString(ps){return ps.toLocaleDateString(this.CALENDAR_LOCALE)}getDateTimeStringFromDate(ps,Ig){const Zg=ps.getFullYear(),Bg=ps.getMonth()+1,Gg=ps.getDate(),Ng=`${Zg}-${Bg>=10?Bg:"0"+Bg}-${Gg>=10?Gg:"0"+Gg}`;if(!Ig){const Dg=ps.getHours(),Vg=ps.getMinutes();return`${Ng} ${Dg>=10?Dg:"0"+Dg}:${Vg>=10?Vg:"0"+Vg}`}return`${Ng} ${Ig==="start"?"00:00":"23:59"}`}getLocalizedTime(ps){const{year:Ig,month:Zg,date:Bg,hour:Gg,minutes:Ng}=this.getAllVariablesFromDateTimeString(ps);return new Date(Ig,Zg,Bg,Gg,Ng).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"numeric",minute:"numeric"})}getLocalizedHour(ps){return ps.toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"})}getLocalizedTimeRange(ps,Ig){return`${this.getLocalizedTime(ps)} - ${this.getLocalizedTime(Ig)}`}getAllVariablesFromDateTimeString(ps){return{year:+ps.substring(0,4),month:+ps.substring(5,7)-1,date:+ps.substring(8,10),hour:this.hourFrom(ps),minutes:this.minutesFrom(ps)}}dateIsToday(ps){const{fullYear:Ig,month:Zg,date:Bg}=new EDate,{fullYear:Gg,month:Ng,date:Wg}=new EDate(ps);return Ig===Gg&&Zg===Ng&&Bg===Wg}dateIsInWeek(ps,Ig){const{date:Zg,month:Bg,fullYear:Gg}=new EDate(ps);for(const Ng of Ig){const Wg=Zg===Ng.getDate(),Dg=Bg===Ng.getMonth(),Vg=Gg===Ng.getFullYear();if(Wg&&Dg&&Vg)return!0}return!1}formatDateTime(ps,Ig="en-GB"){var Dg,Vg,Fg,Xg,Tg;const Zg={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1},Gg=new Intl.DateTimeFormat(Ig,Zg).formatToParts(ps),Ng=`${(Dg=Gg.find(Yg=>Yg.type==="year"))==null?void 0:Dg.value}-${(Vg=Gg.find(Yg=>Yg.type==="month"))==null?void 0:Vg.value}-${(Fg=Gg.find(Yg=>Yg.type==="day"))==null?void 0:Fg.value}`,Wg=`${(Xg=Gg.find(Yg=>Yg.type==="hour"))==null?void 0:Xg.value}:${(Tg=Gg.find(Yg=>Yg.type==="minute"))==null?void 0:Tg.value}`;return`${Ng} ${Wg}`}getDateStringFromDate(ps){const Ig=ps.getFullYear(),Zg=ps.getMonth()+1,Bg=ps.getDate();return`${Ig}-${Zg>=10?Zg:"0"+Zg}-${Bg>=10?Bg:"0"+Bg}`}addMinutesToDateTimeString(ps,Ig){const{year:Zg,month:Bg,date:Gg,hour:Ng,minutes:Wg}=this.getAllVariablesFromDateTimeString(Ig),Dg=new Date(Zg,Bg,Gg,Ng,Wg),Vg=new Date(Dg.getTime()+ps*6e4);return this.getDateTimeStringFromDate(Vg)}addDaysToDateTimeString(ps,Ig){return this.addMinutesToDateTimeString(ps*1440,Ig)}dateStringsHaveEqualDates(ps,Ig){const{year:Zg,month:Bg,date:Gg}=this.getAllVariablesFromDateTimeString(ps),{year:Ng,month:Wg,date:Dg}=this.getAllVariablesFromDateTimeString(Ig);return Zg===Ng&&Bg===Wg&&Gg===Dg}setDateToEndOfDay(ps){return new Date(ps.getFullYear(),ps.getMonth(),ps.getDate(),23,59,59,999)}turnMinutesIntoPercentageOfHour(ps){const Zg=1.6666666666666667*ps;return Zg<10?"0"+Zg:Zg.toString()}getPercentageOfDayFromDateTimeString(ps,Ig,Zg){const Gg=this.hourFrom(ps)*100,Ng=+ps.substring(14,16),Wg=+this.turnMinutesIntoPercentageOfHour(+Ng);if(Zg>Ig){const Tg=Zg-Ig;return(Gg+Wg-Ig)/Tg*100}const Dg=DAY_TIME_POINT.TWELVE_AM-Ig,Vg=Dg+Zg,Fg=Gg+Wg;return(Fg>=Ig?Fg-Ig:Dg+Fg)/Vg*100}getTimeFromClick(ps,Ig){if(Ig<=0)throw new Error("weekHeight cannot be a negative number");if(ps<0)throw new Error("clickOffsetY cannot be a negative number");const Zg=this.DAY_START/100,Bg=Ig/this.HOURS_PER_DAY,Gg=Math.floor(ps%Bg/(Bg/60));if(this.DAY_END<=this.DAY_START){const Dg=this.DAY_END/100*Bg,Vg=Ig-Dg;if(ps>Vg){const Fg=Math.floor((ps-Vg)/Bg);return`${this.doubleDigit(Fg)}:${this.doubleDigit(Gg)}`}}const Ng=Math.floor(ps/Bg)+Zg;return`${this.doubleDigit(Ng)}:${this.doubleDigit(Gg)}`}setSegmentOfDateTimeString(ps,Ig){if(Ig.hour<0||Ig.hour>23)throw new Error("Invalid hour");const Zg=this.doubleDigit(Ig.hour);return ps=ps.replace(/\d{2}:/,Zg+":"),ps}isTrailingOrLeadingDate(ps,Ig){const{month:Zg}=new EDate(ps);return Ig!==Zg}static getTimePointsFromHour(ps){if(ps<0||ps>24||ps%1!==0)throw new Error("Invalid day boundary");return ps===0?ps:ps*100}static getHourFromTimePoints(ps){if(ps<0||ps>2400||ps%100!==0)throw new Error("Invalid time points");return ps===0?ps:ps/100}getTimelineHours(){return this.dayMode!==DAY_MODE.FLEXIBLE?this.ALL_HOURS.filter(ps=>ps>=this.DAY_START&&ps<this.DAY_END):[...this.ALL_HOURS.filter(ps=>ps>=this.DAY_START),...this.ALL_HOURS.filter(ps=>ps<this.DAY_END)]}dateStringFrom(ps){return ps.substring(0,10)}timeStringFrom(ps){return ps.substring(11,16)}hourFrom(ps){return+ps.substring(11,13)}minutesFrom(ps){return+ps.substring(14,16)}areDaysConsecutive(ps,Ig){return this.dateStringFrom(this.addDaysToDateTimeString(1,ps))===this.dateStringFrom(Ig)}setHourInDateTimeString(ps,Ig){const Zg=this.doubleDigit(Ig);return ps=ps.replace(/\d{2}:/,Zg+":"),ps}setMinutesInDateTimeString(ps,Ig){const Zg=this.doubleDigit(Ig);return ps=ps.replace(/:\d{2}/,":"+Zg),ps}getDateTimeStringDayBoundariesFrom(ps){if(this.DAY_END<=this.DAY_START){const Bg=this.addDaysToDateTimeString(1,ps),Gg=this.setHourInDateTimeString(Bg,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour);return{start:this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour),end:Gg}}const Ig=this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour);let Zg;return this.DAY_END===DAY_TIME_POINT.TWELVE_AM?(Zg=this.setHourInDateTimeString(ps,23),Zg=this.setMinutesInDateTimeString(Zg,59)):Zg=this.setHourInDateTimeString(ps,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour),{start:Ig,end:Zg}}doubleDigit(ps){if(ps<0||ps>60)throw new Error("Invalid number. This is not a valid hour or minute");return ps<10?"0"+ps:String(ps)}}class Helpers{static getBrowserNavigatorLocale(){var ps;return typeof navigator!="object"?"en-US":navigator.languages&&((ps=navigator.languages)!=null&&ps.length)?navigator.languages[0]:navigator.language}static hasSlotContent(ps){return ps?ps().some(Ig=>{var Zg;return Ig.type===vue.Comment||Array.isArray(Ig.children)&&!((Zg=Ig.children)!=null&&Zg.length)?!1:Ig.type!==vue.Text||typeof Ig.children=="string"&&Ig.children.trim()!==""}):!1}static getEventType(ps,Ig){const Zg=DATE_TIME_STRING_PATTERN.test(ps.start)&&DATE_TIME_STRING_PATTERN.test(ps.end),Bg=DATE_TIME_STRING_FULL_DAY_PATTERN.test(ps.start)&&DATE_TIME_STRING_FULL_DAY_PATTERN.test(ps.end);if(Zg)return this.getTimedEventType(ps,Ig);if(Bg)return this.getFullDayEventType(ps,Ig);throw new Error("Event has invalid type")}static getTimedEventType(ps,Ig){if(Ig.dateStringsHaveEqualDates(ps.start,ps.end))return EVENT_TYPE.SINGLE_DAY_TIMED;if(Ig.dayMode===DAY_MODE.FLEXIBLE){const Zg=Ig.setHourInDateTimeString(Ig.addDaysToDateTimeString(1,Ig.dateStringFrom(ps.start)),Time.getHourFromTimePoints(Ig.DAY_END));if(ps.end<Zg)return EVENT_TYPE.SINGLE_HYBRID_DAY_TIMED}return EVENT_TYPE.MULTI_DAY_TIMED}static getFullDayEventType(ps,Ig){return Ig.dateStringsHaveEqualDates(ps.start,ps.end)?EVENT_TYPE.SINGLE_DAY_FULL_DAY:EVENT_TYPE.MULTI_DAY_FULL_DAY}static isUIEventTouchEvent(ps){return"touches"in ps&&typeof ps.touches=="object"}}const languageKeys={week:{"it-IT":"Settimana","en-US":"Week","de-DE":"Woche","sv-SE":"Vecka","zh-CN":"周","pt-BR":"Semana","fr-FR":"Semaine","th-TH":"สัปดาห์","nl-NL":"Week","ru-RU":"Неделя","ar-YE":"إسبوع","es-ES":"Semana","ja-JP":"週","pl-PL":"Tydzień","hu-HU":"Hét"},month:{"it-IT":"Mese","en-US":"Month","de-DE":"Monat","sv-SE":"Månad","zh-CN":"月","pt-BR":"Mês","fr-FR":"Mois","th-TH":"เดือน","nl-NL":"Maand","ru-RU":"Месяц","ar-YE":"شهر","es-ES":"Mes","ja-JP":"月","pl-PL":"Miesiąc","hu-HU":"Hónap"},day:{"it-IT":"Giorno","en-US":"Day","de-DE":"Tag","sv-SE":"Dag","zh-CN":"日","pt-BR":"Dia","fr-FR":"Jour","th-TH":"วัน","nl-NL":"Dag","ru-RU":"День","ar-YE":"يوم","es-ES":"Día","ja-JP":"日","pl-PL":"Dzień","hu-HU":"Nap"},list:{"it-IT":"Elenco","en-US":"List","de-DE":"Liste","sv-SE":"Lista","zh-CN":"列表","pt-BR":"Lista","fr-FR":"Liste","th-TH":"รายการ","nl-NL":"Lijst","ru-RU":"Список","ar-YE":"قائمة","es-ES":"Lista","ja-JP":"リスト","pl-PL":"Lista","hu-HU":"Lista"},today:{"it-IT":"Oggi","en-US":"Today","de-DE":"Heute","sv-SE":"Dag","zh-CN":"今天","pt-BR":"Dia","fr-FR":"Aujourd'hui","th-TH":"วัน","nl-NL":"Vandaag","ru-RU":"Сегодня","ar-YE":"يوم","es-ES":"Día","ja-JP":"日","pl-PL":"Dzień","hu-HU":"Nap"},moreEvents:{"it-IT":"+ altri eventi","en-US":"+ more events","de-DE":"+ weitere Ereignisse","sv-SE":"+ fler event","zh-CN":"列出其他结果","pt-BR":"+ mais eventos","fr-FR":"+ d'autres événements","th-TH":"+ เหตุการณ์เพิ่มเติม","nl-NL":"meer evenementen","ru-RU":"+ ещё события","ar-YE":"+ المزيد من الأحداث","es-ES":"más eventos","ja-JP":"その他イベント","pl-PL":"+ więcej wydarzeń","hu-HU":"További események"},noEvent:{"it-IT":"Nessun evento","en-US":"No events","de-DE":"Keine Ereignisse","sv-SE":"Inga event","zh-CN":"沒有活動","pt-BR":"Sem eventos","fr-FR":"Aucun Evènement","th-TH":"ไม่มีกิจกรรม","nl-NL":"Geen evenementen","ru-RU":"Нет событий","ar-YE":"لا أحداث","es-ES":"No hay eventos","ja-JP":"イベントなし","pl-PL":"Brak wydarzeń","hu-HU":"Nincs esemény"},completed:{"it-IT":"Completato","en-US":"Completed","de-DE":"Abgeschlossen","zh-CN":"已完成","fr-FR":"Complété","nl-NL":"Voltooid","ru-RU":"Нет событий","es-ES":"No hay eventos"},cancelled:{"it-IT":"Annullato","en-US":"Cancelled","de-DE":"Abgebrochen","zh-CN":"已取消","fr-FR":"Annulé","nl-NL":"Geannuleerd","ru-RU":"Отменено","es-ES":"Cancelado"},inprogress:{"it-IT":"In programma","en-US":"Scheduled","de-DE":"Geplant","zh-CN":"进行中","fr-FR":"Prévu","nl-NL":"Gepland","ru-RU":"Запланировано","es-ES":"Programado"},expired:{"it-IT":"Scaduto","en-US":"Expired","de-DE":"Abgelaufen","zh-CN":"已过期","fr-FR":"Expiré","nl-NL":"Verlopen","ru-RU":"Просроченный","es-ES":"Caducado"},alldayapp:{"it-IT":"È un appuntamento per tutto il giorno?","en-US":"Is All Day Appointment ?","de-DE":"Ist dies ein ganztägiger Termin?","zh-CN":"这是一个全天日程吗?","fr-FR":"S’agit-il d’un rendez-vous pour toute la journée ?","nl-NL":"Is dit een afspraak voor de hele dag?","ru-RU":"Это встреча на весь день?","es-ES":"¿Es una cita de todo el día?"},title:{"it-IT":"Titolo","en-US":"Title","de-DE":"Titel","zh-CN":"标题","fr-FR":"Titre","nl-NL":"Titel","ru-RU":"Заголовок","es-ES":"Título"},startdate:{"it-IT":"Data di inizio","en-US":"Start Date","de-DE":"Startdatum","zh-CN":"开始日期","fr-FR":"Date de début","nl-NL":"Startdatum","ru-RU":"Дата начала","es-ES":"Fecha de inicio"},enddate:{"it-IT":"Data di fine","en-US":"End Date","de-DE":"Enddatum","zh-CN":"结束日期","fr-FR":"Date de fin","nl-NL":"Einddatum","ru-RU":"Дата окончания","es-ES":"Fecha de fin"},scheduletitle:{"it-IT":"Programma un nuovo appuntamento","en-US":"Schedule New Appointment","de-DE":"Neuen Termin vereinbaren","zh-CN":"安排新预约","fr-FR":"Planifier un nouveau rendez-vous","nl-NL":"Nieuwe afspraak plannen","ru-RU":"Запланировать новую встречу","es-ES":"Programar una nueva cita"},updatetitle:{"it-IT":"Aggiorna appuntamento","en-US":"Update Appointment","de-DE":"Termin aktualisieren","zh-CN":"更新预约","fr-FR":"Mettre à jour le rendez-vous","nl-NL":"Afspraak bijwerken","ru-RU":"Обновить встречу","es-ES":"Actualizar cita"},deleteappointmenttitle:{"it-IT":"Elimina appuntamento","en-US":"Delete Appointment","de-DE":"Termin löschen","zh-CN":"删除预约","fr-FR":"Supprimer le rendez-vous","nl-NL":"Afspraak verwijderen","ru-RU":"Удалить встречу","es-ES":"Eliminar cita"},deletewarningtitle:{"it-IT":"Attenzione: eliminazione appuntamento","en-US":"Delete Appointment Warning","de-DE":"Warnung: Termin löschen","zh-CN":"删除预约警告","fr-FR":"Avertissement de suppression du rendez-vous","nl-NL":"Waarschuwing afspraak verwijderen","ru-RU":"Предупреждение об удалении встречи","es-ES":"Advertencia de eliminación de cita"},deletewarningmessage:{"it-IT":"Stai per eliminare l'appuntamento programmato. Sei sicuro?","en-US":"You are about to delete the scheduled appointment. Are you sure?","de-DE":"Sie sind dabei, den geplanten Termin zu löschen. Sind Sie sicher?","zh-CN":"您即将删除已安排的预约。确定要继续吗?","fr-FR":"Vous êtes sur le point de supprimer ce rendez-vous planifié. Voulez-vous continuer ?","nl-NL":"Je staat op het punt de geplande afspraak te verwijderen. Weet je het zeker?","ru-RU":"Вы собираетесь удалить запланированную встречу. Вы уверены?","es-ES":"Está a punto de eliminar la cita programada. ¿Seguro que desea continuar?"},deleteconfirm:{"it-IT":"Sì, elimina l'appuntamento","en-US":"Yes, delete the appointment","de-DE":"Ja, Termin löschen","zh-CN":"是的,删除预约","fr-FR":"Oui, supprimer le rendez-vous","nl-NL":"Ja, verwijder de afspraak","ru-RU":"Да, удалить встречу","es-ES":"Sí, eliminar la cita"},deletecancel:{"it-IT":"No, mantieni l'appuntamento","en-US":"No, keep the appointment","de-DE":"Nein, Termin behalten","zh-CN":"不,保留预约","fr-FR":"Non, conserver le rendez-vous","nl-NL":"Nee, afspraak behouden","ru-RU":"Нет, оставить встречу","es-ES":"No, conservar la cita"},location:{"it-IT":"Luogo","en-US":"Location","de-DE":"Ort","zh-CN":"地点","fr-FR":"Lieu","nl-NL":"Locatie","ru-RU":"Место","es-ES":"Ubicación"},pname:{"it-IT":"Nome partecipante/i","en-US":"Participant(s) Name","de-DE":"Name(n) der Teilnehmenden","zh-CN":"参与者姓名","fr-FR":"Nom du/des participant(s)","nl-NL":"Naam deelnemer(s)","ru-RU":"Имя участника (участников)","es-ES":"Nombre del/de los participante(s)"},pphone:{"it-IT":"Telefono partecipante/i","en-US":"Participant(s) Phone","de-DE":"Telefonnummer der Teilnehmenden","zh-CN":"参与者电话","fr-FR":"Téléphone du/des participant(s)","nl-NL":"Telefoon deelnemer(s)","ru-RU":"Телефон участника (участников)","es-ES":"Teléfono del/de los participante(s)"},pemail:{"it-IT":"Email partecipante/i","en-US":"Participant(s) Email","de-DE":"E-Mail der Teilnehmenden","zh-CN":"参与者邮箱","fr-FR":"E-mail du/des participant(s)","nl-NL":"E-mail deelnemer(s)","ru-RU":"Эл. почта участника (участников)","es-ES":"Correo electrónico del/de los participante(s)"},type:{"it-IT":"Tipo","en-US":"Type","de-DE":"Typ","zh-CN":"类型","fr-FR":"Type","nl-NL":"Type","ru-RU":"Тип","es-ES":"Tipo"},referenceid:{"it-IT":"ID di riferimento","en-US":"Reference ID","de-DE":"Referenz-ID","zh-CN":"参考编号","fr-FR":"ID de référence","nl-NL":"Referentie-ID","ru-RU":"Идентификатор ссылки","es-ES":"ID de referencia"},status:{"it-IT":"Stato","en-US":"Status","de-DE":"Status","zh-CN":"状态","fr-FR":"Statut","nl-NL":"Status","ru-RU":"Статус","es-ES":"Estado"},saveschedule:{"it-IT":"Salva pianificazione","en-US":"Save Schedule","de-DE":"Zeitplan speichern","zh-CN":"保存日程","fr-FR":"Enregistrer le planning","nl-NL":"Planning opslaan","ru-RU":"Сохранить расписание","es-ES":"Guardar programación"},discard:{"it-IT":"Scarta","en-US":"Discard","de-DE":"Verwerfen","zh-CN":"放弃","fr-FR":"Annuler","nl-NL":"Verwerpen","ru-RU":"Отменить","es-ES":"Descartar"}},localeMap=new Map([["de","de-DE"],["en","en-US"],["it","it-IT"],["sv","sv-SE"],["zh","zh-CN"],["pt","pt-BR"],["fr","fr-FR"],["th","th-TH"],["nl","nl-NL"],["ru","ru-RU"],["ar","ar-YE"],["es","es-ES"],["ja","ja-JP"],["pl","pl-PL"],["hu","hu-HU"]]),getLanguage={data(){return{languageKeys}},methods:{getLanguage(il,ps){return ps=this.overrideShortLocaleWithLongLocale(ps),il[ps]?il[ps]:il["en-US"]},overrideShortLocaleWithLongLocale(il){return localeMap.has(il)&&(il=localeMap.get(il)),il}}},_hoisted_1$y={key:0,class:"event-flyout__relative-wrapper"},_hoisted_2$u={class:"event-flyout__menu"},_hoisted_3$q={key:0,class:"event-flyout__menu-editable"},_hoisted_4$j={class:"event-flyout__menu-close"},_hoisted_5$h={key:0,class:"event-flyout__info-wrapper"},_hoisted_6$b={key:0,class:"event-flyout__row is-title"},_hoisted_7$a={key:1,class:"event-flyout__row is-time"},_hoisted_8$8={key:2,class:"event-flyout__row is-time"},_hoisted_9$7={key:3,class:"event-flyout__row is-time"},_hoisted_10$5={key:4,class:"event-flyout__row is-time"},_hoisted_11$5={key:5,class:"event-flyout__row is-time"},_hoisted_12$5={key:6,class:"event-flyout__row is-time"},_hoisted_13$5={key:7,class:"event-flyout__row is-time"},_hoisted_14$4={key:8,class:"event-flyout__row is-time"},_hoisted_15$4={key:9,class:"event-flyout__row is-time"},_sfc_main$E=vue.defineComponent({__name:"EventFlyout",props:{calendarEventProp:{type:Object,default:void 0},eventElement:{type:Object,default:null},time:{type:Object,required:!0},config:{type:Object,default:void 0,required:!0}},emits:["hide","edit-event","delete-event"],setup(il,{emit:ps}){vue.useCssVars(nI=>({cad8dc76:Dg}));const Ig=il,Zg=ps,Bg=vue.ref(!1),Gg=vue.ref(0),Ng=vue.ref(0),Wg=vue.ref(Ig.calendarEventProp),Dg=`${EVENT_FLYOUT_WIDTH}px`,Vg=EVENT_COLORS,Fg=new EventFlyoutPosition,Xg=vue.computed(()=>{var II,fI;if(!Wg.value||!Wg.value.start)return null;Wg.value.start=Ig.time.formatDateTime(new Date(Wg.value.start),(II=Ig.config)==null?void 0:II.locale),Wg.value.end=Ig.time.formatDateTime(new Date(Wg.value.end),(fI=Ig.config)==null?void 0:fI.locale);const nI=Helpers.getEventType(Wg.value,Ig.time);if([EVENT_TYPE.MULTI_DAY_TIMED].includes(nI)){const bI=iI(Wg.value.start)+" "+Ig.time.getLocalizedTime(Wg.value.start),mI=iI(Wg.value.end)+" "+Ig.time.getLocalizedTime(Wg.value.end);return`${bI} - ${mI}`}if([EVENT_TYPE.SINGLE_DAY_FULL_DAY,EVENT_TYPE.MULTI_DAY_FULL_DAY].includes(nI)){const bI=iI(Wg.value.start),mI=iI(Wg.value.end);return bI===mI?bI:`${bI} - ${mI}`}const aI=iI(Wg.value.start),sI=Ig.time.getLocalizedTimeRange(Wg.value.start,Wg.value.end);return`${aI} ⋅ ${sI}`}),Tg=vue.computed(()=>typeof Gg.value=="number"&&!Ng.value?{top:`${Gg.value}px`,left:"50%",position:"fixed",transform:"translateX(-50%)"}:{top:`${Gg.value}px`,left:`${Ng.value}px`,position:"fixed"}),Yg=vue.computed(()=>new Date>new Date(Wg.value.end)),Hg=vue.computed(()=>{var nI;return(nI=Wg.value)==null?void 0:nI.isEditable}),Jg=vue.computed(()=>{var nI;return(nI=Wg.value)==null?void 0:nI.isDisabled}),Ug=vue.computed(()=>{var nI;return((nI=Wg.value)==null?void 0:nI.isDeletable)&&!Yg.value&&Wg.value.status!=="CMP"}),Kg=vue.computed(()=>{var nI,aI,sI,II,fI,bI,mI,cI,yI,wI;return(nI=Wg.value)!=null&&nI.colorScheme&&((sI=(aI=Ig.config)==null?void 0:aI.style)!=null&&sI.colorSchemes)&&((fI=(II=Ig.config)==null?void 0:II.style)!=null&&fI.colorSchemes[Wg.value.colorScheme])?(yI=(cI=(mI=(bI=Ig.config)==null?void 0:bI.style)==null?void 0:mI.colorSchemes[Wg.value.colorScheme])==null?void 0:cI.lightColors)==null?void 0:yI.backgroundColor:Vg[((wI=Wg.value)==null?void 0:wI.color)||"blue"]}),$g=()=>{var II,fI;const nI=(II=Ig.eventElement)==null?void 0:II.closest(".calendar-root"),aI=document.querySelector(".event-flyout");if(!Ig.eventElement)return;const sI=Fg.calculateFlyoutPosition((fI=Ig.eventElement)==null?void 0:fI.getBoundingClientRect(),{height:(aI==null?void 0:aI.clientHeight)||300,width:(aI==null?void 0:aI.clientWidth)||0},nI?nI.getBoundingClientRect():null);Gg.value=typeof(sI==null?void 0:sI.top)=="number"?sI.top:null,Ng.value=typeof(sI==null?void 0:sI.left)=="number"?sI.left:null},_g=()=>{var nI;Zg("edit-event",(nI=Wg.value)==null?void 0:nI.id),Qg()},Lg=()=>{var nI;Zg("delete-event",(nI=Wg.value)==null?void 0:nI.id),Qg()},Qg=()=>{Bg.value=!1,setTimeout(()=>Zg("hide"),100)},iI=nI=>{const{year:aI,month:sI,date:II}=Ig.time.getAllVariablesFromDateTimeString(nI);return new Date(aI,sI,II).toLocaleDateString(Ig.time.CALENDAR_LOCALE,{year:"numeric",month:"long",day:"numeric"})},tI=nI=>{var bI;const aI=document.querySelector(".event-flyout");if(!aI||!Bg.value)return;const sI=!aI.contains(nI.target),II=!!nI.target.closest(".is-event"),fI=((bI=Ig.config.eventDialog)==null?void 0:bI.closeOnClickOutside)??!0;Bg.value&&sI&&!II&&fI&&Qg()};return vue.onMounted(()=>{console.log("Config:",Ig.config),document.addEventListener("click",tI)}),vue.onBeforeUnmount(()=>{document.removeEventListener("click",tI)}),vue.watch(()=>Ig.calendarEventProp,nI=>{setTimeout(()=>{Wg.value=nI,Bg.value=!!nI,$g()},10)},{deep:!0}),(nI,aI)=>{var II,fI,bI,mI,cI,yI,wI,hI,uI,SI,pI;const sI=BWIcon;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["event-flyout",{"is-visible":Bg.value,"is-not-editable":!Hg.value}]),style:vue.normalizeStyle(Tg.value)},[!il.config.eventDialog||!il.config.eventDialog.isCustom?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$y,[vue.createElementVNode("div",_hoisted_2$u,[(Hg.value||Ug.value)&&!Jg.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$q,[Hg.value?(vue.openBlock(),vue.createBlock(sI,{key:0,icon:"bx:edit",class:"event-flyout__menu-item is-edit-icon",onClick:_g})):vue.createCommentVNode("",!0),Ug.value?(vue.openBlock(),vue.createBlock(sI,{key:1,icon:"ion:trash-outline",class:"event-flyout__menu-item is-trash-icon",onClick:Lg})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_4$j,[vue.createVNode(sI,{icon:"material-symbols:close-rounded",class:"event-flyout__menu-item is-times-icon",onClick:Qg})])]),Wg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$h,[(II=Wg.value)!=null&&II.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$b,[vue.createElementVNode("div",{class:"event-flyout__color-icon",style:vue.normalizeStyle({backgroundColor:Kg.value})},null,4),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.title),1)])):vue.createCommentVNode("",!0),(fI=Wg.value)!=null&&fI.start?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$a,[vue.createVNode(sI,{icon:"tabler:clock",class:"calendar-week__event-icon"}),vue.createTextVNode(" "+vue.toDisplayString(Xg.value),1)])):vue.createCommentVNode("",!0),(bI=Wg.value)!=null&&bI.location?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$8,[vue.createVNode(sI,{icon:"akar-icons:location"}),vue.createTextVNode(" "+vue.toDisplayString((mI=Wg.value)==null?void 0:mI.location),1)])):vue.createCommentVNode("",!0),(cI=Wg.value)!=null&&cI.participantName?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$7,[vue.createVNode(sI,{icon:"hugeicons:user"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.participantName),1)])):vue.createCommentVNode("",!0),(yI=Wg.value)!=null&&yI.participantPhone?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$5,[vue.createVNode(sI,{icon:"ph:phone-light"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.participantPhone),1)])):vue.createCommentVNode("",!0),(wI=Wg.value)!=null&&wI.referenceId?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$5,[vue.createVNode(sI,{icon:"fluent:key-20-regular"}),vue.createTextVNode(" "+vue.toDisplayString(Wg.value.referenceId),1)])):vue.createCommentVNode("",!0),((hI=Wg.value)==null?void 0:hI.status)==="INP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$5,[vue.createVNode(sI,{icon:"ri:calendar-schedule-line",class:"calendar-week__event-icon",color:"primary"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).inprogress,il.time.CALENDAR_LOCALE)),1)])):vue.createCommentVNode("",!0),((uI=Wg.value)==null?void 0:uI.status)==="CMP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$5,[vue.createVNode(sI,{icon:"lets-icons:check-fill",class:"calendar-week__event-icon",color:"success"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).completed,il.time.CALENDAR_LOCALE)),1)])):((SI=Wg.value)==null?void 0:SI.status)==="CAN"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$4,[vue.createVNode(sI,{icon:"charm:circle-cross",class:"calendar-week__event-icon",color:"danger"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).cancelled,il.time.CALENDAR_LOCALE)),1)])):((pI=Wg.value)==null?void 0:pI.status)==="EXP"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$4,[vue.createVNode(sI,{icon:"ix:alarm-clock-cancelled",class:"calendar-week__event-icon",color:"expired"}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).expired,il.time.CALENDAR_LOCALE)),1)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)])):vue.renderSlot(nI.$slots,"default",{key:1,eventDialogData:Wg.value,closeEventDialog:Qg},void 0,!0)],6)}}}),EventFlyout=_export_sfc$1(_sfc_main$E,[["__scopeId","data-v-135d3b1a"]]),_hoisted_1$x={key:0,class:"calendar-month__event"},_hoisted_2$t=["id","draggable"],_hoisted_3$p=["id","draggable"],_hoisted_4$i={key:0,class:"calendar-month__event-time"},_hoisted_5$g={class:"calendar-month__event-title"},eventIdPrefix$1="calendar-month__event-",_sfc_main$D=vue.defineComponent({__name:"Event",props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,default:null,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"],setup(il,{emit:ps}){vue.useCssVars(Ug=>({"7f961976":Ng.value}));const Ig=il,Zg=ps,Bg=vue.ref(EVENT_COLORS),Gg=vue.ref("#fff"),Ng=vue.ref(""),Wg=vue.ref(""),Dg=()=>{var Ug,Kg,$g,_g,Lg,Qg,iI,tI,nI;if((Ug=Ig.calendarEvent)!=null&&Ug.colorScheme&&((Kg=Ig.config.style)!=null&&Kg.colorSchemes)&&Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme]){Gg.value=(_g=($g=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:$g.lightColors)==null?void 0:_g.color,Wg.value=(Qg=(Lg=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:Lg.lightColors)==null?void 0:Qg.border,Ng.value=(tI=(iI=Ig.config.style.colorSchemes[Ig.calendarEvent.colorScheme])==null?void 0:iI.lightColors)==null?void 0:tI.backgroundColor;return}if((nI=Ig.calendarEvent)!=null&&nI.color){Ng.value=Bg.value[Ig.calendarEvent.color];return}Ng.value=Bg.value.blue},Vg=()=>{const Ug=document.getElementById(Yg.value);Zg("event-was-clicked",{clickedEvent:Ig.calendarEvent,eventElement:Ug})},Fg=Ug=>{!Ug||!Ug.dataTransfer||(Ug.dataTransfer.effectAllowed="move",Ug.dataTransfer.setData("json",JSON.stringify(Ig.calendarEvent)))},Xg=vue.computed(()=>Array.isArray(Ig.calendarEvent.isCustom)?Ig.calendarEvent.isCustom.includes("month"):Ig.calendarEvent.isCustom||!1),Tg=vue.computed(()=>DATE_TIME_STRING_PATTERN.test(Ig.calendarEvent.start)?Ig.time.getLocalizedTime(Ig.calendarEvent.start):null),Yg=vue.computed(()=>eventIdPrefix$1+Ig.calendarEvent.id+Ig.time.dateStringFrom(Ig.day.dateTimeString)),Hg=vue.computed(()=>new Date>new Date(Ig.calendarEvent.end)),Jg=vue.computed(()=>{const{year:Ug,month:Kg,date:$g}=Ig.time.getAllVariablesFromDateTimeString(Ig.calendarEvent.start),{year:_g,month:Lg,date:Qg}=Ig.time.getAllVariablesFromDateTimeString(Ig.calendarEvent.end),iI=Ug===_g&&Kg===Lg&&$g===Qg,tI=Ig.calendarEvent.disableDnD&&Ig.calendarEvent.disableDnD.includes("month");return Ig.calendarEvent.isDeletable&&iI&&!tI&&!Hg.value?!0:void 0});return vue.watch(()=>{var Ug;return(Ug=Ig.calendarEvent)==null?void 0:Ug.colorScheme},(Ug,Kg)=>{Dg()}),vue.onMounted(()=>{Dg()}),(Ug,Kg)=>il.config.isSmall?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$x)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[Xg.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,id:Yg.value,class:vue.normalizeClass(["is-event",{"is-draggable":Jg.value}]),"data-ref":"custom-event",draggable:Jg.value,onDragstart:Fg,onClick:Vg},[vue.renderSlot(Ug.$slots,"monthEvent",{eventData:il.calendarEvent},void 0,!0)],42,_hoisted_2$t)):(vue.openBlock(),vue.createElementBlock("div",{key:1,id:Yg.value,"data-ref":"default-event",class:vue.normalizeClass(["calendar-month__event is-event",{"is-draggable":Jg.value}]),draggable:Jg.value,onDragstart:Fg,onClick:Vg,style:vue.normalizeStyle({color:Gg.value,width:"100%",backgroundColor:Ng.value,borderTop:"0px",borderRight:"0px",borderBottom:"0px",borderLeft:`4px solid ${Wg.value}`})},[Tg.value&&!il.calendarEvent.originalEvent?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$i,vue.toDisplayString(Tg.value),1)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(il.calendarEvent.title),1)],46,_hoisted_3$p))],64))}}),__unplugin_components_0$6=_export_sfc$1(_sfc_main$D,[["__scopeId","data-v-642eeff9"]]),_hoisted_1$w=["id"],_hoisted_2$s={class:"calendar-month_events"},_hoisted_3$o={key:1,class:"space-reserver"},_sfc_main$C=vue.defineComponent({__name:"DayMonth",props:{config:{type:Object,default:null,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0},isSelected:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-dragged","updated-period","date-was-clicked","day-was-selected"],setup(il,{emit:ps}){const Ig=il,Zg=ps,Bg=vue.ref(!1),Gg=()=>{const{date:Hg,month:Jg,year:Ug}=Ig.time.getAllVariablesFromDateTimeString(Ig.day.dateTimeString),Kg=new Date(Ug,Jg,Hg),$g=Ig.time.getCalendarWeekDateObjects(Kg),_g=$g[0],Lg=$g[6];Zg("updated-period",{start:_g,end:Lg,selectedDate:Kg})},Ng=()=>{Bg.value=!1},Wg=Hg=>{Bg.value=!1,Hg.stopPropagation()},Dg=Hg=>{var Kg,$g;if(Bg.value=!1,Hg.stopPropagation(),!Hg||!Hg.dataTransfer)return;const Jg=JSON.parse(Hg.dataTransfer.getData("json"));Ig.time.dateStringsHaveEqualDates(Jg.start,Ig.time.dateStringFrom(Ig.day.dateTimeString))||(Jg.start=Ig.time.formatDateTime(new Date(Jg.start),(Kg=Ig.config)==null?void 0:Kg.locale),Jg.end=Ig.time.formatDateTime(new Date(Jg.end),($g=Ig.config)==null?void 0:$g.locale),Jg.start=Jg.start.replace(/^\d{4}-\d{2}-\d{2}/,Ig.time.dateStringFrom(Ig.day.dateTimeString)),Jg.end=Jg.end.replace(/^\d{4}-\d{2}-\d{2}/,Ig.time.dateStringFrom(Ig.day.dateTimeString)),Zg("event-was-dragged",Jg))},Vg=Hg=>(Bg.value=!0,Hg.preventDefault(),!1),Fg=()=>{Zg("date-was-clicked",Ig.time.dateStringFrom(Ig.day.dateTimeString)),Ig.config.isSmall&&Zg("day-was-selected",Ig.day)},Xg=vue.computed(()=>Bg.value),Tg=vue.computed(()=>{var Hg;return Ig.day.isTrailingOrLeadingDate===!0&&((Hg=Ig.config.month)==null?void 0:Hg.showTrailingAndLeadingDates)===!1}),Yg=vue.computed(()=>{const{year:Hg,month:Jg,date:Ug}=Ig.time.getAllVariablesFromDateTimeString(Ig.day.dateTimeString);return Ig.time.dateIsToday(new Date(Hg,Jg,Ug))});return(Hg,Jg)=>{const Ug=__unplugin_components_0$6;return Tg.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$o)):(vue.openBlock(),vue.createElementBlock("div",{key:0,id:"day-"+il.time.dateStringFrom(il.day.dateTimeString),class:vue.normalizeClass(["calendar-month__weekday",{"is-droppable":Xg.value,"trailing-or-leading":il.day.isTrailingOrLeadingDate,"is-selected":il.isSelected,"is-today":Yg.value}]),onClick:vue.withModifiers(Fg,["self"]),onDragleave:Ng,onDragover:Vg,onDrop:Dg,onDragend:Wg},[vue.renderSlot(Hg.$slots,"dayCell",{dayData:il.day},()=>{var Kg;return[vue.createElementVNode("span",{class:"calendar-month__day-date",onClick:Fg},vue.toDisplayString(il.day.dateTimeString.substring(8,10).startsWith("0")?il.day.dateTimeString.substring(9,10):il.day.dateTimeString.substring(8,10)),1),vue.createElementVNode("div",_hoisted_2$s,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(il.day.events,($g,_g)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:_g},[_g<3?(vue.openBlock(),vue.createBlock(Ug,{key:$g.id,"calendar-event":$g,config:il.config,time:il.time,day:il.day,onEventWasClicked:Jg[0]||(Jg[0]=Lg=>Zg("event-was-clicked",Lg))},{monthEvent:vue.withCtx(Lg=>[vue.renderSlot(Hg.$slots,"monthEvent",{eventData:Lg.eventData},void 0,!0)]),_:2},1032,["calendar-event","config","time","day"])):vue.createCommentVNode("",!0)],64))),128)),((Kg=il.day.events)==null?void 0:Kg.length)>=4?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"calendar-month__weekday-more",onClick:Gg},vue.toDisplayString(vue.unref(getLanguage).methods.getLanguage(vue.unref(languageKeys).moreEvents,il.time.CALENDAR_LOCALE)),1)):vue.createCommentVNode("",!0)])]},!0)],42,_hoisted_1$w))}}}),__unplugin_components_0$5=_export_sfc$1(_sfc_main$C,[["__scopeId","data-v-54f4ecf8"]]);class EventPosition extends Time{positionFullDayEventsInWeek(ps,Ig,Zg){var Dg,Vg;const Bg=(Dg=Zg.map(Fg=>{const{year:Xg,month:Tg,date:Yg}=this.getAllVariablesFromDateTimeString(Fg.start),{year:Hg,month:Jg,date:Ug}=this.getAllVariablesFromDateTimeString(Fg.end);return Fg.timeJS={start:new Date(Xg,Tg,Yg),end:new Date(Hg,Jg,Ug)},Fg}))==null?void 0:Dg.sort((Fg,Xg)=>Fg.start<Xg.start?-1:Fg.start>Xg.start?1:0),Ng=this.getDatesBetweenTwoDates(ps,Ig).map(Fg=>({date:Fg}));for(const Fg of Bg)for(const[Xg,Tg]of Ng.entries()){const Yg=this.getDateStringFromDate(Tg.date);if(this.getDateStringFromDate(Fg.timeJS.start)<=Yg&&this.getDateStringFromDate(Fg.timeJS.end)>=Yg){let Hg=1;for(;typeof Ng[Xg][`level${Hg}`]<"u";)Hg++;let Jg=Math.ceil((Fg.timeJS.end.getTime()-Tg.date.getTime())/this.MS_PER_DAY)+1;const Ug=(Ng==null?void 0:Ng.length)-Xg;Jg>Ug&&(Jg=Ug),Ng[Xg][`level${Hg}`]={...Fg,nDays:Jg};for(let Kg=1;Kg<Jg;Kg++)Ng[Xg+Kg][`level${Hg}`]="blocked";break}}const Wg=[];for(const Fg of Ng)Wg.push((Vg=Object.keys(Fg))==null?void 0:Vg.sort().reduce((Xg,Tg)=>(Xg[Tg]=Fg[Tg],Xg),{}));return Wg}positionFullDayEventsInMonth(ps,Ig){const Zg=[],Bg=ps.flat(),Gg=new Map;Bg.forEach(Wg=>Gg.set(this.dateStringFrom(Wg.dateTimeString),Wg)),Ig=Ig==null?void 0:Ig.sort((Wg,Dg)=>Wg.start<Dg.start?1:Wg.start>Dg.start?-1:0);for(const Wg of Ig){const{year:Dg,month:Vg,date:Fg}=this.getAllVariablesFromDateTimeString(Wg.start),{year:Xg,month:Tg,date:Yg}=this.getAllVariablesFromDateTimeString(Wg.end),Hg=this.getDatesBetweenTwoDates(new Date(Dg,Vg,Fg),new Date(Xg,Tg,Yg));for(const Jg of Hg){const Ug=this.getDateStringFromDate(Jg),Kg=Gg.get(Ug);Kg&&Gg.set(Ug,{...Kg,events:[Wg,...Kg.events]})}}let Ng=0;return Gg.forEach(Wg=>{var Dg,Vg;Zg!=null&&Zg.length?Zg[Ng]&&((Dg=Zg[Ng])==null?void 0:Dg.length)<7?Zg[Ng].push(Wg):Zg[Ng]&&((Vg=Zg[Ng])==null?void 0:Vg.length)===7&&(Zg.push([Wg]),Ng++):Zg.push([Wg])}),Zg}}/*!
389
405
  * perfect-scrollbar v1.5.6
390
406
  * Copyright 2024 Hyunje Jun, MDBootstrap and Contributors
391
407
  * Licensed under MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue3-beak-ui-framework",
3
3
  "private": false,
4
- "version": "1.2.58",
4
+ "version": "1.2.59",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"