@quoreadmin/ui 0.23.1 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -17658,9 +17658,15 @@ const _x = /* @__PURE__ */ we(Ax, [["render", Hx], ["__scopeId", "data-v-ce3ef51
17658
17658
  autoUpload: {
17659
17659
  type: Boolean,
17660
17660
  default: !1
17661
+ },
17662
+ /** Override uploading by enabling customUpload and defining a custom uploader handler event. */
17663
+ // https://primevue.org/fileupload/#custom-upload
17664
+ customUpload: {
17665
+ type: Boolean,
17666
+ default: !1
17661
17667
  }
17662
17668
  },
17663
- emits: ["file-list", "upload-error"],
17669
+ emits: ["file-list", "upload-error", "uploading"],
17664
17670
  setup(t, { emit: e }) {
17665
17671
  const n = V(null), r = V(t.files);
17666
17672
  return {
@@ -17669,14 +17675,17 @@ const _x = /* @__PURE__ */ we(Ax, [["render", Hx], ["__scopeId", "data-v-ce3ef51
17669
17675
  // refs
17670
17676
  allFiles: r,
17671
17677
  // methods
17672
- onUploadError: (a) => {
17673
- e("upload-error", a);
17678
+ onUploadError: (l) => {
17679
+ e("upload-error", l);
17680
+ },
17681
+ onUploading: (l) => {
17682
+ e("uploading", l);
17674
17683
  },
17675
- onSelectedFiles: (a) => {
17676
- r.value = a.files, e("file-list", r.value);
17684
+ onSelectedFiles: (l) => {
17685
+ r.value = l.files, e("file-list", r.value);
17677
17686
  },
17678
- onUpload: (a) => {
17679
- console.log("onUpload", a);
17687
+ onUpload: (l) => {
17688
+ console.log("onUpload", l);
17680
17689
  },
17681
17690
  // composables
17682
17691
  mq: kr
@@ -17697,8 +17706,10 @@ function Gx(t, e, n, r, i, o) {
17697
17706
  }),
17698
17707
  maxFileSize: t.maxFileSize,
17699
17708
  auto: t.autoUpload,
17709
+ "custom-upload": t.customUpload,
17700
17710
  onError: e[1] || (e[1] = (u) => t.onUploadError(u)),
17701
17711
  onUpload: e[2] || (e[2] = (u) => t.onUpload(u)),
17712
+ onUploader: e[3] || (e[3] = (u) => t.onUploading(u)),
17702
17713
  onSelect: t.onSelectedFiles,
17703
17714
  pt: {
17704
17715
  root: { class: "flex flex-col" },
@@ -17744,7 +17755,7 @@ function Gx(t, e, n, r, i, o) {
17744
17755
  ])
17745
17756
  ]),
17746
17757
  _: 1
17747
- }, 8, ["name", "url", "multiple", "accept", "invalidFileSizeMessage", "maxFileSize", "auto", "onSelect"])
17758
+ }, 8, ["name", "url", "multiple", "accept", "invalidFileSizeMessage", "maxFileSize", "auto", "custom-upload", "onSelect"])
17748
17759
  ]);
17749
17760
  }
17750
17761
  const xU = /* @__PURE__ */ we(zx, [["render", Gx]]), qx = ue({
@@ -100,7 +100,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
100
100
  flex: 1 0 `).concat(100/o.numVisible,`%
101
101
  }
102
102
  }
103
- `)}}this.thumbnailsStyle.innerHTML=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var i=this.sortedResponsiveOptions[r];parseInt(i.breakpoint,10)>=e&&(n=i)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:ru,ChevronRightIcon:Cs,ChevronUpIcon:gg,ChevronDownIcon:Ss},directives:{ripple:yt}};function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function wg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wg(Object(n),!0).forEach(function(r){xM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xM(t,e,n){return e=PM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PM(t){var e=BM(t,"string");return Os(e)=="symbol"?e:String(e)}function BM(t,e){if(Os(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var AM=["disabled","aria-label"],DM=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],NM=["tabindex","aria-label","aria-current","onClick"],LM=["disabled","aria-label"];function RM(t,e,n,r,i,o){var a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("thumbnailWrapper")},t.ptm("thumbnailWrapper")),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailContainer")},t.ptm("thumbnailContainer")),[n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("previousThumbnailButton"),disabled:o.isNavBackwardDisabled(),type:"button","aria-label":o.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(l){return o.navBackward(l)})},El(El({},n.prevButtonProps),t.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),s.mergeProps({class:t.cx("previousThumbnailIcon")},t.ptm("previousThumbnailIcon")),null,16,["class"]))],16,AM)),[[a]]):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemsContainer"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailItemsContainer")),[s.createElementVNode("div",s.mergeProps({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(l){return o.onTransitionEnd(l)}),onTouchstart:e[2]||(e[2]=function(l){return o.onTouchStart(l)}),onTouchmove:e[3]||(e[3]=function(l){return o.onTouchMove(l)}),onTouchend:e[4]||(e[4]=function(l){return o.onTouchEnd(l)})},t.ptm("thumbnailItems")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,function(l,c){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:t.cx("thumbnailItem",{index:c,activeIndex:n.activeIndex}),role:"tab","data-p-active":n.activeIndex===c,"aria-selected":n.activeIndex===c,"aria-controls":n.containerId+"_item_"+c,onKeydown:function(d){return o.onThumbnailKeydown(d,c)}},t.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":n.activeIndex===c,"data-p-galleria-thumbnail-item-active":o.isItemActive(c),"data-p-galleria-thumbnail-item-start":o.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":o.lastItemActiveIndex()===c}),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemContent"),tabindex:n.activeIndex===c?"0":"-1","aria-label":o.ariaPageLabel(c+1),"aria-current":n.activeIndex===c?"page":void 0,onClick:function(d){return o.onItemClick(c)}},t.ptm("thumbnailItemContent")),[n.templates.thumbnail?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.thumbnail),{key:0,item:l},null,8,["item"])):s.createCommentVNode("",!0)],16,NM)],16,DM)}),128))],16)],16),n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:1,class:t.cx("nextThumbnailButton"),disabled:o.isNavForwardDisabled(),type:"button","aria-label":o.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(l){return o.navForward(l)})},El(El({},n.nextButtonProps),t.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),s.mergeProps({class:t.cx("nextThumbnailIcon")},t.ptm("nextThumbnailIcon")),null,16,["class"]))],16,LM)),[[a]]):s.createCommentVNode("",!0)],16)],16)}bg.render=RM;function Es(t){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(t)}function vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vg(Object(n),!0).forEach(function(r){VM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VM(t,e,n){return e=$M(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $M(t){var e=FM(t,"string");return Es(e)=="symbol"?e:String(e)}function FM(t,e){if(Es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sg={name:"GalleriaContent",hostName:"Galleria",extends:Y,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||Jt(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||Jt()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||Jt()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:Cg(Cg({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var n=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=n},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,n){var r=["top","left","bottom","right"],i=r.find(function(o){return o===n});return i?"".concat(e,"-").concat(i):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:yg,GalleriaThumbnails:bg,TimesIcon:Xr},directives:{ripple:yt}};function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}function kg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Og(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kg(Object(n),!0).forEach(function(r){HM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HM(t,e,n){return e=zM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zM(t){var e=_M(t,"string");return Ts(e)=="symbol"?e:String(e)}function _M(t,e){if(Ts(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var jM=["id","aria-label","aria-roledescription"],ZM=["aria-label"],WM=["aria-live"];function UM(t,e,n,r,i,o){var a=s.resolveComponent("GalleriaItem"),l=s.resolveComponent("GalleriaThumbnails"),c=s.resolveDirective("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,id:i.id,role:"region",class:[t.cx("root"),t.$attrs.containerClass],style:t.$attrs.containerStyle,"aria-label":t.$attrs.ariaLabel,"aria-roledescription":t.$attrs.ariaRoledescription},Og(Og({},t.$attrs.containerProps),o.getPTOptions("root"))),[t.$attrs.fullScreen?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":o.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return t.$emit("mask-hide")})},o.getPTOptions("closeButton")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.closeicon||"TimesIcon"),s.mergeProps({class:t.cx("closeIcon")},o.getPTOptions("closeIcon")),null,16,["class"]))],16,ZM)),[[c]]):s.createCommentVNode("",!0),t.$attrs.templates&&t.$attrs.templates.header?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("header")},o.getPTOptions("header")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.header)))],16)):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},o.getPTOptions("content")),[s.createVNode(a,{id:i.id,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return i.slideShowActive=u}),value:t.$attrs.value,circular:t.$attrs.circular,templates:t.$attrs.templates,showIndicators:t.$attrs.showIndicators,changeItemOnIndicatorHover:t.$attrs.changeItemOnIndicatorHover,showItemNavigators:t.$attrs.showItemNavigators,autoPlay:t.$attrs.autoPlay,onStartSlideshow:o.startSlideShow,onStopSlideshow:o.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),t.$attrs.showThumbnails?(s.openBlock(),s.createBlock(l,{key:0,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return i.slideShowActive=u}),containerId:i.id,value:t.$attrs.value,templates:t.$attrs.templates,numVisible:i.numVisible,responsiveOptions:t.$attrs.responsiveOptions,circular:t.$attrs.circular,isVertical:o.isVertical(),contentHeight:t.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:t.$attrs.showThumbnailNavigators,prevButtonProps:t.$attrs.prevButtonProps,nextButtonProps:t.$attrs.nextButtonProps,onStopSlideshow:o.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):s.createCommentVNode("",!0)],16,WM),t.$attrs.templates&&t.$attrs.templates.footer?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:2,class:t.cx("footer")},o.getPTOptions("footer")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.footer)))],16)):s.createCommentVNode("",!0)],16,jM)):s.createCommentVNode("",!0)}Sg.render=UM;var Eg={name:"Galleria",extends:hM,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&k.unblockBodyScroll(),this.mask=null,this.container&&(Bn.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){Bn.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),k.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&k.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){Bn.clear(e),this.containerVisible=!1,k.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:Sg,Portal:Ol},directives:{focustrap:mg}},KM=["aria-modal"];function GM(t,e,n,r,i,o){var a=s.resolveComponent("GalleriaContent"),l=s.resolveComponent("Portal"),c=s.resolveDirective("focustrap");return t.fullScreen?(s.openBlock(),s.createBlock(l,{key:0},{default:s.withCtx(function(){return[i.containerVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:o.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[s.createVNode(s.Transition,s.mergeProps({name:"p-galleria",onBeforeEnter:o.onBeforeEnter,onEnter:o.onEnter,onBeforeLeave:o.onBeforeLeave,onAfterLeave:o.onAfterLeave,appear:""},t.ptm("transition")),{default:s.withCtx(function(){return[t.visible?s.withDirectives((s.openBlock(),s.createBlock(a,s.mergeProps({key:0,ref:o.containerRef,onMaskHide:o.maskHide,templates:t.$slots,onActiveitemChange:o.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):s.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,KM)):s.createCommentVNode("",!0)]}),_:1})):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,templates:t.$slots,onActiveitemChange:o.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}Eg.render=GM;const qM=s.defineComponent({name:"ImageGallery",components:{Galleria:Eg,QBadge:Fr},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showThumbnails:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!1}},emits:["update:model-value","update:activeIndex"],setup(t,{emit:e}){const n=s.ref(null),r=s.computed(()=>{var w;return(w=n.value)==null?void 0:w.offsetWidth}),i=s.ref(null),o=s.ref("0"),a=s.ref(1),l=s.ref(pn.md?1:.9),c=s.ref(0),u=s.ref(t.files),d=s.ref(!1),f=s.computed(()=>t.files.filter(w=>w.type.startsWith("image"))),p=s.computed(()=>["rounded-lg relative mx-auto object-cover grow-1","md:w-full md:h-full md:min-h-[592px] md:min-w-[592px]",{animated:!g}]),h=(w,S)=>{const v=C=>C.name===(S==null?void 0:S.name),O=f.value.findIndex(v);c.value=O||w,d.value=!0},m=w=>{u.value.splice(w,1),e("update:model-value",u.value)},y=w=>{const{keyCode:S}=w;if(d.value)switch(S){case 37:c.value=c.value?c.value-1:f.value.length-1,e("update:activeIndex",c.value);break;case 39:c.value=c.value<f.value.length-1?c.value+1:0,e("update:activeIndex",c.value);break;case 27:d.value=!1;break}},{isSwiping:g,lengthX:b}=m8(i,{passive:!1,onSwipe(){const w=Math.abs(b.value);r.value&&(a.value=1.1-w/r.value,o.value=b.value<0?`${w/4}px`:`-${w/4}px`)},onSwipeEnd(){const w=c.value<=0,S=c.value>=f.value.length-1,v=Math.abs(b.value);r.value&&v/r.value>=.5?(b.value<0?c.value=w?f.value.length-1:c.value-1:c.value=S?0:c.value+1,o.value="0",a.value=1):(o.value="0",a.value=1)}});return s.onMounted(()=>{window.addEventListener("keyup",y)}),{container:n,containerWidth:r,featuredPhoto:i,isSwiping:g,lengthX:b,left:o,opacity:a,scale:l,showCarousel:d,active:c,fileList:u,itemClasses:p,images:f,onOpenCarousel:h,onRemoveFile:m,onKeyboardNavigation:y,mq:pn}}}),YM={class:"flex",ref:"container"},JM={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},QM=["src","alt"],XM=["src","alt"],eI={key:0,class:"flex flex-wrap"},tI=["onMouseover","onMouseleave"],nI=["src","alt","onClick"],rI={key:1,class:"bg-gray-00 p-3 w-20 h-20 max-w-20 rounded-lg border border-gray-20 flex flex-col flex-nowrap justify-center"},iI=["title"];function oI(t,e,n,r,i,o){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("Galleria"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",YM,[s.createVNode(l,{activeIndex:t.active,"onUpdate:activeIndex":e[0]||(e[0]=u=>t.active=u),visible:t.showCarousel,"onUpdate:visible":e[1]||(e[1]=u=>t.showCarousel=u),value:t.images,numVisible:t.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:t.mq.md,showThumbnailNavigators:!0,showThumbnails:t.showThumbnails&&t.mq.md,showIndicators:!t.mq.md,containerStyle:[{height:"100vh"}]},{closeicon:s.withCtx(()=>[s.createVNode(a,{icon:"times-circle",type:"outline",size:"lg",color:"white"})]),item:s.withCtx(({item:u})=>[s.createElementVNode("div",JM,[s.createElementVNode("img",{src:(u==null?void 0:u.itemImageSrc)||(u==null?void 0:u.objectURL),alt:u==null?void 0:u.alt,class:s.normalizeClass(t.itemClasses),style:s.normalizeStyle([{left:t.left,opacity:t.opacity},`transform: scale(${t.scale})`])},null,14,QM)],512)]),thumbnail:s.withCtx(({item:u})=>[s.createElementVNode("img",{src:u.thumbnailImageSrc||(u==null?void 0:u.objectURL),alt:u.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,XM)]),previousitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),nextthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators"]),t.files?(s.openBlock(),s.createElementBlock("div",eI,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.files,(u,d)=>(s.openBlock(),s.createElementBlock("div",{key:u.name,class:"py-3 pr-4 relative",onMouseover:f=>u.isHovered=!0,onMouseleave:f=>u.isHovered=!1},[u.type&&u.type.includes("image")?(s.openBlock(),s.createElementBlock("img",{key:0,src:(u==null?void 0:u.thumbnailImageSrc)||(u==null?void 0:u.objectURL),alt:u==null?void 0:u.alt,class:"rounded-lg cursor-pointer w-20 h-20 object-cover",onClick:f=>t.onOpenCarousel(d,u)},null,8,nI)):(s.openBlock(),s.createElementBlock("div",rI,[s.createVNode(a,{icon:"file-document",size:"md",color:"inkwell-30",class:"mx-auto"}),s.createElementVNode("p",{class:"text-inkwell-30 text-sm leading-normal text-ellipsis overflow-hidden max-h-5 text-center",title:u.name},s.toDisplayString(u.name),9,iI)])),t.showRemove&&(u.isHovered||!t.mq.md)?(s.openBlock(),s.createBlock(c,{key:2,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute top-1 right-2 shadow-solid",onClick:f=>t.onRemoveFile(d)},{icon:s.withCtx(()=>[s.createVNode(a,{icon:"close",size:"sm",type:"line",color:"white"})]),_:2},1032,["onClick"])):s.createCommentVNode("",!0)],40,tI))),128))])):s.createCommentVNode("",!0)],512)}const sI=ie(qM,[["render",oI],["__scopeId","data-v-ce3ef511"]]),aI=s.defineComponent({name:"QFileUpload",components:{FileUpload:fg,QBadge:Fr,QImageGallery:sI},props:{name:{type:Array,default:null},files:{type:Array,default:()=>[]},url:{type:String,default:""},multiple:{type:Boolean,default:!0},filesAllowed:{type:String,default:"image/*,.pdf"},maxFileSize:{type:Number,default:8388608},autoUpload:{type:Boolean,default:!1}},emits:["file-list","upload-error"],setup(t,{emit:e}){const n=s.ref(null),r=s.ref(t.files);return{fileUpload:n,allFiles:r,onUploadError:l=>{e("upload-error",l)},onSelectedFiles:l=>{r.value=l.files,e("file-list",r.value)},onUpload:l=>{console.log("onUpload",l)},mq:pn}}}),lI={class:"file-upload-container w-full"},cI={class:"flex flex-col"},uI={key:0},dI={class:"rounded-full bg-white border border-gray-40 border-dashed flex justify-center items-center h-28 w-28"},fI={class:"mt-4 mb-0 text-inkwell-0"};function pI(t,e,n,r,i,o){const a=s.resolveComponent("q-image-gallery"),l=s.resolveComponent("q-icon"),c=s.resolveComponent("FileUpload",!0);return s.openBlock(),s.createElementBlock("div",lI,[s.createVNode(c,{ref:"fileUpload",name:t.name,url:t.url,multiple:t.multiple,accept:t.filesAllowed,invalidFileSizeMessage:t.$t("HC_ATTACHMENTS_MUST_BE_LESS_THAN_X_MB",{size:t.maxFileSize/1024/1024}),maxFileSize:t.maxFileSize,auto:t.autoUpload,onError:e[1]||(e[1]=u=>t.onUploadError(u)),onUpload:e[2]||(e[2]=u=>t.onUpload(u)),onSelect:t.onSelectedFiles,pt:{root:{class:"flex flex-col"},content:"!py-0 !px-1 !border-none",buttonbar:{class:"order-last hidden"}},ptOptions:{mergeProps:!0}},{content:s.withCtx(u=>[s.createElementVNode("div",cI,[u.files.length>0?(s.openBlock(),s.createElementBlock("div",uI,[s.createVNode(a,{files:t.allFiles,"show-remove":!0},null,8,["files"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["flex flex-col items-center justify-center mt-8 bg-gray-0 border border-gray-20 border-dashed rounded-lg min-h-[320px] cursor-pointer",{"border-red-30":u.messages&&u.messages.length>0}]),onClick:e[0]||(e[0]=d=>{var f;return(f=t.fileUpload)==null?void 0:f.choose()})},[s.createElementVNode("div",dI,[s.createVNode(l,{icon:"paperclip",size:"xl",type:"line",color:"gray-40"})]),s.createElementVNode("div",fI,s.toDisplayString(t.$t("HC_CLICK_DRAG_FILES_HERE")),1)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.messages,d=>(s.openBlock(),s.createElementBlock("p",{class:"text-red-30 mt-2 text-sm leading-5",key:d},s.toDisplayString(d),1))),128))])]),_:1},8,["name","url","multiple","accept","invalidFileSizeMessage","maxFileSize","auto","onSelect"])])}const hI=ie(aI,[["render",pI]]),mI=s.defineComponent({name:"QIcon",props:{},setup(){}}),gI={class:"footer-actions"};function yI(t,e,n,r,i,o){return s.openBlock(),s.createElementBlock("div",gI,[s.renderSlot(t.$slots,"default",{},void 0,!0)])}const bI=ie(mI,[["render",yI],["__scopeId","data-v-ca1eb5be"]]),wI=s.defineComponent({name:"QFormGroup",props:{labelFor:{type:String,required:!0},required:{type:Boolean,default:!1},status:{type:String,default:""}},setup(){return{}}}),vI={class:"form-group"},CI=["for"],SI={class:"label-text"},kI={key:0,class:"required"};function OI(t,e,n,r,i,o){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",vI,[s.createElementVNode("label",{for:t.labelFor},[s.createElementVNode("div",SI,[s.renderSlot(t.$slots,"label",{},void 0,!0)]),t.required?(s.openBlock(),s.createElementBlock("div",kI," *"+s.toDisplayString(t.$t("HC_REQUIRED")),1)):s.createCommentVNode("",!0)],8,CI),s.renderSlot(t.$slots,"default",{},void 0,!0),s.createElementVNode("div",{class:s.normalizeClass(["message",{"text-red-30":t.status==="error"},{"text-green-20":t.status==="success"}])},[t.status==="error"?(s.openBlock(),s.createBlock(a,{key:0,class:"message-icon",color:"red-30",icon:"exclamation-circle",type:"fill"})):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"message",{},void 0,!0)],2)])}const EI=ie(wI,[["render",OI],["__scopeId","data-v-f2d32e20"]]),au=(t,e,n,r,i,o=[])=>{if(e||n&&n.length){let a=!0;t=t.filter(l=>{if(n&&n.length){const c=[];n.forEach(d=>{let f=d.selected;if(!f)return;const p=d.key;Array.isArray(f)||(f=[f]);let h=!1;f.forEach(m=>{const y=m&&m.key?m.key:p,g=m&&y;let b,w="",S=null;g&&(b=y.split(/\./),w=b[0],S=b[1]||null,!S&&(typeof m.value!="boolean"&&l[w]!==m.value||typeof m.value=="boolean"&&typeof l[w]!="boolean"&&!!l[w]!==m.value||typeof m.value=="boolean"&&typeof l[w]=="boolean"&&l[w]!==m.value)||S&&(typeof m.value!="boolean"&&l[w][S]!==m.value||typeof m.value=="boolean"&&typeof l[w][S]!="boolean"&&!!l[w][S]!==m.value||typeof m.value=="boolean"&&typeof l[w][S]=="boolean"&&l[w][S]!==m.value)||(h=!0))}),c.push(h)});const u=c.filter(d=>!!d).length;if(c.length>0&&u!==c.length)return!1}if(e){if(typeof l=="string")return String(l).toLocaleLowerCase().includes(e.toLocaleLowerCase());a=Object.keys(l).some(c=>o.includes(c)?!1:typeof l[c]=="object"&&l[c]?Object.keys(l[c]).some(u=>o.includes(u)?!1:String(l[c][u]).toLocaleLowerCase().includes(e.toLocaleLowerCase())):String(l[c]).toLocaleLowerCase().includes(e.toLocaleLowerCase()))}return a})}return r&&(t=t.sort((a,l)=>{if(a===null||a==="")return 1;if(l===null||l==="")return-1;if(r.includes(".")){const c=r.split(".")[0],u=r.split(".")[1];if(a[c]===null||a[c]==="")return 1;if(l[c]===null||l[c]==="")return-1;a=a[c][u],l=l[c][u]}else a=a[r],l=l[r];return typeof a=="string"&&typeof l=="string"&&(a=a.toLowerCase(),l=l.toLowerCase()),typeof a!="string"&&typeof l!="string"&&(a=parseInt(a),l=parseInt(l)),(a===l?0:a>l?1:-1)*i})),t};/*!
103
+ `)}}this.thumbnailsStyle.innerHTML=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var i=this.sortedResponsiveOptions[r];parseInt(i.breakpoint,10)>=e&&(n=i)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:ru,ChevronRightIcon:Cs,ChevronUpIcon:gg,ChevronDownIcon:Ss},directives:{ripple:yt}};function Os(t){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(t)}function wg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wg(Object(n),!0).forEach(function(r){xM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xM(t,e,n){return e=PM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PM(t){var e=BM(t,"string");return Os(e)=="symbol"?e:String(e)}function BM(t,e){if(Os(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var AM=["disabled","aria-label"],DM=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],NM=["tabindex","aria-label","aria-current","onClick"],LM=["disabled","aria-label"];function RM(t,e,n,r,i,o){var a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("thumbnailWrapper")},t.ptm("thumbnailWrapper")),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailContainer")},t.ptm("thumbnailContainer")),[n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("previousThumbnailButton"),disabled:o.isNavBackwardDisabled(),type:"button","aria-label":o.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(l){return o.navBackward(l)})},El(El({},n.prevButtonProps),t.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),s.mergeProps({class:t.cx("previousThumbnailIcon")},t.ptm("previousThumbnailIcon")),null,16,["class"]))],16,AM)),[[a]]):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemsContainer"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailItemsContainer")),[s.createElementVNode("div",s.mergeProps({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(l){return o.onTransitionEnd(l)}),onTouchstart:e[2]||(e[2]=function(l){return o.onTouchStart(l)}),onTouchmove:e[3]||(e[3]=function(l){return o.onTouchMove(l)}),onTouchend:e[4]||(e[4]=function(l){return o.onTouchEnd(l)})},t.ptm("thumbnailItems")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,function(l,c){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:t.cx("thumbnailItem",{index:c,activeIndex:n.activeIndex}),role:"tab","data-p-active":n.activeIndex===c,"aria-selected":n.activeIndex===c,"aria-controls":n.containerId+"_item_"+c,onKeydown:function(d){return o.onThumbnailKeydown(d,c)}},t.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":n.activeIndex===c,"data-p-galleria-thumbnail-item-active":o.isItemActive(c),"data-p-galleria-thumbnail-item-start":o.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":o.lastItemActiveIndex()===c}),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemContent"),tabindex:n.activeIndex===c?"0":"-1","aria-label":o.ariaPageLabel(c+1),"aria-current":n.activeIndex===c?"page":void 0,onClick:function(d){return o.onItemClick(c)}},t.ptm("thumbnailItemContent")),[n.templates.thumbnail?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.thumbnail),{key:0,item:l},null,8,["item"])):s.createCommentVNode("",!0)],16,NM)],16,DM)}),128))],16)],16),n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:1,class:t.cx("nextThumbnailButton"),disabled:o.isNavForwardDisabled(),type:"button","aria-label":o.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(l){return o.navForward(l)})},El(El({},n.nextButtonProps),t.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),s.mergeProps({class:t.cx("nextThumbnailIcon")},t.ptm("nextThumbnailIcon")),null,16,["class"]))],16,LM)),[[a]]):s.createCommentVNode("",!0)],16)],16)}bg.render=RM;function Es(t){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(t)}function vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vg(Object(n),!0).forEach(function(r){VM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VM(t,e,n){return e=$M(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $M(t){var e=FM(t,"string");return Es(e)=="symbol"?e:String(e)}function FM(t,e){if(Es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Sg={name:"GalleriaContent",hostName:"Galleria",extends:Y,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||Jt(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||Jt()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||Jt()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:Cg(Cg({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var n=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=n},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,n){var r=["top","left","bottom","right"],i=r.find(function(o){return o===n});return i?"".concat(e,"-").concat(i):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:yg,GalleriaThumbnails:bg,TimesIcon:Xr},directives:{ripple:yt}};function Ts(t){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(t)}function kg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Og(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kg(Object(n),!0).forEach(function(r){HM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HM(t,e,n){return e=zM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zM(t){var e=_M(t,"string");return Ts(e)=="symbol"?e:String(e)}function _M(t,e){if(Ts(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var jM=["id","aria-label","aria-roledescription"],ZM=["aria-label"],WM=["aria-live"];function UM(t,e,n,r,i,o){var a=s.resolveComponent("GalleriaItem"),l=s.resolveComponent("GalleriaThumbnails"),c=s.resolveDirective("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,id:i.id,role:"region",class:[t.cx("root"),t.$attrs.containerClass],style:t.$attrs.containerStyle,"aria-label":t.$attrs.ariaLabel,"aria-roledescription":t.$attrs.ariaRoledescription},Og(Og({},t.$attrs.containerProps),o.getPTOptions("root"))),[t.$attrs.fullScreen?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":o.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return t.$emit("mask-hide")})},o.getPTOptions("closeButton")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.closeicon||"TimesIcon"),s.mergeProps({class:t.cx("closeIcon")},o.getPTOptions("closeIcon")),null,16,["class"]))],16,ZM)),[[c]]):s.createCommentVNode("",!0),t.$attrs.templates&&t.$attrs.templates.header?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("header")},o.getPTOptions("header")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.header)))],16)):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},o.getPTOptions("content")),[s.createVNode(a,{id:i.id,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return i.slideShowActive=u}),value:t.$attrs.value,circular:t.$attrs.circular,templates:t.$attrs.templates,showIndicators:t.$attrs.showIndicators,changeItemOnIndicatorHover:t.$attrs.changeItemOnIndicatorHover,showItemNavigators:t.$attrs.showItemNavigators,autoPlay:t.$attrs.autoPlay,onStartSlideshow:o.startSlideShow,onStopSlideshow:o.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),t.$attrs.showThumbnails?(s.openBlock(),s.createBlock(l,{key:0,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return i.slideShowActive=u}),containerId:i.id,value:t.$attrs.value,templates:t.$attrs.templates,numVisible:i.numVisible,responsiveOptions:t.$attrs.responsiveOptions,circular:t.$attrs.circular,isVertical:o.isVertical(),contentHeight:t.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:t.$attrs.showThumbnailNavigators,prevButtonProps:t.$attrs.prevButtonProps,nextButtonProps:t.$attrs.nextButtonProps,onStopSlideshow:o.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):s.createCommentVNode("",!0)],16,WM),t.$attrs.templates&&t.$attrs.templates.footer?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:2,class:t.cx("footer")},o.getPTOptions("footer")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.footer)))],16)):s.createCommentVNode("",!0)],16,jM)):s.createCommentVNode("",!0)}Sg.render=UM;var Eg={name:"Galleria",extends:hM,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&k.unblockBodyScroll(),this.mask=null,this.container&&(Bn.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){Bn.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),k.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&k.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){Bn.clear(e),this.containerVisible=!1,k.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:Sg,Portal:Ol},directives:{focustrap:mg}},KM=["aria-modal"];function GM(t,e,n,r,i,o){var a=s.resolveComponent("GalleriaContent"),l=s.resolveComponent("Portal"),c=s.resolveDirective("focustrap");return t.fullScreen?(s.openBlock(),s.createBlock(l,{key:0},{default:s.withCtx(function(){return[i.containerVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:o.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[s.createVNode(s.Transition,s.mergeProps({name:"p-galleria",onBeforeEnter:o.onBeforeEnter,onEnter:o.onEnter,onBeforeLeave:o.onBeforeLeave,onAfterLeave:o.onAfterLeave,appear:""},t.ptm("transition")),{default:s.withCtx(function(){return[t.visible?s.withDirectives((s.openBlock(),s.createBlock(a,s.mergeProps({key:0,ref:o.containerRef,onMaskHide:o.maskHide,templates:t.$slots,onActiveitemChange:o.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):s.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,KM)):s.createCommentVNode("",!0)]}),_:1})):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,templates:t.$slots,onActiveitemChange:o.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}Eg.render=GM;const qM=s.defineComponent({name:"ImageGallery",components:{Galleria:Eg,QBadge:Fr},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showThumbnails:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!1}},emits:["update:model-value","update:activeIndex"],setup(t,{emit:e}){const n=s.ref(null),r=s.computed(()=>{var w;return(w=n.value)==null?void 0:w.offsetWidth}),i=s.ref(null),o=s.ref("0"),a=s.ref(1),l=s.ref(pn.md?1:.9),c=s.ref(0),u=s.ref(t.files),d=s.ref(!1),f=s.computed(()=>t.files.filter(w=>w.type.startsWith("image"))),p=s.computed(()=>["rounded-lg relative mx-auto object-cover grow-1","md:w-full md:h-full md:min-h-[592px] md:min-w-[592px]",{animated:!g}]),h=(w,S)=>{const v=C=>C.name===(S==null?void 0:S.name),O=f.value.findIndex(v);c.value=O||w,d.value=!0},m=w=>{u.value.splice(w,1),e("update:model-value",u.value)},y=w=>{const{keyCode:S}=w;if(d.value)switch(S){case 37:c.value=c.value?c.value-1:f.value.length-1,e("update:activeIndex",c.value);break;case 39:c.value=c.value<f.value.length-1?c.value+1:0,e("update:activeIndex",c.value);break;case 27:d.value=!1;break}},{isSwiping:g,lengthX:b}=m8(i,{passive:!1,onSwipe(){const w=Math.abs(b.value);r.value&&(a.value=1.1-w/r.value,o.value=b.value<0?`${w/4}px`:`-${w/4}px`)},onSwipeEnd(){const w=c.value<=0,S=c.value>=f.value.length-1,v=Math.abs(b.value);r.value&&v/r.value>=.5?(b.value<0?c.value=w?f.value.length-1:c.value-1:c.value=S?0:c.value+1,o.value="0",a.value=1):(o.value="0",a.value=1)}});return s.onMounted(()=>{window.addEventListener("keyup",y)}),{container:n,containerWidth:r,featuredPhoto:i,isSwiping:g,lengthX:b,left:o,opacity:a,scale:l,showCarousel:d,active:c,fileList:u,itemClasses:p,images:f,onOpenCarousel:h,onRemoveFile:m,onKeyboardNavigation:y,mq:pn}}}),YM={class:"flex",ref:"container"},JM={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},QM=["src","alt"],XM=["src","alt"],eI={key:0,class:"flex flex-wrap"},tI=["onMouseover","onMouseleave"],nI=["src","alt","onClick"],rI={key:1,class:"bg-gray-00 p-3 w-20 h-20 max-w-20 rounded-lg border border-gray-20 flex flex-col flex-nowrap justify-center"},iI=["title"];function oI(t,e,n,r,i,o){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("Galleria"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",YM,[s.createVNode(l,{activeIndex:t.active,"onUpdate:activeIndex":e[0]||(e[0]=u=>t.active=u),visible:t.showCarousel,"onUpdate:visible":e[1]||(e[1]=u=>t.showCarousel=u),value:t.images,numVisible:t.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:t.mq.md,showThumbnailNavigators:!0,showThumbnails:t.showThumbnails&&t.mq.md,showIndicators:!t.mq.md,containerStyle:[{height:"100vh"}]},{closeicon:s.withCtx(()=>[s.createVNode(a,{icon:"times-circle",type:"outline",size:"lg",color:"white"})]),item:s.withCtx(({item:u})=>[s.createElementVNode("div",JM,[s.createElementVNode("img",{src:(u==null?void 0:u.itemImageSrc)||(u==null?void 0:u.objectURL),alt:u==null?void 0:u.alt,class:s.normalizeClass(t.itemClasses),style:s.normalizeStyle([{left:t.left,opacity:t.opacity},`transform: scale(${t.scale})`])},null,14,QM)],512)]),thumbnail:s.withCtx(({item:u})=>[s.createElementVNode("img",{src:u.thumbnailImageSrc||(u==null?void 0:u.objectURL),alt:u.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,XM)]),previousitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),nextthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators"]),t.files?(s.openBlock(),s.createElementBlock("div",eI,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.files,(u,d)=>(s.openBlock(),s.createElementBlock("div",{key:u.name,class:"py-3 pr-4 relative",onMouseover:f=>u.isHovered=!0,onMouseleave:f=>u.isHovered=!1},[u.type&&u.type.includes("image")?(s.openBlock(),s.createElementBlock("img",{key:0,src:(u==null?void 0:u.thumbnailImageSrc)||(u==null?void 0:u.objectURL),alt:u==null?void 0:u.alt,class:"rounded-lg cursor-pointer w-20 h-20 object-cover",onClick:f=>t.onOpenCarousel(d,u)},null,8,nI)):(s.openBlock(),s.createElementBlock("div",rI,[s.createVNode(a,{icon:"file-document",size:"md",color:"inkwell-30",class:"mx-auto"}),s.createElementVNode("p",{class:"text-inkwell-30 text-sm leading-normal text-ellipsis overflow-hidden max-h-5 text-center",title:u.name},s.toDisplayString(u.name),9,iI)])),t.showRemove&&(u.isHovered||!t.mq.md)?(s.openBlock(),s.createBlock(c,{key:2,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute top-1 right-2 shadow-solid",onClick:f=>t.onRemoveFile(d)},{icon:s.withCtx(()=>[s.createVNode(a,{icon:"close",size:"sm",type:"line",color:"white"})]),_:2},1032,["onClick"])):s.createCommentVNode("",!0)],40,tI))),128))])):s.createCommentVNode("",!0)],512)}const sI=ie(qM,[["render",oI],["__scopeId","data-v-ce3ef511"]]),aI=s.defineComponent({name:"QFileUpload",components:{FileUpload:fg,QBadge:Fr,QImageGallery:sI},props:{name:{type:Array,default:null},files:{type:Array,default:()=>[]},url:{type:String,default:""},multiple:{type:Boolean,default:!0},filesAllowed:{type:String,default:"image/*,.pdf"},maxFileSize:{type:Number,default:8388608},autoUpload:{type:Boolean,default:!1},customUpload:{type:Boolean,default:!1}},emits:["file-list","upload-error","uploading"],setup(t,{emit:e}){const n=s.ref(null),r=s.ref(t.files);return{fileUpload:n,allFiles:r,onUploadError:c=>{e("upload-error",c)},onUploading:c=>{e("uploading",c)},onSelectedFiles:c=>{r.value=c.files,e("file-list",r.value)},onUpload:c=>{console.log("onUpload",c)},mq:pn}}}),lI={class:"file-upload-container w-full"},cI={class:"flex flex-col"},uI={key:0},dI={class:"rounded-full bg-white border border-gray-40 border-dashed flex justify-center items-center h-28 w-28"},fI={class:"mt-4 mb-0 text-inkwell-0"};function pI(t,e,n,r,i,o){const a=s.resolveComponent("q-image-gallery"),l=s.resolveComponent("q-icon"),c=s.resolveComponent("FileUpload",!0);return s.openBlock(),s.createElementBlock("div",lI,[s.createVNode(c,{ref:"fileUpload",name:t.name,url:t.url,multiple:t.multiple,accept:t.filesAllowed,invalidFileSizeMessage:t.$t("HC_ATTACHMENTS_MUST_BE_LESS_THAN_X_MB",{size:t.maxFileSize/1024/1024}),maxFileSize:t.maxFileSize,auto:t.autoUpload,"custom-upload":t.customUpload,onError:e[1]||(e[1]=u=>t.onUploadError(u)),onUpload:e[2]||(e[2]=u=>t.onUpload(u)),onUploader:e[3]||(e[3]=u=>t.onUploading(u)),onSelect:t.onSelectedFiles,pt:{root:{class:"flex flex-col"},content:"!py-0 !px-1 !border-none",buttonbar:{class:"order-last hidden"}},ptOptions:{mergeProps:!0}},{content:s.withCtx(u=>[s.createElementVNode("div",cI,[u.files.length>0?(s.openBlock(),s.createElementBlock("div",uI,[s.createVNode(a,{files:t.allFiles,"show-remove":!0},null,8,["files"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["flex flex-col items-center justify-center mt-8 bg-gray-0 border border-gray-20 border-dashed rounded-lg min-h-[320px] cursor-pointer",{"border-red-30":u.messages&&u.messages.length>0}]),onClick:e[0]||(e[0]=d=>{var f;return(f=t.fileUpload)==null?void 0:f.choose()})},[s.createElementVNode("div",dI,[s.createVNode(l,{icon:"paperclip",size:"xl",type:"line",color:"gray-40"})]),s.createElementVNode("div",fI,s.toDisplayString(t.$t("HC_CLICK_DRAG_FILES_HERE")),1)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.messages,d=>(s.openBlock(),s.createElementBlock("p",{class:"text-red-30 mt-2 text-sm leading-5",key:d},s.toDisplayString(d),1))),128))])]),_:1},8,["name","url","multiple","accept","invalidFileSizeMessage","maxFileSize","auto","custom-upload","onSelect"])])}const hI=ie(aI,[["render",pI]]),mI=s.defineComponent({name:"QIcon",props:{},setup(){}}),gI={class:"footer-actions"};function yI(t,e,n,r,i,o){return s.openBlock(),s.createElementBlock("div",gI,[s.renderSlot(t.$slots,"default",{},void 0,!0)])}const bI=ie(mI,[["render",yI],["__scopeId","data-v-ca1eb5be"]]),wI=s.defineComponent({name:"QFormGroup",props:{labelFor:{type:String,required:!0},required:{type:Boolean,default:!1},status:{type:String,default:""}},setup(){return{}}}),vI={class:"form-group"},CI=["for"],SI={class:"label-text"},kI={key:0,class:"required"};function OI(t,e,n,r,i,o){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",vI,[s.createElementVNode("label",{for:t.labelFor},[s.createElementVNode("div",SI,[s.renderSlot(t.$slots,"label",{},void 0,!0)]),t.required?(s.openBlock(),s.createElementBlock("div",kI," *"+s.toDisplayString(t.$t("HC_REQUIRED")),1)):s.createCommentVNode("",!0)],8,CI),s.renderSlot(t.$slots,"default",{},void 0,!0),s.createElementVNode("div",{class:s.normalizeClass(["message",{"text-red-30":t.status==="error"},{"text-green-20":t.status==="success"}])},[t.status==="error"?(s.openBlock(),s.createBlock(a,{key:0,class:"message-icon",color:"red-30",icon:"exclamation-circle",type:"fill"})):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"message",{},void 0,!0)],2)])}const EI=ie(wI,[["render",OI],["__scopeId","data-v-f2d32e20"]]),au=(t,e,n,r,i,o=[])=>{if(e||n&&n.length){let a=!0;t=t.filter(l=>{if(n&&n.length){const c=[];n.forEach(d=>{let f=d.selected;if(!f)return;const p=d.key;Array.isArray(f)||(f=[f]);let h=!1;f.forEach(m=>{const y=m&&m.key?m.key:p,g=m&&y;let b,w="",S=null;g&&(b=y.split(/\./),w=b[0],S=b[1]||null,!S&&(typeof m.value!="boolean"&&l[w]!==m.value||typeof m.value=="boolean"&&typeof l[w]!="boolean"&&!!l[w]!==m.value||typeof m.value=="boolean"&&typeof l[w]=="boolean"&&l[w]!==m.value)||S&&(typeof m.value!="boolean"&&l[w][S]!==m.value||typeof m.value=="boolean"&&typeof l[w][S]!="boolean"&&!!l[w][S]!==m.value||typeof m.value=="boolean"&&typeof l[w][S]=="boolean"&&l[w][S]!==m.value)||(h=!0))}),c.push(h)});const u=c.filter(d=>!!d).length;if(c.length>0&&u!==c.length)return!1}if(e){if(typeof l=="string")return String(l).toLocaleLowerCase().includes(e.toLocaleLowerCase());a=Object.keys(l).some(c=>o.includes(c)?!1:typeof l[c]=="object"&&l[c]?Object.keys(l[c]).some(u=>o.includes(u)?!1:String(l[c][u]).toLocaleLowerCase().includes(e.toLocaleLowerCase())):String(l[c]).toLocaleLowerCase().includes(e.toLocaleLowerCase()))}return a})}return r&&(t=t.sort((a,l)=>{if(a===null||a==="")return 1;if(l===null||l==="")return-1;if(r.includes(".")){const c=r.split(".")[0],u=r.split(".")[1];if(a[c]===null||a[c]==="")return 1;if(l[c]===null||l[c]==="")return-1;a=a[c][u],l=l[c][u]}else a=a[r],l=l[r];return typeof a=="string"&&typeof l=="string"&&(a=a.toLowerCase(),l=l.toLowerCase()),typeof a!="string"&&typeof l!="string"&&(a=parseInt(a),l=parseInt(l)),(a===l?0:a>l?1:-1)*i})),t};/*!
104
104
  * shared v9.9.1
105
105
  * (c) 2024 kazuya kawaguchi
106
106
  * Released under the MIT License.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quoreadmin/ui",
3
3
  "private": false,
4
- "version": "0.23.1",
4
+ "version": "0.23.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",